/* ============================================================
   DARBAR-E-GHOUSIA GHOUSABAD SHARIF — MASTER STYLESHEET
   Organized section-by-section, matching the HTML structure.
   ============================================================ */

/* ============================================================
   1) ROOT VARIABLES & GLOBAL RESET
   ============================================================ */
:root {
  /* Splash screen gradient & animation */
  --splash-gradient: linear-gradient(45deg, #003f64, #00565a, #00375e, #00444a);
  --splash-gradient-size: 400% 400%;
  --splash-anim-duration: 15s;

  /* Splash text color — matches header title */
  --splash-text-color: #ffd700;

  /* Splash content max width */
  --splash-content-max-width: 600px;

  /* Splash logo sizes (responsive) */
  --splash-logo-max-width: 150px;
  --splash-logo-max-width-md: 110px;
  --splash-logo-max-width-sm: 80px;

  /* Splash title font sizes (responsive) */
  --splash-title-size: 2.5rem;
  --splash-title-size-md: 1.5rem;
  --splash-title-size-sm: 1.2rem;
  --splash-title-margin-bottom: 30px;

  /* Splash loading bar */
  --loading-bar-width: 800px;
  --loading-bar-width-md: 230px;
  --loading-bar-width-sm: 150px;
  --loading-bar-height: 4px;
  --loading-bar-track-color: rgba(255, 255, 255, 0.3);
  --loading-bar-fill-color: #ffffff;
  --loading-bar-radius: 2px;
  --loading-duration: 2s; /* matches the JS 6000ms timeout */
}

/* Universal box-sizing & font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

/* Base html smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Body base layout (top padding for fixed header) */
body {
  padding-top: 160px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Body when splash is active (locks scroll) */
body.splash-active {
  overflow: hidden;
  height: 100vh;
}

/* ============================================================
     2) SPLASH SCREEN  (#splash-screen)
     ============================================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: var(--splash-gradient);
  background-size: var(--splash-gradient-size);
  animation: gradientBG var(--splash-anim-duration) ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

/* Splash content — flex column, everything centred horizontally */
.splash-content {
  text-align: center;
  color: var(--splash-text-color);

  width: 100%;
  max-width: none;

  padding: 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-content .logo-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-content .logo {
  width: 100%;
  max-width: var(--splash-logo-max-width);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

/* Splash title — matches header title color & layout */
.splash-title {
  color: var(--splash-text-color);
  font-weight: 700;
  font-size: var(--splash-title-size);
  margin-bottom: var(--splash-title-margin-bottom);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  animation: fadeIn 1.5s ease-in-out;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;              /* single, controlled gap */
}

.splash-title .splash-line-1,
.splash-title .splash-line-2 {
  display: inline-block;
  color: inherit;
}

.splash-title .splash-sep {
  display: none !important; /* remove the literal space span entirely */
}

/* Loading bar — centred horizontally on all screens (PC + mobile) */
.loading-bar {
  width: min(var(--loading-bar-width), 90vw);
  height: var(--loading-bar-height);

  background: var(--loading-bar-track-color);
  border-radius: var(--loading-bar-radius);

  position: relative;

  margin: 0 auto;
  padding: 0;

  overflow: hidden;
  display: block;
  flex: 0 0 auto;
}

.loading-progress {
  height: 100%;
  width: 0;
  background: var(--loading-bar-fill-color);
  border-radius: var(--loading-bar-radius);
  animation: loading var(--loading-duration) ease-in-out forwards;
}

/* Splash fade-out (toggled by JS .splash-hidden) */
#splash-screen {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
     3) HEADER  (<header id="mainHeader">)
     ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(0) !important;
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #003f64, #00565a, #00375e, #00444a);
  background-size: 300% 300%;
  animation: gradientBG 10s ease infinite;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  color: white;
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Force header visible regardless of state classes */
header.header-hidden,
header.header-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 5px 0;
}

/* ============================================================
     4) HEADER TOP LINE (logo + title + desktop search + hamburger)
     ============================================================ */
.header-top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5%;
  flex-wrap: nowrap;
  min-height: 80px;
}

/* Logo container (pulsing + clickable) */
.logo-container {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  animation: pulse 3s infinite ease-in-out;
  z-index: 3;
  flex: 0 0 auto;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.logo-container:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px #03770b) drop-shadow(0 0 15px #047e8e);
}

.logo-container.glow-active {
  animation: logoGlowPulse 0.8s ease-in-out !important;
  z-index: 10000;
}

/* Header logo image */
.logo {
  height: 85px;
  width: auto;
  transition: height 0.3s ease-in-out, filter 0.3s ease;
  pointer-events: auto;
}

.logo:hover {
  filter: drop-shadow(0 0 12px #99ccff);
  transform: scale(1.03);
}

.logo.glow-active {
  animation: logoPulse 0.6s ease-in-out !important;
}

/* Logo ripple span created by JS */
.logo-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(100, 200, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: logoRipple 0.6s ease-out;
  pointer-events: none;
  z-index: 10001;
}

/* Center title block */
.header-title {
  flex-grow: 1;
  text-align: center;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.title-line-1,
.title-line-2 {
  display: block;
  color: #ffd700 !important;
  text-shadow: none !important;
  font-weight: 700;
  animation: none;
  background: none !important;
  line-height: 1.2;
}

.title-line-1 {
  font-size: 1.9rem;
  margin-bottom: 3px;
}

.title-line-2 {
  font-size: 1.7rem;
}

/* ============================================================
     5) HAMBURGER MENU (mobile only)
     ============================================================ */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  padding: 8px 12px;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger i {
  font-size: 1.8rem;
  display: block;
}

.hamburger:hover {
  transform: scale(1.1);
  color: #b2ebf2;
}

/* ============================================================
     6) DESKTOP SEARCH (inside header)
     ============================================================ */
.header-search-container {
  flex: 0 0 auto;
}

.header-search-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.header-search-input {
  padding: 12px 15px 12px 45px;
  border-radius: 25px;
  border: 2px solid #4fb3bf;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  color: #005a8e;
  width: 220px;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23005a8e' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 16px;
  height: 44px;
}

.header-search-input:focus {
  outline: none;
  border-color: #003f64;
  box-shadow: 0 0 0 3px rgba(79, 179, 191, 0.3);
}

.header-search-button {
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, #00717c, #025381);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0, 131, 143, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  white-space: nowrap;
}

.header-search-button:hover {
  background: linear-gradient(135deg, #006064, #00838f);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 131, 143, 0.4);
}

/* Desktop search results dropdown */
.header-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 1003;
  display: none;
  margin-top: 8px;
  border: 1px solid #e0e0e0;
}

.header-search-results.show {
  display: block !important;
}

.header-search-results a {
  display: block;
  padding: 14px 18px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.header-search-results a:hover {
  background: #f8f9fa;
  transform: translateX(5px);
  border-left: 4px solid #00717c;
}

/* ============================================================
     7) MOBILE SEARCH BAR (visible only on mobile)
     ============================================================ */
.main-search-container-wrapper {
  display: none;
  padding: 0 5%;
  margin: 0;
  z-index: 999;
  position: relative;
  background: transparent;
}

/* Mobile search visible on <=768px */
@media (max-width: 768px) {
  .main-search-container-wrapper {
    display: block !important;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 4% 5px;
    background: transparent;
    z-index: 1001;
  }

  .main-search-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
  }

  .main-search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
  }

  #mainSearchInput {
    width: 100%;
    padding: 12px 15px 12px 45px !important;
    border-radius: 25px !important;
    border: 2px solid #4fb3bf !important;
    background: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem !important;
    color: #005a8e !important;
    transition: all 0.3s ease !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23005a8e' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 16px !important;
    cursor: text !important;
    height: 44px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  #mainSearchInput:focus {
    outline: none !important;
    border-color: #003f64 !important;
    box-shadow: 0 0 0 3px rgba(79, 179, 191, 0.3),
      0 4px 15px rgba(0, 63, 100, 0.2) !important;
  }

  .main-search-button {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    border: none !important;
    background: linear-gradient(135deg, #00717c, #025381) !important;
    color: white !important;
    cursor: pointer;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 3px 10px rgba(0, 131, 143, 0.3) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    white-space: nowrap;
    min-width: 100px !important;
    height: 44px !important;
    margin-left: 0 !important;
    flex-shrink: 0;
  }

  .main-search-button span {
    display: inline-block !important;
  }

  .main-search-button i {
    font-size: 1rem !important;
    margin: 0 !important;
  }

  .main-search-button:hover {
    background: linear-gradient(135deg, #006064, #00838f) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 131, 143, 0.4) !important;
  }

  .main-search-button:active {
    transform: translateY(0) !important;
  }
}

/* Mobile search button smaller on very small screens */
@media (max-width: 480px) {
  .main-search-button {
    min-width: 120px !important;
    padding: 12px 12px !important;
  }
  .main-search-button span {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 360px) {
  .main-search-button {
    min-width: 100px !important;
    padding: 12px 8px !important;
  }
}

/* Mobile search results dropdown (id="mainSearchResults") */
#mainSearchResults {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  margin-top: 8px;
  border: 1px solid #e0e0e0;
  display: none;
}

#mainSearchResults.show {
  display: block !important;
}

#mainSearchResults a {
  display: block;
  padding: 14px 18px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

#mainSearchResults a:last-child {
  border-bottom: none;
}

#mainSearchResults a:hover {
  background: #f8f9fa;
  border-left: 4px solid #00717c;
  transform: translateX(3px);
}

.search-result-title {
  font-weight: 600;
  color: #005a8e;
  margin-bottom: 3px;
}

.search-result-snippet {
  font-size: 0.85rem;
  color: #666;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* ============================================================
     8) NAVBAR (desktop only)
     ============================================================ */
.navbar {
  background: rgba(0, 96, 100, 0.3);
  backdrop-filter: blur(12px);
  padding: 0 5%;
  margin-top: 5px;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  flex-wrap: wrap;
}

.navbar li {
  margin: 0 15px;
  position: relative;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 10px 0;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #b2ebf2;
  transition: width 0.4s ease;
}

.navbar a:hover::after,
.navbar a.active-link::after {
  width: 100%;
  box-shadow: 0 0 10px #b2ebf2;
}

/* ============================================================
     9) MOBILE MENU (slide-in drawer)
     ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, #005d65, #00444a);
  backdrop-filter: blur(15px);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1003;
  padding-top: 90px;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
}

.close-menu {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 5px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu:hover {
  transform: rotate(90deg);
  color: #b2ebf2;
}

.mobile-menu-content {
  padding: 25px;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-content li {
  margin: 18px 0;
  animation: fadeInRight 0.4s ease-out forwards;
  opacity: 0;
}

.mobile-menu-content a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid transparent;
}

.mobile-menu-content a:hover {
  background: rgba(178, 235, 242, 0.2);
  transform: translateX(10px);
  color: #b2ebf2;
  border-left: 4px solid #b2ebf2;
}

/* Mobile menu footer */
.mobile-menu-footer {
  padding: 20px 25px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .mobile-menu-footer {
    padding: 12px 20px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .mobile-menu-footer {
    padding: 10px 15px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 360px) {
  .mobile-menu-footer {
    padding: 8px 12px !important;
    font-size: 0.7rem !important;
  }
}

/* Dark overlay behind mobile menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

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

/* ============================================================
     10) MAIN CONTENT WRAPPER
     ============================================================ */
main {
  flex: 1;
  padding: 20px 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 1s ease-out;
  position: relative;
  transition: padding-top 0.3s ease-out;
}

/* Tab-style section switching (only one visible at a time) */
main > section[id] {
  display: none;
}

main > section[id].active-section {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

/* Offset for fixed header when jumping to section */
section[id] {
  scroll-margin-top: 170px;
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 210px;
  }
}

@media (max-width: 480px) {
  section[id] {
    scroll-margin-top: 190px;
  }
}

/* ============================================================
     11) WHATSAPP FIXED BUTTON (BOTTOM-RIGHT)
     ============================================================ */
.whatsapp-fixed-button {
  position: fixed !important;
  bottom: 30px;
  right: 30px;

  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;

  border-radius: 50%;
  background-color: #25d366 !important;
  background-image: url("/d/l/w.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);

  z-index: 99999;

  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;

  animation: whatsappPulse 2s infinite;

  text-decoration: none;
  overflow: visible;

  margin: 0;
  left: auto;
  top: auto;
}

.whatsapp-fixed-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.wa-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
}

.whatsapp-fixed-button.glow-active {
  animation: iconGlowPulse 0.6s ease-in-out;
}

/* HIDE WHATSAPP FAB WHILE SPLASH IS ACTIVE */
body.splash-active .whatsapp-fixed-button {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.6);
  animation: none !important;
}

@media (max-width: 768px) {
  .whatsapp-fixed-button {
    width: 55px;
    height: 55px;
    min-width: 55px;
    min-height: 55px;

    right: 15px;
    bottom: 15px;
  }
}

/* ============================================================
     12) SECTION: HOME  (#home)
     ============================================================ */

/* ---- Slideshow container ---- */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 30px auto 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: transparent;
}

/* ---- Individual slide ---- */
.slide {
  display: none;
  width: 100%;
  opacity: 0;
}

/* Active slide fades + slides in */
.slide.active {
  display: block;
  opacity: 1;
  animation: slideIn 0.8s ease-out;
}

/* Image */
.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ---- Prev / Next arrows ---- */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  user-select: none;
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* Dots container (below slideshow) */
.dots-container {
  position: relative;
  margin: 10px auto 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
  border-radius: 12px;
  padding: 2px 15px;
  min-width: 105px;
  min-height: 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  width: fit-content;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: white;
  transform: scale(0.7);
}

/* Global heading styles used across sections */
h1 {
  color: #1a2a6c;
  margin: 30px 0 15px;
  font-size: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  animation: fadeIn 0.8s ease-out;
}

h1:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
}

h2 {
  color: #006064;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-align: justify;
}

b {
  color: #1a2a6c;
  font-weight: 600;
}

/* Profile cards (used in #home, #gallery, #aboutus) */
.profile-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin: 40px auto;
  max-width: 600px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeInUp 0.8s ease-out;
  overflow: hidden;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.profile-card img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
}

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

.profile-card p {
  font-size: 1rem;
  color: #555;
}

/* ============================================================
     13) SECTION: ABOUT US  (#aboutus)
     ============================================================ */

/* ============================================================
     14) SECTION: SHAJRA SHAREEF  (#shajrashareef)
     ============================================================ */
.shajra-container {
  text-align: center;
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto 40px;
}

.shajra-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-btn {
  background: linear-gradient(135deg, #00717c, #025381);
  color: white;
  box-shadow: 0 3px 10px rgba(0, 131, 143, 0.3);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 131, 143, 0.4);
  color: white;
}

.view-btn {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #003f64;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.3);
}

.view-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.4);
}

/* ============================================================
     15) SECTION: MEGA EVENTS  (#megaevent)
     ============================================================ */

/* ============================================================
     16) SECTION: BOOKS  (#books)
     ============================================================ */
.book-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.book-row {
  display: flex;
  gap: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-wrap: wrap;
}

.book-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.book-cover {
  width: 140px;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.book-info {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-title {
  font-size: 1.4rem;
  color: #003f64;
  margin: 0 0 5px;
  text-align: left;
}

.book-edition {
  color: #00717c;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: inline-block;
}

.book-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.book-actions .action-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.file-size {
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 480px) {
  .book-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .book-title,
  .book-edition {
    text-align: center;
  }
  .book-info {
    align-items: center;
  }
}

/* ============================================================
     17) SECTION: ISLAHI TALEEMAT  (#islahitaleemat)
     ============================================================ */

/* ============================================================
     18) SECTION: GALLERY  (#gallery)
     ============================================================ */
h2.mha {
  margin-top: 2.5rem;
}

.profile-cards-main-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.profile-card-container {
  flex: 1 1 280px;
  max-width: 320px;
}

.profile-cards-main-container .profile-card {
  margin: 0;
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

.profile-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
  display: block;
}

.profile-card-container:hover .profile-image {
  transform: scale(1.05);
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn.download-btn {
  background: linear-gradient(135deg, #00717c, #025381);
  color: white;
}

.btn.view-btn {
  background: #e0f7fa;
  color: #003f64;
  border: 1px solid #4fb3bf;
}

.btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .profile-cards-main-container {
    gap: 15px;
  }
  .profile-card-container {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ============================================================
     19) SECTION: VIDEOS  (#video)
     ============================================================ */
.live-video-section {
  text-align: center;
  background: linear-gradient(135deg, #003f64, #00565a);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  color: white;
}

.live-video-section h2 {
  color: #ffd700;
  margin-bottom: 15px;
}

.live-video-section button {
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #003f64;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.live-video-section button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.5);
}

.video-grid {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.video-grid > h1 {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 12px 15px;
}

.video-title {
  font-size: 0.95rem;
  color: #003f64;
  margin: 0;
}

/* ============================================================
     20) SECTION: CONTACT US  (#contactus)
     ============================================================ */
.map-wrapper {
  margin-bottom: 40px;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 45%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.google-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .map-container {
    padding-bottom: 75%;
  }
}

.contacts-section {
  text-align: center;
}

.subheading {
  color: #555;
  margin-bottom: 30px;
  text-align: center;
}

.contact-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-cards-container .contact-card {
  background: white;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-cards-container .contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.contact-cards-container .contact-card h3 {
  color: #003f64;
  font-size: 1.15rem;
  margin-bottom: 5px;
}

.contact-cards-container .position {
  color: #00717c;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.contact-btn .icon {
  width: 16px;
  height: 16px;
}

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

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.call-btn {
  background: linear-gradient(135deg, #00717c, #025381);
}

.call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 131, 143, 0.4);
}

/* Contact button icon image */
.btn-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

/* ============================================================
     21) SECTION: PROJECT  (#project)
     ============================================================ */

/* ============================================================
     22) SECTION: IT TEAM  (#itteam)
     ============================================================ */
.social-buttons {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 20px 0;
}

.social-buttons a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.social-buttons a:hover {
  transform: translateY(-3px);
}

.youtube-btn {
  background: #ff0000;
}
.facebook-btn {
  background: #1877f2;
}
.instagram-btn {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}
.twitter-btn {
  background: #000000;
}

/* Social icon image */
.social-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}

/* ============================================================
     23) SECTION: SUPPORT  (#support)
     ============================================================ */
.support-container {
  max-width: 1000px;
  margin: 0 auto;
}

.support-header {
  text-align: center;
  margin-bottom: 40px;
}

.support-header p {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #555;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.contact-methods .contact-card {
  background: white;
  text-align: center;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-methods .contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.contact-methods .contact-card h3 {
  color: #003f64;
  margin-bottom: 6px;
}

.contact-methods .contact-card p {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 15px;
}

.contact-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #00717c, #025381);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 131, 143, 0.4);
}

.message-form-container {
  background: white;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-header {
  text-align: center;
  margin-bottom: 25px;
}

.form-header p {
  text-align: center;
  color: #666;
}

.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  background: #e0f7ea;
  color: #1a7a44;
  border: 1px solid #a3e6c1;
}

.form-status.error {
  background: #fdeaea;
  color: #a02020;
  border: 1px solid #f3b6b6;
}

.form-status.sending {
  background: #e7f3fb;
  color: #005a8e;
  border: 1px solid #b7dcf3;
}

#supportForm {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #003f64;
}

.form-group label span {
  color: #d63031;
  margin-left: 3px;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid #d5e6ec;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4fb3bf;
  box-shadow: 0 0 0 3px rgba(79, 179, 191, 0.2);
}

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

.form-submit {
  flex: 1 1 100%;
  text-align: center;
}

.form-submit button {
  padding: 14px 45px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #00717c, #025381);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 131, 143, 0.3);
}

.form-submit button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 131, 143, 0.4);
}

.form-submit button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .form-group {
    flex: 1 1 100%;
  }
  .message-form-container {
    padding: 20px;
  }
}

/* ============================================================
     24) SECTION: FAQ  (#faq)
     ============================================================ */

/* ============================================================
     25) FOOTER
     ============================================================ */
footer {
  background: linear-gradient(135deg, #003f64, #00393e);
  color: white;
  padding: 60px 5% 30px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 0.6s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  color: #e0f7fa;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #4fb3bf, #b2ebf2);
  animation: underlineGrow 0.8s ease-out;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
  transition: transform 0.3s ease;
}

.footer-section li:hover {
  transform: translateX(5px);
}

.footer-section li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #4fb3bf;
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 0;
  font-size: 1.05rem;
}

.footer-section a:hover {
  color: #b2ebf2;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(178, 235, 242, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(224, 247, 250, 0.2);
  font-size: 1rem;
  color: #a8d5e2;
  width: 100%;
}

/* ============================================================
     26) SHARED GLOW / RIPPLE ANIMATIONS
     ============================================================ */
.glow-link,
.whatsapp-fixed-button,
.contact-btn {
  position: relative;
  overflow: visible;
}

.glow-link.glow-active,
.whatsapp-fixed-button.glow-active,
.contact-btn.glow-active {
  animation: iconGlowPulse 0.6s ease-in-out;
}

.icon-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: logoRipple 0.6s ease-out;
  pointer-events: none;
  z-index: 5;
}

/* ============================================================
     27) KEYFRAMES (all animations)
     ============================================================ */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes logoPulse {
  0% {
    filter: drop-shadow(0 0 3px #cceeff);
    transform: scale(1);
  }
  25% {
    filter: drop-shadow(0 0 12px #99ccff) drop-shadow(0 0 20px #aaffdd);
    transform: scale(1.05);
  }
  50% {
    filter: drop-shadow(0 0 20px #88ccff) drop-shadow(0 0 30px #bbffee);
    transform: scale(1.08);
  }
  75% {
    filter: drop-shadow(0 0 12px #99ccff) drop-shadow(0 0 20px #aaffdd);
    transform: scale(1.05);
  }
  100% {
    filter: drop-shadow(0 0 3px #cceeff);
    transform: scale(1);
  }
}

@keyframes logoGlowPulse {
  0% {
    filter: drop-shadow(0 0 5px #ffd700);
    transform: scale(1);
  }
  25% {
    filter: drop-shadow(0 0 20px #ffd700) drop-shadow(0 0 40px #ffa500);
    transform: scale(1.15);
  }
  50% {
    filter: drop-shadow(0 0 30px #ffd700) drop-shadow(0 0 60px #ff4500);
    transform: scale(1.2);
  }
  75% {
    filter: drop-shadow(0 0 20px #ffd700) drop-shadow(0 0 40px #ffa500);
    transform: scale(1.15);
  }
  100% {
    filter: drop-shadow(0 0 5px #ffd700);
    transform: scale(1);
  }
}

@keyframes logoRipple {
  0% {
    width: 5px;
    height: 5px;
    opacity: 0.4;
  }
  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

@keyframes iconGlowPulse {
  0% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 26px rgba(255, 215, 0, 0.6));
    transform: scale(1.08);
  }
  100% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    transform: scale(1);
  }
}

@keyframes underlineGrow {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ============================================================
     28) RESPONSIVE BREAKPOINTS
     ============================================================ */

/* ------------------------------------------------------------
     DESKTOP HEADER TITLE — CENTERED ON ONE STRAIGHT LINE
     Applies to screens wider than 768px.
     ------------------------------------------------------------ */
@media (min-width: 769px) {
  .header-top-line {
    position: relative;
    justify-content: space-between;
  }

  /* Absolutely center the title block, independent of logo/search widths */
  .header-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-grow: 0;
    width: auto;
    max-width: 55%;
    pointer-events: none;
    padding: 0;
    white-space: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
  }

  .title-line-1,
  .title-line-2 {
    display: inline !important;
    margin: 0 !important;
    font-size: 1.9rem;
    white-space: nowrap;
  }

  /* Ensure logo & search stay above the centered title if they overlap */
  .header-top-line .logo-container,
  .header-top-line .header-search-container,
  .header-top-line .hamburger {
    position: relative;
    z-index: 3;
  }
}

/* ------------------------------------------------------------
     SPLASH TITLE LAYOUT
     Desktop: one straight line. Mobile: two lines.
     ------------------------------------------------------------ */
@media (min-width: 769px) {
  .splash-title {
    white-space: nowrap;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  }
  .splash-title .splash-sep {
    display: inline;
    white-space: pre;
  }
}

@media (max-width: 768px) {
  .splash-title {
    white-space: normal;
    font-size: clamp(1.2rem, 5.5vw, 1.7rem);
    line-height: 1.35;
  }
  .splash-title .splash-line-1,
  .splash-title .splash-line-2 {
    display: block;
  }
  .splash-title .splash-sep {
    display: none;
  }
}

/* Tablet / small laptop */
@media (max-width: 992px) {
  .loading-bar {
    width: min(var(--loading-bar-width-md), 90vw);
  }
  .splash-title {
    font-size: var(--splash-title-size-md);
  }
  .splash-content .logo {
    max-width: var(--splash-logo-max-width-md);
  }
  .navbar li {
    margin: 0 10px;
  }
  .logo {
    height: 75px !important;
  }

  /* Slideshow: switch to auto height with aspect-ratio */
  .slideshow-container {
    height: auto;
    aspect-ratio: 16 / 7;
    max-width: 100%;
  }
}

/* Tablet range — shrink header title to prevent overlap */
@media (min-width: 769px) and (max-width: 1100px) {
  .header-title {
    max-width: 45%;
  }
  .title-line-1,
  .title-line-2 {
    font-size: 1.5rem;
  }
  .header-search-input {
    width: 150px;
  }
  .header-search-button span {
    display: none;
  }
  .header-search-button {
    padding: 12px 16px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .title-line-1,
  .title-line-2 {
    font-size: 1.3rem;
  }
  .header-title {
    max-width: 40%;
  }
}

/* Mobile layout (<=768px) */
@media (max-width: 768px) {
  body {
    padding-top: 155px;
  }

  .header-top-line {
    padding: 6px 4%;
    min-height: 70px;
  }
  .logo {
    height: 65px !important;
  }

  /* Mobile: two-line title centered */
  .header-title {
    flex-grow: 1;
    padding: 0 10px;
    flex-direction: column;
  }
  .title-line-1,
  .title-line-2 {
    display: block !important;
    font-size: 1.4rem;
    margin: 0;
  }
  .title-line-1 {
    font-size: 1.4rem;
    margin-bottom: 2px;
  }
  .title-line-2 {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex !important;
  }
  .header-search-container {
    display: none !important;
  }
  .navbar {
    display: none;
  }
  .mobile-menu {
    width: 85%;
  }
  .footer-section {
    min-width: 100%;
  }
  .footer-container {
    flex-direction: column;
    gap: 15px;
  }
  .whatsapp-fixed-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  main {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
  }
  h1 {
    font-size: 1.6rem;
    margin: 20px 0 10px;
  }
  h2 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
  }
  p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .profile-card {
    margin: 20px auto;
    padding: 15px;
  }
  .slideshow-container {
    margin: 15px auto 0 auto;
    height: auto;
    aspect-ratio: 16 / 8;
  }
  .dots-container {
    margin: 8px auto 20px auto;
  }
}

/* Small mobile (<=600px) */
@media (max-width: 600px) {
  main {
    padding-top: 0.5rem;
  }
  h1 {
    font-size: 1.4rem;
    margin: 15px 0 8px;
  }
  h2 {
    font-size: 1.1rem;
    margin: 1.2rem 0 0.6rem;
  }
  .slideshow-container {
    margin: 10px auto 0 auto;
  }
}

/* Extra small mobile (<=480px) */
@media (max-width: 480px) {
  body {
    padding-top: 150px;
  }
  main {
    padding-top: 0.5rem;
    padding-left: 3%;
    padding-right: 3%;
  }
  h1 {
    font-size: 1.3rem;
    margin: 12px 0 6px;
    padding-bottom: 5px;
  }
  h1:after {
    width: 60px;
    height: 2px;
  }
  h2 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
  }
  .whatsapp-fixed-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  .profile-card {
    margin: 15px auto;
    padding: 12px;
  }
  .dots-container {
    margin: 5px auto 15px auto;
    padding: 1px 12px;
    min-width: 90px;
  }
  .mobile-menu {
    width: 90%;
  }
  .logo {
    height: 55px !important;
  }
  .support-header h1,
  #faq h1,
  #project h1,
  #itteam h1 {
    font-size: 1.3rem;
  }
  .title-line-1 {
    font-size: 1.2rem;
  }
  .title-line-2 {
    font-size: 1.05rem;
  }

  /* Slideshow: bigger aspect ratio for narrow screens */
  .slideshow-container {
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 8px auto 0 auto;
    border-radius: 8px;
  }
  .prev,
  .next {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .prev {
    left: 8px;
  }
  .next {
    right: 8px;
  }
}

/* Very small mobile (<=360px) */
@media (max-width: 360px) {
  body {
    padding-top: 145px;
  }
  main {
    padding-top: 0.5rem;
  }
  h1 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
  }
  h2 {
    font-size: 0.95rem;
    margin: 0.8rem 0 0.4rem;
  }
  p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  .logo {
    height: 50px !important;
  }
  .title-line-1 {
    font-size: 1.05rem;
  }
  .title-line-2 {
    font-size: 0.9rem;
  }
  .slideshow-container {
    aspect-ratio: 4 / 3;
    margin: 5px auto 0 auto;
    border-radius: 8px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .splash-screen,
  .splash-title,
  .loading-progress,
  .logo-container,
  .whatsapp-fixed-button {
    animation: none !important;
  }
}

/* Desktop-only: hide mobile search, hide hamburger */
@media (min-width: 769px) {
  .main-search-container-wrapper {
    display: none !important;
  }
  .hamburger {
    display: none !important;
  }
  body {
    padding-top: 160px;
  }
}


/* Mobile slideshow — hug the image, no empty space below */
@media (max-width: 768px) {
  .slideshow-container {
    height: auto !important;
    aspect-ratio: auto !important;
    max-width: 100%;
    margin: 15px auto 0 auto;
    border-radius: 10px;
    background: transparent;
  }

  .slideshow-container .slide {
    position: relative;
    display: none;
    width: 100%;
  }

  .slideshow-container .slide.active {
    display: block;
  }

  .slideshow-container .slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    margin: 10px auto 0 auto;
    border-radius: 8px;
  }
  .slideshow-container .slide img {
    border-radius: 8px;
  }
}

@media (min-width: 769px) {
  .splash-title {
    white-space: nowrap;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    display: inline-flex;
    gap: 0.35em;
  }
  .splash-title .splash-sep {
    display: none !important;
  }
}


@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.98);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Optional: reverse direction (slide from left) when going backward.
   Add class "slide-back" via JS if you want direction-aware animation.
   Otherwise the animation above plays for both directions. */
.slide.active.slide-back {
  animation: slideInBack 0.8s ease-out;
}

@keyframes slideInBack {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.98);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Mobile tweak: smaller travel distance */
@media (max-width: 768px) {
  .slideshow-container {
    margin: 15px auto 0 auto;
    border-radius: 10px;
  }
  .slide img {
    border-radius: 10px;
  }
  @keyframes slideIn {
    0% {
      opacity: 0;
      transform: translateX(20px) scale(0.98);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }
  @keyframes slideInBack {
    0% {
      opacity: 0;
      transform: translateX(-20px) scale(0.98);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }
}





/* ============================================================
   SPLASH TITLE — TWO LINES ON MOBILE (≤786px)
   Line 1: Darbar-e-Ghousia
   Line 2: Ghousabad Sharif
   ============================================================ */

/* Base (desktop) — one straight line, gold */
.splash-title {
  color: #ffd700;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  margin: 0 0 var(--splash-title-margin-bottom) 0;
  padding: 0;
  display: block;
}

.splash-title .splash-line-1,
.splash-title .splash-line-2 {
  display: inline;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.splash-title .splash-sep {
  display: inline;
  white-space: pre;
  line-height: 1;
}

/* Mobile / small tablets (≤786px) — stack the two lines */
@media (max-width: 786px) {
  .splash-title {
    white-space: normal;
    font-size: clamp(1.1rem, 5.2vw, 1.7rem);
    line-height: 1.15 !important;
    display: block !important;
    margin: 0 auto var(--splash-title-margin-bottom) auto !important;
    padding: 0 !important;
    max-width: 95%;
    text-align: center;
  }

  /* Each line is its own block, but text stays on ONE line each */
  .splash-title .splash-line-1,
  .splash-title .splash-line-2 {
    display: block !important;
    white-space: nowrap !important;   /* ← stop inner wrapping */
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .splash-title .splash-sep {
    display: none !important;
  }
}

/* Tiny phones (≤360px) */
@media (max-width: 360px) {
  .splash-title {
    font-size: clamp(0.95rem, 5vw, 1.3rem);
    line-height: 1.15 !important;
    max-width: 98%;
  }
}