/* ===========================================================================
   GS NET ACADEMY — site styles
   ---------------------------------------------------------------------------
   Tailwind is loaded from the CDN (see js/tw.js for the colour/font theme).
   This file holds the reusable component classes (.btn, .card, .container-x …)
   and the light high-contrast palette.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Tiro+Devanagari+Hindi:ital@0;1&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap");

:root {
  --page: #f1ece1;      /* warm tint behind the cards */
  --page-alt: #f8f5ee;  /* alternating band */
  --card: #ffffff;
  --ink: #08152f;       /* headings */
  --body: #21324f;      /* body copy */
  --soft: #4a5c7a;
  --line: rgba(8, 21, 47, 0.14);
  --gold-ink: #a15c00;
}

/* --------------------------------- base ---------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--page);
  color: var(--body);
  font-family: "Plus Jakarta Sans", "Tiro Devanagari Hindi", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 { color: var(--ink); }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

::selection { background: #ffb020; color: #0a1428; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffb020;
  border-radius: 6px;
}

/* ------------------------------- layout ---------------------------------- */
.container-x {
  margin-inline: auto;
  width: 100%;
  max-width: 1200px;
  padding-inline: 20px;
}
@media (min-width: 1024px) { .container-x { padding-inline: 32px; } }

/* full-bleed row used by the header */
.container-wide {
  margin-inline: auto;
  width: 100%;
  max-width: 1720px;
  padding-inline: 20px;
}
@media (min-width: 1024px) { .container-wide { padding-inline: 40px; } }

/* ------------------------------ typography -------------------------------- */
.h-display {
  font-family: "Barlow Condensed", "Tiro Devanagari Hindi", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-weight: 800;
}
.font-display { font-family: "Barlow Condensed", "Tiro Devanagari Hindi", sans-serif; }

/* Devanagari copy gets a taller, easier line */
.hind, [lang="hi"] {
  font-family: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
  line-height: 1.9;
}
p.hind { font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #eab54a;
  background: #fff4dc;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
}
.bg-navy-950 .eyebrow, .bg-navy-900 .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 176, 32, 0.45);
  color: #ffc65c;
}

.rule-gold { height: 4px; width: 56px; border-radius: 999px; background: #ffb020; }

/* -------------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: all 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  composes: btn;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 700;
  white-space: nowrap; cursor: pointer; border: 0; transition: all .2s ease;
  background: #ffb020;
  color: #0a1428;
  box-shadow: 0 10px 24px -10px rgba(240, 169, 27, 0.75);
}
.btn-primary:hover { background: #ffc247; transform: translateY(-2px); }

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 700;
  white-space: nowrap; cursor: pointer; border: 0; transition: all .2s ease;
  background: #0b1c3f;
  color: #fff;
}
.btn-dark:hover { background: #143166; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 700;
  white-space: nowrap; cursor: pointer; transition: all .2s ease;
  background: #fff;
  border: 2px solid rgba(8, 21, 47, 0.22);
  color: var(--ink);
}
.btn-outline:hover { border-color: #f0a91b; background: #fff9ec; transform: translateY(-2px); }

.btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 700;
  white-space: nowrap; cursor: pointer; transition: all .2s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }

/* --------------------------------- cards ---------------------------------- */
.card {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(8, 21, 47, 0.06), 0 10px 24px -14px rgba(8, 21, 47, 0.35);
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: #f0a91b;
  box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.28), 0 20px 40px -18px rgba(8, 21, 47, 0.45);
}
.shadow-card { box-shadow: 0 1px 2px rgba(8, 21, 47, 0.06), 0 10px 24px -14px rgba(8, 21, 47, 0.35); }
.shadow-lift { box-shadow: 0 22px 46px -20px rgba(8, 21, 47, 0.45); }

/* ------------------------------ decoration -------------------------------- */
.grid-paper {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --------------------------- scroll animation ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1),
              transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.animate-rise { animation: rise 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------- dark sections stay dark ------------------------ */
.bg-navy-950 h1, .bg-navy-950 h2, .bg-navy-950 h3,
.bg-navy-900 h1, .bg-navy-900 h2, .bg-navy-900 h3 { color: #fff; }

/* gold icons inside dark sections */
.icon-gold { color: #ffb020; }

/* --------------------------------- tables --------------------------------- */
table { border-collapse: collapse; width: 100%; }
thead tr { background: #0b1c3f; }
thead tr th { color: #fff; }

/* --------------------------------- forms ---------------------------------- */
.field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  font-family: inherit;
}
.field:focus { outline: none; border-color: #f0a91b; box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.2); }
.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--body);
  margin-bottom: 6px;
}

/* ------------------------------- drawer ----------------------------------- */
body.drawer-open { overflow: hidden; }

/* ===========================================================================
   NO-JAVASCRIPT INTERACTIONS
   ---------------------------------------------------------------------------
   The menu, the result tabs and the FAQ all work with plain HTML and CSS.
   There is no script anywhere on this site.
   ========================================================================= */

/* ------------------------- mobile menu (checkbox) ------------------------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 30, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  height: 100%;
  width: 86%;
  max-width: 24rem;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 24px 48px -24px rgba(8, 21, 47, 0.35);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-toggle:checked ~ .drawer { pointer-events: auto; }
.nav-toggle:checked ~ .drawer .drawer-scrim { opacity: 1; pointer-events: auto; }
.nav-toggle:checked ~ .drawer .drawer-panel { transform: none; }

/* ---------------------- result tabs (radio buttons) ----------------------- */
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }

.tab-label {
  cursor: pointer;
  color: var(--body);
  transition: all 0.2s ease;
}
.tab-label:hover { background: #fff; color: var(--ink); }
.tab-count {
  background: rgba(8, 21, 47, 0.08);
  color: #33456a;
}
.tab-panel { display: none; }

/* the radio inputs sit just before the tab row and the panels, so a general
   sibling selector (~) is enough to style the chosen one */
#tab-netjrf:checked ~ div .tab-label[for="tab-netjrf"],
#tab-phd:checked ~ div .tab-label[for="tab-phd"],
#tab-teacher:checked ~ div .tab-label[for="tab-teacher"] {
  background: #050d1e;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(8, 21, 47, 0.6);
}
#tab-netjrf:checked ~ div .tab-label[for="tab-netjrf"] .tab-count,
#tab-phd:checked ~ div .tab-label[for="tab-phd"] .tab-count,
#tab-teacher:checked ~ div .tab-label[for="tab-teacher"] .tab-count {
  background: #ffb020;
  color: #050d1e;
}
#tab-netjrf:checked ~ div .panel-netjrf,
#tab-phd:checked ~ div .panel-phd,
#tab-teacher:checked ~ div .panel-teacher { display: flex; }

/* --------------------------- FAQ (details tag) ---------------------------- */
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .faq-mark::before { content: "+"; }
.faq[open] .faq-mark::before { content: "−"; }

/* --------------------- image with a helpful placeholder ------------------- */
.ph-wrap img { display: block; }
.ph-wrap .ph-note {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--soft);
  background: #eef1f8;
  border-radius: 1rem;
}
/* a broken image collapses to zero height — then the note shows through */
.ph-wrap img[src=""],
.ph-wrap img:not([src]) { display: none; }
.ph-wrap:has(img:not([src])) .ph-note { display: grid; }

/* --------------------------- lead-gate.js modal --------------------------- */
.gate-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.gate-scrim { position: absolute; inset: 0; background: rgba(4, 10, 26, 0.6); backdrop-filter: blur(2px); }
.gate-panel {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 30px 60px rgba(4, 10, 26, 0.35);
}
.gate-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(4, 10, 26, 0.12);
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  color: #1a2445;
  cursor: pointer;
}
.gate-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #b8860b; }
.gate-title { margin-top: 0.4rem; font-size: 19px; font-weight: 800; color: #0b1330; line-height: 1.3; padding-right: 1.5rem; }
.gate-form { margin-top: 1.25rem; display: grid; gap: 0.9rem; }
.gate-field span { display: block; font-size: 12.5px; font-weight: 700; color: #33406b; margin-bottom: 0.35rem; }
.gate-field input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(4, 10, 26, 0.15);
  background: #fff;
  padding: 0.65rem 1rem;
  font-size: 15px;
  outline: none;
}
.gate-field input:focus { border-color: #ffb020; box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.25); }
.gate-error { border-radius: 0.6rem; background: rgba(180, 40, 40, 0.1); color: #a3231f; font-size: 13px; font-weight: 600; padding: 0.6rem 0.9rem; }
.gate-submit { width: 100%; padding: 0.85rem; }
.gate-submit:disabled { opacity: 0.65; cursor: wait; }
.gate-note { font-size: 11.5px; line-height: 1.5; color: #667; }
