/* Estilos específicos para a página Projetos */

/* SEÇÃO FEIRA IP TECH */
.feira-section {
    background-color: #ffffff;
    padding: 6rem 2rem 2rem;
    /* Padding inferior reduzido */
}

/* Garante que a seção de carrossel na página de projetos corresponda exatamente ao design */
.projetos-page .testimonials-section {
    padding-top: 2rem;
    background-color: #ffffff;
}

/* SEÇÃO PROJETO DESTAQUE */
.destaque-section {
    background-color: #ffffff;
    padding: 4rem 2rem 6rem;
    text-align: center;
}

.destaque-container {
    max-width: 1000px;
    margin: 0 auto;
}

.destaque-title {
    color: #FFA51F;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.destaque-subtitle {
    font-size: 1.1rem;
    color: #000;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.destaque-subtitle span {
    color: #666;
    margin: 0 10px;
}

.destaque-video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.destaque-video-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.destaque-description {
    max-width: 900px;
    margin: 0 auto;
}

.destaque-description p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
    /* Imagem alinhada à esquerda ou justificada */
}

/* Responsive Destaque Section */
@media (max-width: 768px) {
    .destaque-section {
        padding: 3rem 1.5rem;
    }

    .destaque-title {
        font-size: 1.8rem;
    }

    .destaque-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .destaque-video-wrapper {
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }

    .destaque-description p {
        font-size: 0.95rem;
    }
}

/* SEÇÃO PROJETOS DOS ALUNOS (CARROSSEL) */
.student-projects-section {
    background-color: #FFA51F;
    padding: 2.8rem 2rem 4.2rem;
    text-align: center;
    overflow: hidden;
    max-height: 800px;
    max-width: 1520px;
    width: 96%;
    margin: 4rem auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.student-projects-section .carousel-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: block;
}

.student-projects-section .carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.student-projects-section .carousel-controls-bottom {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Cards personalizados para carrossel de imagens */
.student-projects-section .video-card {
    background: transparent;
    box-shadow: none;
    height: 450px;
    /* Abordagem de altura total da imagem */
    border: none;
}

.student-projects-section .video-poster {
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.crop-student-project-3 {
    object-position: bottom center !important;
    transform: scale(1.6);
    transform-origin: bottom center;
}

.student-projects-section .video-card.active {
    height: 520px;
    box-shadow: none;
    border: none;
}

.student-projects-section .video-card.active .video-poster {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Setas brancas para seção amarela */
.student-projects-section .nav-btn {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.student-projects-section .nav-btn:hover {
    background: #ffffff;
    color: #FFA51F;
    transform: scale(1.1);
}

.feira-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feira-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    justify-content: space-between;
}

.feira-text {
    flex: 1;
    max-width: 550px;
}

.feira-text h2 {
    color: #FFA51F;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.feira-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.8rem;
    /* Reduzido de 1.5rem */
    text-align: justify;
}

.feira-text p:last-child {
    margin-bottom: 0;
}

/* Responsive Feira Section */
@media (max-width: 768px) {
    .feira-section {
        padding: 3rem 1.5rem;
    }

    .feira-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .feira-text p {
        font-size: 0.95rem;
        text-align: left;
    }
}

.feira-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* Garante alinhamento vertical central */
}

.feira-visual img {
    max-width: 100%;
    max-height: 400px;
    /* Restringe altura para alinhar melhor se o texto for curto */
    width: auto;
    /* Manter proporção */
    border-radius: 20px;
    /* Cantos arredondados opcionais como visto em designs modernos */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .feira-content {
        flex-direction: column;
        gap: 3rem;
    }

    .feira-text {
        max-width: 100%;
        text-align: left;
    }

    .feira-visual {
        justify-content: center;
    }
}

/* BANNERS ESTÁTICOS (PROJETOS) */
.hero-visuals.static-banners {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Espaço entre os dois banners */
    justify-content: center;
    align-items: flex-end;
    /* Alinhar à direita */
    height: auto;
    padding-right: 0;
    overflow: visible;
}

.static-banner-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 100px;
    /* Formato de pílula */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .hero-visuals.static-banners {
        align-items: center;
        margin-top: 2rem;
    }

    .static-banner-img {
        max-width: 100%;
    }
}

/* ================================================= */
/* HERO DE PROJETOS - FUNDO LARANJA                  */
/* ================================================= */

.hero.projetos-hero {
    position: relative;
    width: 100%;
    height: clamp(420px, 36vw, 580px) !important;
    min-height: clamp(420px, 36vw, 580px) !important;
    max-height: clamp(420px, 36vw, 580px) !important;
    padding: 0;
    overflow: hidden;

    background-color: #FFA51F !important;
    background-image: none !important;
    display: flex;
    align-items: center;
}

/* Remove overlay azul herdado e imagem de fundo azul */
.hero.projetos-hero::before {
    display: none !important;
    content: none !important;
    background: none !important;
}


/* ---- Texto da esquerda ---- */
.projetos-hero-text {
    position: absolute;
    left: clamp(5%, 8%, 12%);
    top: 50%;
    transform: translateY(-50%);
    max-width: clamp(340px, 40%, 580px);
    z-index: 10;
    text-align: left;
}

.projetos-hero-text h1 {
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0;
}

/* Subtítulo azul (igual à imagem) */
.highlight-blue {
    color: #1f6dff;
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2.8rem);
    font-weight: 800;
}

/* Linha separadora branca */
.projetos-hero-line {
    width: 100%;
    max-width: 460px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 14px 0 18px;
}

/* Parágrafo em branco */
.projetos-hero-text p {
    font-size: clamp(0.95rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
}

/* ---- Imagem direita ---- */
.projetos-hero-image-container {
    position: absolute;
    right: clamp(2%, 5%, 8%);
    bottom: 0;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.projetos-hero-image-container img {
    height: clamp(340px, 95%, 560px);
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

/* ---- Círculos decorativos (efeito) atrás da imagem ---- */
.projetos-hero-circles {
    position: absolute;
    right: -2%;
    top: -10%;
    width: 55%;
    height: 120%;
    background-image: url('../assets/img/efeito.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
    z-index: 3;
    pointer-events: none;
    opacity: 0.6;
}


/* ---- Barra inferior com ícones ---- */
.projetos-hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 2rem;
    overflow: hidden;
}

.projetos-bottom-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 600;
    padding: 0 2.5rem;
}

.projetos-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.projetos-bottom-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
    stroke: #ffffff;
}

.projetos-bottom-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* ---- Responsivo ---- */
@media (max-width: 1100px) {
    .hero.projetos-hero {
        height: 600px !important;
        min-height: 600px !important;
        max-height: 600px !important;
        position: relative !important;
        overflow: hidden !important;
        padding: 0 !important;
        display: block !important;
    }

    .projetos-hero-text {
        position: absolute !important;
        left: 20px !important;
        right: 20px !important;
        top: 90px !important;
        transform: none !important;
        max-width: none !important;
        margin: 0 !important;
        text-align: center !important;
        z-index: 10 !important;
    }

    .projetos-hero-line {
        margin: 12px auto 16px !important;
    }

    .projetos-hero-image-container {
        position: absolute !important;
        bottom: 30px !important; /* Elevado para fazer o menino aparecer mais e não ficar escondido */
        left: 0 !important;
        right: 0 !important;
        margin: -24px auto !important;
        height: 340px !important;
        width: 100% !important;
        max-width: 400px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        z-index: 4 !important;
    }

    .projetos-hero-image-container img {
        height: 100% !important;
        width: auto !important;
        max-width: 100% !important;
        display: block !important;
        object-fit: contain !important;
        object-position: bottom center !important;
    }

    .projetos-hero-circles {
        display: none !important;
    }

    .projetos-hero-bottom {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important; /* let image define height */
        margin-top: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
        background: none !important; /* remove glassmorphic background */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 4px 8px !important;
        flex-direction: row !important;
        overflow: hidden;
    }

    /* Blue underline for option text */
    .projetos-bottom-item span:not(.projetos-bottom-icon) {
        text-decoration: underline;
        text-decoration-color: #007BFF; /* blue */
        text-underline-offset: 3px;
    }
}

@media (max-width: 768px) {
    .projetos-hero-text h1 {
        font-size: 2rem !important;
    }

    .highlight-blue {
        font-size: 1.6rem !important;
    }

    .projetos-hero-image-container {
        height: 330px !important;
        bottom: 25px !important; /* Ajuste fino em telas muito pequenas */
    }

    .projetos-bottom-divider {
        display: none !important;
    }

    .projetos-bottom-item {
        padding: 0 0.3rem !important;
        font-size: 0.8rem !important;
    }
}

/* Remove a parte branca (video-info) e expande o vídeo para 100% no carrossel de Feira IP Tech */
.projetos-page .testimonials-section .video-card {
    overflow: hidden !important;
}
.projetos-page .testimonials-section .video-card .video-info {
    display: none !important;
}
.projetos-page .testimonials-section .video-card .video-poster {
    height: 100% !important;
}