/* ================================================================
   Madarsa Sulaimania Welfare Society — Premium Design System
   ================================================================ */

/* ── Google Fonts are loaded via <head> ── */

/* ── CSS Custom Properties (Tokens) ────────────────────────── */
:root {
  /* Color Palette */
  --clr-pearl: #FCFAF7;
  --clr-ivory: #F7F2EB;
  --clr-emerald: #1F6B5C;
  --clr-emerald-dk: #174f45;
  --clr-emerald-deep: #0f3d33;
  --clr-teal: #4E8B7A;
  --clr-gold: #D4B483;
  --clr-gold-dk: #b8965c;
  --clr-gold-lt: #e8d5b0;
  --clr-heading: #1A1A1A;
  --clr-body: #555555;
  --clr-muted: #888888;
  --clr-white: #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Poppins', sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --font-arabic: 'Amiri', 'Scheherazade New', serif;

  /* Spacing */
  --section-py: 100px;
  --section-py-sm: 60px;

  /* Shadows */
  --shadow-soft: 0 4px 24px rgba(31, 107, 92, 0.08);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 4px 24px rgba(212, 180, 131, 0.25);
  --shadow-hover: 0 16px 48px rgba(31, 107, 92, 0.18);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--clr-body);
  background-color: var(--clr-pearl);
  line-height: 1.75;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--clr-emerald);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--clr-gold-dk);
}

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

::selection {
  background: var(--clr-gold);
  color: var(--clr-emerald-deep);
}

/* ── Urdu / Arabic Text Helpers ─────────────────────────────── */
.urdu-text,
.lang-ur {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 2.2;
}

.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  line-height: 2;
}

/* ── Section Utilities ──────────────────────────────────────── */
.section-padding {
  padding-block: var(--section-py);
}

.section-padding-sm {
  padding-block: var(--section-py-sm);
}

.bg-pearl {
  background-color: var(--clr-pearl);
}

.bg-ivory {
  background-color: var(--clr-ivory);
}

.bg-emerald {
  background-color: var(--clr-emerald);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--clr-gold);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-heading);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-heading-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--clr-emerald);
  direction: rtl;
  line-height: 2;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 560px;
}

/* Gold Divider */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-lt));
  border-radius: 2px;
  margin-block: 1rem;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar-custom {
  background: rgba(252, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 180, 131, 0.15);
  padding-block: 14px;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  padding-block: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Brand */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand-urdu {
  font-family: var(--font-urdu);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-emerald);
  direction: rtl;
}

.brand-en {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold-dk);
}

/* Nav Links */
.navbar-custom .nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clr-heading);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--clr-gold);
  border-radius: 1px;
  transition: var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--clr-emerald);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  left: 14px;
  right: 14px;
}

/* WhatsApp Nav Button */
.btn-whatsapp-nav {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
}

.btn-whatsapp-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  color: #fff !important;
}

/* Hamburger */
.navbar-toggler {
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
}

.toggler-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-emerald);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-pearl) 0%, #f0eade 50%, #e8f5f2 100%);
}

/* Islamic pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231F6B5C' fill-opacity='0.04'%3E%3Cpath d='M30 0 L36 12 L48 12 L38 20 L42 32 L30 24 L18 32 L22 20 L12 12 L24 12Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

/* Floating geometric shapes */
.hero-geo {
  position: absolute;
  pointer-events: none;
}

.hero-geo-1 {
  top: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(212, 180, 131, 0.25);
  border-radius: 50%;
  animation: floatGeo 6s ease-in-out infinite;
}

.hero-geo-2 {
  bottom: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(31, 107, 92, 0.15);
  transform: rotate(45deg);
  animation: floatGeo 8s ease-in-out infinite reverse;
}

.hero-geo-3 {
  top: 50%;
  right: 3%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 180, 131, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes floatGeo {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Particle Canvas */
#heroCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: clamp(1rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold-dk);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.hero-eyebrow .line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--clr-gold);
}

.hero-headline-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-emerald);
  direction: rtl;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(31, 107, 92, 0.1);
}

.hero-name-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: var(--clr-heading);
  direction: rtl;
  line-height: 2;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2.5rem;
  justify-content: flex-end;
  text-align: right;
}

.hero-meta-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 180, 131, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.hero-meta-value {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-emerald);
  direction: rtl;
  line-height: 2;
}

/* Hero CTA Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--clr-emerald), var(--clr-teal));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-emerald));
  opacity: 0;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(31, 107, 92, 0.35);
}

.btn-primary-custom:hover::before {
  opacity: 1;
}

.btn-primary-custom span {
  position: relative;
  z-index: 1;
}

.btn-gold-custom {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dk));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold-custom:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-custom {
  background: transparent;
  color: var(--clr-emerald);
  border: 1.5px solid var(--clr-emerald);
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background: var(--clr-emerald);
  color: #fff;
  transform: translateY(-3px);
}

/* Hero Right – Image Showcase */
.hero-image-showcase {
  position: relative;
}

.hero-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 2;
}

.hero-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-img-main:hover img {
  transform: scale(1.03);
}

.hero-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 180, 131, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  min-width: 160px;
}

.hero-img-badge .badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-emerald);
  line-height: 1;
}

.hero-img-badge .badge-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
}

.hero-deco-circle {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(212, 180, 131, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco-circle-2 {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(212, 180, 131, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

/* ── ABOUT SECTION ──────────────────────────────────────────── */
.about-section {
  background: var(--clr-ivory);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31, 107, 92, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-timeline {
  position: relative;
  padding-left: 2rem;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-gold), var(--clr-emerald), var(--clr-gold));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.38rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-gold);
  border: 3px solid var(--clr-pearl);
  box-shadow: 0 0 0 3px var(--clr-gold-lt);
}

.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--clr-gold-dk);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-event {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--clr-muted);
}

/* Founder / Nazim Cards */
.leader-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(212, 180, 131, 0.2);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.leader-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-emerald), var(--clr-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #fff;
}

.leader-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold-dk);
  margin-bottom: 0.5rem;
}

.leader-name {
  font-family: var(--font-urdu);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-emerald);
  direction: rtl;
  line-height: 2;
}

.leader-name-en {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--clr-heading);
  margin-top: -4px;
}

/* ── PROGRAMS SECTION ───────────────────────────────────────── */
.programs-section {
  background: var(--clr-pearl);
}

.program-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(212, 180, 131, 0.15);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-emerald));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(212, 180, 131, 0.2);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
}

.program-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(31, 107, 92, 0.1), rgba(78, 139, 122, 0.1));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--clr-emerald);
  margin-bottom: 1rem;
}

.program-title-urdu {
  font-family: var(--font-urdu);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-emerald);
  direction: rtl;
  line-height: 2;
  margin-bottom: 0.25rem;
}

.program-title-en {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.program-desc {
  font-size: 0.88rem;
  color: var(--clr-body);
}

.program-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212, 180, 131, 0.15), rgba(212, 180, 131, 0.08));
  border: 1px solid rgba(212, 180, 131, 0.3);
  color: var(--clr-gold-dk);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 1rem;
}

/* ── MISSION SECTION ────────────────────────────────────────── */
.mission-section {
  background: linear-gradient(135deg, var(--clr-emerald-deep) 0%, var(--clr-emerald) 100%);
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M40 10L46 28L64 28L50 39L56 57L40 46L24 57L30 39L16 28L34 28Z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
  pointer-events: none;
}

.mission-item {
  display: flex;
  gap: 20px;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.mission-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(212, 180, 131, 0.15);
  border: 1px solid rgba(212, 180, 131, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--clr-gold);
  flex-shrink: 0;
}

.mission-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.mission-item-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.mission-quote {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--clr-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin-top: 2rem;
}

.mission-quote-text {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: var(--clr-gold-lt);
  direction: rtl;
  line-height: 2.2;
  margin-bottom: 0.5rem;
}

.mission-quote-translation {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* ── GALLERY SECTION ────────────────────────────────────────── */
.gallery-section {
  background: var(--clr-ivory);
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: #fff;
  border: 1.5px solid rgba(212, 180, 131, 0.3);
  color: var(--clr-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.gallery-masonry {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 61, 51, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    columns: 1;
  }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* ── ACHIEVEMENTS / COUNTERS ────────────────────────────────── */
.achievements-section {
  background: var(--clr-pearl);
  position: relative;
  overflow: hidden;
}

.achievements-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 180, 131, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.counter-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 180, 131, 0.2);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.counter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 107, 92, 0.02), rgba(212, 180, 131, 0.05));
  opacity: 0;
  transition: var(--transition);
}

.counter-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.counter-card:hover::before {
  opacity: 1;
}

.counter-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-emerald), var(--clr-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 107, 92, 0.25);
}

.counter-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--clr-emerald);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-num .suffix {
  font-size: 1.6rem;
  color: var(--clr-gold-dk);
}

.counter-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* ── NAZIM MESSAGE ──────────────────────────────────────────── */
.nazim-section {
  background: var(--clr-ivory);
}

.nazim-quote-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid rgba(212, 180, 131, 0.2);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.nazim-quote-card::before {
  content: '❝';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 8rem;
  color: rgba(212, 180, 131, 0.1);
  font-family: var(--font-display);
  line-height: 1;
  pointer-events: none;
}

.nazim-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-emerald), var(--clr-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(31, 107, 92, 0.25);
}

.nazim-message {
  font-family: var(--font-urdu);
  font-size: 1.1rem;
  color: var(--clr-body);
  direction: rtl;
  text-align: right;
  line-height: 2.5;
  margin-bottom: 1.5rem;
}

.nazim-name {
  font-family: var(--font-urdu);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-emerald);
  direction: rtl;
  text-align: right;
  line-height: 2;
}

.nazim-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--clr-gold-dk);
  text-transform: uppercase;
  text-align: right;
  direction: rtl;
}

/* ── WHY CHOOSE US ──────────────────────────────────────────── */
.why-section {
  background: var(--clr-pearl);
}

.feature-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(212, 180, 131, 0.15);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(31, 107, 92, 0.1), rgba(78, 139, 122, 0.08));
  border: 1px solid rgba(31, 107, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--clr-emerald);
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--clr-body);
  line-height: 1.6;
}

/* ── LOCATION SECTION ───────────────────────────────────────── */
.location-section {
  background: var(--clr-ivory);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(212, 180, 131, 0.2);
}

.map-wrapper iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}

.location-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(212, 180, 131, 0.2);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.location-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--clr-emerald), var(--clr-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.location-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 4px;
}

.location-card-text {
  font-size: 0.88rem;
  color: var(--clr-body);
}

.location-card-text a {
  color: var(--clr-emerald);
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact-section {
  background: var(--clr-pearl);
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid rgba(212, 180, 131, 0.2);
  box-shadow: var(--shadow-card);
}

.form-label-custom {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 8px;
}

.form-control-custom {
  width: 100%;
  padding: 14px 18px;
  background: var(--clr-pearl);
  border: 1.5px solid rgba(212, 180, 131, 0.25);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--clr-heading);
  transition: var(--transition-fast);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--clr-emerald);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 107, 92, 0.08);
}

.form-control-custom::placeholder {
  color: var(--clr-muted);
}

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

.form-alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.form-alert-success {
  background: rgba(31, 107, 92, 0.08);
  border: 1px solid rgba(31, 107, 92, 0.2);
  color: var(--clr-emerald);
}

.form-alert-error {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-emerald-deep);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.footer-wave {
  line-height: 0;
  background: var(--clr-ivory);
}

.footer-main {
  padding: 70px 0 40px;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  margin-bottom: 1rem;
}

.footer-brand-urdu {
  font-family: var(--font-urdu);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  direction: rtl;
  line-height: 2;
  margin: 0;
}

.footer-brand-en {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-urdu);
  font-size: 1rem;
  color: var(--clr-gold-lt);
  direction: rtl;
  margin-bottom: 0.75rem;
}

.footer-description {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

.whatsapp-btn:hover {
  background: #25d366;
  border-color: #25d366;
}

.phone-btn:hover {
  background: var(--clr-emerald);
  border-color: var(--clr-emerald);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--clr-gold);
  padding-left: 4px;
}

.urdu-list a {
  font-family: var(--font-urdu);
  font-size: 1rem;
  direction: rtl;
  justify-content: flex-end;
  line-height: 2;
}

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

.footer-contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.footer-contact-list li i {
  color: var(--clr-gold);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-list span,
.footer-contact-list a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-list a:hover {
  color: var(--clr-gold);
}

.established-badge {
  display: inline-block;
  background: rgba(212, 180, 131, 0.12);
  border: 1px solid rgba(212, 180, 131, 0.25);
  color: var(--clr-gold-lt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 50px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 0;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-util-link {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition-fast);
}

.footer-util-link:hover {
  color: var(--clr-gold);
}

/* ── FLOATING WHATSAPP ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: waPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  color: #fff;
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  left: 68px;
  background: #fff;
  color: var(--clr-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left: none;
  border-right-color: #fff;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.65), 0 0 0 12px rgba(37, 211, 102, 0.08);
  }
}

/* ── SCROLL TO TOP ──────────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 999;
  width: 46px;
  height: 46px;
  background: var(--clr-emerald);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(31, 107, 92, 0.3);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  background: var(--clr-emerald-dk);
}

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--clr-emerald-deep) 0%, var(--clr-emerald) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M40 10L46 28L64 28L50 39L56 57L40 46L24 57L30 39L16 28L34 28Z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--clr-gold-lt);
  direction: rtl;
  line-height: 2;
}

.page-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
}

.page-breadcrumb a:hover {
  color: var(--clr-gold);
}

.page-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

.page-breadcrumb .current {
  color: var(--clr-gold-lt);
}

/* ── ADMIN STYLES ────────────────────────────────────────────── */
.admin-body {
  background: #f0f2f5;
  font-family: var(--font-body);
  min-height: 100vh;
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-emerald-deep) 0%, var(--clr-emerald) 60%, #2a7d6c 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.admin-login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M30 6L34 18L46 18L36 26L40 38L30 30L20 38L24 26L14 18L26 18Z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px;
  pointer-events: none;
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--clr-emerald-deep);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  padding-top: 20px;
}

.admin-main {
  margin-left: 260px;
  padding: 30px;
}

.sidebar-brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.sidebar-brand-name {
  font-family: var(--font-urdu);
  font-size: 1rem;
  color: #fff;
  direction: rtl;
  line-height: 2;
}

.sidebar-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition-fast);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left: 3px solid var(--clr-gold);
  padding-left: 17px;
}

.sidebar-nav li a i {
  font-size: 1.1rem;
}

.admin-stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.admin-stat-icon.green {
  background: rgba(31, 107, 92, 0.1);
  color: var(--clr-emerald);
}

.admin-stat-icon.gold {
  background: rgba(212, 180, 131, 0.15);
  color: var(--clr-gold-dk);
}

.admin-stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.admin-stat-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.admin-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-muted);
}

/* Admin Table */
.admin-table {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.admin-table .table {
  margin: 0;
}

.admin-table thead th {
  background: var(--clr-emerald);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  border: none;
}

.admin-table tbody td {
  vertical-align: middle;
  font-size: 0.88rem;
  padding: 14px 16px;
  border-color: rgba(0, 0, 0, 0.04);
}

.badge-unread {
  background: rgba(212, 180, 131, 0.15);
  color: var(--clr-gold-dk);
  border: 1px solid rgba(212, 180, 131, 0.3);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 50px;
}

.badge-read {
  background: rgba(31, 107, 92, 0.08);
  color: var(--clr-emerald);
  border: 1px solid rgba(31, 107, 92, 0.15);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 50px;
}

/* ── SECTION DECORATIVE DIVIDERS ────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1.5rem 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 180, 131, 0.4), transparent);
}

.section-divider .ornament {
  color: var(--clr-gold);
  font-size: 1rem;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.anim-fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.anim-fade-left {
  animation: fadeInLeft 0.7s ease forwards;
}

.anim-fade-right {
  animation: fadeInRight 0.7s ease forwards;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  :root {
    --section-py: 80px;
  }

  .hero-section {
    min-height: auto;
    padding-block: 140px 80px;
  }

  .hero-img-main img {
    height: auto;
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .hero-img-badge {
    right: 0;
    bottom: -20px;
    left: auto;
    transform: scale(0.85);
    transform-origin: bottom right;
  }

  .hero-content {
    padding-left: 0;
    margin-top: 40px;
    text-align: right;
    align-items: flex-end;
  }

  .hero-meta {
    justify-content: flex-end;
    text-align: right;
    gap: 12px;
    margin-bottom: 2rem;
  }

  .hero-meta-item {
    align-items: flex-end;
    padding: 12px 16px;
  }

  .hero-actions {
    justify-content: flex-end;
  }

  .hero-deco-circle {
    width: 250px;
    height: 250px;
    right: 0;
  }

  .hero-deco-circle-2 {
    width: 180px;
    height: 180px;
    right: 0;
  }

  .hero-geo-3 {
    width: 120px;
    height: 120px;
  }

  .nazim-quote-card {
    padding: 40px 24px;
  }

  .contact-form-wrap {
    padding: 40px 24px;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .footer-brand {
    margin-bottom: 40px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 40px;
  }

  .footer-main .col-lg-2,
  .footer-main .col-lg-3,
  .footer-main .col-lg-4 {
    margin-bottom: 40px;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-py: 70px;
  }

  /* Increase horizontal breathing room */
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-heading {
    font-size: 1.7rem;
  }

  .section-heading-urdu {
    font-size: 1.8rem;
  }

  .hero-headline-urdu {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .hero-name-urdu {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
  }

  .counter-num {
    font-size: 2.2rem;
  }

  .program-card {
    padding: 24px 20px;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }

  .feature-icon {
    margin: 0 auto 16px auto;
  }

  .leader-card {
    flex-direction: column !important;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }

  .leader-card .leader-icon {
    margin: 0 auto;
  }

  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .scroll-top-btn {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* Global responsive tables */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
    justify-content: center;
  }

  .hero-img-badge {
    transform: scale(0.6);
    right: -10px;
  }

  .gallery-masonry {
    columns: 1;
  }

  .hero-meta {
    flex-direction: column;
    width: 100%;
  }

  .hero-meta-item {
    width: 100%;
    align-items: flex-end;
  }
}