/* ================================================================
   MADRASA FATIMAH AL-ZAHRA FOR GIRLS
   Complete Stylesheet — Brand Color System + Splash Intro Loader
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&family=Tajawal:wght@500;700&display=swap');

/* WebFont loading for Regular Jameel Noori variant */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('https://unpkg.com/jameel-noori@1.1.2/fonts/jameel-noori-nastaleeq4.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/jameel-noori@1.1.2/fonts/jameel-noori-nastaleeq4.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
/* ================================================================
   BRAND COLOR VARIABLES
   ================================================================ */
:root {
  --primary:   #025F55;
  --dark:      #014842;
  --xdark:     #013A35;
  --light:     #0A7A6E;
  --accent:    #96BF8A;
  --lt-bg:     #E8EAE5;
  --white:     #FFFFFF;

  --grad-lr:   linear-gradient(to right,  #013A35, #025F55, #0A7A6E);
  --grad-diag: linear-gradient(135deg,    #013A35, #025F55, #0A7A6E);
  --grad-cta:  linear-gradient(135deg, #014842 0%, #025F55 50%, #0A7A6E 100%);

  --text-head: #013A35;
  --text-body: #475569;
  --text-muted:#64748b;

  --navbar-h: 90px;
  --strip-h:   65px;
  --header-h: 155px; /* 125 + 52 combined */
  --r-sm:      8px;
  --r-md:      14px;
  --r-pill:    999px;

  --sh-green: 0 10px 30px rgba(1, 58, 53, 0.25);
  --sh-deep: 0 15px 40px rgba(1, 58, 53, 0.4);
}

.scroll-reveal {
  opacity: 0;
  transform: translateX(20px);
  will-change: opacity, transform; /* Hardware acceleration for 60fps */
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}



/* ================================================================
   RESET & GLOBAL
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  background: var(--white); 
  overflow-x: hidden; 
  color: var(--text-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
}
img   { max-width: 100%; display: block; }
a     { text-decoration: none; }


/* ================================================================
   SPLASH INTRO LOADER
   ================================================================ */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: opacity;
}

/* ── Background Photo ── */
.il-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('hero-bg-start.jpeg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: opacity, transform;
  animation: ilBgBreath 14s ease-in-out infinite alternate;
}
@keyframes ilBgBreath {
  from { transform: scale(1.00); filter: brightness(0.40) saturate(1.10); }
  to   { transform: scale(1.07); filter: brightness(0.50) saturate(1.25); }
}

/* ── Brand Gradient Overlay ── */
.il-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 85% 75% at 50% 45%,
    rgba(10,122,110,0.18)  0%,
    rgba(2, 95, 85, 0.58)  38%,
    rgba(1, 72, 66, 0.78)  65%,
    rgba(1, 58, 53, 0.95) 100%
  );
  will-change: opacity;
}

/* ── Islamic Geometric Pattern ── */
.il-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='rgba(150,191,138,0.08)' stroke-width='1'%3E%3Cpolygon points='50,6 94,28 94,72 50,94 6,72 6,28'/%3E%3Cpolygon points='50,18 82,35 82,65 50,82 18,65 18,35'/%3E%3Ccircle cx='50' cy='50' r='11'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
  pointer-events: none;
}

/* ── Sparkle Particles ── */
.sp {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  will-change: opacity, transform;
}
.sp1 { width:5px; height:5px; top:11%; left:7%;  background:var(--accent); animation:spTwinkle 4.0s 0.0s infinite; }
.sp2 { width:3px; height:3px; top:20%; left:83%; background:var(--light);  animation:spTwinkle 5.1s 1.1s infinite; }
.sp3 { width:4px; height:4px; top:73%; left:17%; background:var(--accent); animation:spTwinkle 3.6s 0.6s infinite; }
.sp4 { width:3px; height:3px; top:83%; left:76%; background:var(--white);  animation:spTwinkle 6.0s 2.2s infinite; }
.sp5 { width:4px; height:4px; top:47%; left:94%; background:var(--accent); animation:spTwinkle 4.5s 0.4s infinite; }
.sp6 { width:2px; height:2px; top:63%; left:3%;  background:var(--light);  animation:spTwinkle 5.4s 1.9s infinite; }
.sp7 { width:3px; height:3px; top:7%;  left:57%; background:var(--accent); animation:spTwinkle 4.2s 0.8s infinite; }
.sp8 { width:4px; height:4px; top:91%; left:41%; background:var(--accent); animation:spTwinkle 3.8s 2.5s infinite; }

@keyframes spTwinkle {
  0%,100% { opacity:0; transform:scale(0.6); }
  50%      { opacity:1; transform:scale(1.5); }
}


/* ================================================================
   FLYING LOGO WRAP  ·  Centered via CSS, flies to navbar via JS
   ================================================================ */
.il-logo-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: ilLogoEntrance 0.9s cubic-bezier(.34,1.56,.64,1) 0.3s forwards;
  will-change: transform, opacity;
}

/* Orbit ring */
.il-orbit {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px dashed rgba(150,191,138,0.40);
  animation: ilOrbitSpin 12s linear infinite;
  pointer-events: none;
}

@keyframes ilOrbitSpin {
  to { transform: rotate(360deg); }
}

/* ================================================================
   INTRO LOGO 3D SPIN STYLES
   ================================================================ */
.il-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: ilInnerSpin 3s linear infinite;
}

@keyframes ilInnerSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.coin-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.coin-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    object-fit: cover;
    border-radius: 50%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.coin-face.back {
    transform: rotateY(180deg);
  }

.il-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(150,191,138,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: ilPulse 2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ilPulse {
  to { transform: scale(1.1); opacity: 0.5; }
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999999 !important;
  background-color: #013A35 !important; background: linear-gradient(135deg, var(--xdark) 0%, var(--primary) 100%); !important;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 8px 0;
}
.navbar.scrolled {
  background-color: #011B18 !important; background: rgba(1, 27, 24, 0.95); !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Target placeholder */
.nav-logo-ph {
    position: relative;
    width: 80px;
      height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
    overflow: hidden; /* Crop watermark */
  background: transparent;
  overflow: visible; /* Allowed for 3D flip */ /* Restored to prevent sweep spill */ /* Restored to prevent sweep spill */
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  opacity: 0; /* hidden until JS handoff */
  transition: opacity 0.25s ease;
  transform-style: preserve-3d;
}

.nav-logo-img.visible {
  opacity: 1;
}

.nav-name {
  opacity: 1;
  transform: none;
  display: flex;
  align-items: center;
  background: transparent;
}





.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 0 20px;
}

.nav-btn {
  background: linear-gradient(135deg, #013A35 0%, #025F55 60%, #0A7A6E 100%);
  color: #ffffff;
  padding: 8px 24px;
  position: relative;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden; /* Restored to prevent sweep spill */
  box-shadow:
    0 2px 10px rgba(1,58,53,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  border: 1px solid rgba(150,191,138,0.20);

  /* Smooth transitions */
  transition:
    transform    0.25s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow   0.25s ease,
    background   0.30s ease;
}

/* Shimmer sweep animation */
.nav-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: btnShimmer 3.5s infinite;
}

/* Stagger shimmer delays per button */
.nav-btn:nth-child(1)::before { animation-delay: 0.0s; }
.nav-btn:nth-child(2)::before { animation-delay: 0.4s; }
.nav-btn:nth-child(3)::before { animation-delay: 0.8s; }
.nav-btn:nth-child(4)::before { animation-delay: 1.2s; }
.nav-btn:nth-child(5)::before { animation-delay: 1.6s; }
.nav-btn:nth-child(6)::before { animation-delay: 2.0s; }
.nav-btn:nth-child(7)::before { animation-delay: 2.4s; }

@keyframes btnShimmer {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  50%  { left: 160%; opacity: 1; }
  55%  { opacity: 0; }
  100% { left: 160%; opacity: 0; }
}

/* Hover state */
.nav-btn:hover {
  background: linear-gradient(135deg, #025F55 0%, #0A7A6E 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 24px rgba(1,58,53,0.60),
    0 0  14px rgba(150,191,138,0.25),
    inset 0 1px 0 rgba(255,255,255,0.20);
}

/* Active / press */
.nav-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(1,58,53,0.40);
}

/* Empty placeholder button */
.nav-btn-empty {
  min-width: 36px;
  background: transparent;
  border: 1.5px dashed rgba(150,191,138,0.35);
  box-shadow: none;
}
.nav-btn-empty::before { display: none; }
.nav-btn-empty:hover {
  background: rgba(150,191,138,0.08);
  border-color: rgba(150,191,138,0.60);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(1,58,53,0.25);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
  }

/* Brand name — opposite side of navbar */
.nav-name {
  opacity: 1;
  transform: none;
  display: flex;
  align-items: center;
  background: transparent;
}

.nav-name-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transform: none;
  transform-origin: center;
  /* Added a beautiful subtle glow/drop-shadow to make the white text pop on the green navbar */
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.4));
}




/* ================================================================
   MAIN CONTENT
   ================================================================ */
/* ── Nav Strip  ·  White bar below navbar ── */
.nav-strip {
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  height: var(--strip-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(1,58,53,0.08);
  z-index: 999998 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  overflow: hidden;
}

.nav-strip.visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

/* ── Main Content ── */
#mainContent { padding-top: var(--header-h); }

/* Ensure clicking navigation links offsets correctly for the fixed header */
section, .sec, [id] {
  scroll-margin-top: calc(var(--header-h) + 60px);
}

/* ── Main Background Wrapper ── */
.group1-bg-wrapper, .group2-bg-wrapper {
  position: relative;
  background-color: transparent; 
}

.group1-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('home-bg.jpg.jpeg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; 
  opacity: 0.15; 
  pointer-events: none;
}

.group2-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('admission-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; 
  opacity: 0.15; 
  pointer-events: none;
}

.hero-sec {
  /* Removed min-height to fix the huge vertical gap on tall mobile screens */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 42px 24px 140px; /* Use padding instead to control spacing */
  position: relative;
  z-index: 1; /* Stay above wrapper background */
}

/* Light overlay so text stays readable */
.hero-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0));
  z-index: 0;
  pointer-events: none;
}

/* Keep content above the bg image */
.hero-inner { position: relative; z-index: 1; }

/* Hero top accent border */
.hero-sec::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-lr);
  z-index: 2;
}

.hero-inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

html[dir="rtl"] .hero-h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1.6;
}

html[dir="rtl"] .about-heading {
  font-size: 3rem;
  line-height: 1.4;
  margin-bottom: -10px; /* Adjust spacing for Nastaleeq */
}

.hero-h1 {
  font-family: 'Playfair Display', serif !important; font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--xdark);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  margin-top: 4px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s forwards;
}

/* Regd. small superscript */
.hero-regd {
  font-size: 0.38em;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: super;
  letter-spacing: 0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hero-p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.80;
  font-weight: 400;
  max-width: 600px;
  margin-top: 4px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  background: var(--grad-cta);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(150,191,138,0.28);
  box-shadow: var(--sh-green);
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #013A35, #014842, #025F55);
  transform: translateY(-3px);
  box-shadow: var(--sh-deep);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #013A35 0%, #025F55 60%, #0A7A6E 100%);
  border: 1px solid rgba(150,191,138,0.20);
  color: var(--white) !important;
  padding: 8px 26px;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--sh-green);
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(1, 58, 53, 0.4);
  background: linear-gradient(135deg, #025F55 0%, #0A7A6E 100%);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 18px;
  background: var(--grad-diag);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-green);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-sec {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 48px 32px;
  position: relative;
  border-radius: 32px;
  width: calc(100% - 32px);
  max-width: 900px;
  margin: -100px auto 60px auto; /* Overlaps the hero background */
  z-index: 10;
  box-shadow:
    0 24px 60px rgba(1,58,53,0.08),
    0 4px 12px rgba(1,58,53,0.04),
    0 0 0 1px rgba(150,191,138,0.2);
  
  /* Entry & Continuous Levitation */
  opacity: 0;
  transform: translateY(40px);
  animation: 
    aboutCardEntrance 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards,
    aboutFloat 6s ease-in-out 1.3s infinite alternate;
  
  /* Smooth transition for hover */
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* The Pattern Overlay */
.about-sec::after,
.profile-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('founderinner-bg-new.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.95; /* Increased opacity to make sides darker and more prominent */
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  
  /* Mask to make the center transparent and edges visible */
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
}

/* Hover Effect — lifts up slightly with a green glow */
.about-sec:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow:
    0 32px 70px rgba(1,58,53,0.12),
    0 8px 24px rgba(1,58,53,0.06),
    0 0 0 1.5px rgba(150,191,138,0.4);
}

@keyframes aboutCardEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aboutFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Subtle top border accent */
.about-sec::before,
.profile-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--grad-lr);
  border-radius: var(--r-pill);
  animation: accentPulse 4s ease-in-out infinite;
  z-index: 5;
}

@keyframes accentPulse {
  0%, 100% { width: 80px; opacity: 0.8; box-shadow: 0 0 0px transparent; }
  50%      { width: 140px; opacity: 1; box-shadow: 0 2px 10px rgba(150,191,138,0.5); }
}

/* White animated line for Department Stacks */
.dept-carousel-card::before,
.wide-dept-stack::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ffffff;
  border-radius: var(--r-pill);
  animation: accentPulseWhite 4s ease-in-out infinite;
  z-index: 5;
}

@keyframes accentPulseWhite {
  0%, 100% { width: 60px; opacity: 0.6; box-shadow: 0 0 0px transparent; }
  50%      { width: 120px; opacity: 1; box-shadow: 0 2px 10px rgba(255,255,255,0.5); }
}

.about-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  position: relative;
  z-index: 1; /* keep above the pattern */
}

.about-heading {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  color: var(--xdark);
  margin-bottom: 0px;
  text-align: center;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}

.about-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text-body);
  line-height: 1.90;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s forwards;
}

.about-text strong {
  color: var(--primary);
  font-weight: 600;
}

/* ================================================================
   ADMISSIONS SECTION
   ================================================================ */
.admissions-sec {
  padding: 100px 5%;
  background: transparent;
  position: relative;
}

.admis-badge {
  display: flex;
  width: max-content;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 5;
}

.admissions-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.admis-card {
  background: var(--white);
  border-radius: 30px;
  padding: 30px 20px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.admis-bg-mask {
  position: absolute;
  inset: 0;
  background-image: url('founderinner-bg-new.jpg');
  background-size: 800px;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.95; 
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  
  /* Mask to make the center transparent and edges visible */
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
}

.admis-icon-wrap,
.admis-title,
.admis-desc,
.admis-btn {
  position: relative;
  z-index: 2;
}

.admis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(1,58,53,0.1);
}

/* The thick green corner brackets */
.admis-card::before,
.admis-card::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2;
}

/* Top Right */
.admis-card::before {
  top: -1px;
  right: -1px;
  border-top: 6px solid var(--primary);
  border-right: 6px solid var(--primary);
  border-top-right-radius: 30px;
}

/* Bottom Left */
.admis-card::after {
  bottom: -1px;
  left: -1px;
  border-bottom: 6px solid var(--primary);
  border-left: 6px solid var(--primary);
  border-bottom-left-radius: 30px;
}

.admis-card:hover::before,
.admis-card:hover::after {
  width: 70px;
  height: 70px;
}

.admis-icon-wrap {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    color: var(--dark);
}

.admis-svg {
  width: 100%;
  height: 100%;
}

.admis-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.2; margin-bottom: 15px; color: var(--xdark); }

.admis-desc { font-size: 1.05rem; color: var(--text-body); line-height: 1.6; margin-bottom: 25px; }

.admis-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #013A35 0%, #025F55 60%, #0A7A6E 100%);
  border: 1px solid rgba(150,191,138,0.20);
  color: var(--white);
  padding: 6px 24px;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  box-shadow: var(--sh-green);
  transition: transform 0.5s cubic-bezier(0.3, 0.8, 0.2, 1), box-shadow 0.3s ease;
  width: auto;
  will-change: transform, box-shadow;
}

/* Shimmer sweep animation for admis buttons */
.admis-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: btnShimmer 3.5s infinite;
}

.admis-card:nth-child(1) .admis-btn::before { animation-delay: 0.0s; }
.admis-card:nth-child(2) .admis-btn::before { animation-delay: 0.4s; }
.admis-card:nth-child(3) .admis-btn::before { animation-delay: 0.8s; }

.admis-btn:hover {
  background: linear-gradient(135deg, #025F55 0%, #0A7A6E 100%) !important;
  transform: translateY(-6px) scale(1.08) !important;
  box-shadow:
    0 12px 28px rgba(1,58,53,0.70),
    0 0  18px rgba(150,191,138,0.40),
    inset 0 1px 0 rgba(255,255,255,0.5) !important;
  z-index: 10;
}

/* More soon */
.more-soon {
  text-align: center;
  padding: 55px 20px;
  background: var(--lt-bg);
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  direction: rtl;
  border-top: 1px solid rgba(2,95,85,0.10);
}


/* ================================================================
   SHARED ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}



/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  /* Removed redundant --navbar-h rule */
  .il-logo-wrap,
  .il-inner { width: 170px; height: 170px; }
}

@media (max-width: 400px) {
  .il-logo-wrap,
  .il-inner { width: 80px;
      height: 80px; }
}

/* ================================================================
   PRINCIPAL & FOUNDER PROFILE
   ================================================================ */
.profile-sec {
  padding: 60px 24px 80px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.profile-inner {
  max-width: 900px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(1,58,53,0.05);
  
  /* Entry & Continuous Levitation */
  opacity: 0;
  transform: translateY(40px);
  animation: 
    aboutCardEntrance 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards,
    aboutFloat 6s ease-in-out 1.5s infinite alternate;
    
  /* Smooth transition for hover */
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* Hover Effect — lifts up slightly with a green glow */
.profile-inner:hover {
  box-shadow:
    0 30px 60px rgba(1,58,53,0.30),
    0 10px 20px rgba(1,58,53,0.20),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.profile-image-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--grad-diag);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(1,58,53,0.15);
  border: 6px solid var(--white);
  outline: 2px dashed rgba(2,95,85,0.3);
  outline-offset: 4px;
  overflow: hidden; /* Ensures image stays circular */
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Just to be safe */
}

.profile-badge {
  background: rgba(2,95,85,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.profile-name {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--xdark);
  margin-bottom: 4px;
}

.profile-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .profile-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

/* ================================================================
   STUDENTS CIRCULAR DASHBOARD (STATS)
   ================================================================ */
.students-wrapper {
  position: relative;
  width: 100%;
  padding: 80px 20px; margin-top: 0;
  z-index: 1;
  background: transparent;
}

.students-wrapper-overlay {
  display: none; /* Hide outer overlay */
}

.students-circ-sec {
  padding: 20px 10px 20px; /* Reduced padding to make it smaller */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, var(--xdark) 0%, var(--primary) 50%, var(--light) 100%); /* Left side dark green gradually becoming light green on the right */
  border-radius: 40px;
  width: calc(100% - 40px); margin: 0 auto;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--sh-deep);
  overflow: hidden; /* Restored to prevent sweep spill */
}

/* Inner Background Pattern with Mask */
.students-circ-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.95; /* Pattern opacity on the edges */
  z-index: 0;
  border-radius: inherit; /* Inherit border-radius to keep corners round without overflow:hidden on parent */
  filter: brightness(0.65); /* Darkens the pattern colors */
  
  /* Mask to hide pattern in the center (transparent) and show only on extreme edges (black) */
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
  pointer-events: none;
}

.students-accent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--white);
  border-radius: var(--r-pill);
  animation: accentPulseWhite 4s ease-in-out infinite;
  z-index: 5;
}

@keyframes accentPulseWhite {
  0%, 100% { width: 80px; opacity: 0.5; box-shadow: 0 0 0px transparent; }
  50%      { width: 140px; opacity: 1; box-shadow: 0 2px 12px rgba(255,255,255,0.7); }
}

.students-badge {
  position: absolute;
  top: -48px; /* Moved slightly higher */
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  background: var(--grad-cta); /* Changed to button gradient */
  color: var(--white); /* White text */
  box-shadow: 0 4px 12px rgba(1, 58, 53, 0.4); /* Added a nice shadow to match buttons */
  z-index: 10;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 8px 24px;
}



/* Hover & Touch (Active) Animations for Desktop & Mobile */
@keyframes stackJumpShake {
  0%   { transform: translateY(0) scale(1); }
  25%  { transform: translateY(-12px) scale(1.05) rotate(-1deg); }
  50%  { transform: translateY(-8px) scale(1.03) rotate(1deg); }
  75%  { transform: translateY(-10px) scale(1.04) rotate(-0.5deg); }
  100% { transform: translateY(-10px) scale(1.03) rotate(0); }
}

@keyframes textWobble {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-4px) rotate(-3deg); }
  40%  { transform: translateX(4px) rotate(3deg); }
  60%  { transform: translateX(-2px) rotate(-1.5deg); }
  80%  { transform: translateX(2px) rotate(1.5deg); }
  100% { transform: translateX(0); }
}

.circ-stat-item:hover,
.circ-stat-item:active {
  background: rgba(255, 255, 255, 0.05); /* Slight highlight on touch/hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.circ-stat-item:hover .circ-number,
.circ-stat-item:active .circ-number,
.circ-stat-item:hover .circ-label,
.circ-stat-item:active .circ-label {
  display: inline-block; /* Ensure transform applies to text */
  color: var(--white); /* Brighten text on hover */
}

.circ-stat-item:hover .circ-icon,
.circ-stat-item:active .circ-icon {
  transform: translate(-50%, -50%) scale(1.15); /* Enlarge icon slightly */
}

.circ-stat-item:hover .circ-progress,
.circ-stat-item:active .circ-progress {
  stroke: var(--white); /* Brighten the circle line */
  opacity: 1;
}

.circ-circle {
  position: relative;
}

/* SVG Wrapper */
.circ-wrap {
  width: 90px;
  height: 90px;
  position: relative;
  margin-bottom: 15px;
}

.circ-svg {
  width: 100%;
  height: 100%;
}

.circ-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.10); /* Reduced from 0.15 */
  stroke-width: 3.5;
  transform: rotate(90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 254.469 339.292; /* Open arc of 270 degrees */
}

.circ-progress {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9); /* Reduced from var(--white) */
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 254.469 339.292; /* 270 degree arc */
  stroke-dashoffset: 254.469;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.3s ease;
}

.circ-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  fill: var(--white); /* Brighter icon default */
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circ-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Transparent PNGs don't need cover */
  display: block;
}

/* Make Other Departments icon bigger to match others */
#circOther .circ-icon img {
  transform: scale(1.4);
}

.circ-val-wrap {
  margin-top: 5px;
  margin-bottom: 5px;
  will-change: transform; /* Hint for browser to prepare for animation */
}

.circ-number {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9); /* Reduced from var(--white) */
  line-height: 1;
  display: inline-block;
  will-change: transform; /* Hint for browser to prepare for animation */
}

.circ-plus {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white); /* Changed to white as requested */
  margin-left: 2px;
}

.circ-label {
  font-family: 'Amiri', serif !important;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  margin-top: 0;
  transition: color 0.3s ease;
}

.circ-subtext { font-size: 1.05rem; line-height: 1.5; margin: 0; opacity: 0.85; max-width: 260px; color: var(--white); }

/* Hover triggers reset from JS, but let's do icon hover */
.circ-stat-item:hover .circ-icon {
  transform: translate(-50%, -50%) scale(1.15);
}

/* ================================================================
   URDU RTL MODE & NASTALEEQ FONT OVERRIDES
   ================================================================ */
html[dir="rtl"] {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif;
}

html[dir="rtl"] body {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif;
  font-size: 1.15rem; /* Nastaleeq requires a slightly larger base size */
}

/* Nastaleeq overrides for all textual elements */
html[dir="rtl"] .hero-h1,
html[dir="rtl"] .about-heading,
html[dir="rtl"] .about-text,
html[dir="rtl"] .profile-name,
html[dir="rtl"] .profile-title,
html[dir="rtl"] .profile-desc,
html[dir="rtl"] .circ-subtext,
html[dir="rtl"] .hero-regd,
html[dir="rtl"] .more-soon,
html[dir="rtl"] .nav-btn,
html[dir="rtl"] .badge,
html[dir="rtl"] .profile-badge,
html[dir="rtl"] .circ-label {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif !important;
}

html[dir="rtl"] .hero-h1 {
  line-height: 1.8; /* Nastaleeq needs more vertical breathing room */
}

html[dir="rtl"] .nav-btn,
html[dir="rtl"] .badge,
html[dir="rtl"] .profile-badge,
html[dir="rtl"] .circ-label {
  font-size: 1.05rem; /* Nastaleeq needs to be larger to be readable inside buttons */
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.2; /* Prevent Nastaleeq from stretching the button height too much */
}

html[dir="rtl"] .nav-btn {
  padding: 2px 24px; line-height: 1; /* Decrease vertical padding and increase horizontal to form a capsule */
}

html[dir="rtl"] .lang-chevron {
  margin-right: 6px;
}

html[dir="rtl"] .admis-title,
html[dir="rtl"] .admis-desc,
html[dir="rtl"] .admis-btn {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif !important;
}

html[dir="rtl"] .admis-btn {
  line-height: 1; /* Tighter line-height to prevent Nastaleeq from making buttons fat */
  padding: 4px 24px; /* Even less padding for Urdu to compensate for font height */
}

html[dir="rtl"] .admis-title { font-size: 1.8rem; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif; }

html[dir="rtl"] .admis-desc { font-size: 1.25rem; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif; }

html[dir="rtl"] .admis-btn {
  font-size: 1.15rem;
  font-weight: normal;
  padding: 8px 24px;
}



  
@media (max-width: 991px) {

  /* Shrink logo and brand name to fit header */
  .nav-logo-ph {
    width: 80px;
    height: 80px;
}
  .nav-name-img {
    height: 55px;
    transform: none;
    transform-origin: right center;
}
  .nav-inner {
    padding: 0 16px; /* Less padding to give more room */
    gap: 8px;
  }

  /* Make the navigation buttons scrollable horizontally */
  .nav-strip {
    justify-content: flex-start;
    padding: 0 12px;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    border-radius: 14px; /* Reduced from 50px so the curve doesn't clip the inner buttons while scrolling */
    padding: 8px 12px;
  }
  .nav-links::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
  }
  
  /* Fix right padding issue on scrollable flex container */
  .nav-links::after {
    content: '';
    min-width: 4px;
  }

  /* Fix the large gap between welcome heading and introduction box */
  .hero-sec {
    min-height: auto;
    padding-bottom: 140px; /* Leave enough room for the negative margin of about-sec */
  }

  
}

/* ================================================================
   DEPARTMENTS SECTION (Horizontal Scroll)
   ================================================================ */
.dept-scroll-sec {
  position: relative;
  padding: 80px 0;
  background: #ffffff;
  overflow: hidden;
}

.dept-sticky-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.5;
  z-index: 1;
}

.dept-header {
  position: relative;
  text-align: center;
  z-index: 10;
  width: 100%;
  margin-bottom: 20px;
}

.dept-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 3rem;
  color: var(--xdark);
  margin-top: 10px;
}

.dept-badge {
  background: rgba(2, 95, 85, 0.1) !important;
  color: var(--primary) !important;
  display: inline-block;
  margin-bottom: 10px;
}

.dept-cards-track {
  display: flex;
  gap: 50px;
  will-change: transform;
  margin-top: 50px;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
  padding-left: 25px; /* Offset the gap */
}

.dept-cards-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.dept-carousel-card {
  width: 300px;
  height: 380px;
  flex-shrink: 0;
  background: linear-gradient(to right, var(--xdark) 0%, var(--primary) 50%, var(--light) 100%);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 30px;
  transform-origin: center center;
  will-change: transform, opacity;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.dept-carousel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  filter: brightness(0.65);
  border-radius: 30px;
  pointer-events: none;
  z-index: 0;
}

.dept-carousel-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  z-index: 1;
}

.dept-carousel-card p {
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  opacity: 0.9;
  line-height: 1.5;
  z-index: 1;
}

@media (max-width: 768px) {
  .dept-scroll-sec { padding: 50px 0; }
  .dept-carousel-card {
    width: 260px;
    height: 320px;
  }
  .dept-cards-track { gap: 30px; margin-top: 30px; padding-left: 15px; }
  .dept-header h2 { font-size: 2rem; }
}
/* ================================================================
   DEPARTMENTS SECTION (Wide Stacks)
   ================================================================ */

.sec-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.sec-title {
  color: var(--primary);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 25px;
}
.wide-dept-sec {
  padding: 40px 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.wide-dept-container {
  position: relative;
  z-index: 1; /* Stay above the mask */
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.wide-dept-stack {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background-color: #013A35 !important; background: linear-gradient(135deg, var(--xdark) 0%, var(--primary) 100%); !important;
  border-radius: 25px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.wide-dept-stack:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(1, 58, 53, 0.2);
}

.wide-dept-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  filter: brightness(0.65);
  border-radius: inherit;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
}

.wide-dept-icon {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    color: var(--accent);
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wide-dept-icon i {
  font-size: 2.5rem;
  color: var(--white);
}

.wide-dept-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.wide-dept-content h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 15px; }

.wide-dept-content p { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; line-height: 1.6; opacity: 0.95; margin: 0; }

/* RTL Support */
html[dir="rtl"] .wide-dept-content h3 { font-size: 1.8rem; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif; }

html[dir="rtl"] .wide-dept-content p { font-size: 1.25rem; line-height: 1.8; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif; }

@media (max-width: 991px) {
  .wide-dept-stack {
    flex-direction: column;
    text-align: center;
    padding: 20px 25px; /* Compact padding for mobile */
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .wide-dept-stack {
    border-radius: 20px;
    padding: 15px 20px;
  }
  .wide-dept-icon {
    width: 80px;
    height: 80px;
  }
  .wide-dept-icon i {
    font-size: 2rem;
  }
  .wide-dept-content h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 15px; }
  html[dir="rtl"] .wide-dept-content h3 { font-size: 1.8rem; font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif; }
}

.dept-btn {
  display: inline-block;
  margin-top: 10px; /* Reduced margin */
  padding: 8px 20px; /* More compact button */
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}
.dept-btn:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
html[dir="rtl"] .dept-btn {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif;
  font-size: 1.1rem;
  padding: 6px 25px;
}





/* =========================================
   GLOBAL HEADING FONT OVERRIDE
   ========================================= */
h1, h2, h3, h4, h5, h6,
.about-heading, .profile-name, .profile-title, .admis-title, .sec-title, .feature-title, .wide-dept-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .hero-h1, html[dir="rtl"] .about-heading, html[dir="rtl"] .profile-name, html[dir="rtl"] .profile-title, html[dir="rtl"] .admis-title, html[dir="rtl"] .sec-title, html[dir="rtl"] .feature-title, html[dir="rtl"] .wide-dept-content h3, html[dir="rtl"] .don-stack-content h3 {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif !important;
}

/* Apply Nastaleeq to ALL text elements in RTL mode, skipping FontAwesome icons */
html[dir="rtl"] *:not(i):not([class*="fa-"]) {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif !important;
}

/* =========================================
   DONATION SECTION
   ========================================= */
.donation-sec {
  padding: 80px 20px;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.donation-sec > .container {
  position: relative;
  z-index: 1;
}

.donation-main-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 40px;
}

.donation-sub-title {
  text-align: center;
  color: var(--primary);
  margin-top: 60px;
  margin-bottom: 40px;
}

/* 8 Categories Grid */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.donation-item {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent;
  overflow: hidden;
  z-index: 1;
}

.donation-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  filter: brightness(0.65);
  border-radius: inherit;
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
  transition: opacity 0.3s ease;
}

.donation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--accent);
}

.don-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(30, 86, 75, 0.1); /* light primary green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  color: var(--primary);
  font-size: 1.3rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.donation-item:hover .don-icon-wrap {
  background: var(--primary);
  color: var(--white);
}

.donation-item h3 {
  font-size: 0.95rem;
  color: var(--xdark);
  margin: 0;
}

/* Payment Cards */
.payment-cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.payment-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px 25px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.payment-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  filter: brightness(0.65);
  border-radius: inherit;
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 65%, black 100%);
}

.payment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1;
}

.bank-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

.bank-logo.easypaisa-logo {
  color: #00A651; /* Official easypaisa green */
}

.bank-details h3 {
  font-size: 1.5rem;
  color: var(--xdark);
  margin-bottom: 10px;
}

.acc-title {
  font-size: 1rem;
  color: #555;
  margin-bottom: 5px;
}

.acc-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.btn-donate {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 0;
  width: 100%;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-donate:hover {
  background: var(--light);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .donation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .payment-cards-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .donation-grid {
    grid-template-columns: 1fr;
  }
  .donation-sec {
    padding: 60px 15px;
  }
}

.don-split-wrap {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.donation-badge {
  display: flex;
  width: max-content;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 5;
}

.don-wide-stack {
  flex: 1;
  background: var(--white);
  border-radius: 30px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.don-wide-stack:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(1,58,53,0.1);
}

.don-bg-mask {
  position: absolute;
  inset: 0;
  background-image: url('founderinner-bg-new.jpg');
  background-size: 800px;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.95;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  /* Pattern on sides, transparent in middle */
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
}

/* Green corner brackets like Admission stack */
.don-wide-stack::before,
.don-wide-stack::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2;
}

/* Top Right */
.don-wide-stack::before {
  top: -1px;
  right: -1px;
  border-top: 6px solid var(--primary);
  border-right: 6px solid var(--primary);
  border-top-right-radius: 30px;
}

/* Bottom Left */
.don-wide-stack::after {
  bottom: -1px;
  left: -1px;
  border-bottom: 6px solid var(--primary);
  border-left: 6px solid var(--primary);
  border-bottom-left-radius: 30px;
}

.don-wide-stack:hover::before,
.don-wide-stack:hover::after {
  width: 45px;
  height: 45px;
}

.don-stack-content {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.don-stack-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.don-stack-content h3 {
  font-size: 1.6rem;
  color: var(--xdark);
  margin-bottom: 15px;
}

.don-stack-content p {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.6;
}

.don-wide-stack.slim-stack {
  padding: 15px 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px; /* Matched to admission corner aesthetic */
  height: 70px;
}

.don-wide-stack.slim-stack h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--xdark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.don-slim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #013A35 0%, #025F55 60%, #0A7A6E 100%);
  border: 1px solid rgba(150,191,138,0.20);
  color: var(--white);
  padding: 8px 26px;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--sh-green);
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 2;
  cursor: pointer;
  white-space: nowrap;
}

.don-slim-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(1, 58, 53, 0.4);
  background: linear-gradient(135deg, #025F55 0%, #0A7A6E 100%);
}

.btn-outline::before,
.don-slim-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: btnShimmer 3.5s infinite;
}

@media (max-width: 768px) {
  .don-split-wrap {
      flex-direction: column;
      padding: 0 20px;
    }
  .don-wide-stack {
    border-radius: 12px;
    padding: 30px 20px;
  }
  .don-wide-stack.slim-stack {
    padding: 15px 20px;
    height: auto;
    border-radius: 12px;
  }
  .don-wide-stack.slim-stack h3 {
    font-size: 1rem;
  }
  .don-slim-btn {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-sec {
  padding: 60px 20px; /* Reduced vertical padding */
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.contact-sec > .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 950px;
  margin: 0 auto;
}

/* Stack styling for columns */
.contact-form-col,
.contact-info-col {
  background: var(--white);
  border-radius: 20px;
  padding: 30px; /* Reduced padding to make stack smaller */
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

/* Green Stack Override */
.contact-green-stack {
  background-color: #013A35 !important; background: linear-gradient(135deg, var(--xdark) 0%, var(--primary) 100%); !important;
  position: relative;
  overflow: hidden;
}

.contact-bg-mask {
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: 800px;
  background-position: center;
  opacity: 0.15; /* Make it dark and subtle */
  pointer-events: none;
  z-index: 1;
  /* Mask to make middle transparent and sides visible */
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 30%, black 100%);
}

.contact-white-bg-mask {
  position: absolute;
  inset: 0;
  background-image: url('founderinner-bg-new.jpg');
  background-size: 800px;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.95; /* Matched admission stack opacity */
  pointer-events: none;
  z-index: 0;
  /* Mask to make middle transparent and sides visible */
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
}

.contact-green-stack .form-group label {
  color: var(--white);
  pointer-events: none;
}

.contact-green-stack .form-group input:not([type="radio"]):not([type="checkbox"]),
.contact-green-stack .form-group textarea {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  position: relative;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.contact-green-stack .form-group input::placeholder,
.contact-green-stack .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.contact-green-stack .form-group input:focus,
.contact-green-stack .form-group textarea:focus {
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.contact-green-stack .btn-submit {
  background: var(--white);
  color: var(--xdark);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.contact-green-stack .btn-submit:hover {
  background: var(--lt-bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Reduced gap */
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--xdark);
  margin-bottom: 8px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea {
  padding: 12px 15px; /* Reduced input padding */
  border: 1px solid #ccc;
  border-radius: 10px; /* Slight pill shape */
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-body);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary); /* Theme primary green */
}

.btn-submit {
  align-self: flex-start;
  background: var(--grad-cta); /* Theme gradient */
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 30px; /* Pill shape button */
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-green);
}

/* Info Column Styles */
.contact-sub {
  color: var(--primary); /* Theme primary green */
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--xdark);
  margin-bottom: 15px;
}

.contact-desc {
  color: var(--text-body);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 25px; /* Reduced margin */
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; /* Reduced gap */
  margin-bottom: 30px;
}

.cd-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.cd-icon {
  color: var(--primary); /* Theme primary green */
  font-size: 1.5rem;
  margin-top: 5px;
}

.cd-text h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--xdark);
  margin-bottom: 5px;
}

.cd-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.social-follow h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--xdark);
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--xdark); /* Theme dark green */
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: linear-gradient(135deg, var(--xdark) 0%, var(--light) 100%);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: linear-gradient(135deg, var(--xdark) 0%, var(--light) 100%); /* Very dark green background */
  color: var(--white);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  width: 1240px;
  max-width: calc(100% - 40px);
  margin: 0 auto 40px auto;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.footer-mask {
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: 800px;
  background-position: center center;
  background-repeat: repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 999;
  padding: 0 50px;
  pointer-events: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-logo img {
  border-radius: 50%; /* This cuts off the corners where the watermark is, without slicing the circular logo */
  margin-bottom: 15px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1rem;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-btn {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 999999 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.footer-btn::before {
  content: '\f101'; /* FontAwesome angle-double-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -20px;
  opacity: 0;
  color: var(--primary);
  font-size: 0.9em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-btn:hover {
  color: #ffffff;
  transform: translateX(20px);
}

.footer-btn:hover::before {
  left: -20px;
  opacity: 1;
}

.footer-btn:active {
  transform: translateX(15px) scale(0.95);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-contact-list li i {
    color: #ffffff; /* Changed from dark green to white for visibility */
    margin-top: 5px;
    font-size: 1.2rem; /* Make them slightly larger so they look better */
}

.footer-bottom {
  background-color: var(--xdark);
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.footer-bottom-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dev-socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.dev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.75rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
}

.dev-btn:hover {
  transform: translateY(-3px);
  color: var(--white);
}

.dev-btn.fb-btn:hover {
  background: #1877F2;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.4);
}

.dev-btn.tw-btn:hover {
  background: #000000;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-logo h2 {
    font-size: 1.5rem;
  }
}

.site-footer {
  background: linear-gradient(135deg, var(--xdark) 0%, var(--light) 100%); /* Very dark green background */
  color: var(--white);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  width: 1240px;
}

.site-footer {
  background: linear-gradient(135deg, var(--xdark) 0%, var(--light) 100%); /* Very dark green background */
  color: var(--white);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.footer-mask {
  position: absolute;
  inset: 0;
  background-image: url('studentsinner-bg.jpg.jpeg');
  background-size: 800px;
  background-position: center center;
  background-repeat: repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 999;
  padding: 0 50px;
  pointer-events: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-logo img {
  border-radius: 50%; /* This cuts off the corners where the watermark is, without slicing the circular logo */
  margin-bottom: 15px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1rem;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-btn {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 999999 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.footer-btn::before {
  content: '\f101'; /* FontAwesome angle-double-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -20px;
  opacity: 0;
  color: var(--primary);
  font-size: 0.9em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-btn:hover {
  color: #ffffff;
  transform: translateX(20px);
}

.footer-btn:hover::before {
  left: -20px;
  opacity: 1;
}

.footer-btn:active {
  transform: translateX(15px) scale(0.95);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-contact-list li i {
    color: #ffffff; /* Changed from dark green to white for visibility */
    margin-top: 5px;
    font-size: 1.2rem; /* Make them slightly larger so they look better */
}

.footer-bottom {
  background-color: var(--xdark);
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-logo h2 {
    text-align: center;
  }
  .footer-desc {
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-heading {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-contact-list li {
    justify-content: center;
    text-align: center;
  }
}



/* 1. Show the loader normally at start */
.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    pointer-events: auto;
    /* Run a built-in CSS fade-out after 3.5 seconds */
    animation: hideLoaderAfterIntro 0.5s ease forward;
    animation-delay: 3.5s; /* Adjust this delay to match your intro duration */
    animation-fill-mode: forwards;
}

/* 2. Automatically vanish and unlock the screen after 3.5s */
@keyframes hideLoaderAfterIntro {
    0% {
        opacity: 1;
        pointer-events: auto;
    }
    99% {
        opacity: 0;
        pointer-events: auto;
    }
    100% {
        opacity: 0;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* 3. Keep interactive sections safe */
footer, .contact-sec, .nav-strip {
    position: relative;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-btn {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 999999 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.footer-btn::before {
  content: '\f101'; /* FontAwesome angle-double-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -20px;
  opacity: 0;
  color: var(--primary);
  font-size: 0.9em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-btn:hover {
  color: #ffffff;
  transform: translateX(20px);
}

.footer-btn:hover::before {
  left: -20px;
  opacity: 1;
}

.footer-btn:active {
  transform: translateX(15px) scale(0.95);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-contact-list li i {
    color: #ffffff; /* Changed from dark green to white for visibility */
    margin-top: 5px;
    font-size: 1.2rem; /* Make them slightly larger so they look better */
}

.footer-bottom {
  background-color: var(--xdark);
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-logo h2 {
    text-align: center;
  }
  .footer-desc {
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-heading {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-contact-list li {
    justify-content: center;
    text-align: center;
  }
}



/* 1. Show the loader normally at start */
.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    pointer-events: auto;
    /* Run a built-in CSS fade-out after 3.5 seconds */
    animation: hideLoaderAfterIntro 0.5s ease forward;
    animation-delay: 3.5s; /* Adjust this delay to match your intro duration */
    animation-fill-mode: forwards;
}

/* 2. Automatically vanish and unlock the screen after 3.5s */
@keyframes hideLoaderAfterIntro {
    0% {
        opacity: 1;
        pointer-events: auto;
    }
    99% {
        opacity: 0;
        pointer-events: auto;
    }
    100% {
        opacity: 0;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* 3. Keep interactive sections safe */
footer, .contact-sec, .nav-strip {
    position: relative;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* ================================================================
   UNIVERSAL STACK HOVER SHADOW
   ================================================================ */
.admis-card,
.profile-inner,
.wide-dept-stack,
.dept-carousel-card,
.don-stack,
.don-wide-stack,
.contact-info-col,
.contact-form-col,
.circ-stat-item,
.hero-stack {
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out !important;
}

.admis-card:hover,
.profile-inner:hover,
.wide-dept-stack:hover,
.dept-carousel-card:hover,
.don-stack:hover,
.don-wide-stack:hover,
.contact-info-col:hover,
.contact-form-col:hover,
.circ-stat-item:hover,
.hero-stack:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

@media (max-width: 768px) { .footer-col.about-col .footer-logo img { margin: 0 auto 15px auto !important; } }


@media (max-width: 768px) { .about-heading { font-size: 1.8rem !important; text-align: center !important; } }

/* =========================================
   ADMISSION FORM MODAL
   ========================================= */
.admission-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 27, 24, 0.85); /* Dark teal transparent */
  z-index: 999999;
  display: none; /* Changed from flex to completely remove it from render tree */
  justify-content: center;
  align-items: flex-start; /* For scrolling if needed */
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.admission-modal-overlay.active {
  display: flex; /* Added so it flexes when active */
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admission-modal-container {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: auto;
}

.admission-modal-overlay.active .admission-modal-container {
  transform: translateY(0) scale(1);
}

.admis-modal-close {
  position: absolute;
  top: 20px;
  right: 20px; /* LTR */
  width: 40px;
  height: 40px;
  background: rgba(2, 95, 85, 0.1);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
html[dir="rtl"] .admis-modal-close {
  right: auto;
  left: 20px;
}
.admis-modal-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.admis-modal-header {
  padding: 40px 40px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.step-title {
  color: var(--text-body);
  font-weight: 600;
  font-size: 1.1rem;
}

.admis-modal-body {
  padding: 40px;
}

.form-section {
  margin-bottom: 40px;
  animation: fadeIn 0.4s ease;
}

.section-heading {
  font-family: 'Inter', 'Amiri', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(2, 95, 85, 0.06);
  border: 1px solid rgba(2, 95, 85, 0.15);
  margin-bottom: 25px;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}
html[dir="rtl"] .section-heading {
  font-family: 'Jameel Noori Nastaleeq', 'Amiri', serif;
  font-size: 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-group.full-width, .form-grid.full-width {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
html[dir="rtl"] .form-group {
  text-align: right;
}
.form-group label {
  font-weight: 600;
  color: var(--xdark);
  font-size: 0.9rem;
}
html[dir="rtl"] .form-group label {
  font-family: 'Jameel Noori Nastaleeq', serif;
  font-size: 1.3rem;
  font-weight: normal;
}

.form-group input:not([type="radio"]):not([type="checkbox"]), 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--xdark);
  background: #fafafa;
  transition: all 0.3s ease;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 95, 85, 0.1);
}

.admis-note {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-style: italic;
  text-align: left;
}
html[dir="rtl"] .admis-note {
  text-align: right;
  font-family: 'Jameel Noori Nastaleeq', serif;
  font-size: 1.1rem;
}

.radio-options {
  display: flex;
  gap: 30px;
  margin-top: 5px;
}
.radio-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}

.declaration-card {
  background: rgba(2, 95, 85, 0.03);
  border: 1px solid rgba(2, 95, 85, 0.1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  text-align: left;
}
html[dir="rtl"] .declaration-card {
  text-align: right;
}
.declaration-card h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}
html[dir="rtl"] .declaration-card h4 {
  font-family: 'Jameel Noori Nastaleeq', serif;
  font-size: 1.6rem;
}
.dec-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 20px;
}
html[dir="rtl"] .dec-text {
  font-family: 'Jameel Noori Nastaleeq', serif;
  font-size: 1.35rem;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  font-weight: 600;
  color: var(--xdark);
}
html[dir="rtl"] .custom-checkbox {
  padding-left: 0;
  padding-right: 35px;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #eee;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
html[dir="rtl"] .checkmark {
  left: auto;
  right: 0;
}
.custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}
.custom-checkbox input:checked ~ .checkmark {
  background: linear-gradient(135deg, var(--xdark) 0%, var(--light) 100%);
  box-shadow: 0 4px 10px rgba(2, 95, 85, 0.3);
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.admis-modal-footer {
  padding: 20px 40px 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
html[dir="rtl"] .admis-modal-footer {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

.form-btn {
  background: linear-gradient(135deg, #013A35 0%, #025F55 60%, #0A7A6E 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(2, 95, 85, 0.3);
}
.form-btn.outline-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.form-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(2, 95, 85, 0.4);
}
.form-btn.outline-btn:hover {
  background: rgba(2, 95, 85, 0.05);
}
html[dir="rtl"] .form-btn {
  font-family: 'Jameel Noori Nastaleeq', serif;
  font-size: 1.3rem;
  font-weight: normal;
  padding: 6px 30px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admis-modal-body, .admis-modal-header, .admis-modal-footer {
    padding: 20px;
  }
}

.print-office-use {
  display: none;
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  /* 1. Hide everything on the page explicitly */
  .intro-loader,
  header,
  .navbar,
  .hero-sec,
  .about-sec,
  .profile-sec,
  .students-wrapper,
  .group2-bg-wrapper,
  .wide-dept-sec,
  .donation-sec,
  .contact-sec,
  footer,
  .site-footer,
  .admis-badge,
  .admissions-grid,
  #closeAdmisBtn,
  #submitBtnContainer,
  .dev-btn,
  .floating-buttons {
    display: none !important;
  }

  /* 2. Reset Body */
  body, html, main, #mainContent, .group1-bg-wrapper, #admissions {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* 3. Force form wrapper to show */
  #admission-form-wrapper {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  
  /* 4. Formatting inside form */
  .form-section {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  
  .form-group input:not([type="radio"]):not([type="checkbox"]), .form-group textarea, .form-group select {
    border: none !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 5px 0 !important;
    background: transparent !important;
  }
  
  /* 5. Office Use Only Section */
  .print-office-use {
    display: block !important;
    visibility: visible !important;
    page-break-before: always;
    margin-top: 50px !important;
  }
}



/* Extra Mobile Fixes for Footer */
@media (max-width: 768px) {
  .site-footer {
    padding-top: 50px !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 auto 20px auto !important;
    border-radius: 25px !important;
  }
  .footer-container {
    padding: 0 20px !important;
  }
  .footer-contact-list li span {
    font-size: 0.95rem !important; /* Keep size readable without cutting off */
    word-break: break-word;
  }
  .footer-contact-list li {
    align-items: flex-start !important; /* Prevents awkward icon squishing */
  }
  .footer-contact-list li i {
    margin-top: 5px;
  }
}

/* Department Stacks Mobile Margin Fix */
@media (max-width: 768px) {
  .wide-dept-container {
    padding: 0 20px !important; /* Forces 20px gap on left and right */
  }
  .wide-dept-stack {
    width: 100% !important; /* ensures it respects container padding */
  }
}


/* =========================================
   CRITICAL MOBILE LAYOUT FIXES
   ========================================= */

/* 1. Prevent Horizontal Scrolling on the Entire Page */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100%;
}

@media (max-width: 768px) {
  /* 2. Fix Header Name Cutoff on Mobile */
  .nav-name-img {
      height: 55px !important;
      transform: scale(1.1) !important;
      object-fit: contain;
    }
  
  .nav-logo-ph {
      width: 75px !important;
      height: 75px !important;
    }
  .nav-inner {
    padding: 0 10px !important; /* Reduce horizontal padding to maximize usable space */
    gap: 4px !important;
  }
  
  /* 3. Fix Admission Form Modal Sizing on Mobile */
  .admission-modal-overlay {
    padding: 15px 10px !important; /* Minimize outer padding */
    align-items: flex-start !important;
  }
  .admission-modal-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
  /* Ensure form inputs don't stretch the container */
  .admis-modal-body input,
  .admis-modal-body select,
  .admis-modal-body textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Intro Loader Z-Index Fix */
.il-logo-wrap {
  z-index: 100001 !important; /* Ensure it stays above the loader background */
  animation: ilLogoEntrance 0.9s cubic-bezier(.34,1.56,.64,1) 0.3s forwards;
}








@media (max-width: 992px) {
  
  .circ-stat-item {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
  .students-circ-sec {
    padding: 30px 15px !important;
    width: calc(100% - 30px) !important;
  }
}

/* ================================================================
   FORCE HORIZONTAL STACKS (EVEN ON MOBILE)
   ================================================================ */
.students-circ-dashboard {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

@media (max-width: 992px) {
    .students-circ-dashboard {
        justify-content: flex-start !important;
        overflow-x: auto !important; /* Enable horizontal scrolling */
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px !important; /* Space for scrollbar */
        padding-top: 10px !important;
        scroll-snap-type: x mandatory;
    }
    
    /* Make sure cards don't shrink too much */
    .circ-stat-item {
        flex: 0 0 auto !important;
        width: 260px !important;
        scroll-snap-align: center;
    }
    
    /* Hide scrollbar for a cleaner look */
    .students-circ-dashboard::-webkit-scrollbar {
        display: none;
    }
    .students-circ-dashboard {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* ================================================================
   DYNAMIC INTERACTIVE DASHBOARD ANIMATION
   ================================================================ */
.circ-stat-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent;
    padding: 10px !important;
    position: relative;
    overflow: hidden; /* For sweeping ring bounds inside the card */
}

/* Transform into stack-like card on hover */
.circ-stat-item.active-card, /* JS class for programmatic activation */
.circ-stat-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 35px 20px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(-8px) !important;
    z-index: 20;
}

/* Ensure progress ring brightens on hover */
.circ-stat-item:hover .circ-progress {
    stroke: var(--white) !important;
    opacity: 1 !important;
}

/* Global Sweep Ring (Animates across the whole dashboard) */
.global-sweep-ring {
    position: absolute;
    top: 50%;
    left: -100px; /* Start off-screen left */
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0; /* Behind the stacks */
    opacity: 0;
}

.global-sweep-ring.animate {
    animation: globalSweep 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes globalSweep {
    0% { left: -200px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: calc(100% + 200px); opacity: 0; }
}

/* Card Sweep Ring (Animates across specific card on hover) */
.card-sweep-ring {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1; /* Below the text and SVG, but above card bg */
    opacity: 0;
}

.card-sweep-ring.animate {
    animation: cardSweep 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes cardSweep {
    0% { left: -150%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

/* ================================================================
   STACK SIZING & CENTERING FIXES
   ================================================================ */
/* Ensure the stat items are perfectly centered vertically and horizontally */
.circ-stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 220px; /* Keep a consistent height so they don't jump */
}

/* On hover, maintain centering */
.circ-stat-item:hover {
    padding: 20px 10px !important; /* Reduced hover padding to keep it compact */
}

/* Adjust the SVG wrapper margins to be perfectly balanced */
.circ-wrap {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Adjust number wrapper margins */
.circ-val-wrap {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* Adjust heading label margin */
.circ-label {
    margin-bottom: 5px !important;
}

/* On mobile, keep it tight */
@media (max-width: 992px) {
    .students-circ-sec {
        padding: 15px 10px !important;
    }
    .circ-stat-item {
        min-height: 200px;
        padding: 15px 10px !important;
    }
}

/* ================================================================
   PROMINENT STUDENTS HEADING BADGE
   ================================================================ */
.students-badge {
    position: absolute !important;
    top: -25px !important; /* Sit exactly on the top border */
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 12px 35px !important;
    background: #ffffff !important;
    color: var(--primary) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 25px rgba(1, 58, 53, 0.2) !important;
    z-index: 20 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

/* Ensure Urdu font size is also prominent */
html[dir="rtl"] .students-badge {
    font-size: 1.5rem !important;
    letter-spacing: 0 !important;
    padding: 8px 35px !important;
}

/* ================================================================
   GLOBAL STACK OVERFLOW FIX FOR SWEEP RINGS
   ================================================================ */
.admis-card,
.wide-dept-stack,
.don-wide-stack,
.contact-green-stack,
.about-sec,
.profile-inner {
    position: relative;
    overflow: hidden !important; /* Contains the sweep ring */
}

/* Make sure the card sweep ring shows up brightly on all backgrounds */
.card-sweep-ring {
    z-index: 5 !important; /* Above the background color but below content */
}
/* Ensure content stays above the sweep ring */
.admis-card > *:not(.card-sweep-ring):not(.admis-bg-mask),
.wide-dept-stack > *:not(.card-sweep-ring),
.don-wide-stack > *:not(.card-sweep-ring),
.contact-green-stack > *:not(.card-sweep-ring),
.about-sec > *:not(.card-sweep-ring):not(::after):not(::before),
.profile-inner > *:not(.card-sweep-ring):not(::after):not(::before) {
    position: relative;
    z-index: 10;
}

/* ================================================================
   REGISTERED TEXT (Next to Logo)
   ================================================================ */
.reg-badge {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Amiri', serif !important;
    font-size: 0.85rem !important; /* Made much smaller as requested */
    color: rgba(255, 255, 255, 0.9) !important;
    margin-right: 55px !important; /* Slightly more gap to ensure no overlap */
    background: transparent !important; /* NO BUTTON BACKGROUND */
    padding: 0 !important; /* NO BUTTON PADDING */
    border: none !important;
    box-shadow: none !important;
    white-space: nowrap;
}

@media (max-width: 1024px) {
  .reg-badge { margin-right: 10px !important; }
}
@media (max-width: 768px) {
  .reg-badge { margin-right: 20px !important; }
}

/* Toggle Switch Styles */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.toggle-switch input {
  display: none;
}

.toggle-switch .slider {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  background-color: #fff;
  border-radius: 34px;
  border: 2px solid #aaa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #777;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .slider {
  background-color: #025F55;
  border-color: #025F55;
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
  background-color: white;
}

.toggle-switch .toggle-text {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}


body.modal-open-ios { overflow: hidden; touch-action: none; overscroll-behavior: none; }
/* ================================================================
   RTL OVERRIDES FOR MODALS
   ================================================================ */
html[dir="rtl"] .text-modal-container {
  direction: rtl;
  text-align: right !important;
}
html[dir="rtl"] .text-modal-container * {
  text-align: right !important;
}
html[dir="rtl"] .text-modal-container ul {
  padding-right: 25px !important;
  padding-left: 0 !important;
}
html[dir="rtl"] .text-modal-container .form-watermark {
  /* Prevent the watermark from being affected by text-align */
  text-align: center !important;
}

/* Also ensure the admission form aligns properly */
html[dir="rtl"] #admission-form-wrapper .admis-modal-body,
html[dir="rtl"] #admission-form-wrapper .form-section {
  direction: rtl;
  text-align: right !important;
}
html[dir="rtl"] #admission-form-wrapper input,
html[dir="rtl"] #admission-form-wrapper select {
  direction: rtl;
  text-align: right !important;
}
html[dir="rtl"] #admission-form-wrapper .custom-checkbox {
  flex-direction: row;
}



/* ================================================================
   MOBILE RESPONSIVE OVERRIDES (BUG FIXES)
   ================================================================ */
@media (max-width: 768px) {
  /* 1. Fix Mobile Header (Text Overflow & Half-Cutting Bug) */
  .navbar, .nav-inner {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }
  
  .nav-name {
    max-width: calc(100vw - 110px) !important; /* Safe width keeping logo space */
    white-space: nowrap !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  
  .nav-name-img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 50px !important; /* Scale down dynamically */
    transform: none !important; /* Remove scale to prevent cutting out */
    object-fit: contain !important;
  }

  /* 2. Fix Mobile Stack Blinking Bug (Hardware Acceleration) */
  .circ-stat-item, .wide-dept-stack, .don-wide-stack, .admis-card, .contact-green-stack, .profile-inner {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  /* Stabilize Hover/Transition blinking without causing shake */
  .circ-stat-item:hover, .wide-dept-stack:hover, .don-wide-stack:hover, .admis-card:hover, .contact-green-stack:hover, .profile-inner:hover {
    -webkit-transform: translate3d(0, -5px, 0) !important;
    transform: translate3d(0, -5px, 0) !important;
  }

  /* 3. Horizontal to Vertical Stack Layout */
  .wide-dept-stack, .don-wide-stack.slim-stack, .don-wide-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 15px !important;
  }
  
  /* Reset margins for clean vertical spacing */
  .wide-dept-icon, .don-stack-icon, .don-icon-wrap {
    margin: 0 auto 10px auto !important;
  }
}


@media (max-width: 768px) {
  /* Fix Dashboard stacks showing only 1 horizontally */
  .students-circ-dashboard {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: visible !important;
    gap: 25px !important;
    padding-bottom: 0 !important;
  }
  
  .circ-stat-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    /* Make them look like active cards on mobile permanently so they stand out */
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 35px 20px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  }
  
  .circ-stat-item .circ-progress {
      stroke: var(--white) !important;
      opacity: 1 !important;
  }
}


@media (max-width: 768px) {
  /* Fix nav-links overflow cutoff due to center justification */
  .nav-links {
    justify-content: flex-start !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


/* Fix plus sign position in RTL mode for dashboard numbers */
html[dir="rtl"] .circ-val-wrap {
    direction: ltr !important;
    display: inline-block !important;
}


/* Force LTR and English font for specific numbers in RTL mode */
html[dir="rtl"] .en-num {
    font-family: 'Inter', sans-serif !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
}


/* ================================================================
   POPUP/MODAL GAP FIX
   ================================================================ */
.admission-modal-overlay,
.text-modal-overlay {
    padding-top: 130px !important; /* Ensure gap from desktop header */
    padding-bottom: 40px !important;
}

@media (max-width: 768px) {
    .admission-modal-overlay,
    .text-modal-overlay {
        padding-top: 110px !important; /* Ensure gap from mobile header */
        padding-bottom: 20px !important;
    }
}

/* ================================================================
   FIX POPUP CONTAINER OVERFLOW BUG
   ================================================================ */
.admission-modal-container,
.text-modal-container {
    margin: 0 auto !important; /* Stop vertical auto margin from pushing top out of bounds */
}
