/* =========================================================
   NSSE Mailsi Campus — Complete Design System & Stylesheet
   Nawaz Sharif School of Eminence (PEF Flagship School)
   Official NSSE Code Book Palette: Green #175F30 / #036F45, Gold #EAB129, Lime #AACD45
   ========================================================= */

:root {
  /* Brand Greens */
  --g9: #0D4321;
  --g8: #175F30;
  --g7: #036F45;
  --g6: #2F694B;
  --g2: #D8EAD0;
  --g1: #EEF6E6;
  --g0: #F6FAF2;

  /* Accent Colors */
  --lime: #AACD45;
  --lime2: #C2DA5B;
  --gold: #EAB129;
  --gold2: #F6CF68;
  --goldbg: #FFF7E0;
  --gold-dark: #B88510;

  /* Neutrals & UI */
  --ink: #13261A;
  --ink-light: #2C3E33;
  --muted: #5C6E62;
  --line: #DCE8D4;
  --white: #FFFFFF;
  --red: #C62828;
  --redbg: #FDECEC;
  --blue: #0D5AA7;
  --bluebg: #E7F1FB;
  --pink: #A3195B;
  --pinkbg: #FDE9F2;

  /* Elevation & Geometry */
  --r: 18px;
  --r-sm: 12px;
  --r-lg: 24px;
  --sh: 0 14px 34px -16px rgba(13, 67, 33, 0.28);
  --sh2: 0 24px 60px -24px rgba(13, 67, 33, 0.42);
  --sh-hover: 0 20px 42px -14px rgba(13, 67, 33, 0.32);

  /* Typography */
  --en: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ur: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Gulzar', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--en);
  color: var(--ink);
  background: var(--g0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================================================
   Urdu RTL Support
   ========================================================= */
html[dir="rtl"] body,
body.rtl {
  font-family: var(--ur);
  direction: rtl;
  text-align: right;
  line-height: 2.1;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4 {
  font-family: var(--ur);
  line-height: 1.8;
  letter-spacing: 0;
}

.ur {
  font-family: var(--ur);
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 2.1;
  font-weight: 400;
  letter-spacing: 0;
}

h1 .ur,
h2 .ur,
h3 .ur,
h4 .ur,
legend .ur,
b .ur,
span>.ur,
label .ur {
  display: inline-block;
  font-size: 0.85em;
  margin-inline-start: 0.5em;
  color: var(--g6);
  font-style: normal;
  line-height: 1.6;
}

.sec-ur {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--g7);
  margin: -0.2em 0 0.6em;
  line-height: 2.2;
}

/* Enforce LTR for numbers, codes, dates in RTL */
.en-num,
.ltr-text,
[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Layout Utilities */
.wrap {
  width: min(1440px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(840px, 100% - 32px);
  margin-inline: auto;
}

.narrow-sm {
  width: min(560px, 100% - 32px);
  margin-inline: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--g7);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--g8);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  margin: 0 0 0.45em;
  color: var(--g9);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 0.9em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

/* Accessible Skip Link */
.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--gold);
  color: #000;
  padding: 8px 16px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 9999;
  transition: top 0.2s;
}

.skip:focus {
  top: 16px;
}

/* =========================================================
   Animated Ambient Background Blobs
   ========================================================= */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: blobMotion 24s ease-in-out infinite alternate;
}

.bg-blobs span:nth-child(1) {
  width: 550px;
  height: 550px;
  background: var(--lime);
  top: -180px;
  right: -120px;
}

.bg-blobs span:nth-child(2) {
  width: 460px;
  height: 460px;
  background: var(--gold2);
  bottom: -180px;
  left: -120px;
  animation-delay: -8s;
}

.bg-blobs span:nth-child(3) {
  width: 380px;
  height: 380px;
  background: #7FD3A5;
  top: 45%;
  left: 45%;
  opacity: 0.18;
  animation-delay: -16s;
}

@keyframes blobMotion {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 40px) scale(1.12);
  }

  100% {
    transform: translate(-40px, 20px) scale(0.96);
  }
}

/* =========================================================
   Icons & Micro-animations
   ========================================================= */
.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.22em;
  display: inline-block;
}

.ic-draw>* {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1.5s 0.15s cubic-bezier(0.6, 0.1, 0.3, 1) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.ic-float {
  animation: float 3.2s ease-in-out infinite;
}

.d1 {
  animation-delay: -0.8s;
}

.d2 {
  animation-delay: -1.6s;
}

.d3 {
  animation-delay: -2.4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.ic-wiggle {
  transform-origin: 50% 60%;
}

.btn:hover .ic-wiggle,
.ic-wiggle:hover {
  animation: wiggle 0.7s ease;
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0);
  }

  20% {
    transform: rotate(-14deg) scale(1.1);
  }

  40% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(-6deg);
  }

  80% {
    transform: rotate(3deg);
  }
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(170, 205, 69, 0.7);
  animation: pulse 1.8s infinite;
}

.pulse-dot.gold {
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(234, 177, 41, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 177, 41, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(234, 177, 41, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 177, 41, 0);
  }
}

/* =========================================================
   Buttons & Links
   ========================================================= */
.btn {
  --bg: var(--g8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.78em 1.45em;
  border-radius: 999px;
  border: 0;
  font: 600 0.95rem/1.2 var(--en);
  cursor: pointer;
  color: #fff;
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

html[dir="rtl"] .btn {
  font-family: var(--ur);
  font-size: 0.92rem;
  padding: 0.6em 1.3em;
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn:active {
  transform: translateY(0);
}

.btn-green {
  background: linear-gradient(135deg, var(--g7), var(--g8));
  box-shadow: 0 10px 22px -10px rgba(3, 111, 69, 0.7);
}

.btn-green:hover {
  box-shadow: 0 14px 28px -10px rgba(3, 111, 69, 0.9);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #2A2000;
  font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(234, 177, 41, 0.45);
}

.btn-gold:hover {
  color: #1A1300;
  box-shadow: 0 8px 22px -6px rgba(234, 177, 41, 0.6);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btnShine 4s ease-in-out infinite;
}

@keyframes btnShine {

  0%,
  65% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.btn-ghost {
  background: #fff;
  color: var(--g8);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  color: var(--g8);
  border-color: var(--lime);
  background: var(--g1);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #fff;
}

.btn-sm {
  padding: 0.52em 1em;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.95em 1.7em;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* =========================================================
   Topbar & Main Navigation
   ========================================================= */
.topbar {
  background: var(--g9);
  color: #B4CEBE;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
}

.topbar a {
  color: #D3E6DB;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a:hover {
  color: var(--gold2);
}

.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tb-left,
.tb-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold2) !important;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(234, 177, 41, 0.4);
  font-family: var(--ur);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-badge:hover {
  background: var(--gold);
  color: #0D4321 !important;
  border-color: var(--gold);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 67, 33, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(170, 205, 69, 0.25);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand,
.brand:hover,
.brand:focus,
.brand:active {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff !important;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
  box-shadow: 0 0 0 2px var(--lime2, #AACD45);
  flex-shrink: 0;
}

.brand .brand-text,
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #ffffff !important;
}

.brand .brand-name,
.brand b {
  color: var(--gold, #EAB129);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.brand .brand-sub {
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 1px;
}

.brand:hover .brand-name,
.brand:focus .brand-name {
  color: var(--gold, #EAB129) !important;
}

.brand:hover .brand-sub,
.brand:focus .brand-sub,
.brand:hover span,
.brand:focus span {
  color: #ffffff !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links>a:not(.btn),
.dd-btn {
  color: #E2ECE5;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.nav-links>a:not(.btn):hover,
.dd-btn:hover,
.nav-links>a.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links>a.on {
  background: rgba(170, 205, 69, 0.22);
  color: var(--lime2);
}

/* Header Quick Action CTA Button (Apply Online) */
.nav-links .btn {
  margin-inline-start: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  color: #2A2000;
}

.nav-links .btn:hover {
  color: #1A1300;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
}

/* Dropdown Menu */
.dd {
  position: relative;
}

.chev {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.dd:hover .chev,
.dd.open .chev {
  transform: rotate(-135deg) translateY(-2px);
}

.dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 8px;
  box-shadow: var(--sh2);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 110;
  margin-top: 8px;
  animation: dropFade 0.25s ease forwards;
}

html[dir="rtl"] .dd-menu {
  left: auto;
  right: 0;
}

.dd:hover .dd-menu,
.dd.open .dd-menu {
  display: flex;
}

@keyframes dropFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dd-menu a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.18s;
}

.dd-menu a:hover {
  background: var(--g1);
  color: var(--g8);
  transform: translateX(3px);
}

html[dir="rtl"] .dd-menu a:hover {
  transform: translateX(-3px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =========================================================
   Hero Slider Section
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(1100px 500px at 90% -10%, rgba(170, 205, 69, 0.28), transparent 60%),
    linear-gradient(145deg, var(--g9), var(--g8) 55%, var(--g7));
  color: #fff;
  padding: 72px 0 68px;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8em;
  background: rgba(170, 205, 69, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(170, 205, 69, 0.3);
}

.slides {
  position: relative;
  min-height: 220px;
}

.slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.on {
  display: block;
  opacity: 1;
}

.slide-h {
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.3em;
}

.hero-ur {
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  color: var(--gold2);
  margin: 0.1em 0 0.8em;
  line-height: 2;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #E2ECE5;
  margin-bottom: 1.4em;
  max-width: 580px;
}

.dots {
  display: flex;
  gap: 8px;
  margin: 24px 0 20px;
}

.dots button {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.dots button.on {
  width: 50px;
  background: var(--gold);
}

.hero-quick {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.hero-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #D3E6DB;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}

.hero-quick a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: var(--gold);
}

/* =========================================================
   Hero Art: Circular Center Image & Revolving Orbit System
   ========================================================= */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
}

/* Outer Orbit System Container */
.orbit-system {
  position: relative;
  width: min(440px, 86vw);
  height: min(440px, 86vw);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Center Circular Image */
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(260px, 54vw);
  height: min(260px, 54vw);
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22),
    0 0 0 14px rgba(170, 205, 69, 0.25),
    0 25px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  background: var(--g9);
}

.orbit-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.orbit-system:hover .orbit-center {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35),
    0 0 0 18px rgba(234, 177, 41, 0.4),
    0 30px 70px rgba(0, 0, 0, 0.55);
}

/* Decorative Orbit Tracks (Dashed Circles) */
.orbit-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(170, 205, 69, 0.42);
  pointer-events: none;
  animation: pulseTrack 4s ease-in-out infinite alternate;
}

.orbit-ring-inner {
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  border: 1.5px dashed rgba(234, 177, 41, 0.35);
  pointer-events: none;
}

@keyframes pulseTrack {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }

  100% {
    opacity: 0.85;
    transform: scale(1.015);
  }
}

/* The Rotating Circle Container */
.orbit-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: orbitSpin 26s linear infinite;
  pointer-events: auto;
}

/* Continuous Circular Rotation */
@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Pause rotation on hover so user can inspect icons */
.orbit-system:hover .orbit-spinner,
.orbit-system:hover .orbit-spinner span {
  animation-play-state: paused;
}

/* Moving Orbit Icons */
.orbit-spinner span {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--g8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 2.5px solid var(--gold);
  transform: translate(-50%, -50%);
  animation: counterSpin 26s linear infinite;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  z-index: 4;
}

.orbit-spinner span:hover {
  background: var(--gold);
  color: #0D4321;
  box-shadow: 0 12px 28px rgba(234, 177, 41, 0.7);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1.22);
}

/* Counter-spin keeps the icons strictly upright as they travel in the circle */
@keyframes counterSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* 6 Symmetrically Positioned Icons (60 degrees apart) */
.orbit-spinner .o1 {
  top: 2%;
  left: 50%;
}

.orbit-spinner .o2 {
  top: 26%;
  left: 91.5%;
}

.orbit-spinner .o3 {
  top: 74%;
  left: 91.5%;
}

.orbit-spinner .o4 {
  top: 98%;
  left: 50%;
}

.orbit-spinner .o5 {
  top: 74%;
  left: 8.5%;
}

.orbit-spinner .o6 {
  top: 26%;
  left: 8.5%;
}

@media (max-width: 560px) {
  .orbit-system {
    width: 310px;
    height: 310px;
  }

  .orbit-center {
    width: 185px;
    height: 185px;
  }

  .orbit-spinner span {
    width: 38px;
    height: 38px;
  }

  .orbit-spinner span .ic {
    width: 1em;
    height: 1em;
  }
}

/* =========================================================
   Announcement Ticker Marquee (Positioned Outside Banner)
   ========================================================= */
.ticker {
  background: #092C16;
  border-top: 1px solid rgba(170, 205, 69, 0.3);
  border-bottom: 1px solid rgba(170, 205, 69, 0.2);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 5;
}

.ticker-in {
  display: inline-flex;
  gap: 36px;
  animation: marquee 30s linear infinite;
}

.ticker-in:hover {
  animation-play-state: paused;
}

.ticker-in a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E2ECE5;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ticker-in a:hover {
  color: var(--gold2);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .ticker-in {
  animation: marqueeRTL 30s linear infinite;
}

@keyframes marqueeRTL {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

/* =========================================================
   Sections & Section Headers
   ========================================================= */
.sec {
  padding: 72px 0;
  position: relative;
}

.sec-head {
  text-align: center;
  margin-bottom: 44px;
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g7);
  background: var(--g1);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 0.6em;
  border: 1px solid var(--g2);
}

.kicker.light {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(170, 205, 69, 0.3);
}

/* =========================================================
   About / Welcome Section
   ========================================================= */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.lead-dark {
  font-size: 1.15rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 1.2em;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--g9);
}

.ticks li .ic {
  color: var(--g7);
  flex-shrink: 0;
}

/* About Page Feature Ticks Alignment */
.feature-ticks {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
  display: grid;
  gap: 12px;
}

.feature-ticks li {
  display: grid;
  grid-template-columns: 24px 260px 1fr;
  align-items: start;
  gap: 16px;
  padding: 14px 18px;
  background: var(--g0);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.feature-ticks li:hover {
  background: #ffffff;
  border-color: rgba(13, 67, 33, 0.22);
  box-shadow: 0 4px 18px rgba(13, 67, 33, 0.06);
}

.feature-ticks .feat-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g7);
  margin-top: 2px;
}

.feature-ticks .feat-title {
  color: var(--g9);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.5;
}

.feature-ticks .feat-desc {
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .feature-ticks li {
    grid-template-columns: 24px 1fr;
    gap: 8px 12px;
  }

  .feature-ticks .feat-title {
    grid-column: 2;
  }

  .feature-ticks .feat-desc {
    grid-column: 2;
  }
}

.vm-stack {
  display: grid;
  gap: 18px;
}

.vm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--g7), var(--lime));
}

html[dir="rtl"] .vm-card::before {
  left: auto;
  right: 0;
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
}

.vm-card .ic {
  color: var(--g7);
  width: 2em;
  height: 2em;
  margin-bottom: 10px;
}

.vm-card h4 {
  margin-bottom: 6px;
}

/* =========================================================
   Statistics Counter Band
   ========================================================= */
.stats-band {
  background: linear-gradient(135deg, var(--g9), var(--g8));
  color: #fff;
  padding: 44px 0;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat b {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.95rem;
  color: #D6E8DC;
  font-weight: 600;
  margin-top: 4px;
}

/* =========================================================
   Campus Facilities Grid & Cards
   ========================================================= */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

.facility-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
}

.fc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--g9);
}

.fc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover .fc-media img {
  transform: scale(1.06);
}

.fc-ic {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--g8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}

html[dir="rtl"] .fc-ic {
  right: auto;
  left: 12px;
}

.fc-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fc-body h3 {
  margin-bottom: 2px;
}

.fc-body .ur {
  margin-bottom: 8px;
  font-weight: 600;
}

.fc-body p.muted {
  margin-bottom: 16px;
  flex: 1;
}

.fc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--g7);
  font-size: 0.92rem;
  margin-top: auto;
}

.facility-card:hover .fc-link {
  color: var(--g8);
}

/* =========================================================
   Managing Director Message Section
   ========================================================= */
.md-sec {
  background: radial-gradient(900px 450px at 85% 50%, rgba(170, 205, 69, 0.25), transparent 60%),
    linear-gradient(135deg, var(--g9), var(--g8));
  color: #fff;
}

.md-home {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.md-photo {
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh2);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.md-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.md-sec blockquote {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: #F0F6F2;
  margin: 0 0 16px;
  position: relative;
  padding-left: 28px;
}

html[dir="rtl"] .md-sec blockquote {
  padding-left: 0;
  padding-right: 28px;
}

.md-sec blockquote .ic {
  position: absolute;
  top: 4px;
  left: 0;
  color: var(--gold);
}

html[dir="rtl"] .md-sec blockquote .ic {
  left: auto;
  right: 0;
}

.md-name {
  color: #D3E6DB;
  font-size: 1rem;
  margin-bottom: 24px;
}

.md-name b {
  color: var(--gold2);
  font-size: 1.15rem;
}

/* =========================================================
   Admissions Seats Grid & Process
   ========================================================= */
.adm-sec {
  background: linear-gradient(180deg, transparent, #FFF7E0 45%, transparent);
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

@media (max-width: 1280px) {
  .seat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 990px) {
  .seat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .seat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 440px) {
  .seat-grid {
    grid-template-columns: 1fr;
  }
}

.seat-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--sh);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.seat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--g7), var(--lime));
}

.seat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-hover);
}

.seat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.seat-top b {
  font-size: 1.1rem;
  color: var(--g9);
}

.seat-top .ur {
  font-size: 0.95rem;
  color: var(--g6);
}

.seat-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.seat-nums span {
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.seat-nums b {
  font-size: 1.55rem;
  line-height: 1.1;
}

.seat-nums small {
  font-size: 0.74rem;
  font-weight: 700;
}

.seat-nums .sb {
  background: var(--bluebg);
  color: var(--blue);
}

.seat-nums .sg {
  background: var(--pinkbg);
  color: var(--pink);
}

.seat-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 3px 0;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* =========================================================
   Steps Flow & Animated Connector Arrows
   ========================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative;
}

.steps li {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 14px 20px;
  text-align: center;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.steps li:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(13, 67, 33, 0.12);
  border-color: rgba(234, 177, 41, 0.6);
}

.step-n {
  width: 34px;
  height: 34px;
  background: var(--goldbg);
  color: var(--gold-dark);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 6px rgba(234, 177, 41, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.steps li:hover .step-n {
  transform: scale(1.1);
  background: var(--gold);
  color: #0D4321;
}

.step-ic {
  color: var(--g7);
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.steps li:hover .step-ic {
  transform: scale(1.12);
  color: var(--g8);
}

.steps li b {
  font-size: 0.98rem;
  color: var(--g9);
  margin-bottom: 4px;
  font-weight: 700;
}

.steps li .ur {
  font-size: 0.92rem;
  color: var(--g6);
  margin-bottom: 4px;
}

.steps li small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Professional Animated Step Connector Arrow */
.step-arrow {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(234, 177, 41, 0.15);
  z-index: 5;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step-arrow svg {
  width: 16px;
  height: 16px;
  animation: stepArrowGlide 1.8s ease-in-out infinite;
  display: block;
}

/* Continuous Elegant Pulse and Motion */
@keyframes stepArrowGlide {

  0%,
  100% {
    transform: translateX(-2px);
    color: var(--gold-dark);
  }

  50% {
    transform: translateX(4px);
    color: var(--g8);
  }
}

/* Interactive Card Hover State */
.steps li:hover .step-arrow {
  background: linear-gradient(135deg, var(--gold), #E09819);
  color: #0D4321;
  border-color: #0D4321;
  box-shadow: 0 6px 20px rgba(234, 177, 41, 0.65), 0 0 0 5px rgba(234, 177, 41, 0.25);
  transform: translateY(-50%) scale(1.18);
}

.steps li:hover .step-arrow svg {
  animation: stepArrowActive 0.7s ease-in-out infinite alternate;
}

@keyframes stepArrowActive {
  0% {
    transform: translateX(-3px);
  }

  100% {
    transform: translateX(5px);
  }
}

/* Urdu RTL Support (Flipped 180deg to point left) */
html[dir="rtl"] .step-arrow {
  right: auto;
  left: -20px;
  transform: translateY(-50%) rotate(180deg);
}

html[dir="rtl"] .steps li:hover .step-arrow {
  transform: translateY(-50%) rotate(180deg) scale(1.18);
}

@media (max-width: 980px) and (min-width: 769px) {
  .steps {
    gap: 14px;
  }

  .steps li {
    padding: 18px 8px 16px;
  }

  .step-arrow {
    width: 26px;
    height: 26px;
    right: -15px;
  }

  .step-arrow svg {
    width: 13px;
    height: 13px;
  }

  html[dir="rtl"] .step-arrow {
    left: -15px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .steps li {
    padding: 22px 18px;
  }

  .step-arrow {
    top: auto;
    bottom: -20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(90deg);
  }

  .steps li:hover .step-arrow {
    transform: translateX(-50%) rotate(90deg) scale(1.18);
  }

  html[dir="rtl"] .step-arrow {
    top: auto;
    bottom: -20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(90deg);
  }

  html[dir="rtl"] .steps li:hover .step-arrow {
    transform: translateX(-50%) rotate(90deg) scale(1.18);
  }
}

/* =========================================================
   Professional Admission Flowchart (Website Theme Matched)
   ========================================================= */
.flowchart-board {
  background: #ffffff;
  border: 2px solid rgba(13, 67, 33, 0.12);
  border-radius: 26px;
  box-shadow: 0 16px 44px rgba(13, 67, 33, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 44px 32px 38px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.flowchart-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--lime) 50%, var(--gold) 100%);
}

.flowchart-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.flowchart-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g8);
  background: #EDF6EF;
  border: 1px solid rgba(13, 67, 33, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.flowchart-kicker .ic {
  color: var(--gold-dark);
}

.flowchart-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--g9);
  line-height: 1.25;
  margin-bottom: 8px;
}

.flowchart-sub {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Flowchart Grid Layout with Half-Rounded Circle Connectors */
.flowchart-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 32px 0;
  position: relative;
}

/* Flowchart Nodes */
.flow-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.node-meta {
  margin-bottom: 10px;
}

.node-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EDF5F0;
  color: var(--g7);
  border: 1px solid rgba(13, 67, 33, 0.18);
  transition: all 0.3s ease;
}

.node-pill.pill-start {
  background: #E8F5E9;
  color: #1B5E20;
  border-color: #81C784;
}

.node-pill.pill-gold {
  background: var(--goldbg);
  color: var(--gold-dark);
  border-color: var(--gold);
}

.flow-node:hover .node-pill {
  background: var(--gold);
  color: #0D4321;
  border-color: var(--gold);
}

/* Node Box Card */
.node-box {
  width: 100%;
  background: #FAFCFA;
  border: 1.5px solid #E1ECE4;
  border-radius: 18px;
  padding: 22px 12px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(13, 67, 33, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 195px;
}

.flow-node:hover .node-box {
  background: #ffffff;
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(13, 67, 33, 0.14);
}

.node-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #EAF4EC;
  border: 1.5px solid rgba(170, 205, 69, 0.4);
  color: var(--g8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.35s ease;
}

.node-ic.gold-ic {
  background: var(--goldbg);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.flow-node:hover .node-ic {
  background: var(--gold);
  color: #0D4321;
  border-color: var(--gold);
  transform: scale(1.1) rotate(4deg);
}

.node-h {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--g9);
  margin-bottom: 6px;
  line-height: 1.3;
}

.node-p {
  font-size: 0.8rem;
  color: #5A7563;
  line-height: 1.45;
  margin: 0;
}

/* Half-Rounded Circle Connector Arc */
.flow-arc {
  width: 68px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.arc-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.arc-pulse {
  stroke-dasharray: 24 70;
  animation: arcDashMove 2s linear infinite;
}

@keyframes arcDashMove {
  0% {
    stroke-dashoffset: 94;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.flow-node:hover+.flow-arc .arc-pulse {
  stroke-width: 4;
}

/* Flowchart Footer */
.flowchart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid #E8F0EA;
  flex-wrap: wrap;
  margin-top: 10px;
}

.flowchart-badge-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--g8);
  font-size: 0.92rem;
  font-weight: 600;
}

.pulse-dot.green {
  background: #2E7D32;
  box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(46, 125, 50, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
  }
}

.flowchart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* RTL Support for Urdu */
html[dir="rtl"] .flow-arc svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .flowchart-kicker {
  font-family: var(--ur);
  font-size: 0.92rem;
  letter-spacing: 0;
}

/* Mobile & Tablet Responsive Flowchart */
@media (max-width: 900px) {
  .flowchart-board {
    padding: 32px 18px 26px;
    border-radius: 20px;
  }

  .flowchart-grid {
    flex-direction: column;
    gap: 0;
  }

  .flow-node {
    width: 100%;
  }

  .node-box {
    min-height: auto;
    padding: 18px 16px;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 14px;
  }

  html[dir="rtl"] .node-box {
    text-align: right;
  }

  .node-ic {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .node-h {
    margin-bottom: 3px;
  }

  /* Vertical Half-Rounded Circle on Mobile */
  .flow-arc {
    width: 44px;
    height: 52px;
    margin: -4px auto;
  }

  .flow-arc svg {
    transform: rotate(90deg);
  }

  html[dir="rtl"] .flow-arc svg {
    transform: rotate(90deg);
  }

  .flowchart-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .flowchart-badge-note {
    justify-content: center;
  }

  .flowchart-actions {
    flex-direction: column;
  }

  .flowchart-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   News & Announcements Grid
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-hover);
}

.nc-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--g9);
  overflow: hidden;
}

.nc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .nc-media img {
  transform: scale(1.06);
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #1A1300;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

html[dir="rtl"] .tag {
  left: auto;
  right: 12px;
}

.nc-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nc-body small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.nc-body h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--g9);
}

.nc-body p {
  flex: 1;
  margin-bottom: 14px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--g7);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: auto;
}

.news-card:hover .more {
  color: var(--g8);
}

/* =========================================================
   Call To Action (CTA) Cards Band
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--g9), var(--g8));
  padding: 60px 0;
  color: #fff;
}

.cta-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s, background 0.25s;
}

.cta-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.cta-box .ic {
  width: 2.2em;
  height: 2.2em;
  color: var(--gold);
  margin-bottom: 16px;
}

.cta-box h3 {
  color: #fff;
  margin-bottom: 4px;
}

.cta-box .ur {
  color: var(--lime2);
  margin-bottom: 8px;
}

.cta-box p {
  color: #D6E8DC;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

/* =========================================================
   Inner Pages: Page Hero & Breadcrumbs
   ========================================================= */
.page-hero {
  background: radial-gradient(900px 400px at 90% -20%, rgba(170, 205, 69, 0.35), transparent 60%),
    linear-gradient(140deg, var(--g9), var(--g8) 55%, var(--g7));
  color: #fff;
  padding: 56px 0 46px;
}

.page-hero h1 {
  color: #fff;
  margin: 0.4em 0 0.1em;
}

.page-hero .lead {
  color: #DCEAD4;
}

.page-hero .hero-ur {
  margin-bottom: 0.3em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #B4CEBE;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #D3E6DB;
}

.breadcrumb a:hover {
  color: var(--gold2);
}

.breadcrumb span {
  color: var(--gold);
}

/* =========================================================
   Photo Gallery Grid & Lightbox
   ========================================================= */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.gallery-tab {
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s;
  font-family: inherit;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--g8);
  color: #fff;
  border-color: var(--g8);
  box-shadow: 0 4px 12px rgba(13, 67, 33, 0.2);
}

@media (max-width: 768px) {
  .gallery-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 12px 14px;
    margin-bottom: 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .gallery-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh);
  background: var(--g9);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 67, 33, 0.85));
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2px;
}

.gallery-overlay p {
  color: var(--gold2);
  font-size: 0.84rem;
  margin: 0;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox figcaption {
  color: #fff;
  margin-top: 14px;
  font-size: 1.05rem;
  text-align: center;
}

.lb-x,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-x:hover,
.lb-prev:hover,
.lb-next:hover {
  background: var(--gold);
  color: #000;
}

.lb-x {
  top: 20px;
  right: 20px;
}

.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   Forms & Controls
   ========================================================= */
.form-card {
  background: #fff;
  border-radius: var(--r);
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.span-2 {
  grid-column: span 2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--g9);
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 2px;
}

.field label .req,
label .req {
  color: var(--red, #C62828);
  font-size: 0.88rem;
  font-weight: 700;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  display: inline !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--g7);
  box-shadow: 0 0 0 3px rgba(3, 111, 69, 0.15);
}

input.bad,
select.bad,
textarea.bad {
  border-color: var(--red);
  background: var(--redbg);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================================================
   Careers & Vacancy Cards
   ========================================================= */
.vacancy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--sh);
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.vacancy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-hover);
}

.vac-info h3 {
  margin-bottom: 4px;
}

.vac-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 10px 0;
}

.vac-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   School Policies Section & Layout
   ========================================================= */
.policy-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
}

.sidebar-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 96px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--g1);
  color: var(--g8);
}

.sidebar-nav a.active {
  background: linear-gradient(90deg, var(--g8), var(--g7));
  color: #fff;
}

.policy-card {
  background: #fff;
  border-radius: var(--r);
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  margin-bottom: 24px;
}

.policy-card h2 {
  border-bottom: 2px solid var(--g1);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

/* =========================================================
   Toast Notifications & Modal
   ========================================================= */
.toast-wrap {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 10000;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100% - 40px));
}

html[dir="rtl"] .toast-wrap {
  right: auto;
  left: 20px;
}

.alert {
  padding: 16px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--sh2);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  animation: slideToast 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.alert-ok {
  border-left: 5px solid var(--g7);
}

.alert-err {
  border-left: 5px solid var(--red);
  background: #FFF5F5;
}

html[dir="rtl"] .alert-ok {
  border-left: 1.5px solid var(--line);
  border-right: 5px solid var(--g7);
}

html[dir="rtl"] .alert-err {
  border-left: 1.5px solid var(--line);
  border-right: 5px solid var(--red);
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-x {
  background: transparent;
  border: 0;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  background: #fff;
  border-radius: var(--r);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--sh2);
  text-align: center;
}

.modal-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--goldbg);
  color: var(--gold-dark);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-act {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* =========================================================
   Floating WhatsApp Button
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.1);
  color: #fff;
}

html[dir="rtl"] .wa-float {
  right: auto;
  left: 24px;
}

/* =========================================================
   Footer
   ========================================================= */
.foot {
  background: var(--g9);
  color: #C3DFC9;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.foot-stripe {
  display: flex;
  height: 6px;
  width: 100%;
}

.foot-stripe i:nth-child(1) {
  flex: 2;
  background: var(--g7);
}

.foot-stripe i:nth-child(2) {
  flex: 1;
  background: var(--lime);
}

.foot-stripe i:nth-child(3) {
  flex: 1.5;
  background: var(--gold);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
  gap: 40px;
  padding: 56px 0 44px;
}

.foot-logos {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.foot-logos img,
.foot-logos svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.foot-about h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.foot-about p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer Social Media Channels */
.foot-social-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-social-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold2);
  margin-bottom: 10px;
}

html[dir="rtl"] .foot-social-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  line-height: 1.8;
}

.foot-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.foot-social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.foot-social-icon svg {
  width: 17px;
  height: 17px;
  transition: transform 0.28s ease;
}

.foot-social-icon:hover {
  transform: translateY(-3px) scale(1.12) !important;
  border-color: transparent;
  color: #ffffff !important;
}

.foot-social-icon:hover svg {
  transform: scale(1.08);
}

.foot-soc-facebook:hover {
  background: #1877F2 !important;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.foot-soc-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.45);
}

.foot-soc-youtube:hover {
  background: #FF0000 !important;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
}

.foot-soc-twitter:hover {
  background: #000000 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.foot-soc-whatsapp:hover {
  background: #25D366 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.foot-soc-linkedin:hover {
  background: #0A66C2 !important;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.45);
}

.foot-soc-tiktok:hover {
  background: #010101 !important;
  box-shadow: 0 4px 14px rgba(238, 29, 82, 0.45);
}

.foot h5 {
  color: var(--gold2);
  font-size: 1.05rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.foot h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--lime);
}

html[dir="rtl"] .foot h5::after {
  left: auto;
  right: 0;
}

.foot a:not(.btn) {
  color: #D3E6DB;
  display: block;
  font-size: 0.91rem;
  margin-bottom: 9px;
  transition: all 0.2s;
}

.foot a:not(.btn):hover {
  color: var(--gold2);
  transform: translateX(4px);
}

html[dir="rtl"] .foot a:not(.btn):hover {
  transform: translateX(-4px);
}

/* Footer "Send Enquiry" CTA Button */
.foot-contact .btn,
.foot .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #F3C344, #EAB129);
  color: #1A1300 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 12px;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.foot-contact .btn:hover,
.foot .btn:hover {
  background: linear-gradient(135deg, #FFD25F, #F3C344);
  color: #0A0700 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.foot-contact .btn .ic,
.foot .btn .ic {
  color: #1A1300 !important;
  margin-top: 0 !important;
  flex-shrink: 0;
}

.foot-contact p {
  display: flex;
  gap: 10px;
  font-size: 0.91rem;
  margin-bottom: 12px;
  align-items: flex-start;
}

.foot-contact .ic {
  color: var(--gold);
  margin-top: 3px;
}

.foot-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8CA995;
  margin: 0;
}

/* =========================================================
   Reveal Animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1024px) {

  .hero-in,
  .welcome-grid,
  .md-home,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .cta-in {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-nav {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--g9);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 6px;
    display: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--lime);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .dd-menu {
    position: static;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    margin-top: 4px;
  }

  .dd-menu a {
    color: #E2ECE5;
  }

  .stats-in {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .vacancy-card {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stats-in {
    grid-template-columns: 1fr;
  }

  .seat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .slide-h {
    font-size: 1.85rem;
  }
}

/* =========================================================
   Inner Pages Content Grid & Sidebar Styles
   ========================================================= */
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #CFE3C4;
  margin-bottom: 12px;
}

.crumbs a {
  color: var(--lime2);
}

.crumbs a:hover {
  color: #fff;
}

.crumbs b {
  color: #fff;
  font-weight: 600;
}

.sec-tight {
  padding: 44px 0 72px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.card {
  background: #fff;
  border-radius: var(--r);
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.card-title {
  border-bottom: 2px solid var(--g1);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.sub-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--g9);
  margin-bottom: 8px;
  border-bottom: 1.5px solid var(--g1);
  padding-bottom: 8px;
}

.side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
  transition: all 0.2s;
}

.side-link .ic {
  color: var(--g7);
  transition: transform 0.2s;
}

.side-link:hover {
  background: var(--g1);
  color: var(--g8);
}

.side-link:hover .ic {
  transform: translateX(3px);
}

html[dir="rtl"] .side-link:hover .ic {
  transform: translateX(-3px);
}

.side-link.on {
  background: linear-gradient(90deg, var(--g7), var(--g8));
  color: #fff;
}

.side-link.on .ic {
  color: var(--gold2);
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, var(--g8), var(--g7));
  color: #fff;
  border: 0;
  padding: 28px 22px;
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.cta-card>.ic {
  font-size: 38px;
  color: var(--gold2);
  margin-bottom: 10px;
}

.cta-card h3 {
  color: #fff;
  margin: 0.3em 0 0.1em;
}

.cta-card .ur {
  color: var(--lime2);
  margin-bottom: 10px;
}

.cta-card p {
  color: #DCEAD4;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Managing Director Page Styles
   ========================================================= */
.md-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.md-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border-radius: 26px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--sh2);
  border: 1px solid var(--line);
}

.md-card .md-photo {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--lime2);
  margin: 0 auto;
}

.md-card .md-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.md-card h2 {
  font-size: 1.35rem;
  margin: 18px 0 4px;
}

.md-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.md-strip {
  display: flex;
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 18px;
}

.md-strip i:nth-child(1) {
  flex: 3;
  background: var(--g7);
}

.md-strip i:nth-child(2) {
  flex: 1;
  background: var(--gold);
}

.md-strip i:nth-child(3) {
  flex: 2;
  background: var(--lime);
}

.md-msg {
  position: relative;
  background: #fff;
  border-radius: var(--r);
  padding: 38px;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.md-quote {
  position: absolute;
  top: 18px;
  right: 24px;
  color: var(--g1);
  pointer-events: none;
}

html[dir="rtl"] .md-quote {
  right: auto;
  left: 24px;
}

.md-quote svg {
  width: 64px;
  height: 64px;
}

.md-lead {
  font-size: 1.18rem;
  color: var(--g8);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 22px;
}

.md-sign {
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--g8);
  border-top: 2px dashed var(--line);
  padding-top: 16px;
  margin-top: 28px;
}

.md-sign small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .md-grid {
    grid-template-columns: 1fr;
  }

  .md-card {
    position: static;
    max-width: 380px;
    margin: 0 auto 24px;
  }
}

/* =========================================================
   Policy Cards Grid Styles
   ========================================================= */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.policy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  color: var(--ink);
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.policy-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--g1);
  transition: transform 0.4s ease;
  z-index: 0;
}

html[dir="rtl"] .policy-card::after {
  right: auto;
  left: -40px;
}

.policy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh2);
  color: var(--ink);
}

.policy-card:hover::after {
  transform: scale(1.6);
  background: #F3F9DF;
}

.policy-card>* {
  position: relative;
  z-index: 1;
}

.pc-ic {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, var(--g7), var(--g8));
  color: #fff;
  margin-bottom: 12px;
}

.policy-card:nth-child(3n+2) .pc-ic {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #2A2000;
}

.policy-card:nth-child(3n) .pc-ic {
  background: linear-gradient(135deg, var(--lime2), var(--lime));
  color: var(--g9);
}

.policy-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.policy-card .ur {
  margin: 0;
  color: var(--g6);
  font-weight: 600;
}

.policy-card p.muted {
  margin-top: 6px;
  flex: 1;
}

/* =========================================================
   Admission Requirements Grid Styles
   ========================================================= */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.req-grid .req {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--sh);
}

.req-grid .req>span {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--g1);
  color: var(--g7);
  flex: none;
}

.req-grid .req:nth-child(even)>span {
  background: var(--goldbg);
  color: var(--gold-dark);
}

.req-grid .req div {
  display: flex;
  flex-direction: column;
}

.req-grid .req div b {
  font-size: 1.05rem;
  color: var(--g9);
  margin-bottom: 2px;
}

.req-grid .req .ur {
  margin: 0;
  font-size: 0.95rem;
  color: var(--g6);
}

.req-grid .req small {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

/* =========================================================
   Careers & Vacancies Styles
   ========================================================= */
.vac-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 14px;
  margin: 20px 0;
  backdrop-filter: blur(6px);
  max-width: 640px;
}

html[dir="rtl"] .vac-alert {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 4px solid var(--gold);
}

.vac-alert b {
  color: var(--gold2);
  font-size: 1.05rem;
}

.vac-alert .ur {
  display: block;
  color: #E8F2DF;
  font-size: 1rem;
  line-height: 1.8;
}

.countdown {
  margin: 18px 0;
}

.countdown p {
  margin: 0 0 8px;
  color: #DCEAD4;
  font-size: 0.92rem;
}

.cd {
  display: flex;
  gap: 10px;
}

.cd div {
  min-width: 68px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cd b {
  display: block;
  font-size: 1.6rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cd span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime2);
}

.post-meta {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.post-meta li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.post-meta .ic {
  color: var(--g7);
  flex-shrink: 0;
}

/* =========================================================
   Contact Page Styles
   ========================================================= */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc>span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g1);
  color: var(--g7);
  font-size: 24px;
  margin-bottom: 8px;
}

.cc:nth-child(even)>span {
  background: var(--goldbg);
  color: var(--gold-dark);
}

.cc b {
  font-size: 1.05rem;
  color: var(--g9);
}

.cc p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.map-card {
  padding: 0;
  overflow: hidden;
  min-height: 400px;
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Official Admission Form & Sheet Styles (Matches Official Paper)
   ========================================================= */

/* Fix Asterisk / Required Star Display in ALL forms */
.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--g9);
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin-bottom: 4px !important;
  width: auto !important;
}

.field label .req,
label .req,
.form-req {
  color: #C62828 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 0 0 3px !important;
  display: inline !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  float: none !important;
}

/* Success & Error Cards */
.official-admission-wrapper {
  margin: 30px auto;
  max-width: 980px;
}

.official-success-card {
  background: #E8F5E9;
  border: 2px solid #2E7D32;
  border-radius: var(--r, 12px);
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.15);
}

.official-success-card .card-inner {
  max-width: 600px;
  margin: 0 auto;
}

.official-success-card .success-icon-badge {
  width: 56px;
  height: 56px;
  line-height: 56px;
  font-size: 30px;
  background: #2E7D32;
  color: #fff;
  border-radius: 50%;
  margin: 0 auto 16px;
  font-weight: 800;
}

.official-success-card h3 {
  color: #1B5E20;
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.official-success-card .reg-number-display {
  display: inline-block;
  background: #0D4321;
  color: #FFD54F;
  font-size: 1.6rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 8px;
  letter-spacing: 2px;
  margin: 14px 0 18px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', monospace, sans-serif;
}

.official-success-card .reg-summary-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.95rem;
  color: #2E7D32;
  margin-bottom: 22px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #81C784;
}

.official-success-card .reg-summary-details .badge-success {
  background: #C8E6C9;
  color: #1B5E20;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.official-error-card {
  background: #FFEBEE;
  border: 1.5px solid #D32F2F;
  color: #C62828;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* Official Sheet Paper Styling */
.official-sheet-card {
  background: #FFFFFF;
  border: 2px solid #222;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px 35px 25px;
  border-radius: 4px;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

/* Header */
.official-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0D4321;
}

.official-form-header .header-logo-left .official-logo-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.official-form-header .header-logo-right .pef-logo-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.official-form-header .header-titles {
  flex: 1;
}

.official-form-header .school-title-main {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.1;
}

.official-form-header .school-title-sub {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0D4321;
  margin: 0 0 4px;
  line-height: 1.1;
}

.campus-badge-wrap {
  margin: 4px 0 6px;
}

.campus-badge {
  background: #0D4321;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 18px;
  border-radius: 3px;
  display: inline-block;
}

.form-title-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin: 6px 0 0;
}

.header-photo-box {
  width: 110px;
  height: 135px;
  border: 1.5px dashed #222;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fafafa;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  user-select: none;
}

.header-photo-box:hover {
  border-color: #0D4321;
  background: #E8F5E9;
}

.header-photo-box.has-photo {
  border-style: solid;
  border-color: #0D4321;
  background: #fff;
}

.header-photo-box.photo-required-missing {
  border-color: #D32F2F !important;
  border-style: solid !important;
  background: #FFEBEE !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25) !important;
  animation: photoShake 0.4s ease;
}

@keyframes photoShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

.photo-req-tag {
  display: block;
  font-size: 0.62rem;
  color: #C62828;
  font-weight: 800;
  margin-top: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.photo-click-hint {
  display: inline-block;
  font-size: 0.65rem;
  background: #0D4321;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 5px;
  font-weight: 600;
}

.btn-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(198, 40, 40, 0.9);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

/* Document Upload UI inside Official Form (Screen-Only) */
.doc-upload-row {
  background: #F4F8F5;
  border: 1.5px dashed #A5D6A7;
  border-radius: 6px;
  padding: 8px 14px;
  margin: 6px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0 14px;
}

@media (max-width: 680px) {
  .doc-upload-grid {
    grid-template-columns: 1fr;
  }
}

.doc-upload-box {
  background: #F4F8F5;
  border: 1.5px dashed #A5D6A7;
  border-radius: 6px;
  padding: 8px 14px;
}

.doc-upload-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #0D4321;
  margin-bottom: 6px;
  font-weight: 600;
}

.doc-upload-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-file-input {
  font-size: 0.8rem;
  color: #444;
  cursor: pointer;
  width: 100%;
}

.doc-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F5E9;
  border: 1px solid #81C784;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1B5E20;
}

.preview-mini-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1.5px solid #2E7D32;
}

.preview-filename {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-clear-doc {
  background: #FFEBEE;
  border: 1px solid #FFCDD2;
  color: #C62828;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  margin-left: 4px;
  transition: all 0.2s;
}

.btn-clear-doc:hover {
  background: #C62828;
  color: #fff;
}

.btn-remove-photo:hover {
  background: #B71C1C;
}

.photo-placeholder span {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #333;
}

.photo-placeholder small {
  display: block;
  font-size: 0.65rem;
  color: #777;
  line-height: 1.2;
  margin-top: 4px;
}

/* Office Use Strip */
.office-use-strip {
  margin: 14px 0 16px;
}

.office-use-title {
  background: #0D4321;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.office-use-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  align-items: center;
}

.office-field {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

/* Office Use and Tracking Locked Status (Read Only for Applicants) */
.office-use-badge,
.sec-lock-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

[dir="rtl"] .office-use-badge,
[dir="rtl"] .sec-lock-badge {
  margin-left: 0;
  margin-right: 8px;
}

.locked-input {
  cursor: not-allowed !important;
  user-select: none !important;
  color: #64748B !important;
}

.locked-input::placeholder {
  color: #94A3B8 !important;
  font-style: italic;
}

.locked-input:focus {
  outline: none !important;
  border-bottom-color: #000000 !important;
  box-shadow: none !important;
}

.office-locked-box {
  position: relative;
}

.office-field label {
  font-weight: 600;
  white-space: nowrap;
  color: #333;
}

/* Common Section Bar */
.official-sec-block {
  margin-bottom: 14px;
}

.official-sec-header {
  background: #0D4321;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Underline Fields */
.line-input {
  border: none !important;
  border-bottom: 1.5px solid #333 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 2px 4px !important;
  font-size: 0.88rem !important;
  color: #111 !important;
  outline: none !important;
  box-shadow: none !important;
  font-weight: 500;
  transition: border-bottom-color 0.2s, background 0.2s;
}

.line-input:focus {
  border-bottom: 2px solid #0D4321 !important;
  background: #F1F8F4 !important;
}

.line-input.full-grow {
  flex: 1;
}

.line-field-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.88rem;
}

.line-field-row.align-start {
  align-items: flex-start;
}

.line-field-row .bullet-dot {
  font-size: 1.1rem;
  line-height: 1;
  color: #222;
  width: 10px;
}

.line-field-row .row-label {
  font-weight: 600;
  white-space: nowrap;
  color: #222;
  font-size: 0.86rem;
}

.line-field-row .row-label small {
  font-weight: normal;
  color: #555;
}

.line-field-row.multi-item {
  display: flex;
  align-items: baseline;
}

.line-field-row.multi-item .split-col {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
}

.line-field-row.multi-item .split-col input {
  flex: 1;
}

.field-aux-text {
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
}

/* Custom Checkbox Look for Print & Web */
.custom-check-box {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.5px solid #222;
  vertical-align: middle;
  margin-right: 5px;
  background: #fff;
  position: relative;
  border-radius: 2px;
}

input[type="radio"]:checked+.custom-check-box::after,
input[type="checkbox"]:checked+.custom-check-box::after {
  content: "✔";
  position: absolute;
  top: -4px;
  left: 1px;
  font-size: 11px;
  color: #0D4321;
  font-weight: 900;
}

/* Section 1 Grid */
.class-selection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 12px;
  padding: 4px 6px 6px;
  font-size: 0.86rem;
}

.class-choice-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}

.class-choice-item input[type="radio"] {
  display: none;
}

/* Radios in line */
.inline-radios {
  display: inline-flex;
  gap: 16px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.86rem;
}

.radio-label input[type="radio"] {
  display: none;
}

/* Section 3 Income Grid */
.income-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  margin-top: 4px;
  padding-left: 4px;
}

.income-choice-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.84rem;
}

.income-choice-item input[type="radio"] {
  display: none;
}

/* Section 5 Quota */
.quota-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 4px 6px;
  font-size: 0.85rem;
}

.quota-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.quota-item input[type="radio"] {
  display: none;
}

.quota-item.special-needs-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inner-quota-lbl {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.inline-spec {
  width: 140px !important;
  display: inline-block;
}

/* Section 6 Declaration */
.declaration-body {
  padding: 4px 8px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.declaration-text {
  margin-bottom: 18px;
  text-align: justify;
}

.inline-dec {
  display: inline-block;
  margin: 0 4px;
  text-align: center;
}

.declaration-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 8px;
}

.sig-col {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sig-line {
  border-bottom: 1.5px solid #222;
  width: 200px;
  height: 18px;
  display: inline-block;
}

/* Section 7 Verification Table */
.verification-table-wrap {
  padding: 2px;
}

.verification-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.verification-table th,
.verification-table td {
  border: 1px solid #333;
  padding: 4px 8px;
  text-align: left;
}

.verification-table thead th {
  background: #f0f0f0;
  font-weight: 700;
  color: #111;
}

.verification-table .col-doc-name {
  width: 70%;
}

.verification-table .col-check {
  width: 10%;
  text-align: center;
}

.verification-table td:nth-child(2),
.verification-table td:nth-child(3),
.verification-table td:nth-child(4) {
  text-align: center;
}

.verification-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Footer of the sheet */
.official-sheet-footer {
  margin-top: 16px;
  border-top: 2px solid #0D4321;
  padding-top: 8px;
}

.footer-address-bar {
  background: #0D4321;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 5px 10px;
  border-radius: 2px;
}

.footer-contacts-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0D4321;
  margin-top: 6px;
  text-align: center;
}

/* Screen Submit CTA */
.official-submit-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px dashed #0D4321;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.official-submit-actions .submit-cta-btn {
  font-size: 1.05rem;
  padding: 14px 28px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(13, 67, 33, 0.35);
}

.official-submit-actions .print-cta-btn {
  font-size: 1.05rem;
  padding: 14px 24px;
  font-weight: 600;
}

/* Attached Verification Documents Dossier (Screen Styles) */
.attached-docs-dossier {
  margin-top: 30px;
  background: #ffffff;
  border: 2px solid #0D4321;
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.dossier-print-header {
  border-bottom: 2px solid #0D4321;
  padding-bottom: 12px;
  margin-bottom: 20px;
  text-align: center;
}
.dossier-school-badge {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0D4321;
  letter-spacing: 0.5px;
}
.dossier-main-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  margin: 4px 0 8px;
}
.dossier-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 0.84rem;
  background: #F4F6F7;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #CFD8DC;
}
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.doc-evidence-card {
  border: 1.5px solid #37474F;
  border-radius: 4px;
  padding: 8px;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
}
.doc-evidence-card.pure-card {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.doc-evidence-title {
  background: #0D4321;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.doc-evidence-title .badge-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.doc-img-container {
  flex: 1;
  min-height: 200px;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 3px;
  overflow: hidden;
  padding: 4px;
}
.doc-img-container.pure-img-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.doc-img-container.single-bform-img {
  min-height: 600px;
  max-height: 850px;
}
.doc-img-container.single-bform-img img {
  max-height: 820px;
  max-width: 100%;
  object-fit: contain;
}
.doc-img-container.stacked-card-img {
  min-height: 320px;
  max-height: 450px;
}
.doc-img-container.stacked-card-img img {
  max-height: 430px;
  max-width: 100%;
  object-fit: contain;
}
.pure-doc-page {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.dossier-print-footer {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1.5px solid #37474F;
  font-size: 0.78rem;
  color: #455A64;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   Official Admission Form Mobile Responsiveness (Screen Only)
   Does not affect @media print
   ========================================================= */
@media screen and (max-width: 768px) {

  /* Container & Card Resets */
  .official-admission-wrapper,
  .official-sheet-card,
  .official-sheet-card * {
    box-sizing: border-box !important;
  }

  .official-admission-wrapper {
    margin: 14px auto !important;
    padding: 0 4px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .official-sheet-card {
    padding: 18px 14px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06) !important;
    border: 1.5px solid #CBD5E1 !important;
  }

  /* Header Section & Logo Scaling */
  .official-form-header {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #0D4321 !important;
    text-align: center !important;
  }

  .official-form-header .header-logo-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .official-form-header .header-titles {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: unset !important;
    width: auto !important;
    padding: 0 4px !important;
  }

  .official-form-header .header-logo-right {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  /* Scaled down smaller logos for mobile */
  .official-form-header .header-logo-left .official-logo-img,
  .official-form-header .header-logo-right .pef-logo-img {
    width: 46px !important;
    height: 46px !important;
    object-fit: contain !important;
  }

  .official-form-header .school-title-main {
    font-size: 1.15rem !important;
    line-height: 1.15 !important;
  }

  .official-form-header .school-title-sub {
    font-size: 1.35rem !important;
    line-height: 1.15 !important;
    margin: 1px 0 3px !important;
  }

  .campus-badge {
    font-size: 0.78rem !important;
    padding: 2px 12px !important;
    letter-spacing: 1px !important;
  }

  .form-title-h3 {
    font-size: 0.92rem !important;
    margin-top: 4px !important;
    font-weight: 700 !important;
  }

  /* Photo Upload Box on Mobile: Centered below titles */
  .official-form-header .header-photo-box {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: 10px auto 0 !important;
    width: 95px !important;
    height: 118px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  /* Office Use Strip */
  .office-use-strip {
    margin: 12px 0 14px !important;
    padding: 8px 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
  }

  .office-use-fields {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .office-field {
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    gap: 3px !important;
  }

  .office-field label {
    font-size: 0.78rem !important;
    white-space: normal !important;
    color: #475569 !important;
  }

  /* Section Bars */
  .official-sec-header {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    letter-spacing: 0.3px !important;
  }

  /* Form Fields Stack: Clean, Accessible Mobile Inputs */
  .line-field-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
  }

  .line-field-row .bullet-dot {
    display: none !important;
  }

  .line-field-row .row-label {
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #0D4321 !important;
    margin-bottom: 2px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .line-input {
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 6px !important;
    background: #F8FAFC !important;
    padding: 9px 12px !important;
    font-size: 0.92rem !important;
    width: 100% !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    color: #0F172A !important;
    transition: all 0.2s ease !important;
  }

  .line-input:focus {
    border-color: #0D4321 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(13, 67, 33, 0.12) !important;
  }

  .line-field-row.multi-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .line-field-row.multi-item .split-col {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .line-field-row.multi-item .split-col input {
    width: 100% !important;
  }

  /* Radios & Checkboxes on Mobile */
  .inline-radios {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 18px !important;
    padding: 4px 0 !important;
  }

  .radio-label {
    padding: 6px 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
    font-size: 0.84rem !important;
  }

  /* Class Selection Grid */
  .class-selection-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .class-choice-item {
    padding: 6px 8px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    justify-content: flex-start !important;
  }

  /* Document Upload Rows & Grids */
  .doc-upload-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 6px 0 12px !important;
  }

  .doc-upload-box,
  .doc-upload-row {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: #F8FAFC !important;
    border: 1.5px dashed #A5D6A7 !important;
  }

  .doc-upload-lbl {
    font-size: 0.82rem !important;
    flex-wrap: wrap !important;
    line-height: 1.35 !important;
  }

  .doc-file-input {
    font-size: 0.78rem !important;
  }

  /* Income & Quota Grids */
  .income-checkbox-grid,
  .quota-options-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .income-choice-item,
  .quota-item {
    padding: 6px 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
  }

  .inline-spec {
    width: 100% !important;
    margin-top: 4px !important;
  }

  /* Declaration Section */
  .declaration-body {
    padding: 2px !important;
    font-size: 0.82rem !important;
  }

  .declaration-text .inline-dec {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 !important;
    display: inline-block !important;
  }

  .declaration-signatures {
    flex-direction: column !important;
    gap: 14px !important;
  }

  .sig-col {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .sig-line {
    width: 100% !important;
    border-bottom: 1.5px dashed #475569 !important;
  }

  /* Verification Table Responsive Scroll Wrapper */
  .verification-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
    margin: 8px 0 !important;
  }

  .verification-table {
    min-width: 480px !important;
  }

  /* Footer */
  .footer-address-bar {
    font-size: 0.76rem !important;
    padding: 6px 8px !important;
    line-height: 1.35 !important;
  }

  .footer-contacts-bar {
    flex-direction: column !important;
    gap: 5px !important;
    align-items: center !important;
    font-size: 0.8rem !important;
  }

  /* Responsive Action Buttons */
  .official-submit-actions {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 22px !important;
    padding-top: 16px !important;
  }

  .official-submit-actions button,
  .official-submit-actions .btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 13px 16px !important;
    font-size: 0.94rem !important;
    border-radius: 8px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }

  .official-submit-actions button svg,
  .official-submit-actions .btn svg {
    flex-shrink: 0 !important;
    margin-right: 4px !important;
  }

  .official-submit-actions .submit-cta-btn {
    font-size: 0.95rem !important;
    box-shadow: 0 4px 12px rgba(13, 67, 33, 0.25) !important;
  }

  .official-submit-actions .print-cta-btn {
    font-size: 0.92rem !important;
  }

  .success-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .success-actions button,
  .success-actions .btn {
    width: 100% !important;
    margin-left: 0 !important;
  }

  /* Standalone Topbar (official-admission-form.php) */
  .standalone-topbar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    text-align: center !important;
  }

  .standalone-topbar .brand-label {
    font-size: 0.9rem !important;
    justify-content: center !important;
  }

  .standalone-topbar .brand-label img {
    width: 28px !important;
    height: 28px !important;
  }

  .standalone-topbar .actions {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .standalone-topbar .actions a,
  .standalone-topbar .actions button {
    flex: 1 !important;
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .seat-action-cta div {
    flex-direction: column !important;
  }

  .seat-action-cta a.btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.95rem !important;
  }

  .standalone-content {
    padding: 0 6px 30px !important;
    margin: 12px auto !important;
  }
}

/* Extra small devices (<= 480px) */
@media screen and (max-width: 480px) {
  .official-sheet-card {
    padding: 14px 10px 16px !important;
  }

  .official-form-header .header-logo-left .official-logo-img,
  .official-form-header .header-logo-right .pef-logo-img {
    width: 38px !important;
    height: 38px !important;
  }

  .official-form-header .school-title-main {
    font-size: 1.02rem !important;
  }

  .official-form-header .school-title-sub {
    font-size: 1.18rem !important;
  }

  .campus-badge {
    font-size: 0.72rem !important;
    padding: 2px 10px !important;
  }

  .class-selection-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .official-submit-actions button,
  .official-submit-actions .btn {
    font-size: 0.88rem !important;
    padding: 12px 10px !important;
  }
}

/* =========================================================
   Important Notices Modal Popup (FPSC Style)
   Styled to match official government public notice portal.
   ========================================================= */
body.notices-open {
  overflow: hidden !important;
}

.notices-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notices-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.notices-modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto;
  background-color: #FAF8F5;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  padding: 34px 38px 24px 38px;
  transform: scale(0.92) translateY(18px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.notices-modal-overlay.active .notices-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.notices-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

[dir="rtl"] .notices-modal-close {
  right: auto;
  left: 18px;
}

.notices-modal-close:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #0F172A;
  transform: scale(1.08);
}

.notices-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.notices-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #D34537;
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.notices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 20px;
  max-height: 52vh;
}

.notices-list::-webkit-scrollbar {
  width: 6px;
}

.notices-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.notice-pill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13px 20px;
  background-color: #D7ECD9;
  border: 1px solid #B8DCBD;
  border-radius: 8px;
  color: #174E25 !important;
  text-decoration: none !important;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  transition: all 0.22s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.notice-pill-item:hover,
.notice-pill-item:focus {
  background-color: #48BB78 !important;
  color: #FFFFFF !important;
  border-color: #38A169 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px -2px rgba(56, 161, 105, 0.35);
}

.notice-pill-item:active {
  transform: translateY(0);
}

.notices-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.notices-view-all-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0D4321;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}

.notices-view-all-link:hover {
  color: #166534;
  text-decoration: underline;
  transform: translateX(3px);
}

[dir="rtl"] .notices-view-all-link:hover {
  transform: translateX(-3px);
}

.notices-close-btn {
  background: #E2E8F0;
  color: #334155;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notices-close-btn:hover {
  background: #CBD5E1;
  color: #0F172A;
}

/* Ticker badge for opening popup */
.ticker-popup-badge {
  background: linear-gradient(135deg, #FAF8F5, #E8F5E9) !important;
  border: 1.5px solid #2E7D32 !important;
  color: #1B5E20 !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
}

.ticker-popup-badge:hover {
  background: #2E7D32 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3) !important;
}

@media screen and (max-width: 640px) {
  .notices-modal-card {
    padding: 24px 16px 18px 16px;
    border-radius: 14px;
  }

  .notices-title {
    font-size: 1.55rem;
  }

  .notice-pill-item {
    font-size: 0.88rem;
    padding: 11px 12px;
  }

  .notices-modal-footer {
    flex-direction: column-reverse;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }

  .notices-close-btn {
    width: 100%;
    padding: 10px;
  }

  .notices-view-all-link {
    justify-content: center;
  }
}

/* Print utility helpers */
.print-only,
.teacher-official-slip,
.teacher-form-print-header,
.teacher-print-footer {
  display: none !important;
}

/* ================= PRINT MEDIA STYLES ================= */
@media print {

  .notices-modal-overlay,
  .office-use-badge,
  .sec-lock-badge {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Universal button & interactive suppression in print */
  button,
  .btn,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  .screen-only,
  .official-submit-actions,
  .success-actions,
  .actions,
  .btn-remove-photo,
  .photo-click-hint,
  .photo-upload-ic {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide ALL standard website layout & navigation elements */
  .head,
  .site-header,
  header:not(.official-form-header),
  .foot,
  .site-footer,
  footer:not(.official-sheet-footer),
  .topbar,
  .ticker,
  .nav,
  .nav-bar,
  .mobile-nav,
  .page-hero,
  .crumbs,
  .sec-head,
  .wa-float,
  .bg-blobs,
  .skip,
  .standalone-topbar,
  .modal,
  .lightbox,
  .toast,
  .seat-action-cta,
  .seat-grid,
  .adm-sec,
  .flow-sec,
  .hero,
  .hero-sub,
  #admissionSuccessCard,
  #admissionErrorCard {
    display: none !important;
    visibility: hidden !important;
  }

  /* When printing on admissions page, strictly isolate ONLY the official form */
  body.admission>*:not(main) {
    display: none !important;
    visibility: hidden !important;
  }

  body.admission main>*:not(#official-admission-form-section) {
    display: none !important;
    visibility: hidden !important;
  }

  body.admission #official-admission-form-section>.wrap>.sec-head {
    display: none !important;
    visibility: hidden !important;
  }

  /* Hide any other standard sections on admissions page */
  body.admission .sec:not(#official-admission-form-section) {
    display: none !important;
    visibility: hidden !important;
  }

  /* Container resets so form fills page cleanly without margin/offsets */
  #official-admission-form-section,
  #official-admission-form-section>.wrap,
  .sec-tight,
  .standalone-content,
  main,
  #main,
  .wrap {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .official-admission-wrapper {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Printable Sheet Card */
  .official-sheet-card {
    display: block !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    page-break-after: avoid;
    break-after: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .official-sec-header {
    background: #0D4321 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 3px 8px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
  }

  .footer-address-bar {
    background: #0D4321 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .line-input {
    border-bottom: 1px solid #000000 !important;
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  .header-photo-box {
    border: 1.5px solid #000000 !important;
    background: #ffffff !important;
  }

  .official-submit-actions {
    display: none !important;
    visibility: hidden !important;
  }

  .official-sec-block {
    margin-bottom: 4px !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .line-field-row {
    margin-bottom: 2.6px !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
    line-height: 1.25 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Section 5 (Quota Category) options on Page 1 */
  .quota-options-grid {
    gap: 2px 8px !important;
    margin-bottom: 2px !important;
  }
  .quota-item {
    font-size: 0.74rem !important;
  }

  /* Page 2: Starts with Section 6 (Declaration) */
  .form-page2-break {
    page-break-before: always !important;
    break-before: page !important;
    margin-top: 0 !important;
    padding-top: 4px !important;
  }

  .declaration-body {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }

  .official-form-header,
  .official-sheet-footer,
  .verification-table-wrap {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .verification-table th, .verification-table td {
    padding: 6.5px 8px !important;
    font-size: 0.78rem !important;
  }

  .official-sheet-footer {
    margin-top: 16px !important;
    padding-top: 6px !important;
  }

  .footer-address-bar {
    font-size: 0.80rem !important;
    padding: 4px 8px !important;
  }

  .footer-contacts-bar {
    font-size: 0.78rem !important;
    padding: 4px !important;
  }

  .locked-input {
    color: #000000 !important;
  }

  /* ================= SEPARATE DOSSIER ATTACHMENT PAGES ================= */
  .attached-docs-dossier-wrapper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  .attached-docs-dossier-wrapper.user-suppressed-print {
    display: none !important;
    visibility: hidden !important;
  }

  /* Each attachment page (B-form, Father CNIC, Mother CNIC) on its own separate page (PURE IMAGES, NO HEADERS, NO BORDERS) */
  .dossier-page-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    page-break-before: always !important;
    break-before: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 98% !important;
    min-height: 275mm !important;
  }

  .dossier-page-head,
  .doc-evidence-title,
  .dossier-print-footer {
    display: none !important;
    visibility: hidden !important;
  }

  .dossier-evidence-grid {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .dossier-evidence-grid.top-bottom-cards-page {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .dossier-evidence-grid.single-card-page {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .doc-evidence-card {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  /* Single full-page B-form container (Pure Image, No Border, Clean) */
  .doc-img-container.single-bform-img {
    width: 100% !important;
    height: 950px !important;
    min-height: 820px !important;
    max-height: 980px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    flex: 1 !important;
  }
  .doc-img-container.single-bform-img img {
    max-width: 100% !important;
    max-height: 960px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Stacked Top-and-Bottom CNIC containers (Pure Images, No Border, Clean) */
  .doc-img-container.stacked-card-img {
    width: 100% !important;
    height: 460px !important;
    min-height: 400px !important;
    max-height: 480px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    flex: 1 !important;
  }
  .doc-img-container.stacked-card-img img {
    max-width: 100% !important;
    max-height: 450px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* =========================================================
     CAREERS / TEACHER RECRUITMENT PRINT ISOLATION
     ========================================================= */
  body.careers>*:not(main) {
    display: none !important;
    visibility: hidden !important;
  }

  body.careers main>*:not(#careers-apply-section) {
    display: none !important;
    visibility: hidden !important;
  }

  body.careers .page-hero,
  body.careers .sec-head,
  body.careers .crumbs,
  body.careers .job-list,
  body.careers .vacancy-card,
  body.careers article,
  body.careers .values-grid,
  body.careers .vac-meta,
  body.careers .vac-actions,
  body.careers .post-meta,
  body.careers .wa-float,
  body.careers .bg-blobs,
  body.careers .site-header,
  body.careers .site-footer {
    display: none !important;
    visibility: hidden !important;
  }

  body.careers #careers-apply-section {
    display: block !important;
    visibility: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
  }

  body.careers #careers-apply-section>.wrap {
    display: block !important;
    visibility: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.careers #careers-apply-section>.wrap>*:not(#apply-job) {
    display: none !important;
    visibility: hidden !important;
  }

  body.careers #apply-job,
  body.careers #apply-job-card,
  body.careers .form-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  /* When application slip is shown on careers */
  body.careers .has-slip form,
  body.careers .has-slip .card-title,
  body.careers .has-slip .teacher-form-print-header,
  body.careers .has-slip .teacher-print-footer,
  body.careers .has-slip .teacher-success-screen-box {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Teacher Official Printable Slip Styling */
  body.careers .teacher-official-slip,
  body.careers #printableTeacherSlip {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 2px solid #000000 !important;
    padding: 12px 18px !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: Arial, sans-serif !important;
    page-break-after: avoid;
    break-after: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-header-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 2px solid #0D4321 !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  .slip-logo-left img,
  .slip-logo-right img {
    height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .slip-title-center {
    text-align: center !important;
    flex: 1 !important;
    padding: 0 10px !important;
  }

  .slip-title-center h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0D4321 !important;
    margin: 0 0 2px !important;
    letter-spacing: 0.5px !important;
  }

  .slip-title-center .slip-sub {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin-bottom: 2px !important;
  }

  .slip-title-center .slip-badge {
    display: inline-block !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    background: #E8F5E9 !important;
    color: #1B5E20 !important;
    padding: 1px 8px !important;
    border-radius: 4px !important;
    margin-bottom: 3px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-title-center .slip-doc-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    border-top: 1px solid #ddd !important;
    padding-top: 2px !important;
    margin: 0 !important;
  }

  .slip-meta-strip {
    display: flex !important;
    justify-content: space-between !important;
    background: #F1F5F9 !important;
    border: 1.5px solid #CBD5E1 !important;
    padding: 6px 12px !important;
    margin-bottom: 10px !important;
    font-size: 0.85rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-meta-item .meta-label {
    font-weight: 600 !important;
    color: #475569 !important;
    margin-right: 4px !important;
  }

  .slip-meta-item .meta-val {
    font-weight: 800 !important;
    color: #000000 !important;
  }

  .slip-meta-item .tracking-code {
    font-family: monospace !important;
    font-size: 1.05rem !important;
    color: #0D4321 !important;
    background: #E6F4EA !important;
    padding: 2px 6px !important;
    border: 1px solid #22C55E !important;
    border-radius: 3px !important;
  }

  .slip-meta-item .status-badge {
    color: #15803D !important;
  }

  .slip-body-grid {
    display: flex !important;
    gap: 14px !important;
    margin-bottom: 10px !important;
  }

  .slip-details-col {
    flex: 1 !important;
  }

  .slip-photo-col {
    width: 110px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
  }

  .slip-photo-box {
    width: 100px !important;
    height: 125px !important;
    border: 1.5px solid #000000 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important;
  }

  .slip-photo-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .slip-photo-placeholder {
    font-size: 0.72rem !important;
    color: #555 !important;
    padding: 6px !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  .slip-photo-caption {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    color: #333 !important;
  }

  .slip-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.84rem !important;
  }

  .slip-table th,
  .slip-table td {
    padding: 4px 8px !important;
    border: 1px solid #CBD5E1 !important;
    vertical-align: middle !important;
  }

  .slip-table th {
    background: #F8FAFC !important;
    color: #1E293B !important;
    text-align: left !important;
    font-weight: 700 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-table td {
    color: #000000 !important;
  }

  .slip-instructions-box {
    border: 1px solid #94A3B8 !important;
    background: #FAFAFA !important;
    padding: 6px 10px !important;
    margin-bottom: 12px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-instructions-box h4 {
    margin: 0 0 4px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    text-transform: uppercase !important;
  }

  .slip-instructions-box ol {
    margin: 0 !important;
    padding-left: 18px !important;
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
    color: #1E293B !important;
  }

  .slip-instructions-box li {
    margin-bottom: 2px !important;
  }

  .slip-signature-grid {
    display: flex !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }

  .slip-signature-grid .sig-box {
    flex: 1 !important;
  }

  .slip-signature-grid .sig-line {
    border-bottom: 1px dashed #000000 !important;
    height: 25px !important;
    margin-bottom: 4px !important;
  }

  .slip-signature-grid .sig-lbl {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
  }

  .slip-footer-bar {
    border-top: 1px solid #CBD5E1 !important;
    padding-top: 4px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.7rem !important;
    color: #475569 !important;
    text-align: center !important;
  }

  /* Form Print Layout (when printing blank or filled form on careers) */
  body.careers .teacher-form-print-header {
    display: block !important;
    border-bottom: 2px solid #0D4321 !important;
    padding-bottom: 8px !important;
    margin-bottom: 14px !important;
  }

  .tf-print-header-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .tf-logo-left img,
  .tf-logo-right img {
    height: 55px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .tf-print-titles {
    text-align: center !important;
    flex: 1 !important;
    padding: 0 10px !important;
  }

  .tf-print-titles h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0D4321 !important;
    margin: 0 !important;
  }

  .tf-campus {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #333333 !important;
  }

  .tf-pef-tag {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #1B5E20 !important;
  }

  .tf-form-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    border-top: 1px solid #ccc !important;
    margin: 3px 0 1px !important;
    padding-top: 2px !important;
  }

  .tf-session {
    font-size: 0.74rem !important;
    color: #475569 !important;
  }

  body.careers form .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 14px !important;
  }

  body.careers form .field label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 2px !important;
    display: block !important;
  }

  body.careers form .field input,
  body.careers form .field select,
  body.careers form .field textarea {
    border: 1px solid #475569 !important;
    border-radius: 3px !important;
    padding: 5px 8px !important;
    font-size: 0.84rem !important;
    color: #000000 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.careers .teacher-print-footer {
    display: block !important;
    margin-top: 14px !important;
  }

  .tf-undertaking-box {
    border: 1px solid #000000 !important;
    padding: 6px 10px !important;
    background: #fafafa !important;
    margin-bottom: 10px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .tf-undertaking-box h4 {
    margin: 0 0 3px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
  }

  .tf-undertaking-box p {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin: 0 0 10px !important;
    color: #111111 !important;
  }

  .tf-applicant-sig-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 15px !important;
  }

  .tf-sig-item {
    flex: 1 !important;
    text-align: center !important;
  }

  .tf-sig-item .tf-line {
    display: block !important;
    border-bottom: 1px dashed #000000 !important;
    height: 18px !important;
    margin-bottom: 3px !important;
  }

  .tf-sig-item .tf-lbl {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
  }

  .tf-office-use-box {
    border: 1.5px solid #0D4321 !important;
    padding: 6px 10px !important;
  }

  .tf-office-head {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    background: #0D4321 !important;
    color: #ffffff !important;
    padding: 2px 6px !important;
    margin: -6px -10px 6px -10px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .tf-office-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 1fr !important;
    gap: 8px !important;
    font-size: 0.73rem !important;
    line-height: 1.35 !important;
  }

  .tf-office-col {
    border-right: 1px solid #ddd !important;
    padding-right: 6px !important;
  }

  .tf-office-col:last-child {
    border-right: none !important;
  }

  .teacher-official-slip,
  .teacher-form-print-header,
  .teacher-print-footer,
  .tf-undertaking-box,
  .tf-office-use-box,
  .slip-instructions-box,
  .slip-body-grid {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}