/* ============================================
   أحباب الحرمين للعمرة — Atmospheric Luxury
   Design System: Deep Emerald & Matte Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  /* 
     Color Palette: "Atmospheric & Noble"
     -------------------------------------
     Strategy: Deep, solid backgrounds with subtle 
     separations instead of jarring gradients.
  */

  /* Backgrounds */
  --bg-deep: #010e0b;
  /* Main Body Background (Deepest Black/Green) */
  --bg-surface: #051410;
  /* Card/Section Background (Slightly Lighter) */
  --bg-highlight: #0a1f18;
  /* Hover/Active States */

  /* Accents */
  --gold-primary: #c7a15b;
  /* Matte Gold - Elegant, not yellow */
  --gold-light: #e3c472;
  /* Highlight Gold */
  --gold-dim: #8a6d3b;
  /* Muted Gold for borders */

  /* Text */
  --text-ivory: #fdfbf7;
  /* Primary Text (Warm White) */
  --text-muted: #aebdb8;
  /* Secondary Text */

  /* Structural */
  --border-gold: 1px solid rgba(199, 161, 91, 0.2);
  --border-gold-strong: 1px solid rgba(199, 161, 91, 0.4);

  /* Shadows (Soft & Deep) */
  --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(199, 161, 91, 0.15);

  /* Spacing */
  --section-spacing: clamp(80px, 10vw, 120px);
  --radius-sm: 4px;
  --radius-md: 8px;
  /* Sharper, more premium corners */
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

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


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-ivory);
  direction: rtl;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Ensure font inheritance for form elements */
button,
input,
select,
textarea {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* ── Typography & Headings ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  color: var(--text-ivory);
}

.text-gold {
  color: var(--gold-primary);
}

.text-muted {
  color: var(--text-muted);
}

/* ── Layout Utilities ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-spacing) 0;
}

/* ── Buttons (Solid & Premium) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--gold-primary);
  color: #000;
  /* Distinct contrast */
  box-shadow: 0 4px 15px rgba(199, 161, 91, 0.2);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 161, 91, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

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

/* ── Top Bar (New) ── */
.top-bar {
  background-color: #000;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  position: relative;
  z-index: 1001;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact {
  display: flex;
  gap: 20px;
}

.top-contact a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.top-contact a:hover {
  color: var(--gold-primary);
}

.top-social {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-muted);
}

.top-social a {
  color: #fff;
  transition: 0.3s;
}

.top-social a:hover {
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ── Navigation (Enhanced) ── */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 5px 0;
  transition: all 0.4s ease;
  background: rgba(1, 14, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(199, 161, 91, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 65px;
  /* Adjust as needed based on the logo aspect ratio */
  width: auto;
  display: block;
}

/* 
.logo-icon-wrap { ... } 
.logo-text { ... } 
These can remain or be removed. I'll leave them for now but they won't be used in HTML. 
*/

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-ivory);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  font-size: 0.95rem;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
}

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

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  color: var(--gold-primary);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Video Hero Section ── */
.hero-video-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
  /* Slight dim for text readability */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(1, 14, 11, 0.7) 0%, rgba(1, 14, 11, 0.4) 50%, rgba(1, 14, 11, 1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  transform: translateY(-70px);
  /* Lifted content */
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(199, 161, 91, 0.3);
  background: rgba(199, 161, 91, 0.1);
  border-radius: 50px;
  color: var(--gold-primary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ── Section Titles ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-primary);
  margin: 15px auto 0;
}

/* ── Why Choose Us (Minimal) ── */
.why-choose-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.why-choose-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
}

.why-choose-item:hover {
  background: rgba(199, 161, 91, 0.08);
  /* Gold tint */
  border-color: rgba(199, 161, 91, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.why-id-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-primary);
  flex-shrink: 0;
  transition: all 0.3s;
}

.why-choose-item:hover .why-id-icon {
  background: var(--gold-primary);
  color: #000;
}

.why-choose-text {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}

.why-result-text {
  font-size: 1.3rem;
  color: var(--text-ivory);
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding: 0 20px;
}

.why-result-text span {
  color: var(--gold-primary);
}

@media (max-width: 768px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Programs Section ── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.program-card {
  background: var(--bg-highlight);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(199, 161, 91, 0.4);
}

.card-image {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

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

.program-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold-primary);
  color: #000;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.program-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.program-card.highlight .program-title {
  color: var(--gold-primary);
}

.program-desc {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.program-features {
  list-style: none;
  margin-bottom: 30px;
  padding: 0;
}

.program-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-ivory);
  font-size: 0.95rem;
}

.program-features i {
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.program-card.highlight {
  border: 1px solid var(--gold-dim);
  background: #0d1f18;
  /* Slightly greener tint for highlight */
}

/* ── Family Section ── */
.family-section {
  background: linear-gradient(90deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.family-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.family-text ul {
  list-style: none;
  margin-top: 30px;
}

.family-text li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.family-text i {
  color: var(--gold-primary);
}

/* ── Booking Section (Overhaul) ── */
.booking-section {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid rgba(199, 161, 91, 0.15);
  padding: 100px 0;
  overflow: hidden;
}

/* Background Abstract Blob */
.booking-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(199, 161, 91, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

.booking-card-container {
  display: flex;
  background: var(--bg-surface);
  border-radius: 20px;
  /* Reduced radius */
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  min-height: 600px;
}

/* Left Side: Visual & Info */
.booking-visual-side {
  flex: 0.8;
  background: url('../images/booking-visual.png') no-repeat center center/cover;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.booking-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.booking-visual-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.visual-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-primary);
}

.visual-desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

.contact-info-block {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Right Side: Form */
.booking-form-side {
  flex: 1.2;
  padding: 50px;
  background: var(--bg-surface);
}

.form-header {
  margin-bottom: 30px;
}

.form-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* More subtle */
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(199, 161, 91, 0.1);
}

/* Toggle */
.form-toggle-group {
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 35px;
  padding: 6px;
  border-radius: 14px;
}

.form-toggle-option {
  border-radius: 10px;
  padding: 14px;
}

.btn-submit-booking {
  width: 100%;
  padding: 18px;
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
  border-radius: 12px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-submit-booking:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(199, 161, 91, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .booking-card-container {
    display: block;
  }

  .booking-visual-side {
    padding: 40px 30px;
    min-height: 300px;
  }

  .booking-form-side {
    padding: 30px 20px;
  }
}

/* ── FAQ ── */
/* ── FAQ (Redesigned - Clean & Modern) ── */
.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--bg-deep);
  /* Darker background for contrast on surface */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(199, 161, 91, 0.3);
  transform: translateY(-2px);
}

.faq-item.active {
  background: var(--bg-highlight);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-btn {
  width: 100%;
  text-align: right;
  padding: 20px 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-btn i {
  color: var(--gold-primary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.faq-item.active .faq-btn {
  color: var(--gold-primary);
}

.faq-item.active .faq-btn i {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.faq-content p {
  padding: 0 25px 25px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0;
}

.faq-item.active .faq-content {
  max-height: 200px;
  /* Adjust if content is very long */
}

/* ── Footer (Redesigned) ── */
.footer {
  background: #020403;
  color: #fff;
  padding: 80px 0 0;
  border-top: 1px solid rgba(199, 161, 91, 0.2);
  position: relative;
  overflow: hidden;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 20px 0;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-primary);
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

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

.footer-links a::before {
  content: '‹';
  color: var(--gold-primary);
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.3s;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(3px);
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.4s;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold-primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(199, 161, 91, 0.3);
  border-color: var(--gold-primary);
}


/* Footer Contact List */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact-list li i {
  color: var(--gold-primary);
  font-size: 1.1rem;
  width: 25px;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.7);
  /* Match list item color */
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  /* Ensure alignment */
  align-items: center;
  /* Vertically center */
  justify-content: flex-start;
  /* Ensure left alignment (ltr) / right (rtl) */
}

.footer-contact-list a:hover {
  color: #fff;
  transform: translateX(-5px);
  /* Subtle shift on hover for RTL */
}

/* Footer Bottom */
.footer-bottom {
  background: #000;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(50%);
    right: auto;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-links a:hover {
    transform: none;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ── Steps Timeline (Journey) ── */
.steps-section {
  position: relative;
  overflow: hidden;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 20px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bg-surface);
  /* Must be opaque */
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 25px;
  position: relative;
  z-index: 10;
  /* Higher than line */
  box-shadow: 0 0 15px rgba(199, 161, 91, 0.2);
}

.step-card::after {
  content: '';
  position: absolute;
  top: 50px;
  right: 50%;
  /* Start from center */
  width: 100%;
  /* Extend to the left (next item in RTL) */
  height: 2px;
  background: var(--bg-surface);
  border-top: 1px dashed rgba(199, 161, 91, 0.3);
  z-index: 1;
  /* Lower than number */
  transform: none;
}

.step-card:last-child::after {
  display: none;
}

.step-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

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

/* ── Testimonials (Restored) ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-ivory);
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: #fff;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--gold-primary);
}

/* ── Smart Booking Form ── */
.form-toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 5px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-toggle-option {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-toggle-option.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(199, 161, 91, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.hidden-field {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.visible-field {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Responsive Steps fix */
@media (max-width: 768px) {
  .step-card::after {
    display: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .family-content,
  .booking-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.8rem;
  }
}

/* ── Utility: Islamic Pattern Background ── */
.islamic-bg {
  position: relative;
  background-color: var(--bg-deep);
  background-image: url('../images/islamic-pattern.png');
  background-size: 400px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  opacity: 1;
}

/* ── Generic Content Pages (Terms, Privacy) ── */

.content-box {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-muted);
}

.content-box h3 {
  color: var(--gold-primary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(199, 161, 91, 0.2);
  padding-bottom: 10px;
}

.content-box h3:first-child {
  margin-top: 0;
}

.content-box ul {
  padding-right: 20px;
  margin-bottom: 20px;
}

.content-box li {
  margin-bottom: 10px;
  list-style-type: none;
  position: relative;
}

.content-box li::before {
  content: "•";
  color: var(--gold-primary);
  position: absolute;
  right: -20px;
  top: 0;
}

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

/* ── Gallery ── */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.gallery-filter {
  padding: 10px 28px;
  border: 1px solid rgba(199, 161, 91, 0.25);
  background: transparent;
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}

.gallery-filter:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.gallery-filter.active {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(199, 161, 91, 0.25);
}

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

.gallery-item {
  transition: opacity 0.3s ease;
}

.gallery-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-img-wrap:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-img-wrap:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: #fff;
}

.gallery-overlay-content i {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 10px;
  display: block;
}

.gallery-overlay-content span {
  font-size: 1rem;
  font-weight: 600;
}

.gallery-caption {
  padding: 14px 5px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-caption i {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s;
}

.lightbox-caption {
  color: var(--text-muted);
  margin-top: 15px;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  left: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--gold-primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

.lightbox-prev {
  right: 25px;
}

.lightbox-next {
  left: 25px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev {
    right: 10px;
  }

  .lightbox-next {
    left: 10px;
  }
}

/* ── Enhanced Page Hero ── */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  background: url('../images/hero-poster.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(1, 14, 11, 0.75) 0%, rgba(1, 14, 11, 0.5) 50%, rgba(1, 14, 11, 0.95) 100%);
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-primary);
  z-index: 3;
  border-radius: 2px;
}

.page-hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  transform: translateY(-30px);
  /* Lifted content */
}

.page-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--gold-primary);
  opacity: 0.9;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ── About Page ── */
.about-intro {
  background: var(--bg-surface);
  border: 1px solid rgba(199, 161, 91, 0.1);
  border-radius: var(--radius-md);
  padding: 50px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.about-intro::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 5rem;
  color: var(--gold-primary);
  opacity: 0.15;
  font-family: serif;
  line-height: 1;
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 161, 91, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(199, 161, 91, 0.08);
}

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

.value-icon {
  width: 65px;
  height: 65px;
  background: rgba(199, 161, 91, 0.08);
  border: 1px solid rgba(199, 161, 91, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 25px;
  transition: all 0.4s;
}

.value-card:hover .value-icon {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(199, 161, 91, 0.3);
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
}

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

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold-primary);
  transition: width 0.4s;
}

.stat-item:hover::after {
  width: 60%;
}

.stat-item:hover {
  border-color: rgba(199, 161, 91, 0.2);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Mission/Vision Cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mission-card {
  text-align: center;
  padding: 45px 30px;
  background: var(--bg-highlight);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.4s;
}

.mission-card:hover {
  border-color: rgba(199, 161, 91, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.mission-card .value-icon {
  margin: 0 auto 25px;
}

.mission-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--gold-primary);
}

.mission-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-highlight);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s;
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-info-card:hover {
  border-color: rgba(199, 161, 91, 0.25);
  transform: translateX(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-info-card:last-child {
  margin-bottom: 0;
}

.contact-icon-wrap {
  min-width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-icon-wrap.gold {
  background: rgba(199, 161, 91, 0.1);
  border: 1px solid rgba(199, 161, 91, 0.15);
  color: var(--gold-primary);
}

.contact-icon-wrap.green {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contact-info-card h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-info-card a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-surface);
  border: 1px solid rgba(199, 161, 91, 0.12);
  border-radius: var(--radius-md);
  padding: 45px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
}

.contact-form-wrap h3 {
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.contact-form-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.contact-form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(199, 161, 91, 0.1);
}

.contact-form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--bg-surface);
  border: 1px solid rgba(199, 161, 91, 0.15);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(199, 161, 91, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.cta-banner>* {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── Includes Grid (Programs page) ── */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.include-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--bg-highlight);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.4s;
}

.include-card:hover {
  border-color: rgba(199, 161, 91, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.include-card .value-icon {
  margin: 0 auto 20px;
}

.include-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #fff;
}

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

/* ── Sub-page Responsive ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .includes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .family-content {
    grid-template-columns: 1fr !important;
  }

  .family-content .program-features {
    grid-template-columns: 1fr !important;
  }

  .contact-form-wrap {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 40vh;
    min-height: 280px;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-item {
    padding: 25px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .includes-grid {
    grid-template-columns: 1fr;
  }

  .content-box {
    padding: 30px 20px;
  }

  .about-intro {
    padding: 30px 25px;
  }

  .cta-banner {
    padding: 40px 25px;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .contact-info-card {
    padding: 20px;
  }
}

/* ── Mobile Optimization (Fine-tuning) ── */
@media (max-width: 600px) {

  /* 1. Top Bar Optimization */
  .top-social {
    display: none;
  }

  .top-bar-container {
    justify-content: center;
  }

  .top-contact {
    font-size: 0.8rem;
    justify-content: center;
    width: 100%;
  }

  /* 2. Navigation & Mobile Menu */
  .logo-text h1 {
    font-size: 1.1rem;
  }

  .logo-text span {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .logo-icon-wrap {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  /* Slide-out Menu */
  .nav-links {
    display: flex !important;
    /* Override the 'none' from 900px query */
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 20px;
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
    gap: 0;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
  }

  /* 3. Hero & Headings */
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-badge {
    padding: 6px 15px;
    font-size: 0.8rem;
  }

  /* 4. Grids */
  .programs-grid,
  .features-grid,
  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  /* 5. Spacing */
  :root {
    --section-spacing: 50px;
  }

  .section-padding {
    padding: 50px 0;
  }

  /* 6. Footer (Fixed Layout) */
  .footer-grid {
    gap: 30px;
    text-align: center;
  }

  .footer-brand p {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .footer-links li {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 15px;
    padding-top: 20px;
  }
}