/* ============================================
   Curso de Leitura e Interpretação de Projetos Elétricos
   Mundo da Elétrica – Clean Landing Page CSS
   ============================================ */

/* ============================================
   CSS VARS
   ============================================ */
:root {
  --mel-yellow:  #FFD600;
  --mel-dark:    #1a1a1a;
  --mel-gray:    #f2f2f2;
  --mel-orange:  #c05000;
  --topbar-h:    44px;
  --navbar-h:    72px;
}

/* ============================================
   TOPBAR (urgency / countdown)
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background-color: var(--mel-orange);
  min-height: var(--topbar-h);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.topbar.topbar-visible {
  transform: translateY(0);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--topbar-h);
  padding: 0 44px 0 16px;
}

.topbar-msg {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.topbar-msg strong {
  font-weight: 900;
  color: #ffffff;
}

.topbar-arrow {
  font-size: 18px;
  color: #ffffff;
  font-weight: 900;
  flex-shrink: 0;
}

.topbar-countdown {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0;
  flex-shrink: 0;
}

.topbar-countdown span[id] {
  min-width: 26px;
  text-align: center;
  display: inline-block;
}

.cd-sep {
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,0.5);
  margin: 0 2px;
  user-select: none;
}

.topbar-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.topbar-close:hover { color: #ffffff; }

.topbar-hidden {
  display: none !important;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #4c4c4c;
  background: #ffffff;
  line-height: 1.5;
  padding-top: var(--navbar-h);
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; }

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   STICKY NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--mel-dark);
  border-bottom: 3px solid var(--mel-yellow);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  transition: top 0.35s ease;
}

.navbar.topbar-visible {
  top: var(--topbar-h);
}

.navbar.topbar-gone {
  top: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  height: 40px;
  width: auto;
  border-radius: 4px;
  display: block;
}

.navbar-name {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--mel-yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-nav {
  flex-shrink: 0;
  background-color: var(--mel-yellow);
  color: var(--mel-dark);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--mel-yellow);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.15s;
}

/* ============================================
   CART INDICATOR
   ============================================ */
.cart-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.cart-indicator:hover {
  color: var(--mel-yellow);
  border-color: var(--mel-yellow);
  background: rgba(255,214,0,0.08);
}

.cart-indicator.cart-active {
  color: var(--mel-yellow);
  border-color: var(--mel-yellow);
  background: rgba(255,214,0,0.12);
}

.cart-badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mel-orange);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 9px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid var(--mel-dark);
  animation: badge-pop 0.3s ease;
}

.cart-badge.badge-visible {
  display: flex;
}

@keyframes badge-pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-nav:hover, .btn-nav:focus {
  background-color: #ffe033;
  border-color: #ffe033;
  transform: scale(1.03);
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  background-color: var(--mel-dark);
  border-top: 3px solid var(--mel-yellow);
  padding: 36px 0 24px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 64px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.footer-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #aaaaaa;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--mel-yellow);
  font-size: 24px;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: #ffe033;
  transform: scale(1.2);
}

.footer-copy {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #555555;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  box-shadow: 0 0 34px 0 rgba(107, 107, 107, 0.5);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background-color: var(--mel-yellow);
  padding: 18px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.stat-number {
  font-family: 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--mel-dark);
  line-height: 1;
}

.stat-plus {
  font-size: 22px;
  vertical-align: super;
}

.stat-label {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--mel-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
  opacity: 0.75;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* ============================================
   INSTRUCTOR STATS
   ============================================ */
.instructor-role {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888888;
  margin-bottom: 24px;
  text-align: center;
}

.instructor-stats {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.ins-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  border-right: 1px solid #e8e8e8;
  background: #fafafa;
}

.ins-stat:last-child { border-right: none; }

.ins-stat-num {
  font-family: 'Roboto', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--mel-dark);
  line-height: 1;
}

.ins-stat-lbl {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  margin-top: 4px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: #1B1C1F;
  opacity: 0.95;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: 68px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -1px;
  color: #ffffff;
  text-align: center;
}

.hero-title-label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.btn {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 23px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  line-height: 1.2;
  padding: 17px 50px;
  border-radius: 50px;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s, transform 0.15s;
}

.btn-primary {
  background-color: var(--mel-yellow);
  color: var(--mel-dark);
  border-color: var(--mel-yellow);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #ffe033;
  border-color: #ffe033;
  color: var(--mel-dark);
  transform: scale(1.03);
}

/* ============================================
   HERO EYEBROW / ACCENT / SUBTITLE
   ============================================ */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--mel-yellow);
  margin-bottom: 4px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mel-yellow);
  flex-shrink: 0;
  display: inline-block;
}

.hero-accent {
  color: var(--mel-yellow);
}

.hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.hero-video {
  position: relative;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  border-top: 4px solid var(--mel-yellow);
  padding: 70px 0;
}

.section-gray {
  background-color: #ebebeb;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: #2a2a2a;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--mel-yellow);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-title-blue {
  color: var(--mel-dark);
}

.section-title-blue::after {
  background: var(--mel-yellow);
}

.section-text {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: #555555;
  line-height: 1.7;
  text-align: center;
  padding: 0 10%;
}

.section-text p { margin-bottom: 0.75em; }
.section-text p:last-child { margin-bottom: 0; }

/* ============================================
   ABOUT / LEARN SECTION
   ============================================ */
.learn-section .container {
  padding-left: 70px;
  padding-right: 70px;
}

/* ============================================
   INSTRUCTOR SECTION
   ============================================ */
.instructor-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.instructor-info .section-title {
  text-align: center;
  margin-bottom: 8px;
}

.instructor-info .section-title::after {
  margin: 10px auto 0;
}

.instructor-photo img {
  border-radius: 5px;
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
  opacity: 0.97;
  transition: opacity 0.2s;
}

.instructor-photo img:hover { opacity: 1; }

/* ============================================
   COURSE MODULES (ACCORDION)
   ============================================ */
.accordion {
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 8px;
  margin-top: 20px;
}

.accordion-item {
  border-bottom: 1px solid #e8e8e8;
}

.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 28px;
  cursor: pointer;
  text-align: left;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #4c4c4c;
  line-height: 1.5;
  transition: background-color 0.2s, color 0.2s;
}

.accordion-header:hover { color: var(--mel-dark); background-color: #fffbea; }
.accordion-header.active { color: var(--mel-dark); background-color: #fffbea; }

.accordion-module-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mel-orange);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}

.accordion-title {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  color: inherit;
}

.accordion-icon {
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--mel-yellow);
  margin-left: auto;
}

.accordion-header.active .accordion-icon { transform: rotate(90deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px 0 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6a6a6a;
  line-height: 1.7;
  border-top: 0px solid transparent;
}

.accordion-body.open {
  max-height: 600px;
  padding: 20px 28px 24px 28px;
  border-top: 1px solid #f0f0f0;
}

/* ============================================
   QUALITY ICON BOX
   ============================================ */
.quality-section .container {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 40px;
  margin: 20px;
}

.quality-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #377B0D;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #377B0D;
  font-size: 36px;
}

.quality-title {
  font-family: 'Roboto', sans-serif;
  font-size: 21px;
  font-weight: bold;
  text-transform: uppercase;
  color: #4c4c4c;
  margin-bottom: 8px;
}

.quality-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: #4c4c4c;
  line-height: 1.5;
}

/* ============================================
   CERTIFICATES
   ============================================ */
.certificates-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.certificates-section img {
  width: 100%;
  border-radius: 4px;
}

.cert-description {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================
   TESTIMONIALS (new card layout)
   ============================================ */
.testimonials-section {
  /* inherits .section border-top + .section-gray */
}

.testi-stars {
  font-size: 18px;
  color: var(--mel-yellow);
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.testi-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.testi-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 3px solid var(--mel-yellow);
}

/* The video card expands its video to fill the card body */
.testi-video-inner {
  flex: 1;
}

.testi-card-video .testi-video-inner .video-wrapper {
  border-radius: 4px;
}

.testi-quote {
  font-size: 26px;
  color: var(--mel-yellow);
  line-height: 1;
}

.testi-text {
  flex: 1;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #444444;
  line-height: 1.7;
  margin: 0;
}

.testi-text p { margin-bottom: 0.6em; }
.testi-text p:last-child { margin-bottom: 0; }

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8e8e8;
  margin-top: auto;
}

.testi-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--mel-yellow);
}

.testi-author-info { flex: 1; }

.testimonial-name {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.testimonial-job {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #777777;
}

/* ============================================
   PURCHASE / CTA SECTION
   ============================================ */
#purchase {
  scroll-margin-top: calc(var(--navbar-h) + 10px);
}

.purchase-section {
  padding: 90px 0;
}

.purchase-section .section-title {
  font-size: 37px;
  font-weight: 600;
  margin-bottom: 20px;
}

.purchase-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 21px;
  font-weight: 300;
  color: #313131;
  line-height: 1.5;
  text-align: center;
  padding: 0 10%;
  margin-bottom: 30px;
}

.purchase-intro ul {
  list-style: none;
  display: inline-block;
  text-align: left;
}

.purchase-intro li { margin-bottom: 0.5em; }

.price-box {
  background-color: var(--mel-dark);
  box-shadow: 0 4px 28px 0 rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 40px 36px 36px;
  text-align: center;
  max-width: 480px;
  margin: 30px auto 0;
  border-top: 4px solid var(--mel-yellow);
}

.price-title {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mel-yellow);
  margin-bottom: 6px;
}

.price-old {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.price-old s {
  color: rgba(255,255,255,0.35);
}

.price-urgency {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: rgba(255,200,100,0.85);
  margin-bottom: 20px;
  line-height: 1.4;
}

.price-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.price-installment {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

.price-installment strong {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
}

.price-ou {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-full {
  font-family: 'Roboto', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--mel-yellow);
  line-height: 1;
  letter-spacing: -1px;
}

.price-full-label {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0;
}

.price-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
  padding: 0;
}

.price-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.80);
  font-weight: 400;
}

.price-perks li i {
  color: var(--mel-yellow);
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

/* Payment method badges */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.65);
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.pay-badge i { font-size: 10px; }

.price-divider {
  width: 40px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0 auto 20px;
}

.btn-price {
  display: inline-block;
  background-color: var(--mel-yellow);
  color: var(--mel-dark);
  border-color: var(--mel-yellow);
  padding: 17px 50px;
  margin-top: 20px;
  font-size: 20px;
}

.btn-price:hover, .btn-price:focus {
  background-color: #ffe033;
  color: var(--mel-dark);
  transform: scale(1.03);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }

  .hero .container {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* Topbar stacks on small screens */
  .topbar-inner {
    gap: 8px;
    padding: 4px 40px 4px 12px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: var(--topbar-h);
  }
  .topbar-msg { font-size: 12px; white-space: normal; text-align: center; }
  .topbar-countdown { font-size: 16px; }
  .cd-sep { font-size: 16px; }
  :root { --topbar-h: 56px; }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    /* Remove horizontal padding so video can be full-width */
    padding-left: 0;
    padding-right: 0;
    gap: 0;
  }

  .hero-content {
    padding: 30px 20px 24px;
  }

  /* Video takes full viewport width on mobile */
  .hero-video {
    width: 100%;
  }

  .hero-video .video-wrapper {
    border-radius: 0;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  .hero-title-label { font-size: 11px; letter-spacing: 3px; }
  .hero-eyebrow { font-size: 10px; justify-content: center; }
  .hero-subtitle { font-size: 15px; }

  .btn { font-size: 18px; padding: 14px 36px; }

  .learn-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-title { font-size: 27px; }
  .section-title::after { width: 36px; }

  .section-text { padding: 0 5%; }

  .instructor-section .container {
    grid-template-columns: 1fr;
  }

  .instructor-info { order: 1; }
  .instructor-photo { order: 2; }

  .certificates-section .container {
    grid-template-columns: 1fr;
  }

  .quality-section .container {
    flex-direction: column;
    text-align: center;
    margin: 0;
    gap: 20px;
  }

  .quality-info { text-align: center; }

  .testimonial-section,
  .testimonials-section {
    padding: 40px 0;
  }

  /* Testimonial cards → stack */
  .testi-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testi-card { padding: 24px 18px 20px; }

  .testimonial-name { font-size: 15px; }
  .testimonial-job { font-size: 13px; }

  .price-full { font-size: 32px; letter-spacing: -0.5px; }
  .price-installment { font-size: 17px; }
  .price-installment strong { font-size: 24px; }

  .purchase-section { padding: 50px 0; }

  .price-box { padding: 32px 18px; }

  .section { padding: 50px 0; }

  .zigzag-divider svg { width: 30%; }

  /* Stats bar — 4 items wrap to 2×2 on small screens */
  .stat-item { padding: 8px 16px; }
  .stat-number { font-size: 22px; }
  .stat-plus { font-size: 14px; }
  .stat-label { font-size: 9px; }
  .stat-divider { display: none; }
  .stats-inner { gap: 4px; justify-content: space-around; }

  /* Instructor stats */
  .instructor-stats { flex-direction: column; }
  .ins-stat { border-right: none; border-bottom: 1px solid #e8e8e8; padding: 12px 10px; }
  .ins-stat:last-child { border-bottom: none; }
  .instructor-role { font-size: 11px; }
  .ins-stat-num { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; letter-spacing: -0.5px; }
  .hero-title-label { font-size: 10px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 14px; }
  .btn { font-size: 16px; padding: 12px 28px; letter-spacing: 0.8px; }
  .section-title { font-size: 23px; }
  .section-title::after { width: 28px; height: 2px; margin-top: 10px; }

  /* On very small screens, shrink the brand name text */
  .navbar-name { font-size: 13px; letter-spacing: 0; }
  .navbar-logo { height: 30px; }
  .btn-nav { font-size: 12px; padding: 8px 16px; }

  .payment-methods { gap: 6px; }
  .pay-badge { font-size: 10px; padding: 3px 8px; }
}
