/* ══════════════════════════════════════════════════════════════
   GALLERY CARDS — Celestial Midnight Banner + Arctic Steel Cards
   Shared stylesheet for famous-people gallery pages
   ══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   CELESTIAL MIDNIGHT — Inner Banner
   ────────────────────────────────────── */

#inner-banner {
  float: left;
  width: 100%;
  background: none !important;
  background-color: transparent !important;
  margin: -134px 0 0 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Deep midnight gradient backdrop */
#inner-banner .celestial-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(22, 42, 78, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(12, 22, 52, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(18, 35, 68, 0.6) 0%, transparent 70%),
    linear-gradient(175deg, #0a1628 0%, #0d1f3d 25%, #0f2345 50%, #091730 75%, #060e1f 100%);
  z-index: 0;
}

/* Star-dust shimmer */
#inner-banner .celestial-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(180, 200, 240, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 12%, rgba(200, 220, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 35%, rgba(170, 195, 235, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 18%, rgba(190, 210, 245, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 72%, rgba(180, 200, 240, 0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 65%, rgba(200, 220, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 78%, rgba(170, 195, 235, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 55%, rgba(190, 210, 245, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 50%, rgba(180, 200, 240, 0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 42%, rgba(200, 220, 255, 0.15) 0%, transparent 100%);
  z-index: 1;
}

/* Islamic geometric pattern overlay */
#inner-banner .celestial-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(0deg, rgba(140, 175, 220, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 175, 220, 0.5) 1px, transparent 1px),
    linear-gradient(45deg, rgba(140, 175, 220, 0.4) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(140, 175, 220, 0.4) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 42px 42px, 42px 42px;
  z-index: 2;
  pointer-events: none;
}

/* Calligraphy flanking images */
#inner-banner .calligraphy-left,
#inner-banner .calligraphy-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: auto;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 12;
  filter: blur(0.3px);
}
#inner-banner .calligraphy-left {
  left: 0;
  opacity: 0.50;
}
#inner-banner .calligraphy-right {
  right: 0;
  opacity: 0.45;
}

/* Banner content wrap */
#inner-banner .banner-content-wrap {
  position: relative;
  z-index: 10;
  padding: 200px 0 60px;
  text-align: center;
}

/* Frosted glass panel */
#inner-banner .frosted-panel {
  display: inline-block;
  max-width: 560px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(140,180,230,0.15);
  border-radius: 12px;
  padding: 30px 48px 24px;
  box-shadow:
    0 4px 30px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(140,180,230,0.12);
}

#inner-banner .frosted-panel h1 {
  text-align: center;
  color: #e8eef6;
  margin: 0 0 8px 0;
  font: 700 42px/68px 'Noto Nastaliq Urdu', serif;
  text-shadow:
    0 0 30px rgba(100, 140, 200, 0.35),
    0 0 60px rgba(60, 100, 170, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
  position: relative;
}

/* Glow aura behind title */
#inner-banner .frosted-panel h1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(50, 90, 160, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#inner-banner .frosted-panel .breadcrumb {
  background-color: transparent;
  text-align: center;
  margin: 0;
  padding: 0;
}
#inner-banner .frosted-panel .breadcrumb li {
  color: rgba(160, 185, 220, 0.7);
  font: 300 17px/24px 'Noto Nastaliq Urdu', serif;
}
#inner-banner .frosted-panel .breadcrumb li a {
  color: rgba(140, 175, 220, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}
#inner-banner .frosted-panel .breadcrumb li a:hover {
  color: #c0d8f0;
}
#inner-banner .frosted-panel .breadcrumb > li + li::before {
  content: "/";
  color: rgba(100, 140, 190, 0.4);
  padding: 0 8px;
}

/* Ornamental divider */
#inner-banner .banner-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 14px;
  max-width: 220px;
}
#inner-banner .banner-ornament .orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 160, 210, 0.4) 40%, rgba(120, 160, 210, 0.4) 60%, transparent);
}
#inner-banner .banner-ornament .orn-diamond {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, rgba(140, 180, 230, 0.6), rgba(80, 120, 180, 0.4));
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(100, 150, 220, 0.3);
}
#inner-banner .banner-ornament .orn-diamond.sm {
  width: 5px;
  height: 5px;
  opacity: 0.5;
  box-shadow: none;
}
#inner-banner .banner-ornament .orn-star {
  font-size: 10px;
  color: rgba(140, 180, 230, 0.5);
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(100, 150, 220, 0.4);
}

/* Top luminous edge */
#inner-banner .banner-top-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(80, 130, 200, 0.2) 30%, rgba(120, 170, 230, 0.35) 50%, rgba(80, 130, 200, 0.2) 70%, transparent 90%);
  z-index: 10;
}

/* Bottom luminous edge */
#inner-banner .banner-bottom-edge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(60, 110, 180, 0.15) 20%, rgba(100, 155, 220, 0.3) 50%, rgba(60, 110, 180, 0.15) 80%, transparent 95%);
  z-index: 10;
}
#inner-banner .banner-bottom-edge::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 15%;
  right: 15%;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(60, 110, 180, 0.12) 0%, transparent 80%);
}


/* ──────────────────────────────────────
   ARCTIC STEEL — Gallery Section
   ────────────────────────────────────── */

.gallery-section {
  float: left;
  width: 100%;
  padding: 64px 0 54px;
  background: #eaeff5;
  background-image:
    radial-gradient(ellipse at 20% 40%, rgba(74,114,150,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(140,186,214,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(44,74,107,0.05) 0%, transparent 45%);
  position: relative;
}

/* Steel-blue top accent stripe */
.gallery-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, #3d6585 20%, #6a9ec0 40%, #8cbad6 50%, #6a9ec0 60%, #3d6585 80%, transparent 95%);
  z-index: 1;
}

/* Geometric lattice overlay */
.gallery-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(0deg, rgba(74,114,150,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,114,150,0.5) 1px, transparent 1px),
    linear-gradient(45deg, rgba(74,114,150,0.3) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(74,114,150,0.3) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 34px 34px, 34px 34px;
  pointer-events: none;
  z-index: 0;
}

.gallery-section > .container {
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────
   Gallery Card
   ────────────────────────────────────── */

.gallery-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(10,22,40,0.07),
    0 4px 12px rgba(10,22,40,0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(10,22,40,0.05),
    0 8px 24px rgba(10,22,40,0.10),
    0 16px 40px rgba(74,114,150,0.08);
}

/* Steel-blue top accent bar */
.gallery-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #3d6585 0%, #5a88ab 30%, #8cbad6 50%, #5a88ab 70%, #3d6585 100%);
}

/* Image media area */
.gallery-card-media {
  position: relative;
  background: #0e1e33;
  overflow: hidden;
}

.gallery-card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.4s ease;
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.04);
}

/* Subtle vignette overlay on images */
.gallery-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 22, 40, 0.15) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-card-media::after {
  opacity: 0.6;
}

/* Corner bracket ornaments */
.gallery-card-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.gallery-card-corners::before,
.gallery-card-corners::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(140, 186, 214, 0.35);
  border-style: solid;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.gallery-card-corners::before {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 5px 0;
}

.gallery-card-corners::after {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 5px;
}

.gallery-card:hover .gallery-card-corners::before,
.gallery-card:hover .gallery-card-corners::after {
  opacity: 1;
  border-color: rgba(90, 136, 171, 0.6);
}

/* Staggered entrance animation */
@keyframes galleryCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-card {
  animation: galleryCardEnter 0.5s ease-out both;
}

.row.gallery > div:nth-child(1) .gallery-card  { animation-delay: 0.05s; }
.row.gallery > div:nth-child(2) .gallery-card  { animation-delay: 0.10s; }
.row.gallery > div:nth-child(3) .gallery-card  { animation-delay: 0.15s; }
.row.gallery > div:nth-child(4) .gallery-card  { animation-delay: 0.20s; }
.row.gallery > div:nth-child(5) .gallery-card  { animation-delay: 0.25s; }
.row.gallery > div:nth-child(6) .gallery-card  { animation-delay: 0.30s; }
.row.gallery > div:nth-child(7) .gallery-card  { animation-delay: 0.32s; }
.row.gallery > div:nth-child(8) .gallery-card  { animation-delay: 0.34s; }
.row.gallery > div:nth-child(9) .gallery-card  { animation-delay: 0.36s; }
.row.gallery > div:nth-child(10) .gallery-card { animation-delay: 0.38s; }
.row.gallery > div:nth-child(11) .gallery-card { animation-delay: 0.40s; }
.row.gallery > div:nth-child(12) .gallery-card { animation-delay: 0.42s; }
.row.gallery > div:nth-child(13) .gallery-card { animation-delay: 0.44s; }
.row.gallery > div:nth-child(14) .gallery-card { animation-delay: 0.46s; }
.row.gallery > div:nth-child(15) .gallery-card { animation-delay: 0.48s; }
.row.gallery > div:nth-child(16) .gallery-card { animation-delay: 0.50s; }


/* ──────────────────────────────────────
   Pagination — Arctic Steel
   ────────────────────────────────────── */

.gallery-section .pagination-col {
  float: left;
  width: 100%;
  margin: 20px 0 0 0;
  text-align: center;
}

.gallery-section .pagination-col .pagination {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.gallery-section .pagination-col .pagination > li {
  display: inline-block;
}

.gallery-section .pagination-col .pagination > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(74, 114, 150, 0.20);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #4a7296;
  font: 500 14px/14px 'Noto Nastaliq Urdu', serif;
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 0;
  margin: 0;
}

.gallery-section .pagination-col .pagination > li > a:hover {
  background: rgba(74, 114, 150, 0.12);
  border-color: rgba(74, 114, 150, 0.35);
  color: #3d6585;
  transform: translateY(-1px);
}

.gallery-section .pagination-col .pagination > li.active > a,
.gallery-section .pagination-col .pagination > li.active > a:hover {
  background: linear-gradient(135deg, #4a7296, #5a88ab);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 114, 150, 0.3);
}

/* Prev/Next buttons wider */
.gallery-section .pagination-col .pagination > li:first-child > a,
.gallery-section .pagination-col .pagination > li:last-child > a {
  width: auto;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}


/* ──────────────────────────────────────
   CELESTIAL MIDNIGHT — Header Override
   ────────────────────────────────────── */

/* Tablet */
@media (max-width: 991px) {
  #header {
    background: linear-gradient(180deg, #0a1628 0%, #0d1f3d 100%) !important;
    border-bottom-color: rgba(90, 136, 171, 0.25) !important;
    padding: 12px 0 0 0;
  }
  #header .header-right-topbar {
    margin-bottom: 8px;
  }
  #header .top-menu li a {
    color: #8cbad6;
  }
  #header .top-menu li a:hover {
    color: #c0d8f0;
  }
  #header .top-menu li + li::before {
    color: rgba(90, 136, 171, 0.4);
  }
  #header .top-menu .dropdown-menu {
    background: #0d1f3d;
    border-color: rgba(90, 136, 171, 0.3);
  }
  #header .top-menu .dropdown-menu::before {
    border-color: transparent transparent #0d1f3d transparent;
  }
  #header .top-menu .dropdown-menu li strong.title,
  #header .top-menu .dropdown-menu li span,
  #header .top-menu .dropdown-menu li b {
    color: #8cbad6;
  }
  #header .top-menu .dropdown-menu li a {
    color: rgba(140, 186, 214, 0.85);
  }
  #header .top-menu .dropdown-menu li a:hover {
    color: #c0d8f0;
  }
  #header .top-menu .dropdown-menu li .head span.azan,
  #header .top-menu .dropdown-menu li .head span.time,
  #header .top-menu .dropdown-menu li a em,
  #header .top-menu .dropdown-menu li a strong.time {
    color: rgba(140, 186, 214, 0.75);
  }
  #header .navigation-row {
    background: rgba(10, 22, 40, 0.5);
    border-top: 1px solid rgba(90, 136, 171, 0.12);
  }
  #header .navigation-row .navbar-inverse {
    background-color: transparent !important;
    border-color: transparent !important;
  }
  #header .navigation-row .navbar-inverse .navbar-nav > .active > a,
  #header .navigation-row .navbar-inverse .navbar-nav > .active > a:hover,
  #header .navigation-row .navbar-inverse .navbar-nav > .active > a:focus {
    border-bottom-color: #5a88ab !important;
  }
  #header .search-holder button {
    color: #8cbad6;
  }
  #header .search-holder button:hover {
    color: #c0d8f0;
  }

  /* Banner tablet */
  #inner-banner {
    margin-top: 0 !important;
  }
  #inner-banner .banner-content-wrap {
    padding: 100px 0 50px;
  }
  #inner-banner .frosted-panel h1 {
    font-size: 36px;
    line-height: 58px;
  }
  #inner-banner .frosted-panel {
    padding: 24px 40px 20px;
  }
  #inner-banner .calligraphy-left,
  #inner-banner .calligraphy-right {
    width: 200px;
  }
  #inner-banner .calligraphy-left { left: 0; opacity: 0.40; }
  #inner-banner .calligraphy-right { right: 0; opacity: 0.35; }
  #inner-banner .frosted-panel {
    max-width: 480px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  #header {
    background: linear-gradient(180deg, #080f1e 0%, #0a1628 60%, #0d1f3d 100%) !important;
    border-bottom-color: rgba(90, 136, 171, 0.20) !important;
    padding: 6px 0 0 0;
  }
  #header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  #header a.logo {
    margin-bottom: 0;
    padding: 4px 0;
  }
  #header a.logo img {
    max-height: 40px;
    width: auto;
  }
  #header .header-right-topbar {
    margin: 0 0 4px 0;
    padding: 4px 0 6px;
    border-bottom: 1px solid rgba(90, 136, 171, 0.10);
  }
  #header .top-menu li a {
    color: rgba(140, 186, 214, 0.8);
    font-size: 12px;
    line-height: 12px;
  }
  #header .top-menu li + li::before {
    color: rgba(90, 136, 171, 0.3);
    padding: 0 6px;
  }
  #header .navigation-row {
    background: transparent;
    border-top: none;
    margin: 0;
  }
  #header .navbar-toggle {
    border: 1px solid rgba(90, 136, 171, 0.35) !important;
    background: rgba(13, 31, 61, 0.6) !important;
    margin: 4px 0 6px;
    padding: 6px 8px;
    border-radius: 4px;
  }
  #header .navbar-toggle:hover,
  #header .navbar-toggle:focus {
    background: rgba(90, 136, 171, 0.15) !important;
    border-color: rgba(140, 186, 214, 0.5) !important;
  }
  #header .navbar-toggle .icon-bar {
    background-color: #8cbad6 !important;
    height: 2px;
    width: 20px;
    border-radius: 1px;
  }
  #header #navbar.collapse.in,
  #header #navbar.collapsing {
    background: rgba(10, 22, 40, 0.95);
    border-top: 1px solid rgba(90, 136, 171, 0.15);
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 0 0 6px 6px;
  }
  #header #nav li {
    padding-bottom: 12px;
  }
  #header #nav li a {
    color: rgba(200, 218, 238, 0.9);
    font-size: 14px;
    line-height: 18px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(90, 136, 171, 0.08);
  }
  #header #nav li a:hover {
    color: #c0d8f0;
  }
  #header #nav li a i.fa-caret-down {
    color: rgba(90, 136, 171, 0.5);
  }
  #header #nav li ul {
    background: rgba(8, 15, 30, 0.5);
    border-radius: 4px;
    margin-top: 4px;
    padding: 4px 10px;
  }
  #header #nav li ul li a {
    color: rgba(140, 186, 214, 0.85);
    font-size: 13px;
    border-top: 1px solid rgba(90, 136, 171, 0.10);
    border-bottom-color: rgba(90, 136, 171, 0.06);
  }
  #header #nav li ul li a:hover,
  #header #nav li ul li:hover > a {
    color: #c0d8f0;
    background: rgba(90, 136, 171, 0.15) !important;
  }
  #header #nav li a:hover,
  #header #nav li a:focus,
  #header #nav li a:active {
    background: transparent !important;
  }
  #header .navigation-row .navbar-inverse .navbar-nav > .active > a,
  #header .navigation-row .navbar-inverse .navbar-nav > .active > a:hover,
  #header .navigation-row .navbar-inverse .navbar-nav > .active > a:focus {
    border-bottom-color: #5a88ab !important;
    color: #c0d8f0;
    background: transparent !important;
  }

  /* Banner mobile */
  #inner-banner {
    margin-top: 0 !important;
  }
  #inner-banner .banner-content-wrap {
    padding: 10px 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* Calligraphy crown — single centered image above frosted panel */
  #inner-banner .banner-content-wrap::before {
    content: "";
    display: block;
    width: 190px;
    height: 190px;
    background:
      url('../images/caligraphy/5.jpeg') center / contain no-repeat,
      radial-gradient(ellipse at center, #0f2345, #0c1a35, #0a1628);
    background-blend-mode: screen;
    opacity: 0.84;
    margin-bottom: 3px;
    flex-shrink: 0;
    -webkit-mask-image: radial-gradient(circle, black 25%, transparent 60%);
    mask-image: radial-gradient(circle, black 25%, transparent 60%);
  }
  #inner-banner .frosted-panel h1 {
    font-size: 28px;
    line-height: 48px;
  }
  #inner-banner .frosted-panel {
    padding: 20px 28px 16px;
    margin: 0 12px;
  }
  #inner-banner .frosted-panel .breadcrumb li {
    font-size: 15px;
  }
  /* Hide flanking calligraphy on mobile */
  #inner-banner .calligraphy-left,
  #inner-banner .calligraphy-right {
    display: none;
  }
  #inner-banner .banner-ornament {
    max-width: 160px;
  }

  /* Gallery section mobile */
  .gallery-section {
    padding: 36px 0 28px;
  }

  .gallery-card {
    margin-bottom: 14px;
  }

  .gallery-card-corners::before,
  .gallery-card-corners::after {
    width: 18px;
    height: 18px;
  }

  /* Pagination mobile */
  .gallery-section .pagination-col .pagination > li > a {
    width: 36px;
    height: 36px;
    font-size: 13px;
    border-radius: 6px;
  }
  .gallery-section .pagination-col .pagination {
    gap: 4px;
  }
  .gallery-section .pagination-col .pagination > li:first-child > a,
  .gallery-section .pagination-col .pagination > li:last-child > a {
    padding: 0 10px;
    font-size: 12px;
  }
}

/* Tablet gallery adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .gallery-section {
    padding: 48px 0 40px;
  }

  .gallery-card {
    margin-bottom: 20px;
  }
}

/* Gallery card clickable cursor */
.gallery-card {
  cursor: pointer;
}

/* Extra small phones */
@media (max-width: 400px) {
  .gallery-card {
    margin-bottom: 10px;
  }

  .gallery-section .pagination-col .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }
  .gallery-section .pagination-col .pagination > li > a {
    width: 30px;
    height: 30px;
    font-size: 11px;
    border-radius: 6px;
  }
  .gallery-section .pagination-col .pagination > li:first-child > a,
  .gallery-section .pagination-col .pagination > li:last-child > a {
    padding: 0 6px;
    font-size: 11px;
  }
}


/* ══════════════════════════════════════════════════════════════
   CELESTIAL LIGHTBOX — Full-Screen Image Viewer
   ══════════════════════════════════════════════════════════════ */

/* Prevent horizontal overflow from breaking fixed overlays on iOS */
html {
  overflow-x: hidden !important;
}

.celestial-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s;
  overflow: hidden;
}

/* iOS Safari: prevent page content from showing through */
html.lightbox-open,
html.lightbox-open body {
  overflow: hidden !important;
}
html.lightbox-open body {
  touch-action: none;
}

.celestial-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

/* Deep midnight backdrop */
.celestial-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(15, 28, 55, 0.97) 0%, transparent 65%),
    radial-gradient(ellipse at 70% 75%, rgba(8, 16, 38, 0.98) 0%, transparent 60%),
    rgba(6, 10, 22, 0.96);
  backdrop-filter: blur(8px) saturate(0.5);
  -webkit-backdrop-filter: blur(8px) saturate(0.5);
}

/* Image stage */
.celestial-lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}

.celestial-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 2px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.celestial-lightbox.is-active .celestial-lightbox-stage img {
  opacity: 1;
  transform: scale(1);
}

/* Close button */
.celestial-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 5;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(140, 186, 214, 0.2);
  border-radius: 50%;
  color: rgba(200, 218, 240, 0.85);
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.celestial-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(140, 186, 214, 0.4);
  color: #e8eef6;
  transform: rotate(90deg);
}

/* Navigation arrows */
.celestial-lightbox-prev,
.celestial-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(140, 186, 214, 0.15);
  border-radius: 50%;
  color: rgba(200, 218, 240, 0.8);
  font-size: 20px;
  line-height: 52px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-user-select: none;
  user-select: none;
}

.celestial-lightbox-prev { left: 16px; }
.celestial-lightbox-next { right: 16px; }

.celestial-lightbox-prev:hover,
.celestial-lightbox-next:hover {
  background: rgba(74, 114, 150, 0.2);
  border-color: rgba(140, 186, 214, 0.35);
  color: #e8eef6;
}

.celestial-lightbox-prev:active,
.celestial-lightbox-next:active {
  transform: translateY(-50%) scale(0.93);
}

/* Counter pill */
.celestial-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(140, 186, 214, 0.12);
  border-radius: 20px;
  padding: 6px 18px;
  color: rgba(180, 200, 230, 0.7);
  font: 400 13px/18px 'Noto Nastaliq Urdu', serif;
  letter-spacing: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Lightbox mobile adjustments */
@media (max-width: 767px) {
  .celestial-lightbox-stage {
    padding: 56px 12px 72px;
    padding-top: max(56px, calc(env(safe-area-inset-top) + 52px));
    padding-bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .celestial-lightbox-prev,
  .celestial-lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 17px;
    line-height: 42px;
    top: auto;
    bottom: 18px;
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px));
    transform: none;
  }

  .celestial-lightbox-prev { left: auto; right: 72px; }
  .celestial-lightbox-next { right: 16px; }

  .celestial-lightbox-counter {
    bottom: 22px;
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
    left: 16px;
    left: max(16px, env(safe-area-inset-left));
    transform: none;
    font-size: 12px;
    padding: 5px 14px;
  }

  .celestial-lightbox-close {
    top: 10px;
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    right: max(12px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    font-size: 20px;
    line-height: 42px;
  }
}


/* ══════════════════════════════════════════════════════════════
   CELESTIAL MIDNIGHT — Footer
   ══════════════════════════════════════════════════════════════ */

#footer {
  float: left;
  width: 100%;
  background: none !important;
  position: relative;
}

/* ── Footer Main Section ── */
.footer-main {
  position: relative;
  overflow: hidden;
  padding: 60px 0 48px;
}

/* Deep midnight backdrop — matches banner */
.footer-main .footer-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(22, 42, 78, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(12, 22, 52, 0.95) 0%, transparent 55%),
    linear-gradient(5deg, #060e1f 0%, #091730 25%, #0f2345 50%, #0d1f3d 75%, #0a1628 100%);
  z-index: 0;
}

/* Star-dust shimmer */
.footer-main .footer-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 30%, rgba(180, 200, 240, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 38% 15%, rgba(200, 220, 255, 0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 40%, rgba(170, 195, 235, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 22%, rgba(190, 210, 245, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 68%, rgba(180, 200, 240, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 75%, rgba(200, 220, 255, 0.15) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(170, 195, 235, 0.3) 0%, transparent 100%);
  z-index: 1;
}

/* Geometric pattern overlay */
.footer-main .footer-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(0deg, rgba(140, 175, 220, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 175, 220, 0.5) 1px, transparent 1px),
    linear-gradient(45deg, rgba(140, 175, 220, 0.4) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(140, 175, 220, 0.4) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 42px 42px, 42px 42px;
  z-index: 2;
  pointer-events: none;
}

/* Top luminous edge */
.footer-main .footer-top-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(60, 110, 180, 0.15) 20%, rgba(100, 155, 220, 0.3) 50%, rgba(60, 110, 180, 0.15) 80%, transparent 95%);
  z-index: 10;
}

.footer-main > .container {
  position: relative;
  z-index: 5;
}

/* ── Footer Columns ── */
.footer-col {
  margin-bottom: 24px;
}

/* Logo area */
.footer-logo-wrap {
  margin-bottom: 20px;
}
.footer-logo-wrap a.footer-logo {
  display: inline-block;
  float: none;
  width: auto;
  margin: 0;
}
.footer-logo-wrap a.footer-logo img {
  height: 48px;
  width: auto;
  filter: brightness(1.1);
}

.footer-about-text {
  font: 400 15px/30px 'Noto Nastaliq Urdu', serif;
  color: rgba(180, 200, 225, 0.75);
  margin: 0 0 24px 0;
  max-width: 340px;
}

/* Contact items */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  font: 400 14px/24px 'Noto Nastaliq Urdu', serif;
  color: rgba(180, 200, 225, 0.8);
  padding: 4px 0;
  text-align: right;
}
.footer-contact-list li .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(74, 114, 150, 0.12);
  border: 1px solid rgba(106, 158, 192, 0.15);
  margin-left: 12px;
  flex-shrink: 0;
}
.footer-contact-list li .contact-icon .fa {
  color: #6a9ec0;
  font-size: 14px;
}
.footer-contact-list li a {
  color: rgba(180, 200, 225, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-contact-list li a:hover {
  color: #c0d8f0;
}

/* ── Footer Nav Links ── */
.footer-heading {
  font: 700 20px/36px 'Noto Nastaliq Urdu', serif;
  color: #e8eef6;
  margin: 0 0 18px 0;
  position: relative;
  padding-bottom: 14px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5a88ab, #8cbad6);
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-list li {
  padding: 6px 0;
}
.footer-nav-list li a {
  font: 400 15px/28px 'Noto Nastaliq Urdu', serif;
  color: rgba(160, 185, 220, 0.75);
  text-decoration: none;
  transition: color 0.3s ease, padding-right 0.3s ease;
  display: inline-block;
  position: relative;
}
.footer-nav-list li a::before {
  content: "\2039";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #5a88ab;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
  font-size: 16px;
}
.footer-nav-list li a:hover {
  color: #c0d8f0;
  padding-right: 4px;
}
.footer-nav-list li a:hover::before {
  opacity: 1;
  left: -18px;
}

/* ── Copyright text column ── */
.footer-rights-text {
  font: 400 13px/26px 'Noto Nastaliq Urdu', serif;
  color: rgba(160, 185, 220, 0.6);
  margin: 0;
}

/* ── Footer Ornament Divider ── */
.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 0;
  max-width: 300px;
  padding: 36px 0 0;
}
.footer-ornament .f-orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 150, 210, 0.3) 40%, rgba(100, 150, 210, 0.3) 60%, transparent);
}
.footer-ornament .f-orn-diamond {
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, rgba(140, 186, 214, 0.5), rgba(74, 114, 150, 0.35));
  transform: rotate(45deg);
  flex-shrink: 0;
}
.footer-ornament .f-orn-diamond.sm {
  width: 4px;
  height: 4px;
  opacity: 0.5;
}
.footer-ornament .f-orn-star {
  font-size: 9px;
  color: rgba(140, 186, 214, 0.4);
  flex-shrink: 0;
}

/* ── Footer Bottom Bar ── */
.footer-bottom {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.footer-bottom .footer-bottom-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #050c18 0%, #070f1e 100%);
  z-index: 0;
}

/* Subtle top edge on bottom bar */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(74, 114, 150, 0.2) 30%, rgba(106, 158, 192, 0.3) 50%, rgba(74, 114, 150, 0.2) 70%, transparent 90%);
  z-index: 10;
}

.footer-bottom > .container {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font: 400 13px/24px 'Noto Nastaliq Urdu', serif;
  color: rgba(140, 170, 200, 0.5);
  margin: 0;
}

/* Social icons */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-social-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(74, 114, 150, 0.1);
  border: 1px solid rgba(106, 158, 192, 0.15);
  color: rgba(140, 186, 214, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.footer-social-links li a:hover {
  background: rgba(74, 114, 150, 0.2);
  border-color: rgba(140, 186, 214, 0.35);
  color: #c0d8f0;
  transform: translateY(-2px);
}

/* ── Footer Responsive ── */
@media (max-width: 991px) {
  .footer-main {
    padding: 48px 0 36px;
  }
  .footer-heading {
    font-size: 18px;
    line-height: 32px;
  }
}
@media (max-width: 767px) {
  .footer-main {
    padding: 36px 0 24px;
  }
  .footer-col {
    margin-bottom: 36px;
    padding-bottom: 32px;
    position: relative;
  }
  /* Ornamental separator line between stacked footer columns */
  .footer-col::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 15%;
    left: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 136, 171, 0.25) 25%, rgba(106, 158, 192, 0.35) 50%, rgba(90, 136, 171, 0.25) 75%, transparent);
  }
  /* Small diamond ornament at center of separator */
  .footer-col::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, rgba(140, 186, 214, 0.45), rgba(74, 114, 150, 0.3));
    z-index: 1;
    box-shadow: 0 0 6px rgba(100, 150, 210, 0.2);
  }
  .footer-col:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  /* Hide separator on last column */
  .footer-col:last-child::after,
  .footer-col:last-child::before {
    display: none;
  }
  .footer-about-text {
    max-width: none;
    font-size: 14px;
    line-height: 28px;
  }
  .footer-contact-list {
    margin-bottom: 8px;
  }
  .footer-heading {
    font-size: 17px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .footer-nav-list li {
    padding: 5px 0;
  }
  .footer-rights-text {
    font-size: 12px;
    line-height: 24px;
  }
  .footer-ornament {
    padding-top: 24px;
    max-width: 220px;
  }
  .footer-bottom > .container {
    flex-direction: column-reverse;
    gap: 14px;
    text-align: center;
  }
  .footer-copyright {
    font-size: 12px;
  }
}
