/* ==========================================================================
   SABER EAD - DESIGN SYSTEM EDUCACIONAL (TEMA CLARO / LIGHT THEME)
   Tipografia Neuro-Otimizada: Lexend (Títulos e Destaques) + Plus Jakarta Sans (Corpo)
   Paleta: Azul Acadêmico Nobre, Turquesa Educativo, Âmbar Solar e Branco Neve
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Cores Base - Foco em Claridade, Leveza e Conforto Visual */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;
  --bg-subtle-blue: #EFF6FF;
  --bg-subtle-amber: #FFFBEB;
  --bg-subtle-teal: #F0FDFA;

  /* Cores de Marca Institucionais */
  --brand-primary: #1E3A8A;       /* Azul Real Nobre (Autoridade Universitária) */
  --brand-primary-hover: #1D4ED8;
  --brand-secondary: #0284C7;     /* Azul Céu / Ciano Acadêmico */
  --brand-accent: #EA580C;        /* Laranja/Âmbar Vibrante (Conversão e Ação) */
  --brand-accent-hover: #C2410C;
  --brand-teal: #0D9488;          /* Verde Água / Metodologias Ativas */

  /* Textos & Tipografia com Alto Contraste */
  --text-main: #0F172A;           /* Slate 900 */
  --text-muted: #475569;          /* Slate 600 */
  --text-light: #64748B;          /* Slate 500 */
  --text-inverse: #FFFFFF;

  /* Bordas e Sombras Suaves Naturais */
  --border-subtle: #E2E8F0;
  --border-focus: #93C5FD;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 30px -6px rgba(30, 58, 138, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.05);

  /* Fontes Não-Serifadas Educacionais */
  --font-heading: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Geometria */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global e Normalização */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Badges e Tags de Autoridade Educacional */
.badge-edu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-subtle-blue);
  color: var(--brand-primary);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-amber {
  background: var(--bg-subtle-amber);
  color: #B45309;
  border-color: #FDE68A;
}

.badge-teal {
  background: var(--bg-subtle-teal);
  color: #0F766E;
  border-color: #99F6E4;
}

/* Botões Modernos e Acolhedores */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}

.btn-accent {
  background: var(--brand-accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}
.btn-accent:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--brand-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
  background: var(--bg-subtle-blue);
  transform: translateY(-2px);
}

/* Cabeçalho Limpo e Fixo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.brand-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
  padding: 0.25rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.header-action .btn,
#btn-header-diag {
  padding: 0.45rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.25;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.18);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section Clara e Inspiradora */
.hero-edu {
  padding: 1.5rem 0 2rem;
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(234, 88, 12, 0.05) 0%, transparent 50%),
              var(--bg-page);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-text .badge-edu {
  margin-bottom: 1.2rem;
}

.hero-text h1 {
  margin-bottom: 0.8rem;
  color: var(--brand-primary);
}

.hero-text h1 span.highlight {
  color: var(--brand-secondary);
  position: relative;
  display: inline-block;
}

.hero-text p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.3rem;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* Card Visual Vertical do Hero (Sem Espaço Vazio) */
.hero-visual {
  position: relative;
  width: 100%;
}

.hero-visual-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: 0 20px 40px -15px rgba(30, 58, 138, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.9);
  position: relative;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  max-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #F1F5F9;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  z-index: 2;
  white-space: nowrap;
}

.pill-moodle {
  bottom: -12px;
  left: 15px;
}

.pill-mec {
  top: -12px;
  right: 15px;
}

/* Grid de Clientes: Fundo Contrastante & Carrossel Infinito Animado */
.clients-section {
  padding: 3.8rem 0 4rem;
  background: linear-gradient(135deg, #0A192F 0%, #172554 50%, #0F172A 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.clients-header h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #93C5FD;
  font-weight: 700;
}

.clients-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: scrollClientsMarquee 26s linear infinite;
  will-change: transform;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes scrollClientsMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 65px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.client-logo-item:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) brightness(0) invert(1);
}

.client-logo-item img {
  max-height: 48px;
  max-width: 135px;
  object-fit: contain;
  display: block;
}

/* Seções Gerais */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-surface);
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-title-wrap .badge-edu {
  margin-bottom: 1rem;
}

.section-title-wrap h2 {
  margin-bottom: 1rem;
}

.section-title-wrap p {
  font-size: 1.15rem;
}

/* Cards de Soluções Educacionais (1a e 1b) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.solution-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #93C5FD;
}

.solution-card .card-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-subtle-blue);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.solution-card .card-img-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.solution-card h3 {
  margin-bottom: 0.8rem;
  color: var(--brand-primary);
}

.solution-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-checklist {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-checklist li svg {
  color: var(--brand-teal);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Seção Vitrine de eBooks (Educação na Prática) */
.ebooks-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.featured-ebook-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%);
  border-radius: var(--radius-lg);
  border: 2px solid #BFDBFE;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.featured-ebook-card .cover-wrap {
  text-align: center;
}

.featured-ebook-card .cover-wrap img {
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.18);
  transform: rotate(-1deg);
  transition: var(--transition);
}

.featured-ebook-card:hover .cover-wrap img {
  transform: rotate(0deg) scale(1.02);
}

.featured-ebook-info .authors {
  font-size: 0.9rem;
  color: var(--brand-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.featured-ebook-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--brand-primary);
}

.pricing-tag {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.pricing-tag .current {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-accent);
}

.pricing-tag .old {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Acervo de eBooks Gratuitos */
.free-ebooks-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.free-ebook-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.free-ebook-mini:hover {
  transform: translateX(4px);
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
}

.free-ebook-mini img {
  width: 60px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.free-ebook-mini h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--brand-primary);
}

.free-ebook-mini p {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.free-ebook-mini a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Seção Cassandra Amidani / Quem Somos */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.bio-card-visual {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.bio-card-visual img {
  border-radius: var(--radius-md);
  width: 100%;
}

.bio-content .badge-edu {
  margin-bottom: 1rem;
}

.bio-content h2 {
  margin-bottom: 1.2rem;
}

.credentials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.8rem 0;
}

.cred-item {
  background: var(--bg-surface-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-primary);
}

.cred-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--brand-primary);
  margin-bottom: 0.2rem;
}

.cred-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ferramenta Interativa: Diagnóstico EaD em 2 Passos */
/* Ferramenta Interativa: Diagnóstico EaD (Formulário Visual & Envio) */
.diagnostic-section {
  padding: 5rem 0;
  background: radial-gradient(circle at center, #FFFFFF 0%, #EFF6FF 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.diagnostic-card {
  max-width: 860px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 2px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.15);
}

.diagnostic-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.diagnostic-header h2 {
  font-size: 2.2rem;
  color: var(--brand-primary);
  margin-top: 0.6rem;
}

.diagnostic-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* Barra de Progresso do Diagnóstico */
.diag-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.diag-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--brand-secondary), var(--brand-primary));
  border-radius: var(--radius-full);
  width: 25%;
  transition: width 0.4s ease;
}

.diag-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.diag-step-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diag-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1.2rem;
}

/* Cards de Opção Interativos (Sem bordas feias de botão padrão) */
.diag-step {
  display: none;
  animation: fadeInStep 0.35s ease forwards;
}

.diag-step.active {
  display: block;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.options-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 640px) {
  .options-cards-grid {
    grid-template-columns: 1fr;
  }
}

.option-card-btn {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.25s ease;
  font-family: inherit;
  width: 100%;
}

.option-card-btn:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.option-card-btn.selected {
  border-color: var(--brand-primary);
  background: #EFF6FF;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.12);
}

.option-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.option-card-btn.selected .option-icon-box {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.option-card-content h4 {
  font-size: 1.05rem;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.option-card-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Passo 4: Formulário de Contato e Resumo */
.diag-summary-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
}

.diag-summary-box h5 {
  font-size: 0.92rem;
  color: var(--brand-primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.summary-tag {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.diag-form-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .diag-form-inputs {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.form-group input {
  padding: 0.85rem 1.1rem;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #FFFFFF;
  transition: all 0.25s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.diag-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-back-step {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
}

.btn-back-step:hover {
  color: var(--brand-primary);
}

/* Sucesso do Diagnóstico */
.diag-success-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.diag-success-box .success-icon {
  width: 64px;
  height: 64px;
  background: #DCFCE7;
  color: #15803D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.diag-success-box h3 {
  font-size: 1.6rem;
  color: var(--brand-primary);
  margin-bottom: 0.8rem;
}

.diag-success-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

/* FAQ Redesenhado: Ícones Visuais e Maior Espaço para o Footer */
.faq-section {
  padding: 5.5rem 0 7.5rem;
  background: var(--bg-surface);
  position: relative;
}

.faq-accordion {
  max-width: 860px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 8px 20px -4px rgba(30, 58, 138, 0.08);
}

.faq-card.open {
  border-color: var(--brand-secondary);
  box-shadow: 0 12px 25px -4px rgba(2, 132, 199, 0.12);
}

.faq-question-btn {
  width: 100%;
  padding: 1.4rem 1.6rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.faq-topic-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-topic-icon.amber { background: #FEF3C7; color: #B45309; }
.faq-topic-icon.teal  { background: #CCFBF1; color: #0F766E; }
.faq-topic-icon.blue  { background: #DBEAFE; color: #1E40AF; }
.faq-topic-icon.purple{ background: #F3E8FF; color: #7E22CE; }

.faq-question-btn h3 {
  font-size: 1.12rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.faq-toggle-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-card.open .faq-toggle-circle {
  background: var(--brand-secondary);
  color: #FFFFFF;
  transform: rotate(45deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 1.6rem 1.5rem 4.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .faq-answer-inner {
    padding-left: 1.6rem;
  }
}

.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a:hover {
  color: #38BDF8;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 992px) {
  .hero-grid, .ebooks-grid, .bio-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .featured-ebook-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .featured-ebook-card .cover-wrap img {
    margin: 0 auto;
  }
  .pricing-tag {
    justify-content: center;
  }
  .credentials-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-subtle);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* ==========================================================================
   ATUALIZAÇÕES ESTÉTICAS & REQUISITOS DE DESIGN SABER EAD
   ========================================================================== */

/* 1. Logo & Topos */
.brand-logo img {
  height: 58px !important;
  width: auto !important;
  object-fit: contain;
}

/* 2. Hero Section Otimizada para Notebooks */
.hero-edu {
  padding: 1.4rem 0 2rem !important;
}
.hero-text h1 {
  font-size: 2.15rem !important;
  line-height: 1.2 !important;
  margin-bottom: 0.8rem !important;
}
.hero-text p.lead {
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
  margin-bottom: 1.3rem !important;
}
.hero-img-wrap {
  height: 380px !important;
  max-height: 380px !important;
}
.hero-visual-card {
  padding: 0.65rem !important;
}

/* 3. Contraste do Rodapé (Texto da Coluna Esquerda Branco) */
.footer-col.brand-col,
.footer-col.brand-col p,
.footer-col.brand-col .contact-details p,
.footer-col.brand-col strong {
  color: #FFFFFF !important;
}
.footer-col.brand-col p {
  opacity: 0.95;
  line-height: 1.6;
}

/* 5 & 6. Bio da Profa. Me. Cassandra Amidani & Legenda */
.bio-portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.2);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  max-width: 360px;
  margin: 0 auto;
}
.bio-portrait-card img,
.bio-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}
.bio-credentials-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.96) 100%);
  backdrop-filter: blur(8px);
  padding: 0.65rem 0.85rem;
  color: #FFFFFF;
  text-align: center;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.bio-credentials-badge .name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bio-credentials-badge .role {
  display: block;
  font-size: 0.74rem;
  color: #CBD5E1;
  margin-top: 0.15rem;
}

/* 7. Espaçamento Desembolado nos Parágrafos da Bio */
.bio-content p {
  margin-bottom: 1.35rem !important;
  line-height: 1.75 !important;
  color: var(--text-muted);
  font-size: 1.02rem !important;
}
.bio-content p:last-of-type {
  margin-bottom: 1.5rem !important;
}
.bio-content .lead-bio {
  font-size: 1.12rem !important;
  line-height: 1.65 !important;
  font-style: italic;
  color: var(--brand-primary);
  padding-left: 1rem;
  border-left: 3px solid var(--brand-secondary);
  margin-bottom: 1.6rem !important;
}

/* 10 & 11. Organização das Seções, Remoção de Bullets e Ícones Alinhados */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.edu-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #93C5FD;
}
.edu-card .card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.edu-card:hover .card-img-wrap img {
  transform: scale(1.04);
}
.edu-card .card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.edu-card .card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-secondary);
  background: rgba(234, 88, 12, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}
.edu-card h3 {
  font-size: 1.22rem;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.edu-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* Remoção total de bullets e alinhamento impecável com ícone do Squad */
.card-features {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 1.1rem 0 1.6rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.card-features li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #334155;
  list-style: none !important;
  list-style-type: none !important;
}
.feature-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.12);
  color: #0D9488;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-check-icon svg {
  width: 14px;
  height: 14px;
}
.edu-card .card-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Seção 1b: Plataforma Moodle - Container de Ícones Atraentes */
.card-icon-header {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.8rem 1.8rem 0;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: all 0.3s ease;
}
.edu-card:hover .card-icon-header {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}
.card-icon-header img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* 12. Seção Acervo Aberto Atraente & Botões Modernos */
.ebooks-header-sub {
  margin: 4.5rem 0 2rem;
  text-align: center;
}
.ebooks-header-sub h3 {
  font-size: 1.85rem;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}
.ebooks-header-sub p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}
.ebooks-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.2rem;
}
.ebook-showcase-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.ebook-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -6px rgba(30, 58, 138, 0.16);
  border-color: #93C5FD;
}
.ebook-card-top-banner {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.2rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}
.ebook-card-top-banner.banner-series {
  background: linear-gradient(135deg, #C28E5C 0%, #A36B3B 50%, #8C5326 100%);
}
.ebook-card-top-banner.banner-mddi {
  background: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
}
.ebook-card-top-banner.banner-results {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
}
.ebook-card-top-banner img {
  max-height: 155px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s ease;
}
.ebook-showcase-card:hover .ebook-card-top-banner img {
  transform: scale(1.08) translateY(-4px);
}
.ebook-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
}
.ebook-card-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.ebook-card-content h4 {
  font-size: 1.15rem;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  font-family: var(--font-heading);
}
.ebook-card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.btn-download-ebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #FFB800;
  color: #1E293B;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.28);
  margin-top: auto;
  border: none;
  cursor: pointer;
}
.btn-download-ebook:hover {
  background: #E5A600;
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 184, 0, 0.45);
}
.btn-download-ebook svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   AJUSTES: TARJAS COM ESPAÇAMENTO, BANNER SEM SOBREPOSIÇÃO & BOTÃO TOPO
   ========================================================================== */

/* Item 2: Prevenir que as imagens dos livros sobreponham as tarjas no Acervo Aberto */
.ebook-card-top-banner {
  height: 200px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  position: relative !important;
  padding: 38px 1.2rem 14px !important;
  overflow: hidden !important;
}
.ebook-card-top-banner img {
  max-height: 135px !important;
  width: auto !important;
  object-fit: contain !important;
  margin-top: auto !important;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3)) !important;
  transition: transform 0.35s ease !important;
}
.ebook-badge-tag {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #0F172A !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 0.28rem 0.7rem !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  letter-spacing: 0.02em !important;
  z-index: 5 !important;
}

/* Item 3: Espaço generoso em cima e embaixo de TODAS as tarjas (badges) */
.badge-edu {
  margin-top: 1.6rem !important;
  margin-bottom: 1.4rem !important;
}
.section-title-wrap .badge-edu {
  margin-top: 1.6rem !important;
  margin-bottom: 1.4rem !important;
}
.bio-content .badge-edu {
  margin-top: 1.4rem !important;
  margin-bottom: 1.4rem !important;
}
.hero-text .badge-edu {
  margin-top: 0.6rem !important;
  margin-bottom: 1rem !important;
}

/* Item 4: Botão Voltar ao Topo (Back to Top) */
.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1E3A8A;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-back-to-top:hover {
  background: #EA580C;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.45);
}
.btn-back-to-top svg {
  width: 20px;
  height: 20px;
}
