/* ==========================================================================
   AL-IKHLAAS FOUNDATION PAKISTAN - OFFICIAL STYLESHEET
   Serving Humanity • Building Hope • Creating a Better Future
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary-navy: #0d1e38;
  --primary-navy-dark: #071224;
  --primary-navy-light: #162f55;
  --primary-red: #c01828;
  --primary-red-hover: #a01220;
  --accent-green: #0e7842;
  --accent-green-hover: #0a5d33;
  --gold: #d4a017;
  --gold-light: #f7e7b4;
  
  /* Neutral Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  
  /* Text Colors */
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 35px -10px rgba(15, 23, 42, 0.18);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  
  /* Layout */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


  html, body {
    overflow-x: hidden;
    width: 100%;
  }


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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   TOP CONTACT & SOCIAL BAR
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contact-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.top-contact-item i {
  color: var(--gold);
  font-size: 0.9rem;
}

.top-contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.top-social-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.top-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 0.8rem;
  transition: var(--transition);
}

.top-social-link:hover {
  background: var(--primary-red);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   HEADER & MAIN NAVIGATION
   -------------------------------------------------------------------------- */
.main-header {
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

/* Brand */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
    width: 110px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--primary-red);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-red);
  background-color: var(--bg-muted);
}

.nav-link.active {
  color: var(--primary-red);
  background-color: #fff1f2;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 20px;
  border-radius: var(--radius-sm);
}

.mobile-toggle-btn:hover {
  background: var(--bg-muted);
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(192, 24, 40, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 24, 40, 0.35);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: var(--text-white);
}

.btn-navy:hover {
  background-color: var(--primary-navy-dark);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-green {
  background-color: var(--accent-green);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(14, 120, 66, 0.25);
}

.btn-green:hover {
  background-color: var(--accent-green-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 120, 66, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline-navy:hover {
  background: var(--primary-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-red {
  background: #fee2e2;
  color: var(--primary-red);
}

.badge-green {
  background: #dcfce7;
  color: var(--accent-green);
}

.badge-navy {
  background: #e2e8f0;
  color: var(--primary-navy);
}

.badge-gold {
  background: #fef3c7;
  color: #92400e;
}

/* --------------------------------------------------------------------------
   PAGE HERO / BANNER HEADER
   -------------------------------------------------------------------------- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  padding: 60px 0 65px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at top right, rgba(192, 24, 40, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-banner-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 800;
}

.page-banner-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.breadcrumb-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.88rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 18px;
  border-radius: var(--radius-full);
}

.breadcrumb-list a {
  color: #e2e8f0;
}

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

.breadcrumb-list .active {
  color: var(--gold);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   HERO SLIDER (HOMEPAGE)
   -------------------------------------------------------------------------- */
.hero-slider-section {
  position: relative;
  background: var(--primary-navy-dark);
  color: #ffffff;
  overflow: hidden;
  min-height: 580px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 580px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(7, 18, 36, 0.94) 0%, rgba(13, 30, 56, 0.85) 50%, rgba(13, 30, 56, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 40px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 24, 40, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(192, 24, 40, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-title .highlight-red {
  color: #ef4444;
}

.hero-title .highlight-gold {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.slider-arrow:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary-red);
  width: 32px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   HIGHLIGHT BAR / QUICK PILLARS
   -------------------------------------------------------------------------- */
.pillars-bar {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 30px 0;
  border-bottom: 3px solid var(--primary-red);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.pillar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(192, 24, 40, 0.2);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.pillar-info h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.pillar-info p {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS & COMMON SECTION STYLES
   -------------------------------------------------------------------------- */
.section {
  padding: 75px 0;
}

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

.section-navy {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

.section-subtitle {
  color: var(--primary-red);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-navy .section-title {
  color: #ffffff;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-navy .section-desc {
  color: #cbd5e1;
}

.urdu-motto {
  font-family: var(--font-urdu);
  font-size: 1.6rem;
  color: var(--accent-green);
  margin-top: 8px;
  direction: rtl;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   ABOUT CARDS & MISSION VISION
   -------------------------------------------------------------------------- */
.about-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-card:hover img {
  transform: scale(1.03);
}

.about-badge-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(13, 30, 56, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-red);
  box-shadow: var(--shadow-md);
}

.about-badge-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.about-badge-card p {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.content-block h3 {
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
}

.features-checklist {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checklist-item i {
  color: var(--accent-green);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.checklist-item span {
  font-size: 0.98rem;
  color: var(--text-main);
  font-weight: 500;
}

/* Mission Vision Cards */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.mv-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-navy);
  transition: var(--transition);
}

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

.mv-card.mission {
  border-top-color: var(--primary-red);
}

.mv-card.vision {
  border-top-color: var(--accent-green);
}

.mv-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.mv-card.mission .mv-icon {
  background: #fee2e2;
  color: var(--primary-red);
}

.mv-card.vision .mv-icon {
  background: #dcfce7;
  color: var(--accent-green);
}

.mv-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.mv-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   SERVICES GRID (7 OFFICIAL SERVICES)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary-red);
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   LEADERSHIP CARDS (FOUNDER & CHAIRMAN)
   -------------------------------------------------------------------------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.leader-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.leader-image-wrap {
  position: relative;
  height: 380px;
  background: #0f172a;
  overflow: hidden;
}

.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.leader-card:hover .leader-photo {
  transform: scale(1.04);
}

.leader-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(13, 30, 56, 0.9);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.leader-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.leader-name {
  font-size: 1.55rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.leader-role {
  color: var(--primary-red);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.leader-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.leader-quote {
  background: #f8fafc;
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #334155;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.leader-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

/* --------------------------------------------------------------------------
   VALUES GRID
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 1.6rem;
  color: var(--primary-red);
  margin-bottom: 14px;
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   GALLERY & LIGHTBOX (33 IMAGES)
   -------------------------------------------------------------------------- */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 30, 56, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
  text-align: center;
  color: #ffffff;
}

.gallery-overlay-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-overlay-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.08);
}

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

.gallery-item:hover .gallery-overlay-icon {
  transform: scale(1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 18, 36, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s ease-out;
}

.lightbox-caption {
  color: #f1f5f9;
  font-size: 0.95rem;
  margin-top: 14px;
  text-align: center;
}

.lightbox-counter {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 4px;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: var(--primary-red);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: var(--primary-red);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@keyframes zoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   MEMBERSHIP / REGISTRATION FORM
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary-red);
  border-radius: 2px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--primary-red);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.94rem;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(192, 24, 40, 0.12);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.form-check-input {
  margin-top: 4px;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   CONTACT PAGE STYLES
   -------------------------------------------------------------------------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}

.contact-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 16px;
}

.contact-card.whatsapp-card .contact-card-icon {
  background: #dcfce7;
  color: var(--accent-green);
}

.contact-card h4 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.contact-card .contact-val {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.95rem;
  display: block;
}

/* --------------------------------------------------------------------------
   EMERGENCY & CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-red) 0%, #880e1b 100%);
  color: #ffffff;
  padding: 60px 0;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 1.05rem;
  color: #fee2e2;
  margin-bottom: 26px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  background: var(--primary-navy-dark);
  color: #cbd5e1;
  padding: 70px 0 25px;
  border-top: 4px solid var(--primary-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-about-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-about-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.footer-about-logo .brand-title {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #94a3b8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #cbd5e1;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

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

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social-wrap {
  margin-top: 20px;
}

.footer-social-wrap h5 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom-urdu {
  font-family: var(--font-urdu);
  color: var(--gold);
  font-size: 1.1rem;
  direction: rtl;
}

/* --------------------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  position: relative;
}

.whatsapp-btn:hover {
  background-color: #1eb956;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseRipple 2s infinite ease-out;
  pointer-events: none;
}

.whatsapp-tooltip {
  background: var(--primary-navy-dark);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulseRipple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   MODAL / POPUP MESSAGE
   -------------------------------------------------------------------------- */
.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 18, 36, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.alert-modal.active {
  display: flex;
}

.alert-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: zoomIn 0.25s ease;
}

.alert-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
}

.alert-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.alert-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (BREAKPOINTS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  span.brand-tagline {
    display: none;
}
  
  .mobile-toggle-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }
  
  .nav-actions {
    display: none;
  }
  
  .hero-slider-section,
  .hero-slider {
    min-height: 480px;
    
  }
  .slider-arrow {
    display: none;
}
  .hero-slide {

    padding: 50px 0;
    min-height: 480px;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .about-grid-2,
  .mv-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  .page-banner-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}
