:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --bg: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #fff;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); line-height: 1.6; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }

/* ====== MENU SUPERIOR PREMIUM ====== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInHeader 0.6s ease-out forwards;
  animation-delay: 0.15s;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6%;
  transition: all 0.35s ease;
}

.logo-link { display:flex; align-items:center; gap:10px; }
.logo-img { height: 70px; width: auto; transition: all 0.35s ease; }

nav ul { display: flex; list-style: none; gap: 28px; align-items: center; margin: 0; padding: 0; }
nav li a { display: inline-flex; align-items: center; height: 44px; line-height: 1; padding: 0 2px 2px; border-bottom: 2px solid transparent; transition: all 0.2s; font-size: 1.05rem; color: var(--text); }
nav li a.active, nav li a:hover { border-color: var(--primary); color: var(--primary); }

.cta {
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform .18s ease, background .18s ease;
}
.cta:hover { transform: translateY(-2px); background: var(--secondary); }

/* shrink on scroll */
header.shrink {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.08);
}
header.shrink .nav { padding: 6px 6%; }
header.shrink .logo-img { height: 48px; filter: brightness(1.03); }

/* hero */
.hero { height: 50vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.carousel-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; padding: 12px 20px; background: rgba(0,0,0,0.32); border-radius: 10px; opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.hero-content.visible { opacity: 1; transform: translateY(0); }
.hero-content h1 { font-size: 2rem; margin-bottom: 12px; color:white; }
.hero-content p { font-size: 1rem; margin-bottom: 14px; color:white; }
.hero-content .btn { background: var(--white); color: var(--primary); padding: 10px 20px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; transition: 0.2s; }
.hero-content .btn:hover { background: #e0e7ff; }

.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: white; background: rgba(0,0,0,0.3); border: none; padding: 8px; cursor: pointer; border-radius: 50%; z-index: 10; }
.prev { left: 10px; } .next { right: 10px; }
.carousel-indicators { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-indicators .indicator { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.carousel-indicators .indicator.active { background: white; }

/* sections animations (adaptive) */
section { padding: 60px 6%; opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
section.visible { opacity: 1; transform: translateY(0); }
h2 { font-size: 1.6rem; margin-bottom: 18px; text-align: center; position: relative; }
h2::after { content: ''; width: 60px; height: 4px; background: var(--primary); display: block; margin: 8px auto; border-radius: 2px; }

/* grid cursos */
.grid { display: grid; gap: 20px; }
.cursos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { display:flex; flex-direction:column; justify-content:space-between; text-align:center; background: var(--white); padding: 18px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.05); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card img { width:100%; height:180px; object-fit:cover; border-radius:8px; margin-bottom:12px; }
.card h3 { margin:10px 0; font-size:1.05rem; }
.card p { margin-bottom:12px; color:var(--muted); font-size:0.95rem; }

.btn-service { display:inline-block; margin-top:auto; padding:10px 18px; background:var(--primary); color:var(--white); border-radius:8px; font-weight:500; text-decoration:none; transition:0.18s; }
.btn-service:hover { background:var(--secondary); transform:translateY(-2px); }

/* contact form */
.about, .contact { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
form input, form textarea { width: 100%; padding: 10px; margin-top: 8px; margin-bottom: 16px; border-radius: 8px; border: 1px solid #d1d5db; font-family: inherit; }
form button { padding: 10px 24px; border-radius:8px; background:#2563eb; color:#fff; border:none; font-weight:500; cursor:pointer; transition:all .2s; }
form button:hover { transform:translateY(-2px); background:#1e40af; }

/* ====== RODAPÉ ====== */
footer {
  background: #f3f4f6;
  padding: 50px 8%;
  color: var(--text);
  text-align: center;
}

/* Grade para as unidades */
.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Cada unidade */
.footer-unit {
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 350px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-unit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.footer-unit h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.footer-unit p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Ícones sociais */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-social img {
  width: 38px;
  height: 38px;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}

/* Direitos autorais */
.footer-copy {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsivo: empilha unidades no mobile */
@media (max-width: 900px) {
  .footer-info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-unit {
    width: 100%;
    max-width: 400px;
    text-align: center;
  }
}

/* toast */
#toast { position: fixed; bottom: 20px; right: 20px; background: #16a34a; color:white; padding:12px 18px; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,0.15); opacity:0; transform:translateY(12px); transition: all 0.35s ease; pointer-events:none; z-index:9999; }
#toast.show { opacity:1; transform:translateY(0); pointer-events:auto; }

/* responsive */
@media (max-width: 768px) {
  section { padding: 40px 5%; transition: all 0.4s ease-out; }
  .hero { height: 40vh; }
  .logo-img { height: 56px; }
  header.shrink .logo-img { height: 44px; }
  .card img { height:140px; }
}

/* header fade-in keyframes */
@keyframes fadeInHeader {
  from { opacity:0; transform:translateY(-10px); }
  to { opacity:1; transform:translateY(0); }
}

/* title fadeUp quicker on mobile */
@keyframes fadeUpTitle {
  0% { opacity:0; transform:translateY(12px); }
  100% { opacity:1; transform:translateY(0); }
}

.about.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Garante que o parágrafo dentro do "Sobre" apareça normalmente */
.about-text-columns p {
  opacity: 1 !important;
  transform: none !important;
}

/* ====== SOBRE NÓS (2 COLUNAS) ====== */
.about {
  padding: 80px 8%;
  background: var(--bg);
}

.about-columns {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-col {
  flex: 1;
  text-align: justify;
  line-height: 1.8;
}

.about p {
  margin-bottom: 16px;
}

/* Responsivo — volta para 1 coluna */
@media (max-width: 900px) {
  .about-columns {
    flex-direction: column;
    gap: 20px;
  }
}

section.about {
  display: block !important;            /* garante que não fique grid/grid-template */
  padding: 80px 8%;
}

section.about > h2 {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text);
  position: relative;
}

/* mantêm a linha decorativa do título */
section.about > h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* colunas lado a lado (conteúdo) */
.about-columns {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* cada coluna */
.about-col {
  flex: 1;
  min-width: 280px;
  text-align: justify;
  line-height: 1.8;
}

/* responsivo: vira 1 coluna em telas menores */
@media (max-width: 900px) {
  .about-columns {
    flex-direction: column;
    gap: 20px;
  }
}

/* ====== LOCALIZAÇÕES ====== */
.locations {
  padding: 80px 8%;
  background: var(--bg);
}

.locations h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text);
  position: relative;
}

.locations h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grade para os blocos */
.locations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

/* Cada card */
.location-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  padding: 20px;
  flex: 1 1 45%; /* dois lado a lado */
  max-width: 600px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.location-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.location-card p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.location-card iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  border: 0;
  margin-top: 10px;
}

/* Responsivo: uma coluna no mobile */
@media (max-width: 900px) {
  .locations-grid {
    flex-direction: column;
    align-items: center;
  }

  .location-card {
    max-width: 90%;
  }
}

/* ====== Layout imagem + texto ====== */
/* .course-container unificado mais abaixo */

.course-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.course-text {
  flex: 1;
  min-width: 300px;
  line-height: 1.8;
  color: var(--text);
}

.course-text h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 2rem;
}

.course-text h3 {
  color: #1e293b;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.course-text p {
  margin-bottom: 10px;
  text-align: justify;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
 
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

/* ====== Detalhes do curso ====== */
.course-details h2 {
  color: var(--primary);
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.course-details p,
.course-details ul {
  text-align: justify;
  line-height: 1.8;
}

.course-details ul {
  margin-top: 10px;
  padding-left: 20px;
}

.course-details li {
  margin-bottom: 8px;
}

/* Responsivo */
@media (max-width: 900px) {
  .course-container {
    flex-direction: column;
    align-items: center;
  }

  .course-text {
    text-align: justify;
  }

  .course-image img {
    max-width: 100%;
  }
}

.course-container {
  display: flex;
  align-items: center; /* centraliza verticalmente imagem e texto */
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Mantém a imagem do curso à direita */
.course-image {
  order: 2; /* força a imagem ficar à direita no flex */
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center; /* centraliza verticalmente */
  justify-content: center;
}

.course-text {
  flex: 1;
  min-width: 300px;
  line-height: 1.8;
  color: var(--text);
}

/* Botão no final da página */
.matricula-btn-container {
  text-align: center;
  position: relative;
  top: -50px; /* move 30px para cima */
  margin: 40px 0;
  margin-bottom: -60px;
}

/* Responsivo */
@media (max-width: 900px) {
  .course-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .course-image {
    order: 0; /* imagem acima do texto se preferir */
    max-width: 100%;
  }

  .course-text {
    text-align: justify;
  }

  .btn-whatsapp {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

.btn-wpp-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform .18s ease, background .18s ease;
}

.btn-wpp-main i {
    font-size: 18px;
}

.btn-wpp-main:hover {
    transform: translateY(-2px);
    background: var(--secondary);
}


.btn-center {
  text-align: center;
  margin: 30px 0;
}

.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform .18s ease, background .18s ease;
}

.btn-info:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.btn-info i {
  font-size: 18px;
}


.main-card {
  background: #fff;
  padding: 30px;
  
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  max-width: 1000px;
  margin: 0 auto;
 
}

/* Grid 2x3 */
.subcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas → vira 2x3 */
  gap: 20px;
  margin-top: 20px;
}

/* Subcards */
.subcard {
  background: #f3f4f6;
  padding: 30px 20px;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 0;
  text-align: center;
  
  /* Mantém tudo centralizado e um item abaixo do outro */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 220px; /* Aumenta a área para o texto ficar no meio */
}

.subcard-icon {
  width: 60px;     /* Aumente aqui o tamanho do ícone */
  height: auto;
  margin-bottom: 12px; /* Espaço entre ícone e texto */
  display: block;
}


.subcard p {
  display: block;        /* garante que o parágrafo seja 1 coluna */
  width: 100%;           
  line-height: 1.6;
  text-align: center;

}.subcard img {
  width: 64px;        /* tamanho ideal e proporcional */
  height: 64px;
  display: block;     /* garante que fique sozinho na linha */
  margin: 0 auto 10px auto; /* centraliza e adiciona espaço abaixo */
}


.subcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}




.bloco-2x2 {
  padding: 60px 6%;
  text-align: center;
}

/* Grade 2x2 */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

/* Sub-blocos */
.subbloco {
  background: #f3f4f6;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Ícones */
.subbloco img {
  width: 55px;     /* tamanho ideal */
  height: auto;
  margin-bottom: 12px;
}

/* Texto */
.subbloco p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsivo (vira 1 coluna no celular) */
@media (max-width: 700px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
}



/* ====== DEPOIMENTOS ====== */
.testimonials {
    text-align: center;
    padding: 56px 20px;
}

    .testimonials .subtitle {
        color: #666;
        margin-top: 6px;
    }

.testimonial-carousel {
    position: relative;
    max-width: 820px;
    margin: 28px auto;
    padding: 10px 20px;
}

/* Cada item */
.t-item {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}

    .t-item.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

/* Caixa do depoimento */
.t-box {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.t-avatar {
    font-size: 48px;
    margin-bottom: 12px;
}

.t-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.t-role {
    color: #666;
    margin-bottom: 12px;
}

.t-comment {
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

/* Botões */
.t-prev, .t-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background .25s;
}

    .t-prev:hover, .t-next:hover {
        background: #1e40af;
    }

.t-prev {
    left: -10px;
}

.t-next {
    right: -10px;
}

/* Indicadores */
.t-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.t-indicator {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: background .25s;
}

    .t-indicator.active {
        background: #2563eb;
    }

/* CONTÊINER DAS BOLINHAS */
.t-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

/* BOLINHAS */
.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cccccc;
    cursor: pointer;
    transition: 0.3s ease;
}

    /* BOLINHA ATIVA */
    .t-dot.active {
        background: #007bff; /* cor azul, pode trocar */
        transform: scale(1.3);
    }


/* Responsivo */
@media (max-width: 600px) {
    .t-prev {
        left: 0;
    }

    .t-next {
        right: 0;
    }

    .t-box {
        padding: 22px;
    }
}


/* Botão WhatsApp abaixo dos depoimentos */
.testimonials-whatsapp {
  text-align: center;
  margin-top: 30px;
}

.btn-whatsapp-testimonials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp-testimonials i {
  font-size: 22px;
}

.btn-whatsapp-testimonials:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/*CSS Aluno Odonto*/
.img-box {
  position: relative;
  width: 100%;
  max-width: 900px;   /* ajuste conforme desejar */
  margin: 40px auto;
}

.img-box img {
  width: 100%;
  border-radius: 12px;
}

/* Texto sobre a imagem */
.img-box {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.img-box img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.img-text {
    position: absolute;
    bottom: 20px;               /* controla a posição */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);  /* fundo escuro para contraste */
    color: #fff;                 /* texto branco */
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
    width: fit-content;
}

.overlay-container img {
    max-width: 900px;   /* diminui a largura */
    width: 100%;
    height: auto;
    border-radius: 10px;
}


/*estetica botão whatsapp dentro do bloco de texto*/
/* Container para centralizar */
.btn-whatsapp-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background-color: #25D366;
    color: white;

    padding: 14px 28px;  /* TAMANHO MAIOR */
    font-size: 1.1rem;
    font-weight: 600;

    border-radius: 50px;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp-block:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.btn-whatsapp-block i {
    font-size: 22px;
}


/* HERO TSB */
.hero-banner {
  height: 800px; /* Ajuste como quiser */
  background-image: url('images/hero-tsb.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.hero-text p {
  color: #fff;
}

.hero-text {
  background: rgba(0,0,0,0.4);
  padding: 20px 0;
  width: 100%;
  text-align: center;
}


.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;          /* Cor do WhatsApp */
  color: #fff;
  padding: 14px 28px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: #1ebe5d;
}


/* FIM DO HERO TSB */

/*Botão whatsapp TSB*/
.card-btn {
  display: block;
  margin: 20px auto 0;  /* <-- centraliza */
  width: fit-content;
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.card-btn-container {
  text-align: center;
}


.card-btn:hover {
  background: #1ebe5d;
}
/*FIM Botão whatsapp TSB*/



/* ====== LIVRO – 4 PÁGINAS ====== */

/* Contêiner do livro */
.book {
  position: relative;
  width: 800px;
  height: 450px;
  margin: 50px auto;
  perspective: 2000px;
}

/* Páginas */
.page {
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  padding: 30px;
  background: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

/* Lados */
.page-left { left: 0; transform-origin: left center; z-index: 2; }
.page-right { right: 0; transform-origin: right center; z-index: 1; }

/* Flip das páginas */
.page.flipped {
  transform: rotateY(-180deg);
}

/* Conteúdo interno */
.page .content {
  font-size: 1rem;
  line-height: 1.6;
}

/* Botões */
.book .btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: #25d366;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  transition: background-color 0.3s, transform 0.2s;
}

.book .btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-50%) scale(1.1);
}

.book .prev { left: -70px; }
.book .next { right: -70px; }

/* Mobile */
@media (max-width: 900px) {
  .book { width: 90%; height: 380px; }
  .page { width: 100%; }
  .book .prev { left: 10px; }
  .book .next { right: 10px; }
}
.page .content ul {
  list-style-type: disc; /* círculo */
  padding-left: 20px;    /* indentação da lista */
  margin: 10px 0;
}

.page .content li {
  margin-bottom: 8px;    /* espaço entre os itens */
}


/*CSS do acordeon*/
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas iguais */
  grid-template-rows: repeat(2, auto);  /* 2 linhas automáticas */
  gap: 20px;                             /* espaço entre cards */
  max-width: 1200px;
  margin: 40px auto;
}

.cards-container .card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 20px;
  text-align: center;          /* centraliza horizontalmente texto */
  display: flex;               /* ativa flexbox */
  flex-direction: column;      /* itens empilhados verticalmente */
  justify-content: center;     /* centraliza verticalmente */
  align-items: center;         /* centraliza horizontalmente */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cards-container .card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cards-container .card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2563eb;
}

.cards-container .card p {
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
}

/*Testemunho TSB*/

.testimonials {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  padding-bottom: 10px;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2563eb;
}

.testimonial-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 25px 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.testimonial-card .avatar {
  font-size: 3rem;
  margin-bottom: 15px;
}

.testimonial-card h3 {
  font-size: 1.2rem;
  color: #2563eb;
  margin-bottom: 5px;
}

.testimonial-card .role {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.testimonial-card .comment {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

/* Mobile */
@media (max-width: 900px) {
  .testimonial-container {
    flex-direction: column;
    align-items: center;
  }
}

/*Acordeon para FAQ*/
.faq {
  padding: 60px 20px;
  background-color: #f9f9f9;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faq h2 {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 40px;
}

.accordion-container {
  text-align: left;
}

.accordion {
  background-color: #2563eb;
  color: white;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.accordion:hover {
  background-color: #2563eb;
}

.accordion .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion.active .arrow {
  transform: rotate(180deg);
}

.panel {
  background-color: #fff;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  border-radius: 0 0 8px 8px;
  margin-bottom: 10px;
}

.panel p {
  padding: 15px 0;
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/*CSS exclusivo módulo TPD*/
.grid-modulos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Aparência dos cards */
.mod-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mod-card span {
  font-size: 15px;
  color: #555;
  font-weight: 400;
}

/* --- Módulo 10 no centro --- */
.m10 {
  grid-column: 2; /* CENTRALIZA */
  grid-row: 4;
}

/* --- TABLET (2 colunas) --- */
@media (max-width: 900px) {
  .grid-modulos {
    grid-template-columns: repeat(2, 1fr);
  }

  .m10 {
    grid-column: 2; /* Vai para a direita */
    grid-row: auto;
  }
}

/* --- CELULAR (1 coluna) --- */
@media (max-width: 600px) {
  .grid-modulos {
    grid-template-columns: 1fr;
  }

  .m10 {
    grid-column: 1; /* Fica centralizado pela própria estrutura */
  }
}

/* Animação Card base */
/* Card base */
.mod-card {
  position: relative;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Neon discreto ao redor */
.mod-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #00eaff80, #0088ff80);
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Hover: neon aparece */
.mod-card:hover::after {
  opacity: 1;
}

/* Leve animação do card ao passar o mouse */
.mod-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.18);
}


/*FIM CSS exclusivo módulo TPD*/

/*CSS form de contato*/

.contact form select {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;      /* mesmo contorno dos outros campos */
  border-radius: 8px;          /* mesma borda dos inputs */
  font-size: 16px;
  background-color: #fff;
  color: #333;
  appearance: none;            /* remove estilo padrão do navegador */
  -webkit-appearance: none;
  -moz-appearance: none;
}

.contact form select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
/*FIM CSS form de contato*/

/*CSS Nossa Historia*/

:root{
--grad-1: #0f172a; /* escuro */
--grad-2: #0ea5a4; /* teal */
--card-bg: #ffffff;
--text: #0b1320;
--muted: #475569;
--radius: 14px;
}


.nv-section{
padding: 64px 20px;
background: transparent;
color: var(--text);
}


.nv-container{
max-width: 1100px;
margin: 0 auto;
}


.nv-header{
text-align: center;
margin-bottom: 26px;
color: var(--text);
background: none !important;
box-shadow: none !important;
}


.nv-header h2{
font-size: 28px;
margin: 0 0 8px 0;
letter-spacing: -0.5px;
background: none !important;
box-shadow: none !important;
}


.nv-sub{
color: var(--muted);
margin: 0;
font-size: 15px;
}


.nv-cards{
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 24px;
}


.nv-card{
background: var(--card-bg);
border-radius: var(--radius);
padding: 22px;
box-shadow: 0 8px 20px rgba(11,19,32,0.08);
transition: transform .28s ease, box-shadow .28s ease;
min-height: 220px;
display: flex;
flex-direction: column;
}


.nv-card:hover{
transform: translateY(-8px);
box-shadow: 0 18px 40px rgba(11,19,32,0.12);
}


.nv-icon{
width: 56px;
height: 56px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background: linear-gradient(180deg, rgba(14,165,164,0.08), rgba(14,165,164,0.03));
color: var(--grad-1);
margin-bottom: 12px;
}


.nv-card h3{
margin: 0 0 8px 0;
font-size: 18px;
}


.nv-card p{
margin: 0;
color: var(--muted);
line-height: 1.5;
margin-top: 6px;
flex-grow: 1;
}


/* responsividade */
@media (max-width: 900px){
.nv-cards{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
.nv-cards{ grid-template-columns: 1fr; }
.nv-section{ padding: 36px 16px; }
.nv-header h2{ font-size: 22px; }
}

/* FIM CSS Nossa Historia*/

/*CSS Nossos VAlores*/
.values-section{
padding: 50px 20px;
}
.values-container{
max-width: 1100px;
margin: 0 auto;
text-align: center;
}
.values-title{
font-size: 26px;
margin-bottom: 26px;
color: var(--text);
}
.values-grid{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 18px;
}
.value-card{
background: #ffffff;
border-radius: 14px;
padding: 16px 18px;
display: flex;
align-items: center;
gap: 12px;
font-size: 15px;
box-shadow: 0 8px 20px rgba(11,19,32,0.08);
transition: transform .28s ease, box-shadow .28s ease;
}
.value-card:hover{
transform: translateY(-6px);
box-shadow: 0 16px 32px rgba(11,19,32,0.12);
}
.value-card span{
color: var(--muted);
}

/* Forçar grid em 3 colunas fixas */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

/* posicionamento por índice (sem classes extra) */
.values-grid .value-card:nth-of-type(1) { grid-column:1; grid-row:1; }
.values-grid .value-card:nth-of-type(2) { grid-column:2; grid-row:1; }
.values-grid .value-card:nth-of-type(3) { grid-column:1; grid-row:2; } /* será 3 na linha 2 */
.values-grid .value-card:nth-of-type(4) { grid-column:2; grid-row:2; } /* será 4 na linha 2 */
.values-grid .value-card:nth-of-type(5) { grid-column:3; grid-row:1; } /* 5 centralizado na linha 1 */

/* responsividade igual à opção A */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}

/*Fim CSS Nossos VAlores*/


/*CSS NOssos CUrsos do quem somos */
.courses-section {
  padding: 3px 3px;
}

.courses-container {
  max-width: 900px;
  margin: 0 auto;
}

.courses-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--text);
  
}

/* CARD HORIZONTAL */
.course-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  box-shadow: 0 7px 20px rgba(11,19,32,0.08);
  transition: .25s ease;
  cursor: default;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(11,19,32,0.12);
}

.course-icon {
  font-size: 34px;
}

.course-info h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}

.course-info p {
  font-size: 14px;
  color: var(--muted);
}
/*FIM CSS NOssos CUrsos do quem somos */

/*CSS Menu DropDown*/
/* Dropdown Container */
.nav nav ul li.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Botão "Cursos" */
.nav nav ul li.dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 44px;
    line-height: 1;
}

/* Caixa do dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff; /* fundo branco */
    color: #333;
    min-width: 160px;
    padding: 8px 0;
    border-radius: 8px;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    z-index: 900;
}

/* Aparecer suavemente no hover */
.nav nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Links dentro do dropdown */
.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

/* Hover no item */
.dropdown-menu li a:hover {
    background: #f0f0f0;
    color: #0d47a1; /* azul bonito */
}

/* Ajuste opcional: seta ▾ mais bonita */
.nav nav ul li.dropdown > a::after {
    content: "▾";
    font-size: 12px;
    line-height: 1;
    margin-left: 4px;
}

/* Links do menu principal na mesma linha e na mesma altura */
.nav nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav nav > ul > li {
    display: flex;
    align-items: center;
    height: 44px;
    margin: 0;
    padding: 0;
}
.nav nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    line-height: 1;
    padding: 0 2px;
    border-bottom: 2px solid transparent;
}
/*FIM do CSS menu dropdown*/

/*Menu do Footer*/
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
  text-align: center;
}

.footer-links li {
  display: inline;
  margin: 0 5px;
}

.footer-links a {
  color: #020202;
  text-decoration: none;
  font-weight: 500;
}

/* Separador com cor fixa */
.footer-links .sep {
  color: #ccc !important; /* força a cor */
  margin: 0 8px;
  font-weight: bold;
}


/*Fim do menu do Footer*/








































/* ====== BANNER HOME (imagens locais, sem corte) ====== */
section.hero {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  text-align: center;
}

section.hero .carousel {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  background: #071a3a;
  float: none !important;
}

section.hero .carousel-slide {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  display: none !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: none !important;
  background-image: none !important;
  float: none !important;
}

section.hero .carousel-slide.active {
  display: block !important;
  opacity: 1 !important;
}

section.hero .carousel-slide img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  float: none !important;
}

section.hero .hero-content {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  transform: none !important;
  display: block !important;
  flex: 0 0 auto !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  z-index: 2;
  text-align: center;
  padding: 28px 20px 40px !important;
  margin: 0 !important;
  background: #071a3a;
  color: #fff;
  box-sizing: border-box;
}

section.hero .hero-content h1,
section.hero .hero-content p {
  color: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

section.hero .hero-content .btn,
section.hero .hero-content .btn-wpp-main {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 8px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  section.hero {
    height: auto !important;
  }
}


/* ====== ESPAÇAMENTO ENTRE SEÇÕES ====== */
section {
  padding: 32px 6% !important;
}
section.about,
.about,
.locations {
  padding: 36px 8% 20px !important;
}
.btn-center {
  margin: 12px 0 0 !important;
}
.matricula-btn-container {
  position: static !important;
  top: 0 !important;
  margin: 20px 0 8px !important;
}
h2 {
  margin-bottom: 12px;
}
.subcard {
  min-height: 160px;
}
.hero-banner {
  height: auto !important;
  min-height: 260px;
  padding: 56px 8% !important;
  background-size: cover;
  background-position: center;
}
.testimonials,
.faq {
  padding: 36px 20px !important;
}

/* ===== HAMBURGER 3 LINHAS + OVERLAY CORRIGIDO ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1f2937;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
}
.menu-overlay.active {
  display: block;
}

@media (max-width: 900px) {
  .hamburger { display: flex !important; }
  .cta { display: none !important; }

  header nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    max-width: 80vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 1001 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15) !important;
    padding-top: 70px !important;
    overflow-y: auto !important;
  }
  header nav.active {
    transform: translateX(0) !important;
  }
  header nav ul {
    flex-direction: column !important;
    gap: 0 !important;
  }
  header nav li a {
    display: block !important;
    padding: 16px 24px !important;
    height: auto !important;
    pointer-events: auto !important;
  }
}

/* =====================================================================
   CORREÇÕES EXCLUSIVAS PARA CELULAR / TABLET (até 900px)
   Não afetam a visualização no computador.
   ===================================================================== */
@media (max-width: 900px) {

  /* --- 1) MENU: corrige a tela cinza que bloqueava os cliques ---
     Causa: o header tinha backdrop-filter + transform (animação com
     "forwards"). Isso cria um contexto de empilhamento (z-index 100),
     então o menu (z-index 1001) ficava preso DENTRO do header, enquanto
     o overlay (z-index 998, fora do header) ficava POR CIMA de tudo,
     inclusive do menu. Aqui removemos o filtro/transform no mobile e
     colocamos o overlay ABAIXO do header. */
  header,
  header.shrink {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.97) !important;
  }

  .menu-overlay {
    z-index: 99 !important; /* abaixo do header (100), que contém o menu */
  }

  header nav {
    height: 100dvh !important;
    height: 100vh;
  }

  /* Itens do menu em coluna, sem a altura fixa de 44px do desktop */
  .nav nav > ul > li {
    height: auto !important;
    display: block !important;
    width: 100%;
  }
  .nav nav > ul > li > a,
  header nav li a {
    display: block !important;
    width: 100%;
    height: auto !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid #eef0f3 !important;
  }

  /* Submenu "Cursos": sempre visível dentro do menu (no celular não existe hover) */
  .nav nav ul li.dropdown {
    display: block !important;
  }
  .nav nav ul li.dropdown > a {
    display: block !important;
    pointer-events: none !important; /* "Cursos" funciona como título do grupo */
    font-weight: 600;
  }
  .nav nav ul li.dropdown > a::after {
    content: none;
  }
  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f7f8fa;
  }
  .dropdown-menu li a {
    padding: 14px 24px 14px 44px !important;
    font-size: 1rem;
  }

  /* Hambúrguer vira "X" quando o menu está aberto */
  .hamburger.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
}

@media (max-width: 700px) {

  /* --- 2) DIFERENCIAIS / QUEM ATENDEMOS: itens com largura controlada --- */
  .diferenciaisunifep {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .main-card {
    padding: 16px;
    border-radius: 12px;
    width: 100%;
  }

  .subcard-grid,
  .grid-2x2 {
    grid-template-columns: 1fr !important; /* 1 coluna, ocupando só a largura da tela */
    gap: 14px;
    margin-top: 12px;
    width: 100%;
  }

  .subcard {
    min-width: 0;            /* permite o item encolher dentro da grade */
    width: 100%;
    min-height: 0 !important;
    padding: 18px 14px;
    overflow-wrap: anywhere; /* quebra palavras longas em vez de estourar a largura */
  }

  .subcard h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .subcard img {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
  }

  .subcard p {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* =====================================================================
   PÁGINA ASB — AJUSTES EXCLUSIVOS PARA CELULAR / TABLET (até 900px)
   Escopo: <body class="page-asb">. Não afeta o computador nem outras páginas.
   Para aplicar em TSB/TPD, basta adicionar class="page-asb" no <body> delas.
   ===================================================================== */
@media (max-width: 900px) {

  /* Rede de segurança: nada empurra a página para o lado */
  body.page-asb {
    overflow-x: clip;
  }

  /* --- Topo (hero) --- */
  .page-asb .hero-banner {
    min-height: 0;
    padding: 40px 5% !important;
  }
  .page-asb .hero-text {
    padding: 22px 16px;
  }
  .page-asb .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .page-asb .hero-text p {
    font-size: 1rem;
  }
  .page-asb .hero-btn {
    max-width: 100%;
    padding: 12px 22px;
    font-size: 1rem;
    text-align: center;
  }

  /* --- Texto + vídeo: ocupam 100% da largura (antes tinham min-width: 300px) --- */
  .page-asb .course-container {
    gap: 20px;
  }
  .page-asb .course-text,
  .page-asb .course-image {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }
  .page-asb .course-text h2 {
    font-size: 1.5rem;
  }
  .page-asb .course-text h3 {
    font-size: 1.2rem;
    margin-top: 16px;
  }
  .page-asb .course-details h2 {
    font-size: 1.35rem;
  }

  /* --- Títulos soltos no body (sem padding lateral) --- */
  body.page-asb > h2,
  body.page-asb > h3 {
    padding: 0 16px;
    font-size: 1.4rem;
  }
  body.page-asb > h3 {
    font-size: 1.05rem;
  }

  /* --- Módulos do curso: o "livro" de 800px vira uma lista de cartões ---
     (no celular as páginas ficavam empilhadas e os módulos 2 e 4 nunca apareciam) */
  .page-asb .book {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column-reverse; /* HTML está em ordem 4,3,2,1 → mostra 1,2,3,4 */
    gap: 14px;
    perspective: none;
  }
  .page-asb .book .page,
  .page-asb .book .page.flipped {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px;
    transform: none !important;
    backface-visibility: visible;
  }
  .page-asb .book .btn {
    display: none !important; /* setas não são mais necessárias */
  }
  .page-asb .page .content h2 {
    font-size: 1.25rem;
  }

  /* --- Benefícios: 3 colunas fixas estouravam a tela --- */
  .page-asb .cards-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: 14px;
    margin: 24px 0;
    padding: 0 16px;
  }
  .page-asb .cards-container .card {
    min-width: 0;
    padding: 16px 12px;
    overflow-wrap: anywhere;
  }
  .page-asb .cards-container .card h3 {
    font-size: 1.05rem;
  }
  .page-asb .cards-container .card p {
    font-size: 0.95rem;
  }

  /* --- Depoimentos (cartão tinha width: 300px fixo) --- */
  .page-asb .testimonials h2,
  .page-asb .faq h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .page-asb .testimonial-card {
    width: 100%;
    max-width: 360px;
  }

  /* --- FAQ --- */
  .page-asb .accordion {
    padding: 14px 16px;
    font-size: 1rem;
    text-align: left;
    gap: 12px;
  }
  .page-asb .accordion .arrow {
    flex-shrink: 0;
  }

  /* --- Botões --- */
  .page-asb .card-btn {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    text-align: center;
  }
  .page-asb .btn-whatsapp {
    max-width: 100%;
    text-align: center;
  }

  /* --- Rodapé --- */
  .page-asb .footer-copy img {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  /* --- TPD: grade "Módulos do Curso" (mod-card) --- */
  .page-asb .grid-modulos {
    gap: 14px;
    max-width: 100%;
  }
  .page-asb .mod-card {
    min-width: 0;
    padding: 18px 12px;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }
  .page-asb .mod-card span {
    font-size: 0.9rem;
  }
  .page-asb .titulo-modulos {
    font-size: 1.35rem;
  }
}

@media (max-width: 600px) {
  /* Benefícios em 1 coluna em celulares */
  .page-asb .cards-container {
    grid-template-columns: 1fr;
  }
}

/* ====== BANNERS ESPECÍFICOS DOS CURSOS ====== */
.banner-asb {
  background-image: url('images/banner-asb.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
}

.banner-tpd {
  background-image: url('images/banner-tpd.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
}

.banner-tsb {
  background-image: url('images/banner-tsb.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
}

/* Ajustes para mobile nos banners */
@media (max-width: 900px) {
  .banner-asb,
  .banner-tpd,
  .banner-tsb {
    background-position: center;
    min-height: 320px;
  }
}

/* Melhora a leitura do texto sobre o banner */
.hero-banner .hero-text {
  background: rgba(255, 255, 255, 0.85);
  padding: 28px 32px;
  border-radius: 12px;
  max-width: 620px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hero-banner .hero-text h1 {
  color: #1e293b;
  font-size: 1.9rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-banner .hero-text p {
  color: #374151;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .hero-banner .hero-text {
    padding: 20px 16px;
    max-width: 100%;
  }
  .hero-banner .hero-text h1 {
    font-size: 1.45rem;
  }
}

/* ====== OPÇÃO 1: TEXTO DIRETO NO BANNER (sem caixa) ====== */
.hero-banner .hero-text {
  background: none !important;
  box-shadow: none !important;
  padding: 40px 20px !important;
  max-width: 680px;
  border-radius: 0;
}

.hero-banner .hero-text h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 14px;
  font-weight: 700;
}

.hero-banner .hero-text p {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-banner .hero-btn {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s;
}

.hero-banner .hero-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* Mobile: centraliza e melhora contraste */
@media (max-width: 900px) {
  .hero-banner .hero-text {
    text-align: center;
    max-width: 100%;
    padding: 32px 16px !important;
  }
  .hero-banner .hero-text h1 {
    font-size: 1.55rem;
  }
  .hero-banner .hero-text p {
    font-size: 1rem;
  }
  .hero-banner .hero-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }
}

/* ====== BANNER FULL SCREEN + ÍCONES (Opção 1) ====== */
.hero-banner {
  min-height: 100vh !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 80px 8% 100px !important;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}

.hero-features {
  position: absolute;
  bottom: 40px;
  left: 8%;
  right: 8%;
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  font-weight: 500;
  font-size: 0.95rem;
}

.feature-icon {
  font-size: 1.6rem;
  background: rgba(255,255,255,0.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .hero-banner {
    min-height: 100vh !important;
    height: auto !important;
    padding: 100px 5% 140px !important;
    align-items: center !important;
    text-align: center;
  }
  .hero-features {
    position: static;
    margin-top: 40px;
    justify-content: center;
    gap: 20px;
    left: auto;
    right: auto;
  }
  .feature {
    flex-direction: column;
    text-align: center;
    font-size: 0.85rem;
    gap: 6px;
  }
  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
}

/* ====== CORREÇÃO DE ALTURA DO BANNER (desconta o menu) ====== */
.hero-banner {
  min-height: calc(100vh - 94px) !important; /* desktop: header ~94px */
  height: calc(100vh - 94px) !important;
  padding-top: 40px !important;
  padding-bottom: 80px !important;
}

@media (max-width: 900px) {
  .hero-banner {
    min-height: calc(100vh - 70px) !important; /* mobile: header menor */
    height: auto !important;
    min-height: calc(100svh - 70px) !important;
    padding-top: 60px !important;
    padding-bottom: 100px !important;
  }
}

/* ====== OPÇÃO A: DEGRADÊ ESCURO NA LATERAL ====== */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.55) 35%,
    rgba(15, 23, 42, 0.15) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-banner .hero-text,
.hero-banner .hero-features {
  position: relative;
  z-index: 2;
}

.hero-banner .hero-text h1,
.hero-banner .hero-text p {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

@media (max-width: 900px) {
  .hero-banner::before {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.75) 0%,
      rgba(15, 23, 42, 0.55) 50%,
      rgba(15, 23, 42, 0.35) 100%
    );
  }
  .hero-banner .hero-text {
    text-align: center;
  }
}

/* ====== ÍCONES CENTRALIZADOS + SEPARADOR ====== */
.hero-features {
  position: absolute !important;
  bottom: 36px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  z-index: 2;
}

.feature {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 28px !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  position: relative;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.45);
}

.feature-icon {
  font-size: 1.4rem !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

@media (max-width: 900px) {
  .hero-features {
    position: static !important;
    margin-top: 32px !important;
    flex-wrap: wrap !important;
    gap: 16px 0 !important;
  }
  .feature {
    padding: 0 16px !important;
    font-size: 0.85rem !important;
    flex-direction: column !important;
    text-align: center;
    gap: 6px !important;
  }
  .feature:not(:last-child)::after {
    display: none;
  }
  .feature-icon {
    font-size: 1.6rem !important;
  }
}

/* ====== ÍCONES ENTRE TEXTO E BOTÃO (ícone em cima, texto embaixo) ====== */
.hero-features {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 32px !important;
  margin: 28px 0 24px !important;
  flex-wrap: wrap !important;
  z-index: 2;
}

.feature {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  position: relative;
  max-width: 140px;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.4);
}

.feature-icon {
  font-size: 1.8rem !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .hero-features {
    justify-content: center !important;
    gap: 20px !important;
    margin: 24px 0 20px !important;
  }
  .feature {
    font-size: 0.8rem !important;
    max-width: 110px;
    padding: 0 8px !important;
  }
  .feature:not(:last-child)::after {
    display: none;
  }
  .feature-icon {
    font-size: 1.6rem !important;
  }
}

/* ====== AJUSTES FINAIS: ÍCONES CENTRALIZADOS + RISCOS NO MOBILE + ÍCONE WHATSAPP ====== */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-features {
  justify-content: center !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-banner .hero-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.hero-banner .hero-btn i {
  font-size: 1.15rem;
}

/* Mobile: mostrar riscos e centralizar */
@media (max-width: 900px) {
  .hero-text {
    align-items: center;
  }
  .hero-features {
    justify-content: center !important;
    gap: 0 !important;
  }
  .feature {
    position: relative;
    padding: 0 18px !important;
  }
  .feature:not(:last-child)::after {
    display: block !important;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255,255,255,0.5);
  }
  .hero-banner .hero-btn {
    justify-content: center;
  }
}

/* ====== CENTRALIZAR BOTÃO + AJUSTE BANNER TPD NO MOBILE ====== */
.hero-banner .hero-btn {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Desktop: garantir que o botão fique centralizado dentro do hero-text */
@media (min-width: 901px) {
  .hero-text {
    align-items: center !important;
    text-align: center;
  }
  .hero-features {
    justify-content: center !important;
  }
}

/* Mobile: posicionar melhor a pessoa no banner TPD */
@media (max-width: 900px) {
  .banner-tpd {
    background-position: center 15% !important;
  }
}

/* Ajuste extra TPD mobile */
@media (max-width: 900px) {
  .banner-tpd {
    background-position: center 10% !important;
    background-size: cover !important;
  }
}

/* FORÇA POSIÇÃO TPD MOBILE - mais específico */
@media (max-width: 900px) {
  section.hero-banner.banner-tpd {
    background-position: center top !important;
    background-size: cover !important;
  }
}

/* ====== CENTRALIZAR TEXTO AO LADO DO VÍDEO ====== */
.course-container {
  align-items: center !important;
}

.course-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .course-text {
    justify-content: flex-start;
  }
}

/* Força centralização vertical na seção Quem é a UNIFEP */
.about-columns {
  align-items: center !important;
}

/* ====== ÍCONES LADO A LADO NO MOBILE ====== */
@media (max-width: 900px) {
  .hero-features {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .feature {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    max-width: none !important;
    flex: 1 1 0 !important;
  }
  .feature:not(:last-child)::after {
    display: block !important;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.45);
  }
  .feature-icon {
    font-size: 1.4rem !important;
  }
}
