/* =========================================
   CURSO.CSS – Shared styles for all course pages
   ========================================= */

/* ===== COURSE NAV ===== */
.curso-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.curso-nav li a {
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  transition: var(--transition);
  text-decoration: none;
}
.curso-nav li a:hover { color: var(--primary); }

/* ===== HERO ===== */
.curso-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.curso-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
/* Hero backgrounds */
.basica-hero  { background: linear-gradient(135deg, #004d40 0%, #00695c 60%, #26a69a 100%); }
.office-hero  { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1e88e5 100%); }
.excel-hero   { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #43a047 100%); }
.senior-hero  { background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 60%, #ab47bc 100%); }

.curso-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 750px;
}

.curso-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}
.curso-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); }
.curso-breadcrumb a:hover { color: var(--white); }
.curso-breadcrumb i { font-size: 0.65rem; }

.curso-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0 1.25rem;
  color: var(--white);
}

.highlight-basica { color: #80cbc4; }
.highlight-senior  { color: #e1bee7; }

.curso-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.curso-hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-heading);
}
.curso-hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.curso-hero-meta i { color: rgba(255,255,255,0.5); }

/* ===== TWO-COLUMN LAYOUT ===== */
.curso-two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* ===== MODULE BOXES ===== */
.modulo-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.modulo-box:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.modulo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  color: var(--white);
}
.modulo-header i { font-size: 1.1rem; flex-shrink: 0; }

.basica-modulo { background: linear-gradient(90deg, #00796b, #26a69a); }
.office-modulo  { background: linear-gradient(90deg, #1565c0, #1e88e5); }
.excel-modulo   { background: linear-gradient(90deg, #2e7d32, #43a047); }
.senior-modulo  { background: linear-gradient(90deg, #6a1b9a, #ab47bc); }

.modulo-lista {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modulo-lista li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.modulo-lista li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== ASIDE ===== */
.curso-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 90px;
}

/* Destaque card */
.curso-card-destaque {
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  text-align: center;
  color: var(--white);
}
.basica-destaque { background: linear-gradient(135deg, #004d40, #00897b); }
.office-destaque  { background: linear-gradient(135deg, #0d47a1, #1976d2); }
.excel-destaque   { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.senior-destaque  { background: linear-gradient(135deg, #4a148c, #7b1fa2); }

.destaque-icon {
  width: 70px; height: 70px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  color: var(--white);
}
.curso-card-destaque h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--white); }
.curso-card-destaque p { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }

.destaque-lista {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.destaque-lista li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.destaque-lista i { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* Info cards */
.curso-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.curso-info-card h4 {
  font-size: 0.88rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.curso-info-card h4 i { color: var(--primary); }
.curso-info-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.curso-info-card li { font-size: 0.84rem; color: var(--text-muted); padding-left: 1rem; position: relative; line-height: 1.5; }
.curso-info-card li::before { content: "·"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Depoimento para Terceira Idade */
.senior-depoimento { border-left: 3px solid var(--senior); }
.senior-depoimento p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; font-style: italic; }

/* LinkedIn card */
.curso-linkedin-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f0f4fa;
  border: 1px solid #c5d4e8;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
}
.curso-linkedin-card:hover { background: #e3eaf5; border-color: #0a66c2; }
.curso-linkedin-card > i { font-size: 1.8rem; color: #0a66c2; flex-shrink: 0; }
.curso-linkedin-card div { display: flex; flex-direction: column; }
.curso-linkedin-card strong { font-size: 0.88rem; color: var(--text-dark); font-family: var(--font-heading); }
.curso-linkedin-card span { font-size: 0.78rem; color: var(--text-muted); }

/* ===== CTA SECTION ===== */
.curso-cta-section {
  padding: 5rem 0;
}
.basica-cta { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); }
.office-cta  { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.excel-cta   { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.senior-cta  { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }

.curso-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.curso-cta-inner h2 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); color: var(--text-dark); margin-bottom: 0.5rem; }
.curso-cta-inner p { font-size: 0.95rem; color: var(--text-muted); max-width: 550px; }

.curso-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: transparent; }

/* ===== FOOTER ===== */
.curso-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.65);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}
.curso-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.curso-footer strong { color: var(--white); }
.curso-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.curso-footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
}
.curso-footer-links a:hover { color: var(--white); }

/* ===== ACCORDION ===== */
.accordion { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.accordion-item.open { box-shadow: var(--shadow-md); }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: var(--transition);
}
.accordion-header:hover { background: var(--bg-light); }
.accordion-header span { display: flex; align-items: center; gap: 0.65rem; }
.accordion-header i:first-of-type { font-size: 1rem; flex-shrink: 0; }
.accordion-header em { font-weight: 400; color: var(--text-muted); font-style: normal; font-size: 0.82rem; }

.accordion-arrow { transition: transform 0.3s ease; flex-shrink: 0; font-size: 0.8rem; color: var(--text-muted); }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

/* Accordion color variants */
.excel-accord:hover,  .accordion-item.open .excel-accord  { background: rgba(29,111,66,0.06); }
.office-accord:hover, .accordion-item.open .office-accord { background: rgba(21,101,192,0.06); }
.basica-accord:hover, .accordion-item.open .basica-accord { background: rgba(0,121,107,0.06); }
.senior-accord:hover, .accordion-item.open .senior-accord { background: rgba(106,27,154,0.06); }

.excel-accord  span i:first-of-type { color: var(--excel); }
.office-accord span i:first-of-type { color: var(--primary); }
.basica-accord span i:first-of-type { color: #00796b; }
.senior-accord span i:first-of-type { color: var(--senior); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-body .modulo-lista { padding: 0.5rem 1.25rem 1.25rem; }

.accordion-featured { border-color: var(--accent); }
.accordion-featured .accordion-header { color: var(--accent-warm); }

.accordion-note {
  font-size: 0.8rem;
  color: var(--accent-warm);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== BENEFITS GRID ===== */
.benefits-section { padding: 4rem 0 2rem; }
.senior-benefits-bg { background: linear-gradient(135deg, #fdf4ff 0%, #f3e5f5 50%, #fff 100%); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.benefit-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--white);
}
.excel-benefit  { background: linear-gradient(135deg, var(--excel), var(--excel-light)); box-shadow: 0 8px 20px rgba(29,111,66,0.3); }
.office-benefit { background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: var(--shadow-blue); }
.basica-benefit { background: linear-gradient(135deg, #00796b, #26a69a); box-shadow: 0 8px 20px rgba(0,121,107,0.3); }
.senior-benefit { background: linear-gradient(135deg, var(--senior), var(--senior-light)); box-shadow: 0 8px 20px rgba(106,27,154,0.3); }

.benefit-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.benefit-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ===== PITCH SECTION ===== */
.curso-pitch {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.curso-pitch-text h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: 0.85rem; }
.curso-pitch-text p  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; }
.curso-pitch-text p:last-child { margin-bottom: 0; }

.curso-pitch-stat {
  text-align: center;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 2px solid var(--border);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-heading); font-weight: 600; line-height: 1.4; }

/* Pitch depoimento (Terceira Idade) */
.curso-pitch-depo {
  background: linear-gradient(135deg, #f3e5f5, #ede7f6);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--senior);
}
.curso-pitch-depo > i { color: var(--senior); font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }
.curso-pitch-depo p { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; font-style: italic; margin-bottom: 0.75rem; }
.curso-pitch-depo strong { font-size: 0.82rem; color: var(--senior); font-family: var(--font-heading); }
.senior-pitch { grid-template-columns: 1fr 280px; }

/* ===== REFERENCIAS ===== */
.curso-referencias {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.curso-referencias > i { color: var(--primary); margin-top: 0.1rem; flex-shrink: 0; }
.curso-referencias p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* ===== POR QUE ESTUDAR COMIGO ===== */
.curso-porque { background: var(--bg-light); }
.senior-porque { background: linear-gradient(135deg, #fdf4ff, #f3e5f5); }

.porque-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: center;
}

.porque-text .section-badge { margin-bottom: 1rem; }
.porque-text h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: 1rem; }
.porque-text p  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; }

.porque-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.porque-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-dark);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.porque-badges span i { color: var(--primary); font-size: 0.75rem; }

.porque-cta {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.porque-quote {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
}
.porque-phone {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ===== CODE TAG IN LISTS ===== */
.modulo-lista code,
.accordion-body code {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.82em;
  color: var(--excel);
  font-family: 'Consolas', 'Monaco', monospace;
}

/* ===== SCROLL ANIMATION ===== */
.fade-hidden { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-hidden.visible { opacity: 1; transform: none; }

/* ===== FONT SIZE SCALE (body modifier classes) ===== */
/*
  Strategy: scale the root font-size so every rem-based value responds automatically.
  We also bump min. font-sizes on key text elements for robustness.
*/
body.fs-grande  { font-size: 112%; }
body.fs-gigante { font-size: 130%; }

/* Ensure key readable elements benefit from scale */
body.fs-grande .modulo-lista li,
body.fs-grande .curso-info-card li,
body.fs-grande .destaque-lista li,
body.fs-grande .benefit-card p,
body.fs-grande .accordion-header,
body.fs-grande .curso-hero-sub,
body.fs-grande .curso-pitch-text p { font-size: 1rem; }

body.fs-gigante .modulo-lista li,
body.fs-gigante .curso-info-card li,
body.fs-gigante .destaque-lista li,
body.fs-gigante .benefit-card p,
body.fs-gigante .accordion-header,
body.fs-gigante .curso-hero-sub,
body.fs-gigante .curso-pitch-text p { font-size: 1.05rem; }

/* ===== ACCESSIBILITY BAR ===== */
.a11y-bar {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.6rem 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  backdrop-filter: blur(8px);
}

.a11y-bar-label {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
}

.a11y-btn {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  padding: 0;
}
.a11y-btn:hover { background: var(--bg-light); border-color: var(--primary); color: var(--primary); }
.a11y-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb, 21,101,192), 0.35);
}
.a11y-btn[data-size="normal"] { font-size: 0.72rem; }
.a11y-btn[data-size="grande"] { font-size: 0.88rem; }
.a11y-btn[data-size="gigante"] { font-size: 1.05rem; }

/* Tooltip on hover */
.a11y-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  right: 3rem;
  background: var(--text-dark);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-heading);
}

@media (max-width: 480px) {
  .a11y-bar {
    bottom: 6rem;
    right: 0.75rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .curso-two-col { grid-template-columns: 1fr; }
  .curso-aside { position: static; }
  .porque-inner { grid-template-columns: 1fr; }
  .curso-pitch { grid-template-columns: 1fr; }
  .senior-pitch { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .curso-hero { min-height: 55vh; padding: 6rem 0 3.5rem; }
  .curso-hero-meta { gap: 0.75rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .curso-footer-inner { flex-direction: column; text-align: center; }
  .curso-footer-links { justify-content: center; }
  .curso-nav { flex-direction: column; gap: 0.5rem; align-items: flex-end; }
  .porque-cta { padding: 1.5rem 1.25rem; }
}

