/* ==========================================================================
   SAFAR LEGAL TRUST — OFFICIAL INSTITUTIONAL DESIGN SYSTEM
   Editorial, Prestigious, Restrained Legal Institution Aesthetic
   Founded by Adv. Paramhansh Upadhyay
   ========================================================================== */

/* --- Fonts: Editorial Serif + Modern Clean Grotesque --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Design Tokens (Light Mode: Archival Parchment & Ink) --- */
:root {
  /* Surface & Base */
  --bg: #f8f6f0;
  --bg-alt: #f0ece2;
  --bg-subtle: #eae5d8;
  --surface: #ffffff;
  --surface-elevated: #faf8f4;
  --surface-sunken: #f2eee4;

  /* Typography Colors */
  --text-primary: #15191b;
  --text-secondary: #3e474c;
  --text-muted: #6a747a;
  --text-caption: #8d969b;
  --text-on-accent: #ffffff;

  /* Restrained Institutional Accents (Oxford Legal Seal & Antique Bronze) */
  --accent: #1b3026;            /* Deep British racing / Oxford legal forest */
  --accent-hover: #264235;
  --accent-muted: rgba(27, 48, 38, 0.06);
  --accent-border: rgba(27, 48, 38, 0.16);

  --bronze: #84673d;            /* Antique legal seal bronze */
  --bronze-hover: #6e542f;
  --bronze-muted: rgba(132, 103, 61, 0.08);
  --bronze-border: rgba(132, 103, 61, 0.2);

  /* Borders & Hairlines */
  --line: rgba(21, 25, 27, 0.08);
  --line-strong: rgba(21, 25, 27, 0.16);
  --line-subtle: rgba(21, 25, 27, 0.04);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 56px;
  --space-3xl: 84px;
  --space-4xl: 120px;

  /* Border Radii (Subtle, Tailored, Institutional) */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 9999px;

  /* Restrained Shadows (Tinted to Background Hue) */
  --shadow-subtle: 0 1px 3px rgba(21, 25, 27, 0.04);
  --shadow-sm: 0 2px 8px rgba(21, 25, 27, 0.06);
  --shadow-md: 0 8px 24px rgba(21, 25, 27, 0.07);
  --shadow-lg: 0 16px 40px rgba(21, 25, 27, 0.09);

  /* Transitions */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --duration: 0.28s;

  /* Container */
  --container-max: 1260px;
  --container-narrow: 860px;
}

/* --- Dark Theme: Judicial Study Ink & Linen --- */
[data-theme="dark"] {
  --bg: #101315;
  --bg-alt: #161b1e;
  --bg-subtle: #1c2226;
  --surface: #191f23;
  --surface-elevated: #21282d;
  --surface-sunken: #131719;

  --text-primary: #ece8df;
  --text-secondary: #a9a499;
  --text-muted: #747067;
  --text-caption: #5a564e;
  --text-on-accent: #ffffff;

  --accent: #4f826f;
  --accent-hover: #639884;
  --accent-muted: rgba(79, 130, 111, 0.12);
  --accent-border: rgba(79, 130, 111, 0.24);

  --bronze: #bfa06d;
  --bronze-hover: #d2b584;
  --bronze-muted: rgba(191, 160, 109, 0.12);
  --bronze-border: rgba(191, 160, 109, 0.25);

  --line: rgba(236, 232, 223, 0.08);
  --line-strong: rgba(236, 232, 223, 0.16);
  --line-subtle: rgba(236, 232, 223, 0.04);

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* --- Global Reset & Foundation --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--text-primary);
  color: var(--surface);
  padding: 10px 18px;
  z-index: 99999;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.25;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  max-width: 68ch;
}

/* Subtle Institutional Label / Eyebrow (Strictly Restrained) */
.label-institutional {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: var(--space-sm);
}

.label-institutional::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background-color: var(--bronze);
}

/* --- Container & Section Layouts --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(18px, 4vw, 36px);
  padding-right: clamp(18px, 4vw, 36px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: clamp(64px, 8vw, 108px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--surface {
  background-color: var(--surface);
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* --- Buttons & Interactive Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--text-on-accent);
  border: 1px solid var(--accent);
}
.btn--primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line-strong);
}
.btn--outline:hover {
  background-color: var(--line-subtle);
  border-color: var(--text-primary);
}

.btn--bronze {
  background-color: var(--bronze);
  color: #ffffff;
  border: 1px solid var(--bronze);
}
.btn--bronze:hover {
  background-color: var(--bronze-hover);
  border-color: var(--bronze-hover);
}

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

/* --- HEADER & NAVIGATION --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(248, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

[data-theme="dark"] .header {
  background-color: rgba(16, 19, 21, 0.94);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: var(--space-md);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-crest {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--bronze-border);
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.25s ease;
}

.brand-crest.has-custom-logo {
  background: rgba(18, 20, 29, 0.6);
  border-color: rgba(197, 160, 89, 0.45);
  padding: 2px;
}

.brand-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--radius-sm) - 2px);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--bronze);
  transition: width var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: var(--surface);
  transition: all var(--duration) var(--ease);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background-color: var(--surface);
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

.mobile-nav-toggle.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-2xl);
}

/* Institutional Four Pillars Bar */
.pillars-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pillar-item {
  background-color: var(--surface);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color var(--duration) var(--ease);
}

.pillar-item:hover {
  background-color: var(--surface-elevated);
}

.pillar-item__name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0;
}

.pillar-item__name::before {
  content: '§';
  color: var(--bronze);
  font-size: 13px;
}

.pillar-item__desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Hero Portrait / Courtroom Display */
.hero__visual {
  position: relative;
}

.hero-double-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-frame-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3.3;
  background-color: var(--bg-alt);
}

.hero-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-frame-inner:hover img {
  transform: scale(1.02);
}

.hero-badge-overlay {
  position: absolute;
  bottom: -20px;
  left: 20px;
  right: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--bronze);
  flex-shrink: 0;
}

.hero-badge-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-badge-role {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* --- ANNOUNCEMENTS MARQUEE --- */
.marquee-section {
  background-color: var(--accent);
  color: var(--text-on-accent);
  padding: 12px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--accent-border);
  position: relative;
  z-index: 10;
}

.marquee-container {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-section:hover .marquee-container {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee-separator {
  color: var(--bronze);
  font-size: 14px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- ABOUT THE TRUST SECTION --- */
.about-trust__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.narrative-block p {
  margin-bottom: var(--space-md);
  font-size: 15.5px;
  line-height: 1.8;
}

.vision-banner {
  background-color: var(--surface);
  border-left: 3px solid var(--bronze);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 28px;
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.vision-banner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vision-banner cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  font-style: normal;
}

/* Trust Core Metrics Bar */
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  margin-top: var(--space-xl);
}

.metric-cell {
  background-color: var(--surface);
  padding: 18px 20px;
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- WHY THE TRUST EXISTS (THE GAP ADDRESSED) / PILLARS --- */
.gap-continuum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: var(--space-xl);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: var(--space-xl);
}

.continuum-card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.continuum-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.continuum-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
  display: block;
}

.continuum-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.continuum-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --- PROGRAMS & TRAINING SECTION --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.program-card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}

.program-card:hover {
  border-color: var(--bronze);
  box-shadow: var(--shadow-sm);
}

.program-card__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.program-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.program-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--line);
}

.program-tag--accent {
  background-color: var(--accent-muted);
  color: var(--accent);
  border-color: var(--accent-border);
}

.program-card h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.program-card__desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.program-card__details {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background-color: var(--bg-alt);
  padding: 14px 16px;
  border-radius: var(--radius-xs);
}

.detail-item dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-item dd {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.program-curriculum-list {
  list-style: none;
  margin-top: 14px;
}

.program-curriculum-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.program-curriculum-list li::before {
  content: '✓';
  color: var(--bronze);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.program-card__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.program-apply-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.program-apply-link:hover {
  text-decoration: underline;
}

/* --- PRACTICAL LEGAL TRAINING (6 MODULES) --- */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.practical-card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: all var(--duration) var(--ease);
}

.practical-card:hover {
  background-color: var(--surface-elevated);
  border-color: var(--bronze);
}

.practical-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--bronze);
  margin-bottom: 12px;
  display: block;
}

.practical-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.practical-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --- STUDENT JOURNEY (6 STEPS) --- */
.journey-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
  margin-top: var(--space-xl);
}

.journey-step {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.journey-step__num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.journey-step h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.journey-step p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- FOUNDER SECTION --- */
.founder-profile {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.founder-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 8px;
  background-color: var(--surface-elevated);
  border-radius: var(--radius-sm);
}

.founder-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.founder-info h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 4px;
}

.founder-designation {
  font-size: 14px;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: block;
}

.founder-bio p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.founder-quote {
  border-left: 2px solid var(--bronze);
  padding-left: 18px;
  margin: var(--space-lg) 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.founder-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.founder-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  transition: all var(--duration) var(--ease);
}

.founder-social-link:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.founder-social-link svg {
  width: 14px;
  height: 14px;
}

/* --- EVENTS & NEWS SECTION --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}

.event-card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--duration) var(--ease);
}

.event-card:hover {
  border-color: var(--bronze);
  transform: translateY(-2px);
}

.event-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
  display: block;
}

.event-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.event-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.event-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.event-link:hover {
  color: var(--bronze);
}

/* --- DOCUMENTARY GALLERY SECTION --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 19, 21, 0.88) 100%);
  color: #ffffff;
}

.gallery-caption__tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  display: block;
  margin-bottom: 2px;
}

.gallery-caption__title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-grid--subpage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.gallery-item {
  cursor: pointer;
}

.gallery-filter-btn {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-lightbox__content {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: lightbox-fade 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes lightbox-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-lightbox__img {
  max-width: 85vw;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #000;
}

.gallery-lightbox__meta {
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.gallery-lightbox__title {
  font-size: 16px;
  color: var(--text-primary);
  margin: 4px 0 0;
}

.gallery-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1002;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-lightbox__close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* --- TESTIMONIALS / CLIENT FEEDBACK SECTION --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}

.testimonials-single-row {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.feedback-showcase-card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(32px, 4.5vw, 50px) clamp(28px, 5vw, 54px);
  position: relative;
  box-shadow: var(--shadow-sm);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feedback-showcase-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.feedback-quote-mark {
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 1;
  color: var(--bronze);
  opacity: 0.22;
  position: absolute;
  top: 14px;
  left: 20px;
  pointer-events: none;
  user-select: none;
}

.feedback-content-wrapper {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.feedback-content-wrapper.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.feedback-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  line-height: 1.68;
  color: var(--text-primary);
  font-style: italic;
  margin: 0 0 26px 0;
  padding-left: 6px;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.feedback-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.feedback-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feedback-author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feedback-author-role {
  font-size: 13px;
  color: var(--bronze);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.feedback-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feedback-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-right: 4px;
}

.feedback-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-elevated, #1b1926);
  border: 1px solid var(--line-strong, #3e3c50);
  color: var(--text-primary, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.feedback-nav-btn:hover {
  background: var(--accent, #3977ff);
  color: #fff;
  border-color: var(--accent, #3977ff);
  transform: scale(1.08);
}

.feedback-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.feedback-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong, #3e3c50);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.feedback-dot.is-active {
  background: var(--accent, #3977ff);
  width: 22px;
  border-radius: 10px;
}

.testimonial-card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- ADMISSIONS & APPLICATION SECTION --- */
.admissions-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: flex-start;
}

.admissions-info h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.admissions-info p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.admissions-criteria {
  list-style: none;
  margin: var(--space-md) 0;
}

.admissions-criteria li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admissions-criteria li::before {
  content: '§';
  color: var(--bronze);
  font-weight: 700;
}

/* Form Architecture */
.institutional-form {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
}

.form-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.form-head h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.form-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  padding: 11px 14px;
  transition: all var(--duration) var(--ease);
}

.form-control:focus {
  outline: none;
  background-color: var(--surface);
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px var(--bronze-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 105px;
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  display: none;
}

.form-feedback.is-success {
  display: block;
  background-color: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.form-feedback.is-error {
  display: block;
  background-color: rgba(180, 40, 40, 0.08);
  color: #b42828;
  border: 1px solid rgba(180, 40, 40, 0.2);
}

/* --- CONTACT & CHAMBERS SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: var(--space-xl);
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-alt);
  color: var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.contact-value {
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-map-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  min-height: 280px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(80%) contrast(1.1);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-motto {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--bronze);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom-links a:hover {
  color: var(--text-primary);
}

.admin-tag-link {
  font-size: 11px;
  color: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- ANIMATION / REVEAL DYNAMICS --- */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- ARTICLES & LEGAL INSIGHTS --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--bronze);
  box-shadow: var(--shadow-md);
}

.article-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--surface-elevated);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.article-card:hover .article-card__media img {
  transform: scale(1.05);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  padding: 24px;
}

.article-card__tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}

.article-card__title {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__more {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bronze);
  transition: letter-spacing var(--duration) var(--ease);
}

.article-card:hover .article-card__more {
  letter-spacing: 0.1em;
}

.articles-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}

.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
}

/* --- SINGLE ARTICLE PAGE --- */
.article-detail-section {
  padding-top: clamp(96px, 13vh, 150px);
}

.article-detail {
  max-width: 820px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}

.article-full__back {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--bronze);
}
.article-full__back:hover { text-decoration: underline; }

.article-full__head { margin-bottom: 22px; }

.article-full__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-top: 10px;
  color: var(--text-primary);
}
/* __ARTICLE_DETAIL_CSS_PLACEHOLDER__ */
.article-full__media {
  margin: 6px 0 26px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.article-full__media img {
  width: 100%;
  display: block;
  max-height: 460px;
  object-fit: cover;
}

.article-full__body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-full__body p { margin-bottom: 18px; }
.article-full__body p:last-child { margin-bottom: 0; }

.article-full__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.article-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.article-nav-btn--next { text-align: right; align-items: flex-end; }
.article-nav-btn:hover { border-color: var(--bronze); transform: translateY(-2px); }
.article-nav-btn__dir {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}
.article-nav-btn__title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .article-full__nav { flex-direction: column; }
  .article-nav-btn,
  .article-nav-btn--next {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Laptops & Tablets (Below 1024px) */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-trust__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .practical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder-profile {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .founder-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .events-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admissions-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 768px) {
  .pillars-bar {
    grid-template-columns: 1fr 1fr;
  }

  .trust-metrics {
    grid-template-columns: 1fr;
  }

  .gap-continuum {
    grid-template-columns: 1fr;
  }

  .practical-grid {
    grid-template-columns: 1fr;
  }

  .journey-timeline {
    grid-template-columns: 1fr;
  }

  .events-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Founder section — tighter padding on small screens */
  .founder-profile {
    padding: 20px 16px;
  }

  .founder-frame {
    max-width: 100%;
  }

  .founder-info h2 {
    font-size: 1.75rem;
  }

  .founder-social-row {
    gap: 8px;
  }

  .founder-social-link {
    padding: 6px 11px;
    font-size: 12px;
  }

  /* Gallery view-more button — prevent overflow */
  .gallery-view-more-row a {
    white-space: normal;
    text-align: center;
    padding: 12px 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- TEAM SECTION & SMOOTH INFINITE SLIDER --- */
.team-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.team-static-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.team-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 14px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.team-track {
  display: flex;
  width: max-content;
  gap: 32px;
  will-change: transform;
}

.team-track.is-sliding {
  animation: teamContinuousSlide 35s linear infinite;
}

/* Pause animation whenever mouse is on a particular person or the track */
.team-marquee:hover .team-track.is-sliding,
.team-track:hover,
.team-card:hover {
  animation-play-state: paused !important;
}

.team-group {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

@keyframes teamContinuousSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 32px));
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  width: 320px;
  flex-shrink: 0;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s ease, background-color 0.3s ease;
}

/* When hovering on a particular person, highlight and lift them smoothly */
.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border-color: var(--bronze);
  background-color: var(--surface-elevated);
}

.team-card__photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  margin-bottom: 20px;
  background-color: var(--surface-dim);
  transition: border-color 0.3s ease;
}

.team-card:hover .team-card__photo {
  border-color: var(--bronze);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.05);
}

.team-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--accent);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: bold;
}

.team-card__info {
  display: flex;
  flex-direction: column;
}

.team-card__info h3 {
  font-size: 1.15rem;
  margin-bottom: 3px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.team-card:hover .team-card__info h3 {
  color: var(--bronze);
}

.team-card__role {
  font-size: 11.5px;
  color: var(--bronze);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.team-card__info p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   CROSS-DEVICE RESPONSIVE ENHANCEMENTS
   Mobile/tablet refinements layered over the base desktop system.
   Appended last so these overrides win at equal specificity.
   ========================================================================== */

/* Belt-and-braces guard against any horizontal overflow
   (body already sets overflow-x:hidden; keep it off <html> so the
   sticky header and smooth-scroll anchoring keep working) */
html, body { max-width: 100%; }

/* Primary CTA that only appears inside the open mobile nav drawer */
.nav-cta-drawer { display: none; }

/* ---- Tablets & small laptops (<= 1024px) ---- */
@media (max-width: 1024px) {
  /* Core-pillars cards carry paragraph text: 2-up before stacking */
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ---- Landscape phones & portrait tablets (<= 768px) ---- */
@media (max-width: 768px) {
  /* Stack core-pillars fully so the descriptions stay readable */
  .pillars-grid { grid-template-columns: 1fr; }

  /* Team cards fit the viewport instead of a rigid 320px */
  .team-card { width: min(320px, 82vw); }
  .team-static-grid { gap: 20px; }
}
/* ---- Phones (<= 560px) ---- */
@media (max-width: 560px) {
  /* Tighter vertical rhythm than the desktop clamps */
  .section {
    padding-top: clamp(48px, 12vw, 72px);
    padding-bottom: clamp(48px, 12vw, 72px);
  }
  .section-head { margin-bottom: clamp(28px, 8vw, 40px); }

  /* Stacked, full-width hero buttons are far easier to tap */
  .hero__cta-group { gap: 12px; }
  .hero__cta-group .btn { width: 100%; }

  /* Collapse remaining multi-column grids */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid--subpage { grid-template-columns: 1fr; }
  .program-card__details { grid-template-columns: 1fr; }
  .pillars-bar { grid-template-columns: 1fr 1fr; }

  /* Roomier cards without oversized padding */
  .program-card { padding: 22px 20px; }
  .continuum-card { padding: 22px 20px; }

  /* Balance the team photo against the card */
  .team-card { width: min(300px, 86vw); padding: 24px 20px; }
  .team-card__photo { width: 168px; height: 168px; }
}

/* ---- Small phones (<= 400px) ---- */
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .pillars-bar { grid-template-columns: 1fr; }
  .brand-subtitle { display: none; } /* reclaim header width when very narrow */
  h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
}

/* ==========================================================================
   DEVICE-FRIENDLY PASS — MOBILE & TABLET
   Consolidated nav/drawer + touch/readability refinements. Source-ordered
   last so it wins at equal specificity. See notes inline.
   ========================================================================== */

/* Stop iOS from inflating body text in landscape; keep long words/URLs
   (footer email, addresses) from forcing horizontal scroll on narrow screens */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; -webkit-tap-highlight-color: rgba(0,0,0,0.06); }
.footer-links a, .contact-value, .contact-value a, .article-full__body { overflow-wrap: anywhere; }

/* ---- Drawer navigation for tablets & below (<= 1024px) ----
   The primary nav has 8 destinations; a horizontal bar crowds/overflows on
   tablets and landscape phones, so the whole range gets the off-canvas drawer. */
@media (max-width: 1024px) {
  html { scroll-padding-top: 74px; }        /* clear the 66px sticky header on anchor jumps */

  .header__inner { height: 66px; }

  .mobile-nav-toggle { display: flex; }     /* reveal the hamburger */
  .header__actions .btn { display: none; }  /* header CTA moves into the drawer */

  .header__nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
    gap: 6px;
    border-top: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
  }
  .nav-link::after { display: none; }       /* underline hover has no place in the stacked drawer */

  /* Conversion CTA, full-width and thumb-sized, at the foot of the drawer */
  .nav-cta-drawer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 15px 22px;
    background-color: var(--accent);
    color: var(--text-on-accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}
/* ---- Touch ergonomics: >=44px hit targets on finger-driven devices ---- */
@media (hover: none) and (pointer: coarse) {
  .theme-toggle-btn,
  .mobile-nav-toggle,
  .feedback-nav-btn,
  .gallery-lightbox__close { width: 44px; height: 44px; }
  .gallery-filter-btn { padding: 10px 16px; }
  /* Kill sticky :hover states that get "stuck" after a tap on touch screens */
  .article-card:hover { transform: none; }
  .team-card:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* ---- Phones (<= 768px): form fields at 16px stop iOS auto-zoom on focus ---- */
@media (max-width: 768px) {
  .form-control { font-size: 16px; }
  /* Article prev/next already stack (<=600px); give the map real height */
  .contact-map-wrapper, .contact-map-wrapper iframe { min-height: 240px; }
}

/* ---- Very small phones (<= 360px): reclaim cramped header width ---- */
@media (max-width: 360px) {
  .header__inner { gap: 10px; }
  .brand-title { font-size: 15.5px; letter-spacing: 0.02em; }
  .brand-crest { width: 36px; height: 36px; }
  .hero-badge-overlay { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
}
