:root {
    /* Cores principais */
    --azul-principal: #0833a2; /* Versão final preferida */
    --vermelho-destaque: #ff3c00;
    --branco: #ffffff;

    /* Cores complementares */
    --cinza-claro: #f5f5f5;
    --azul-escuro: #1a3a4d;

    /* Sombras e bordas */
    --sombra: 0 4px 20px rgba(0, 0, 0, 0.1);
    --borda: 2px solid rgba(42, 92, 130, 0.1);

    /* Transições */
    --transicao: 0.3s ease;

    /* Cores em HSL (se você estiver usando em temas ou modos escuros) */
    --clr-neutral-100: hsl(0, 0%, 100%);
    --clr-primary-100: hsl(205, 15%, 58%);
    --clr-primary-400: hsl(215, 25%, 27%);
    --clr-primary-800: hsl(217, 33%, 17%);
    --clr-primary-900: hsl(218, 33%, 9%);
}

/* =================== BOTÃO BASE =================== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transicao);
    text-decoration: none;
    display: inline-block;
}

@media (max-width:550px) {

    html,
    body {
        overflow-x: hidden;
    }

    .container {
        width: auto !important;        
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: var(--branco);
    color: var(--azul-escuro);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transicao);
    padding: 1rem 0;
}

.header.scrolled {
    background-color: var(--branco);
    box-shadow: var(--sombra);

}

.scrolled .logo {
    width: 110px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: transparent;
}

.logo {
    width: 150px;
    transition: var(--transicao);
    padding-left: 20px;
    background-color: transparent;
    border: none;
    border-radius: 0;
}


.nav-content {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-right: 1em;
}

.nav-list {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-list a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    font-size: .8em;
    position: relative;
    cursor: pointer;
    transition: var(--transicao);
}

.header.scrolled .nav-list a {
    color: var(--azul-escuro);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff1e00;
    transition: var(--transicao);
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-mobile {
    display: none;
    background-color: rgba(255, 255, 255, 0); /* Fundo levemente visível */
    border: 1px solid rgba(255, 255, 255, 0);  /* Borda sutil */
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-mobile:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger {
    display: block;
    width: 28px;
    height: 2.5px;
    background-color: var(--branco);
    position: relative;
    transition: transform 0.4s ease, background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2.5px;
    background-color: inherit;
    transition: transform 0.4s ease, top 0.4s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Animação para quando estiver ativo (menu aberto) */
.menu-mobile.active .hamburger {
    background-color: transparent;
}

.menu-mobile.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-mobile.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.header.scrolled .menu-mobile .menu-texto {
  color: var(--azul-escuro);
}

@media (max-width: 992px) {
    .nav-list a {
        color: var(--azul-escuro) !important;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
}


@media (max-width: 992px) {
    .menu-mobile {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--branco);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transicao);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list a {
        color: var(--azul-escuro);
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .header.scrolled .nav-list a {
        color: var(--azul-escuro);
    }
}

.menu-mobile .menu-texto {
  color: var(--branco); /* fonte branca por padrão */
  transition: color 0.3s ease;
}

.menu-mobile.scrolled .menu-texto {
  color: var(--azul-escuro); /* fonte azul marinho ao rolar */
}

/* para links do nav */
.nav-list a {
  color: var(--branco);
  transition: color 0.3s ease;
}

.header.scrolled .nav-list a {
  color: var(--azul-escuro);
}

/* ======== NAV LIST DESKTOP ======== */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;       
  gap: 20px;           
  background-color: transparent; /* transparente no desktop */
}

/* ======== NAV LIST MOBILE ======== */
@media (max-width: 992px) {
  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--branco); /* fundo branco só no mobile */
    flex-direction: column;
    padding: 2rem;
    transition: var(--transicao);
  }

  .nav-list.active {
    left: 0;
  }

  .nav-list a {
    color: var(--azul-escuro); /* links azuis no mobile */
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
}

.nav-list li {
  position: relative;  /* Necessário para o dropdown */
}

.nav-list a {
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  color: #ffffff;
}

/* Dropdown oculto por padrão */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;           /* Abaixo do item principal */
  left: 0;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.336); /* padrão: translúcido */
  backdrop-filter: blur(6px); /* efeito vidro */
}

/* Links dentro do dropdown */
.dropdown-content li a {
  padding: 10px;
  color: #ffffff;
}

.dropdown-content li a:hover {
  background-color: #b1b1b1;
}

/* Mostrar dropdown ao passar o mouse */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown quando o header tiver rolado */
.header.scrolled .dropdown-content {
  background-color: #fff;  /* branco sólido */
  backdrop-filter: none;   /* remove efeito vidro */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    margin-top: 0;
    border-bottom: var(--borda);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;                      /* Alinhado à esquerda */
    transform: translateY(-50%);    /* Só sobe verticalmente, não mexe no X */
    text-align: justify;            /* <-- AQUI: De left para justify */
    color: var(--branco);
    z-index: 2;
    max-width: 700px;               /* Largura máxima mais controlada */
    padding: 0 1.5rem;
}


.hero-content h1 {
    font-size: 2em;
    font-weight: 350;
    text-align: left;
    background: linear-gradient(
  115deg,
  #c0c0c0 0%,
  #e0e0e0 30%,
  #ffffff 50%,
  #b0b0b0 70%,
  #d9d9d9 100%
);
filter: brightness(1.1) saturate(1.2);
  /* Rosa → Roxo → Amarelo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;  /* Para navegadores modernos */
    color: transparent;
}

.hero-content h1 {
    text-align: left;
}

.destaque {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.btn-saiba-mais {
    display: inline-block;
    margin-top: 0;
    padding: 10px 18px;
    background-color: transparent;    /* Fundo transparente */
    color: #fff;                      /* Texto branco */
    text-decoration: none;
    border: 2px solid #fff;           /* Borda branca */
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-saiba-mais:hover {
    background-color: #fff;           /* Fundo branco no hover */
    color: #004aad;                   /* Texto azul no hover */
    border-color: #fff;               /* Mantém borda branca */
}

.hero-carousel .splide__slide {
    height: 100vh;
}

.hero-carousel .splide__arrows {
    position: absolute;
    min-width: 100vw;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.hero-carousel .splide__pagination {
    bottom: 30px;
}

.hero-carousel .splide__arrow {
    background-color: transparent;    /* Remove fundo */
    border: none;
    border-radius: 0;                 /* Remove formato circular */
    width: auto;                      /* Remove tamanho fixo */
    height: auto;
    font-size: 0.8rem;                  /* Tamanho das setas (pode ajustar) */
    box-shadow: none;
    padding: 0.5rem;                  /* Espaço interno opcional */
    transition: var(--transicao);
}

.hero-carousel .splide__arrows {
    display: none !important;
}


.hero-carousel .splide__arrow svg {
    fill: var(--branco);  /* Mantém a seta visível */
    width: 2rem;
    height: 2rem;
}

.hero-carousel .splide__arrow svg{
    fill: rgba(255, 255, 255, 0.384);
}

.hero-carousel .splide__arrow:hover {
    color: var(--vermelho-destaque);
    transform: scale(1.1);
}

.hero-carousel .splide__pagination__page.is-active {
    background-color: #4400ff;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.35)
    );
    z-index: 1;
}

.hero .splide__slide .hero-content {
    left: 5%;
    transform: translateY(-50%);
    max-width: 700px;
    padding: 0 1.5rem;
    text-align: justify;
    color: var(--branco);
}

.hero .splide__slide .main-caption {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0);
}

.hero .splide__slide .destaque {
    font-size: 1rem;
    margin-bottom: 2rem;
    display: block;
    font-weight: 300;
}

.hero .splide__slide .hero-overlay {
    background: linear-gradient(
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.35)
    );
    z-index: 1;
}

/* Responsivo para todos os slides agora */
@media (max-width: 768px) {
    .hero .splide__slide .main-caption {
        font-size: 2rem;
    }

    .hero .splide__slide .destaque {
        font-size: 1rem;
    }

    .hero .splide__slide .btn-primario {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero .splide__slide .main-caption {
        font-size: 1.5rem;
    }

    .hero .splide__slide .destaque {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
  .hero .splide__slide .hero-content {
    left: 3%;
    max-width: 90%;
    padding: 0 1rem;
  }

  .hero .splide__slide .hero-content h1,
  .hero .splide__slide .main-caption {
    font-size: 1.5em;
    text-align: left;
  }

  .hero .splide__slide .destaque {
    font-size: 0.9rem;
  }
}

.sobre-curso-section {
  background-color: #f9f9f9;
  padding: 3rem 1rem; /* 48px 16px */
  font-family: 'Montserrat', sans-serif;
}

.sobre-curso-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 66rem; /* 1056px */
  margin: 0 auto;
  gap: 2rem; /* 32px */
  align-items: flex-start;
}

.sobre-curso-texto {
  flex: 1 1 100%;
  font-size: clamp(0.90rem, 1vw, 0.97rem); /* 13.6px a 15.2px */
  color: #333;
  text-align: justify;
  line-height: 1.6;
  padding: 0 clamp(0.75rem, 2.5vw, 1.5rem); /* 12px a 24px */
}

.sobre-curso-texto h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem); /* 20px a 25.6px */
  margin-bottom: 1rem; /* 16px */
  color: #004080;
}

.sobre-curso-texto p {
  margin-bottom: 0.875rem; /* 14px */
}

@media (max-width: 900px) {
  .sobre-curso-texto h2 {
    text-align: center;
  }
}


/* Estilo geral da seção de grade curricular */
.table-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.table-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* Tabela */
.table-section table {
    width: 100%;
    max-width: 60%;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Cabeçalho */
.table-section thead {
    background-color: #ff2600;
    color: white;
}

.table-section thead th {
    padding: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 2px solid #ddd;
}

/* Linhas */
.table-section tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-section tbody tr:hover {
    background-color: #e9ecef;
    transition: background 0.3s ease;
}

.table-section tbody td {
    padding: 12px 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid #ccc;
    color: #333;
    text-align: center;
}

.footer {
    background: var(--azul-principal);
    color: var(--branco);
    padding: 2rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 2rem;
    gap: 2rem;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 180px; /* Garante largura mínima para colunas */
}

.footer-logo {
    width: 120px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--branco);
    text-decoration: none;
    transition: var(--transicao);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--vermelho-destaque);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao);
}

.footer-social .social-link:hover {
    background: var(--vermelho-destaque);
    transform: scale(1.1);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem 0; /* reduz padding vertical */
        font-size: 0.85rem; /* fonte um pouco menor */
    }

    .footer-grid {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1rem; /* menos espaço entre colunas */
    }

    .footer-col {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 0.8rem; /* menos margem */
    }

    .footer-logo {
        margin: 0 auto 0.8rem;
        width: 100px; /* menor logo no mobile */
    }

    .footer-links li {
        margin-bottom: 0.3rem; /* menos espaço entre links */
    }

    .footer-social {
        justify-content: center;
        gap: 0.7rem; /* ícones mais próximos */
        margin-top: 0.3rem;
    }

    .footer-social .social-link {
        width: 30px;
        height: 30px;
    }

    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.5rem;
        font-size: 0.7rem;
        opacity: 0.7;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 10px 0 !important; /* força padding menor */
        font-size: 0.8rem !important;
    }

    .footer-grid {
        flex-direction: column !important;
        padding: 0 10px !important;
        gap: 10px !important;
    }

    .footer-col {
        flex: 1 1 100% !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    .footer-logo {
        width: 90px !important;
        margin: 0 auto 10px auto !important;
    }

    .footer-links li {
        margin-bottom: 5px !important;
    }

    .footer-social {
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 5px !important;
    }

    .footer-social .social-link {
        width: 28px !important;
        height: 28px !important;
    }

    .footer-bottom {
        margin-top: 10px !important;
        padding-top: 5px !important;
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        opacity: 0.7 !important;
        text-align: center !important;
    }
}

.footer-bottom a {
  color: inherit;           /* mantém a cor do texto do container */
  text-decoration: none;    /* remove sublinhado */
  cursor: pointer;          /* mantém cursor de link */
  transition: var(--transicao);
}

.footer-bottom a:hover {
  color: var(--cinza-claro); /* efeito hover igual aos links do footer */
  text-decoration: none;
}

/* =================== RESPONSIVIDADE EXTRA =================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }
}


/* Estilo de texto no "sobre" */
.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Layout de "Sobre" */
.sobre-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.sobre-texto {
    flex: 1;
}

.sobre-conteudo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.sobre-texto {
    flex: 1 1 50%;
}

.semana-titulo {
  text-align: center;
  font-size: 1.3rem; /* opcional: ajusta o tamanho */
  font-weight: 350; /* opcional: deixa em negrito */
  margin-bottom: 20px; /* espaço abaixo do título */
  color: #ffffff; /* ou a cor que desejar */
}

.semana-section {
  padding: 80px 80px;
  background: linear-gradient(135deg, #ff3c00, #ffa600);
  position: relative;
  color: #fff;
}

.semana-texto h2 {
  font-size: 1.3rem;        /* 24px */
  margin-bottom: 1.25rem;   /* 20px */
  color: #ffffff;
  font-weight: 350;
  line-height: 1.3;
  text-align: left;
}

.semana-content {
  max-width: 75rem;           /* 1200px */
  margin: 0 auto;
  padding: 0 1.25rem;         /* 20px */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;                  /* 16px */
}

.semana-texto {
  flex: 1 1 40%;
  max-width: 35rem;           /* 480px */
  padding-right: 0.625rem;    /* 10px */
  text-align: justify;
}

.semana-imagem {
    flex: 1 1 32%;
    max-width: 32%;
    display: flex;
    justify-content: center;
}

.semana-imagem img {
    width: 100%;
    max-width: 100%;
    height: auto; /* Mantém a proporção natural */
    object-fit: cover; /* Mantém o crop, mas só se houver altura definida no futuro */
    border-radius: 20px; /* Valor maior, como pediu */
    box-shadow: 15px 15px 0 #002b5c, 0 0.25rem 1.25rem rgba(0, 0, 0, 0.3); /* Inclui o fundinho vinho + sombra leve */
}

  /* Esconde todos, exceto o ativo */
.semana-slider .semana-content {
  display: none;
  animation: fade 0.5s ease-in-out;
}

.semana-slider .semana-content.active {
  display: flex;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Botões pequenos laterais */
.arrow-btn {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  background: none;               /* Sem fundo */
  color: #ffffff67;               /* Cor da seta discreta */
  border: none;                   /* Sem borda */
  font-size: 2rem;              /* Tamanho bom para visibilidade */
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
  padding: 0;                     /* Sem espaço interno que pareça botão */
  line-height: 1;
}

.arrow-btn:hover {
  color: #ffffff6e;                 /* Mais visível ao passar o mouse */
}

.arrow-btn.prev {
  left: -30px;
}

.arrow-btn.next {
  right: -30px;
}

@media (max-width: 768px) {
  .semana-section {
    padding: 40px 20px; /* padding lateral reduzido para o mobile */
  }

  .semana-content {
    padding: 0 10px;
    flex-direction: column;
    gap: 2rem;
  }

  .semana-texto,
  .semana-imagem {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0;
  }

  .semana-texto h2 {
    font-size: 1.4rem;
  }

  .semana-texto p {
    font-size: 0.9rem;
  }

  .semana-imagem img {
    max-width: 90%;
    height: auto;
  }
}

/* Estilo da paginação com pontinhos */
.semana-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.semana-page {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffffff60; /* tom suave */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.semana-page:hover {
  background-color: #ffffffcc;
  transform: scale(1.2);
}

.semana-page.active {
  background-color: #fff;
}

/* SEÇÃO DOCENTES */
.docentes-section {
  padding: 3.75rem 0.9375rem; /* 60px 15px */
  background: linear-gradient(135deg, #f1f1f1, #ffffff);
  color: #000;
  position: relative;
}

/* CONTAINER GERAL */
.corpo-docente {
  max-width: 56.25rem; /* 900px */
  margin: 2.5rem auto; /* 40px */
  padding: 1rem; /* 16px */
  background-color: #ffe5b4;
  border-radius: 1rem; /* 16px */
  box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.1); /* 0 6px 18px */
}

/* TÍTULO */
.docentes-titulo {
  text-align: center;
  margin-bottom: 1.25rem; /* 20px */
}

.docentes-titulo h2 {
  font-size: 1.3rem;
  color: #004080;
  margin: 0;
}

/* CONTEÚDO: TEXTO E IMAGEM */
.docentes-content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 56.25rem; /* 900px */
  margin: 0 auto;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

/* TEXTO */
.docentes-texto {
  flex: 1 1 48%;
  max-width: 30rem; /* 480px */
  text-align: justify;
  padding-right: 1.25rem; /* 20px */
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.2px;
  position: relative;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.docentes-texto h2 {
  font-size: 1.3rem;
  font-weight: 400;
}

.docentes-texto p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #181818;
}

.docentes-texto p + p {
  margin-top: 1rem;
}

.docentes-texto a {
  display: inline-block;
  margin-top: 2.5rem; /* 40px */
  color: #004AAD;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.docentes-texto a:hover {
  border-bottom: 2px solid #004AAD;
}

/* IMAGEM CARROSSEL */
.docentes-imagem-carousel {
  flex: 1 1 40%;
  max-width: clamp(12.5rem, 40%, 18.75rem); /* 200px, 40%, 300px */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem; /* 10px */
  position: relative;
  transition: opacity 0.5s ease;
  opacity: 1;
  min-height: 26.25rem; /* 420px */
  overflow: visible;
}

/* IMAGENS DO CARROSSEL */
.docentes-imagem-carousel .carousel-container img {
  width: 100%;
  max-width: 90%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 1.25rem; /* 20px */
  box-shadow: 0.9375rem 0.9375rem 0 #6b1513, 0 0.25rem 1.25rem rgba(0, 0, 0, 0.3); /* 15px 15px 0, 0 4px 20px */
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

.docentes-imagem-carousel .carousel-container img.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  animation: fade-img 0.5s ease-in-out;
}

/* BOTÕES DO CARROSSEL */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: rgba(228, 228, 228, 0.33);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  opacity: 1;
  z-index: 10;
  padding: 0;
  transition: transform 0.2s ease;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.1);
  color: #cccccc;
}

.arrow.prev {
  left: -2.5rem; /* -40px */
}

.arrow.next {
  right: -2.5rem; /* -40px */
}

/* TABELA DE DOCENTES */
.docente-table {
  width: 100%;
  max-width: 90vw;
  margin: 0 auto;
}

.docente-table thead {
  background-color: #004080;
  color: #ffffff;
}

.docente-table th,
.docente-table td {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

.docente-table th {
  font-weight: bold;
}

.docente-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.docente-table a {
  color: #004080;
  text-decoration: none;
  font-weight: bold;
}

.docente-table a:hover {
  text-decoration: underline;
}

/* EFEITOS */
#docente-foto {
  transition: opacity 0.5s ease;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

/* RESPONSIVO */
@media (max-width: 60rem) { /* 960px */
  .docentes-imagem-carousel {
    min-height: auto;
    overflow: visible;
  }

  .docentes-content {
    display: flex;
    flex-direction: column-reverse;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    max-width: 90%;
    margin: 1.25rem auto; /* 20px */
    padding: 0;
    align-items: center;
  }

  .docentes-imagem-carousel {
    margin-top: 1.25rem; /* 20px */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 15.625rem; /* 250px */
    margin-left: auto;
    margin-right: auto;
  }

  .docentes-imagem-carousel img {
    width: 50%;
    max-width: 8.75rem; /* 140px */
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15); /* 0 4px 12px */
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 auto;
    display: block;
    position: static;
  }

  .docentes-texto {
    padding: 1.25rem; /* 20px */
    text-align: justify;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    width: 100%;
    max-width: 90%;
  }

  .docentes-texto h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #004080;
  }

  .docentes-texto p {
    margin-bottom: 1rem;
  }

  /* Link Currículo Lattes simples em azul, sem botão e sem sublinhado */
  .docentes-texto a {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    text-align: center;
    color: #004AAD;
    text-decoration: none;
    font-weight: bold;
    background: none;
    padding: 0;
    border-radius: 0;
  }

  .docentes-texto a:hover {
    text-decoration: none;
    color: #003366;
  }

  .arrow.prev,
  .arrow.next {
    display: none !important;
  }
}

/* Previne seleção da imagem no carousel e muda cursor */
.docentes-imagem-carousel {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: grab;
}

.docente-info, .docente-img {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.docente-info, #docente-foto {
  transition: opacity 0.4s ease-in-out;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.docente-item {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.docente-item.active {
  display: flex; /* ou block, conforme layout */
  opacity: 1;
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}



.diferenciais-section {
    background-color: #ffffff;
    padding: 3rem 1rem; /* padding menor */
    text-align: center;
    margin-bottom: 4rem; /* maior espaço abaixo da seção */
}

.section-title {
    font-size: 1.2rem; /* ligeiramente menor */
    color: #004d61;
    margin-bottom: 2rem; /* reduzido */
    font-weight: 400;
    position: relative;
}

.diferenciais-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* menor espaçamento */
}

.diferencial-item {
    flex: 1 1 28%; /* um pouco mais estreito */
    max-width: 28%;
    padding: 1rem; /* menor padding */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-sizing: border-box;
    text-align: center; /* centraliza o conteúdo */
}

.diferencial-item i {
    font-size: 1.6rem; /* menor */
    color: #004d61;
    margin-bottom: 0.75rem;
    display: block;
}

.diferencial-item h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.diferencial-item p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    text-align: center; /* centraliza o texto */
}

.diferencial-item.show {
  opacity: 1;
  transform: translateY(0);
}


.semana-section + .diferenciais-section {
  display: block;
}

/* Media Queries para telas menores */

@media (max-width: 1024px) {
    .diferencial-item {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 600px) {
    .diferencial-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .diferenciais-section {
        padding: 3rem 1rem;
    }
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
}

/* Ajustes no card */
.servico-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 26%;
    margin: 0.8rem auto;
}

.servicos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

/* Hover */
.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Imagem */
.servico-imagem img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.servico-card:hover .servico-imagem img {
    transform: scale(1.03);
}

/* Conteúdo */
.servico-content {
    padding: 0.8rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.servico-content h3 {
    font-size: 1.1rem;
    color: var(--azul-principal);
    margin: 0;
}

.servico-content p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

/* Detalhes */
.servico-detalhes {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.servico-detalhes li {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


/* Botão */
.btn-terciario {
    background: var(--vermelho-destaque);
    color: var(--branco);
    padding: 0.4rem 1rem;
    border-radius: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    align-self: flex-start;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-terciario:hover {
    background: #cc2900;
}

/* Responsivo */
@media (max-width: 768px) {
    .servico-card {
        max-width: 90%;
    }

    .servico-content h3 {
        font-size: 1rem;
    }

    .servico-content p,
    .servico-detalhes li {
        font-size: 0.8rem;
    }
}