/* ============================================================================
   Globex — theme
   ----------------------------------------------------------------------------
   Ye woh building blocks hain jinse har page ek jaisa dikhega. Naye page par
   sirf yahi classes lagao, apni CSS likhne ki zaroorat nahi:

       <section class="gx-section gx-section--band">
         <div class="gx-wrap">
           <p  class="gx-eyebrow">Our Courses</p>
           <h2 class="gx-headline">Explore what you can learn</h2>
           <p  class="gx-sub">One line explaining the section.</p>
           <div class="gx-grid gx-grid--3">
             <article class="gx-card"> … </article>
           </div>
         </div>
       </section>

   Har colour, size aur radius css/tokens.css se aata hai — yahan kuch bhi
   hardcoded nahi. Rang badalna ho to tokens.css kholo, ye file nahi.
   ============================================================================ */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.gx-wrap {
  width: 100%;
  max-width: var(--gx-container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.gx-section {
  padding-block: var(--gx-section-y);
  position: relative;
}
.gx-section--lg    { padding-block: var(--gx-section-y-lg); }
.gx-section--sm    { padding-block: var(--gx-section-y-sm); }

/* Alternating tint. The reference alternates white and a very light band so
   sections read as separate without needing borders between them. */
.gx-section--band  { background: var(--gx-band); }
.gx-section--fade  { background: linear-gradient(180deg, var(--gx-band), var(--gx-white)); }

/* Dark band, used for calls to action. */
.gx-section--dark {
  background: linear-gradient(135deg, var(--gx-brand), var(--gx-brand-light));
  color: var(--gx-white);
}
.gx-section--dark .gx-headline,
.gx-section--dark .gx-sub { color: var(--gx-white); }
.gx-section--dark .gx-sub { opacity: .82; }
.gx-section--dark .gx-eyebrow { color: var(--gx-accent); }

/* ── Section heading block ──────────────────────────────────────────────── */
.gx-eyebrow {
  display: inline-block;
  font-size: var(--gx-fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gx-indigo);
  margin-bottom: .75rem;
}

.gx-headline {
  font-size: var(--gx-display-2);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: var(--gx-tracking-tight);
  color: var(--gx-ink);
  margin-bottom: .85rem;
  text-wrap: balance;
}

/* --gx-muted sits at roughly 4.4:1 on the tinted band, just under AA, so the
   supporting paragraph uses the body colour. It still reads as secondary next
   to the near-black headline. */
.gx-sub {
  font-size: var(--gx-fs-lg);
  color: var(--gx-text);
  max-width: 60ch;
  line-height: 1.65;
}

/* Centred variant */
.gx-head--center { text-align: center; }
.gx-head--center .gx-sub { margin-inline: auto; }

/* Spacing between the heading block and whatever follows it. */
.gx-head { margin-bottom: 3rem; }

/* ── Grids ──────────────────────────────────────────────────────────────── */
.gx-grid {
  display: grid;
  gap: var(--gx-gap);
}
.gx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Card ───────────────────────────────────────────────────────────────── */
.gx-card {
  background: var(--gx-white);
  border: var(--gx-card-border);
  border-radius: var(--gx-card-radius);
  padding: 1.75rem;
  box-shadow: var(--gx-card-shadow);
  transition: transform var(--gx-transition), box-shadow var(--gx-transition), border-color var(--gx-transition);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  height: 100%;
}
.gx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gx-card-shadow-lg);
  border-color: color-mix(in srgb, var(--gx-indigo) 30%, transparent);
}

.gx-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gx-surface-tint);
  color: var(--gx-indigo);
  font-size: 1.35rem;
  margin-bottom: .35rem;
  flex: none;
}

.gx-card__title {
  font-size: var(--gx-display-3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gx-ink);
  letter-spacing: -.01em;
}

.gx-card__text {
  font-size: var(--gx-fs-md);
  color: var(--gx-muted);
  line-height: 1.65;
}

/* Media card — used for course/programme tiles. */
.gx-card--media { padding: 0; overflow: hidden; }
.gx-card--media .gx-card__media {
  aspect-ratio: 16 / 9;
  background: var(--gx-surface);
  overflow: hidden;
}
.gx-card--media .gx-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gx-card--media:hover .gx-card__media img { transform: scale(1.05); }
.gx-card--media .gx-card__body {
  padding: 1.35rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: .6rem;
  flex: 1;
}
.gx-card__foot {
  margin-top: auto;
  padding-top: .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap;
}

/* ── Pills and badges ───────────────────────────────────────────────────── */
.gx-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: 9999px;
  font-size: var(--gx-fs-xs);
  font-weight: 600;
  background: var(--gx-surface-tint);
  color: var(--gx-indigo);
  white-space: nowrap;
}
.gx-pill--accent  { background: var(--gx-accent-soft);   color: var(--gx-accent-ink); }
.gx-pill--success { background: #e2f3ec;                 color: var(--gx-success-dark); }
/* --gx-muted on --gx-surface is only ~4.2:1, which fails AA at this size, so
   the muted pill uses the darker body colour instead (~6.4:1). */
.gx-pill--muted   { background: var(--gx-surface);       color: var(--gx-text); }
.gx-pill--glass   { background: rgba(255,255,255,.14);   color: var(--gx-white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.gx-price {
  font-size: var(--gx-fs-xl);
  font-weight: 800;
  color: var(--gx-ink);
  letter-spacing: -.02em;
}
.gx-price small {
  font-size: var(--gx-fs-sm);
  font-weight: 500;
  color: var(--gx-muted-light);
  text-decoration: line-through;
  margin-left: .4rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.gx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 9999px;
  font-size: var(--gx-fs-md);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--gx-transition);
  white-space: nowrap;
}
.gx-btn--primary {
  background: var(--gx-brand);
  color: var(--gx-white);
}
.gx-btn--primary:hover {
  background: var(--gx-brand-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px var(--gx-brand);
}
.gx-btn--accent {
  background: var(--gx-accent);
  color: var(--gx-brand-dark);
}
.gx-btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px var(--gx-accent);
}
.gx-btn--ghost {
  background: transparent;
  color: var(--gx-ink);
  border-color: var(--gx-line);
}
.gx-btn--ghost:hover { background: var(--gx-surface); }
.gx-btn--on-dark {
  background: rgba(255,255,255,.12);
  color: var(--gx-white);
  border-color: rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gx-btn--on-dark:hover { background: rgba(255,255,255,.2); }
.gx-btn--block { width: 100%; }
.gx-btn--sm { padding: .55rem 1.1rem; font-size: var(--gx-fs-sm); }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.gx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gx-gap);
}
.gx-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--gx-white);
  border: var(--gx-card-border);
  border-radius: var(--gx-card-radius);
  box-shadow: var(--gx-card-shadow);
}
.gx-stat__num {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--gx-brand);
  font-variant-numeric: tabular-nums;
}
.gx-stat__label {
  font-size: var(--gx-fs-sm);
  font-weight: 600;
  color: var(--gx-muted);
  margin-top: .35rem;
}
.gx-section--dark .gx-stat {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.gx-section--dark .gx-stat__num   { color: var(--gx-white); }
.gx-section--dark .gx-stat__label { color: rgba(255,255,255,.75); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.gx-hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background:
    radial-gradient(1100px 500px at 12% -10%, color-mix(in srgb, var(--gx-indigo) 16%, transparent), transparent 60%),
    radial-gradient(900px 460px at 92% 8%, color-mix(in srgb, var(--gx-accent) 15%, transparent), transparent 62%),
    linear-gradient(180deg, var(--gx-white), var(--gx-band));
  overflow: hidden;
}
.gx-hero__title {
  font-size: var(--gx-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: var(--gx-tracking-tight);
  color: var(--gx-ink);
  text-wrap: balance;
  margin-bottom: 1.1rem;
}
.gx-hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gx-brand), var(--gx-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gx-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gx-text);
  max-width: 58ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.gx-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Dark hero, used on inner pages so they read as a set. */
.gx-hero--dark {
  background:
    radial-gradient(900px 420px at 80% -20%, color-mix(in srgb, var(--gx-accent) 30%, transparent), transparent 60%),
    linear-gradient(135deg, var(--gx-brand-dark), var(--gx-brand) 55%, var(--gx-brand-light));
  color: var(--gx-white);
}
.gx-hero--dark .gx-hero__title { color: var(--gx-white); }
.gx-hero--dark .gx-hero__title em {
  background: linear-gradient(120deg, var(--gx-accent), #ffd54f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gx-hero--dark .gx-hero__lead { color: rgba(255,255,255,.85); }
.gx-hero--dark .gx-eyebrow    { color: var(--gx-accent); }

/* ── Sticky filter bar (courses) ────────────────────────────────────────── */
.gx-filterbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--gx-white) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gx-line);
  padding-block: .9rem;
}
.gx-filterbar__row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.gx-search {
  flex: 1 1 260px;
  display: flex; align-items: center; gap: .6rem;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: 9999px;
  padding: .55rem 1.1rem;
  transition: var(--gx-transition-fast);
}
.gx-search:focus-within { border-color: var(--gx-indigo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gx-indigo) 12%, transparent); }
.gx-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: var(--gx-fs-md); min-width: 0; }
.gx-search i { color: var(--gx-muted-light); }

.gx-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.gx-chip {
  padding: .45rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--gx-line);
  background: var(--gx-white);
  font-size: var(--gx-fs-sm);
  font-weight: 600;
  color: var(--gx-text);
  cursor: pointer;
  transition: var(--gx-transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.gx-chip:hover { background: var(--gx-surface); }
.gx-chip.is-active { background: var(--gx-brand); border-color: var(--gx-brand); color: var(--gx-white); }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
/* js/reveal.js adds .gx-in when the element scrolls into view. The starting
   state is only applied when JS is available, so with JS off nothing is
   hidden — the page just renders normally. */
.js .gx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.68,.36,1);
  will-change: opacity, transform;
}
.js .gx-reveal.gx-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .gx-reveal { opacity: 1; transform: none; transition: none; }
  .gx-card:hover { transform: none; }
}

/* ── Legacy card skin ───────────────────────────────────────────────────
   index.php ke cards apni purani classes se aate hain aur har ek ka radius
   alag tha (20px / 16px / 12px / 0), zyadatar bina shadow ke. Unka markup
   dobara likhne ki jagah yahan wahi treatment de diya hai jo .gx-card ko
   milta hai, taaki poora page ek jaisa dikhe.

   Loading order matters: theme.css page ki apni sheet ke BAAD load hoti hai,
   isliye ye jeetta hai. Naya card banao to seedha .gx-card use karo — ye
   block sirf jo pehle se maujood hai uske liye hai. */
.why-card,
.course-card-premium,
.upcoming-card-premium,
.journey-step,
.flow-box,
.placement-card-premium,
.service-item,
.info-card,
.faq-item {
  border-radius: var(--gx-card-radius);
  border: var(--gx-card-border);
  background: var(--gx-white);
  box-shadow: var(--gx-card-shadow);
  transition: transform var(--gx-transition), box-shadow var(--gx-transition), border-color var(--gx-transition);
}
.why-card:hover,
.course-card-premium:hover,
.upcoming-card-premium:hover,
.journey-step:hover,
.flow-box:hover,
.placement-card-premium:hover,
.service-item:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gx-card-shadow-lg);
  border-color: color-mix(in srgb, var(--gx-indigo) 30%, transparent);
}

/* The ecosystem block sits on the dark brand panel, so it keeps a glass
   treatment rather than a white card. */
.ecosystem-item {
  border-radius: var(--gx-card-radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: var(--gx-transition);
}
.ecosystem-item:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }

/* Section titles that still use the page's own class pick up the display
   scale, so headings match whether or not a section was converted. */
.section-title {
  font-size: var(--gx-display-2);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: var(--gx-tracking-tight);
  text-wrap: balance;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.gx-center     { text-align: center; }
.gx-mt-lg      { margin-top: 2.5rem; }
.gx-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--gx-muted);
  background: var(--gx-white);
  border: 1px dashed var(--gx-line);
  border-radius: var(--gx-card-radius);
}
.gx-empty i { font-size: 2.5rem; color: var(--gx-line); display: block; margin-bottom: .9rem; }

@media (max-width: 640px) {
  .gx-card { padding: 1.4rem; }
  .gx-head { margin-bottom: 2rem; }
}
