/* ============================================================================
   Gopal ji Mahavidyalaya — FRESH 2026 refresh layer
   Loaded AFTER style.css on every page. Same maroon/gold identity, a more
   contemporary execution: lighter surfaces, larger display type, glass
   navigation, full-bleed photographic hero, hairline cards.

   Everything here deliberately overrides blocks in style.css; style.css is
   left untouched so the previous look can be restored by dropping this file.
   ========================================================================= */

:root {
  /* Warmer, deeper brand — reads richer against the lighter surfaces below */
  --maroon-500: #96222f;
  --maroon-600: #6d1622;
  --maroon-700: #52101a;
  --maroon-800: #3a0b12;
  --maroon-900: #22060b;

  --gold-300: #dcb849;
  --gold-400: #c9992e;
  --gold-500: #a87d1f;

  /* Lighter, cleaner surfaces: white does the work, cream becomes an accent */
  --ink:        #17131a;
  --ink-soft:   #3c343d;
  --ink-mute:   #6b6169;
  --line:       #ece6e0;
  --line-soft:  #f5f1ec;
  --cream:      #faf8f5;
  --cream-deep: #f3ece1;
  --paper:      #ffffff;

  --shadow-1: 0 1px 2px rgba(34, 6, 11, .05);
  --shadow-2: 0 6px 18px rgba(34, 6, 11, .07), 0 2px 5px rgba(34, 6, 11, .04);
  --shadow-3: 0 30px 70px rgba(34, 6, 11, .16), 0 8px 20px rgba(34, 6, 11, .07);

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max:       1280px;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body:    "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header-h: 78px;
}

body { background: var(--paper); letter-spacing: -0.005em; }

h1, h2, h3, h4 { letter-spacing: -0.022em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.12; font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }

/* ------------------------------ Utility bar ----------------------------- */
.utilbar { background: var(--maroon-800); font-size: 12.5px; }
.utilbar a { color: #f0ddc7; }

/* -------------------------------- Header -------------------------------- */
.nav {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row { min-height: var(--header-h); }
.brand .bn { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.nav-links a {
  border-radius: 999px; padding: 9px 13px; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--cream-deep); color: var(--maroon-700); }
.nav-links a.active { background: var(--maroon-600); color: #fff; font-weight: 600; }
.nav-links a.active::after { display: none; }
.nav-links a.nav-pay { background: var(--gold-300); color: var(--maroon-900); font-weight: 700; }
.nav-links a.nav-pay:hover { background: var(--gold-400); color: var(--maroon-900); }

/* -------------------------------- Buttons ------------------------------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -.005em; }
.btn.lg { border-radius: 999px; padding: 15px 26px; }
.btn.primary:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold-300); color: var(--maroon-900); }
.btn.gold:hover { background: var(--gold-400); color: var(--maroon-900); }
.btn.ghost { border-color: var(--line); background: var(--paper); }

/* -------------------------------- Eyebrow ------------------------------- */
.eyebrow {
  border-radius: 999px; font-size: 11.5px; letter-spacing: .16em; font-weight: 700;
  text-transform: uppercase;
}

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--maroon-800);
  padding: clamp(60px, 8vw, 108px) 0 clamp(68px, 9vw, 120px);
}
.hero::before, .hero::after { display: none; }
.hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero .hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: saturate(.85);
}
.hero .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(34,6,11,.95) 0%, rgba(58,11,18,.88) 44%, rgba(58,11,18,.46) 74%, rgba(58,11,18,.34) 100%),
    radial-gradient(1100px 480px at 88% 6%, rgba(220,184,73,.24), transparent 62%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-300); font-style: normal; font-weight: 600; }
.hero .deva { color: #f0d9b0; font-size: 1.05rem; }
.hero .lede { color: rgba(255,255,255,.9); max-width: 560px; font-size: 1.1rem; }
.hero-eyebrow {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; backdrop-filter: blur(6px);
}

/* Glass fact card — replaces the old tilted illustration */
.hero-card {
  position: relative; border-radius: var(--radius-xl); padding: 30px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 70px rgba(10, 2, 4, .38);
}
.hero-card h3 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.hero-card .sub { color: rgba(255,255,255,.72); font-size: 13.5px; margin: 0 0 20px; }
.hero-card .rows { display: grid; gap: 9px; margin: 0 0 22px; }
.hero-card .rows div {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  font-size: 14px; color: rgba(255,255,255,.86);
}
.hero-card .rows b { color: var(--gold-300); font-weight: 700; white-space: nowrap; }
.hero-card .btn { width: 100%; justify-content: center; }
.hero-card .note { font-size: 12.5px; color: rgba(255,255,255,.62); margin: 14px 0 0; text-align: center; }

/* ---------------------------- Stats strip ------------------------------- */
.stats-strip { background: var(--maroon-600); border: 0; padding: 32px 0; }
.stats-strip .stat .n { color: var(--gold-300); font-family: var(--font-display); font-weight: 600; }
.stats-strip .stat .l { color: rgba(255,255,255,.74); }

/* ------------------------------- Sections ------------------------------- */
.section { padding: clamp(60px, 7.5vw, 100px) 0; }
.section.alt { background: var(--cream); }
.section.cream { background: var(--cream-deep); }
.section-head { margin-bottom: 50px; }
.section-head h2 { margin-top: 4px; }

/* ------------------------------ Course cards ---------------------------- */
.courses-grid { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 20px; }
.course-card {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--paper); padding: 26px 24px 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-1);
}
.course-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--maroon-600), var(--gold-300));
  opacity: 0; transition: opacity .18s ease;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); border-color: var(--line); }
.course-card:hover::before { opacity: 1; }
.course-card .tag {
  background: var(--cream-deep); color: var(--maroon-700); border-radius: 999px;
  padding: 5px 11px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  display: inline-block;
}
.course-card h3 { font-size: 1.32rem; margin: 14px 0 2px; }
.course-card .fee { border-top: 1px solid var(--line-soft); }
.course-card .fee .amt { color: var(--maroon-700); }
.course-card .more { color: var(--maroon-600); font-weight: 600; }

/* ------------------------------- Features ------------------------------- */
.feature {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper);
  padding: 28px 26px; box-shadow: var(--shadow-1);
}
.feature .ico { border-radius: 14px; }
.feature h4 { font-size: 1.16rem; }

/* -------------------------------- Notices ------------------------------- */
.notice-item { border-radius: var(--radius-lg); border-color: var(--line); }
.notice-item:hover { box-shadow: var(--shadow-2); }

/* ------------------------------ Testimonials ---------------------------- */
.testimonial { border-radius: var(--radius-lg); border-color: var(--line); background: var(--paper); }

/* ------------------------------- CTA banner ----------------------------- */
.cta-banner { border-radius: var(--radius-xl); background: var(--maroon-700); }

/* -------------------------------- Forms --------------------------------- */
.form-card { border-radius: var(--radius-xl); border-color: var(--line); }
.form-grid input, .form-grid select, .form-grid textarea { border-radius: 12px; border-color: var(--line); }

/* ------------------------------- People --------------------------------- */
.person { border-radius: var(--radius-lg); border-color: var(--line); background: var(--paper); }
.person .avi { border-radius: 18px; }

/* ----------------------------- Page headers ----------------------------- */
.page-header { background: var(--maroon-800); padding: clamp(54px, 6.5vw, 88px) 0 clamp(50px, 6vw, 74px); }
.page-header::before { background: radial-gradient(900px 420px at 82% 0%, rgba(220,184,73,.22), transparent 64%); }

/* -------------------------------- Footer -------------------------------- */
.footer { background: var(--maroon-900); }

/* =========================================================================
   NEW COMPONENTS — introduced by the refresh. All prefixed .fx- so they can
   never collide with anything in style.css.
   ====================================================================== */

/* --- Quick-links rail: the four things a visitor actually came for ------ */
.fx-quick { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 0; }
.fx-quick .fx-quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px;
}
.fx-quick a {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.fx-quick a:hover { border-color: var(--maroon-300); box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--ink); }
.fx-quick .fx-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; background: var(--cream-deep); color: var(--maroon-600);
}
.fx-quick .fx-ico svg { width: 21px; height: 21px; }
.fx-quick .t { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.fx-quick .s { color: var(--ink-mute); font-size: 12.5px; line-height: 1.3; margin-top: 2px; }

/* --- Course table: the full catalogue, readable at a glance ------------- */
.fx-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.fx-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14.5px; }
.fx-table th, .fx-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.fx-table thead th {
  background: var(--cream-deep); color: var(--maroon-800); font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700; white-space: nowrap;
}
.fx-table tbody tr:last-child td { border-bottom: 0; }
.fx-table tbody tr:hover { background: var(--cream); }
.fx-table td.name { font-weight: 700; color: var(--ink); }
.fx-table td.fee { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--maroon-700); }
.fx-table .fx-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--cream-deep); color: var(--maroon-700);
}
.fx-table .fx-pill.ug  { background: #eef4ff; color: #1e429f; }
.fx-table .fx-pill.pg  { background: #f3eeff; color: #5b21b6; }
.fx-table .fx-pill.ted { background: #eafaf1; color: #12633f; }
.fx-table .fx-pill.agr { background: #fdf3e3; color: #8a5a08; }

/* --- Contact band: every way to reach the college, on one screen -------- */
.fx-contact { background: var(--maroon-800); color: #fff; }
.fx-contact h2 { color: #fff; }
.fx-contact .section-head p { color: rgba(255,255,255,.72); }
.fx-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.fx-ccard {
  border-radius: var(--radius-lg); padding: 26px 24px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.fx-ccard:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.26); transform: translateY(-2px); }
.fx-ccard .fx-ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(220,184,73,.16); color: var(--gold-300); margin-bottom: 16px;
}
.fx-ccard .fx-ico svg { width: 22px; height: 22px; }
.fx-ccard h4 { color: #fff; font-size: 1.05rem; margin: 0 0 8px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.fx-ccard p { color: rgba(255,255,255,.74); font-size: 14px; margin: 0 0 4px; line-height: 1.5; }
.fx-ccard a { color: var(--gold-300); font-weight: 600; }
.fx-ccard a:hover { color: #fff; }
.fx-ccard .big { font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; }

/* --- Photo strip -------------------------------------------------------- */
.fx-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fx-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-deep); }
.fx-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fx-strip figure:hover img { transform: scale(1.05); }

/* --- Grievance / contact-the-manager page ------------------------------- */
.fx-grievance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }
.fx-assure { display: grid; gap: 14px; margin-top: 26px; }
.fx-assure li {
  list-style: none; padding-left: 30px; position: relative; color: var(--ink-soft);
  font-size: 14.5px; line-height: 1.5;
}
.fx-assure li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--cream-deep); color: var(--maroon-600);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.fx-ref {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: var(--cream-deep); border: 1px solid var(--gold-200);
  font-size: 14px; color: var(--maroon-800);
}
.fx-ref b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

/* ------------------------------ Responsive ------------------------------ */

/* The primary nav carries eleven items. With the refresh's pill links the row
   needs ~1161px beside the brand and the two CTAs, so the original 1060px
   hamburger breakpoint left a dead band (1061–1216px) where the "Apply" button
   pushed past the viewport and the whole page scrolled sideways. Two changes:
   tighten the links a little on desktop, and collapse to the hamburger at
   1240px instead — the narrowest width at which the full row genuinely fits. */
@media (min-width: 1241px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 1240px) {
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 12px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 14px; border-radius: 10px; font-size: 15.5px; }
  .nav-links a.active { background: var(--maroon-600); color: #fff; }
  .nav-toggle { display: inline-grid; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 900px) {
  .fx-grievance { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  /* style.css hides the whole utility-bar right cluster on phones. The
     grievance channel has to survive that — a phone IS the Android app, and
     "Contact Manager" is the one link in there people may urgently need. */
  .utilbar .right { display: flex; }
  .utilbar .right > *:not(.fx-util-keep) { display: none; }
  .utilbar .right .fx-util-keep { display: inline; }
  .utilbar .right .fx-util-keep::before { content: none; margin: 0; }
}
@media (max-width: 620px) {
  .hero-card { padding: 24px 20px; }
  .fx-quick a { padding: 14px; }
  .fx-table { min-width: 620px; }
}
