/* ================================================================
   COURSES PAGE CSS — Ctrick Trading Academy
   Black · Gold · Premium
   ================================================================ */

/* ── BANNER (reused from about) ── */
.courses-banner {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid rgba(212,160,23,0.15);
}
.ab-glow-top {
  position: absolute; top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(ellipse at center top,
    rgba(212,160,23,0.2) 0%, rgba(212,160,23,0.04) 40%, transparent 70%);
  pointer-events: none;
}
.ab-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,160,23,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,0.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.ab-hero-inner {
  position: relative; z-index: 2;
  text-align: center; padding: 140px 0 80px;
  max-width: 860px; margin: 0 auto;
}
.ab-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900; line-height: 1.12;
  color: var(--white); margin: 20px 0 22px;
  letter-spacing: -0.02em;
}
.ab-h1 em { font-style: normal; display: block; }
.ab-sub { font-size: 1rem; color: var(--text-2); line-height: 1.8; max-width: 620px; margin: 0 auto 44px; }
.ab-proof-row {
  display: flex; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; overflow: hidden;
  max-width: 600px; margin: 0 auto;
}
.ab-proof-item { flex: 1; padding: 18px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,0.07); }
.ab-proof-item:last-child { border-right: none; }
.ab-proof-num { display: block; font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--gold-lt); line-height: 1; margin-bottom: 4px; }
.ab-proof-lbl { font-size: 0.62rem; color: #555; letter-spacing: 0.04em; white-space: nowrap; }

/* ── COMPARISON TABLE (flat grid) ── */
.compare-table {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  margin-top: 52px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* Header cells */
.ct-corner {
  background: var(--black-2);
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.ct-head {
  padding: 28px 20px;
  background: var(--black-2);
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
}
.ct-head:last-child { border-right: none; }
.ct-featured {
  background: rgba(212,160,23,0.04);
  position: relative;
}
.ct-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
}
.ct-badge {
  display: inline-block;
  font-size: 0.6rem; font-weight: 900;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--black); background: var(--gold-lt);
  padding: 3px 12px; border-radius: 100px;
}
.ct-badge-dim {
  background: rgba(212,160,23,0.12);
  color: var(--gold-lt);
}
.ct-course-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem; font-weight: 900;
  color: var(--white);
}
.ct-course-sub { font-size: 0.7rem; color: var(--text-3); }
.ct-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem; font-weight: 900;
  color: var(--gold-lt); line-height: 1;
}
.ct-price-dim { color: var(--text-2); }
.ct-price-note { font-size: 0.65rem; color: var(--text-3); }
.ct-btn { font-size: 0.78rem !important; padding: 8px 18px !important; }

/* Group label rows — span all 3 columns via triplet */
.ct-group-row {
  background: rgba(212,160,23,0.05);
  border-top: 1px solid rgba(212,160,23,0.15);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  border-right: 1px solid var(--border-2);
  padding: 10px 20px;
  font-size: 0.65rem; font-weight: 900;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-lt);
  display: flex; align-items: center;
}
.ct-group-row:last-child, .ct-group-row.ct-featured-col + .ct-group-row { border-right: none; }
.ct-group-row.ct-featured-col {
  background: rgba(212,160,23,0.07);
}

/* Feature label cells */
.ct-label {
  padding: 14px 20px;
  font-size: 0.85rem; color: var(--text-2);
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center;
  background: var(--black-3);
}

/* Value cells */
.ct-val {
  padding: 14px 16px;
  font-size: 0.9rem; color: var(--text-2);
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  background: var(--black-3);
}
.ct-val:last-child { border-right: none; }
.ct-featured-col {
  background: rgba(212,160,23,0.03);
}
.ct-yes { color: var(--gold-lt); font-weight: 900; font-size: 1.1rem; }
.ct-no  { color: rgba(255,255,255,0.15); font-size: 1.1rem; }


/* Upgrade nudge */
.upgrade-nudge {
  margin-top: 24px;
  background: rgba(212,160,23,0.05);
  border: 1px solid rgba(212,160,23,0.18);
  border-radius: 12px; padding: 16px 24px;
  font-size: 0.85rem; color: var(--text-2);
  text-align: center; line-height: 1.7;
}
.upgrade-nudge strong { color: var(--gold-lt); }

/* ── MODULES GRID ── */
.modules-section { background: var(--black-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 52px;
}
.mod-card {
  background: var(--black-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 28px;
  position: relative; overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex; flex-direction: column; gap: 10px;
}
.mod-card:hover {
  border-color: rgba(212,160,23,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.mod-card-pro {
  border-color: rgba(212,160,23,0.18);
  background: rgba(212,160,23,0.02);
}
.mod-card-full { grid-column: 1 / -1; }
.mod-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem; font-weight: 900;
  color: rgba(212,160,23,0.1); line-height: 1;
}
.mod-title {
  font-size: 1rem; font-weight: 800;
  color: var(--white);
}
.mod-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.mod-list li {
  font-size: 0.82rem; color: var(--text-3);
  padding-left: 14px; position: relative; line-height: 1.5;
}
.mod-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
}
.mod-badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(212,160,23,0.1);
  color: var(--gold-lt);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 100px; padding: 3px 12px;
  margin-top: 8px;
}
.mod-badge-pro {
  background: rgba(212,160,23,0.15);
  border-color: rgba(212,160,23,0.35);
}

/* ── 5-DAY WORKSHOP ── */
.workshop-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(212,160,23,0.06) 0%, transparent 50%), var(--black);
  border-top: 1px solid rgba(212,160,23,0.2);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  padding: 90px 0;
}
.workshop-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(212,160,23,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.workshop-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: center;
}
.ws-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 900;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--black); background: var(--gold-lt);
  padding: 4px 14px; border-radius: 100px;
  margin-bottom: 16px;
}
.ws-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900; color: var(--white);
  line-height: 1.1; margin-bottom: 16px;
}
.ws-sub {
  font-size: 0.9rem; color: var(--text-2);
  line-height: 1.8; margin-bottom: 28px;
}
.ws-price-block { margin-bottom: 28px; }
.ws-price-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.ws-price {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem; font-weight: 900;
  color: var(--gold-lt); line-height: 1;
  margin-bottom: 4px;
}
.ws-price-note { font-size: 0.75rem; color: var(--text-3); }

.ws-right-title {
  font-size: 1rem; font-weight: 800;
  color: var(--white); margin-bottom: 20px;
}
.ws-topics { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ws-topic-item {
  display: flex; gap: 16px;
  background: var(--black-3);
  border: 1px solid var(--border-2);
  border-radius: 12px; padding: 16px;
  transition: all var(--dur);
}
.ws-topic-item:hover { border-color: rgba(212,160,23,0.2); }
.ws-topic-highlight {
  border-color: rgba(212,160,23,0.25);
  background: rgba(212,160,23,0.04);
}
.ws-topic-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem; font-weight: 900;
  color: var(--gold-lt);
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 8px; padding: 4px 10px;
  white-space: nowrap; align-self: flex-start;
  letter-spacing: 0.06em;
}
.ws-topic-content strong {
  display: block; font-size: 0.9rem;
  font-weight: 800; color: var(--white);
  margin-bottom: 4px;
}
.ws-topic-content p { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; margin: 0; }
.ws-note {
  background: rgba(212,160,23,0.05);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: 10px; padding: 14px 18px;
  font-size: 0.82rem; color: var(--text-2);
  line-height: 1.6;
}

/* ── NOT SURE ── */
.notsure-section {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.notsure-inner { text-align: center; }
.notsure-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900; color: var(--white); margin-bottom: 12px;
}
.notsure-sub { font-size: 0.9rem; color: var(--text-2); max-width: 500px; margin: 0 auto 24px; line-height: 1.7; }
.notsure-contacts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.notsure-chip {
  background: var(--black-3);
  border: 1px solid var(--border-2);
  border-radius: 100px; padding: 10px 20px;
  font-size: 0.82rem; color: var(--text-2);
  text-decoration: none;
  transition: all var(--dur);
}
.notsure-chip:hover { border-color: rgba(212,160,23,0.3); color: var(--gold-lt); }

/* ── TESTIMONIALS & CTA (reused) ── */
.testi-scroll-wrap { position: relative; margin-top: 48px; overflow: hidden; }
.testi-fade-l, .testi-fade-r { position: absolute; top: 0; bottom: 20px; width: 100px; z-index: 2; pointer-events: none; }
.testi-fade-l { left: 0; background: linear-gradient(to right, var(--black) 0%, transparent 100%); }
.testi-fade-r { right: 0; background: linear-gradient(to left, var(--black) 0%, transparent 100%); }
.testi-scroll {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 8px 60px 24px; cursor: grab;
}
.testi-scroll::-webkit-scrollbar { display: none; }
.testi-scroll.dragging { cursor: grabbing; }
.testi-card {
  flex: 0 0 360px; scroll-snap-align: start;
  background: var(--black-3); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.testi-card:hover { border-color: rgba(212,160,23,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212,160,23,0.08); }
.testi-card.featured-testi { border-color: rgba(212,160,23,0.22); background: rgba(212,160,23,0.03); }
.testi-quote-icon { font-family: Georgia, serif; font-size: 4rem; line-height: 0.6; color: rgba(212,160,23,0.12); display: block; height: 28px; }
.testi-stars { color: var(--gold-lt); font-size: 0.85rem; letter-spacing: 3px; }
.testi-quote { font-size: 0.86rem; color: var(--text-2); line-height: 1.82; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border-2); margin-top: auto; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-dk), var(--black-5)); border: 2px solid rgba(212,160,23,0.3); display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 900; color: var(--gold-lt); font-size: 0.88rem; flex-shrink: 0; }
.testi-name { font-weight: 700; color: var(--white); font-size: 0.86rem; }
.testi-role { font-size: 0.7rem; color: var(--gold); margin-top: 2px; }

.cta-band { margin: 0; padding: 90px 0; background: var(--black-2); border-top: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(212,160,23,0.1) 0%, transparent 65%); pointer-events: none; }
.cta-band h2 { font-size: clamp(2rem,4.5vw,3.4rem); font-weight: 900; margin-bottom: 14px; position: relative; }
.cta-band h2 em { font-style: normal; color: var(--gold-lt); }
.cta-band p { font-size: 1rem; color: var(--text-2); max-width: 520px; margin: 0 auto 36px; position: relative; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--black-3);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: var(--r-xl); padding: 40px;
  width: 100%; max-width: 520px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 60px rgba(212,160,23,0.08);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  color: var(--text-3); font-size: 1.1rem;
  cursor: pointer; transition: color var(--dur);
}
.modal-close:hover { color: var(--gold-lt); }
.modal-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 6px; }
.modal-subtitle { font-size: 0.85rem; color: var(--text-3); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-2); margin-bottom: 7px; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--black-2);
  border: 1px solid var(--border-2);
  border-radius: 10px; padding: 11px 14px;
  font-size: 0.88rem; color: var(--white);
  font-family: 'Inter', sans-serif;
  transition: border-color var(--dur);
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: rgba(212,160,23,0.4);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group select option { background: #111; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── SWIPE HINT ── */
.swipe-hint {
  display: none; /* hidden on desktop */
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: 36px;
  margin-bottom: -8px;
}
.swipe-hint::before {
  content: '← ';
  color: var(--gold-lt);
  opacity: 0.6;
}
.swipe-hint::after {
  content: ' →';
  color: var(--gold-lt);
  opacity: 0.6;
}

/* ── SCROLL WRAPPER ── */
.compare-table-wrap {
  /* desktop: no scroll needed */
  overflow: visible;
}

/* ── TABLET (≤ 900px): tighten column widths ── */
@media (max-width: 900px) {
  .compare-table { grid-template-columns: 1.2fr 1fr 1fr; }
  .ct-label { font-size: 0.78rem; padding: 12px 14px; }
  .ct-val   { font-size: 0.84rem; padding: 12px 10px; }
  .ct-head  { padding: 22px 14px; }
  .ct-price { font-size: 1.4rem; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .mod-card-full { grid-column: 1 / -1; }
}

/* ── MOBILE (≤ 680px): horizontal scroll + sticky first column ── */
@media (max-width: 680px) {
  /* Show swipe hint */
  .swipe-hint { display: block; }

  /* Scrollable wrapper */
  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-xl);
    /* shadow to hint more content */
    box-shadow: 6px 0 18px rgba(0,0,0,0.35);
  }

  /* Table itself: fixed min-width so columns don't collapse */
  .compare-table {
    grid-template-columns: 130px 1fr 1fr;
    min-width: 460px;
    margin-top: 0;
    border: none;
    border-radius: 0;
  }

  /* Sticky first column — feature label stays pinned while scrolling */
  .ct-corner,
  .ct-label {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--black-2);
  }
  .ct-label {
    font-size: 0.72rem;
    padding: 11px 12px;
    line-height: 1.4;
    background: #111; /* slightly different to visually separate */
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
  }
  .ct-corner {
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
  }

  /* Group label: first cell also sticky */
  .ct-group-row:first-of-type,
  .ct-group-row:not(.ct-featured-col):not(:last-of-type) {
    position: sticky;
    left: 0;
    z-index: 3;
  }

  /* Header cells: tighten padding */
  .ct-head { padding: 18px 12px; gap: 5px; }
  .ct-course-name { font-size: 0.92rem; }
  .ct-course-sub  { font-size: 0.62rem; }
  .ct-price       { font-size: 1.35rem; }
  .ct-price-note  { font-size: 0.58rem; }
  .ct-btn         { font-size: 0.72rem !important; padding: 7px 14px !important; }
  .ct-val         { padding: 11px 8px; font-size: 0.8rem; }
  .ct-yes         { font-size: 1rem; }
  .ct-no          { font-size: 1rem; }

  /* Modules: single column on mobile */
  .modules-grid { grid-template-columns: 1fr; }
  .mod-card-full { grid-column: 1 / -1; }

  /* Hero banner */
  .ab-hero-inner { padding: 110px 0 56px; }
  .ab-proof-row  { flex-wrap: wrap; }
  .ab-proof-item { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .ab-proof-item:nth-child(3),
  .ab-proof-item:nth-child(4) { border-bottom: none; }

  /* Workshop */
  .workshop-inner { grid-template-columns: 1fr; gap: 2rem; }
  .workshop-section { padding: 60px 0; }
  .ws-price { font-size: 2.4rem; }

  /* Testimonials */
  .testi-card   { flex: 0 0 285px; }
  .testi-scroll { padding: 8px 20px 24px; }

  /* Not sure */
  .notsure-contacts { flex-direction: column; align-items: center; }
  .notsure-chip { width: 100%; text-align: center; border-radius: 10px; }

  /* CTA */
  .cta-band { padding: 60px 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Modal */
  .modal-box { padding: 28px 20px; margin: 16px; }
  .form-row  { grid-template-columns: 1fr; }

  /* Upgrade nudge */
  .upgrade-nudge { font-size: 0.8rem; padding: 14px 16px; }
}

/* ── EXTRA SMALL (≤ 380px) ── */
@media (max-width: 380px) {
  .compare-table { min-width: 400px; grid-template-columns: 110px 1fr 1fr; }
  .ct-label { font-size: 0.65rem; padding: 10px 8px; }
  .ct-head  { padding: 14px 8px; }
  .ct-price { font-size: 1.2rem; }
}

