/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Aref+Ruqaa:wght@400;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --primary: #2e5252;
  --primary-dark: #1a3333;
  --primary-light: #3d6b6b;
  --secondary: #e8bb49;
  --secondary-dark: #c9a03c;
  --secondary-fg: #1a3333;
  --bg: #ffffff;
  --bg-alt: #faf9f6;
  --bg-muted: #f0f4f4;
  --text: #1a3333;
  --text-muted: #526363;
  --border: #d8e5e5;
  --white: #ffffff;
  --green: #16a34a;
  --green-dark: #15803d;
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5d;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Amiri', serif;
  --font-arabic: 'Aref Ruqaa', serif;
  --radius: 0.5rem;
  --shadow: 0 4px 24px rgba(46,82,82,0.10);
  --shadow-lg: 0 8px 40px rgba(46,82,82,0.16);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { padding-left: 1.5rem; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.font-serif { font-family: var(--font-serif); }
.font-arabic { font-family: var(--font-arabic); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-secondary { color: var(--secondary); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}
.header-logo i { color: var(--secondary); font-size: 1.4rem; transition: color 0.2s; }
.header-logo:hover i { color: var(--white); }
.header-logo span {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.header-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.header-nav a { color: var(--white); transition: color 0.2s; }
.header-nav a:hover { color: var(--secondary); }
.header-btns {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--secondary);
  color: var(--secondary-fg);
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.btn-call:hover { background: var(--secondary-dark); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.btn-whatsapp:hover { background: var(--green-dark); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  font-family: inherit;
}
.nav-dropdown-trigger:hover { color: var(--secondary); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--bg-muted); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.3rem;
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.1); }

/* Mobile sidebar */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}
.mobile-overlay.open { display: block; }
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--primary);
  color: var(--white);
  z-index: 201;
  padding: 1.5rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-sidebar.open { right: 0; }
.mobile-sidebar-close {
  align-self: flex-end;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.mobile-sidebar a, .mobile-sidebar-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.mobile-sidebar a:hover, .mobile-sidebar-link:hover { color: var(--secondary); }
.mobile-services-group {
  padding-left: 1rem;
  border-left: 2px solid rgba(255,255,255,0.2);
  margin: 0.5rem 0;
}
.mobile-services-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.mobile-sidebar .mobile-btns {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-btns .btn-call, .mobile-btns .btn-whatsapp {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ===== HERO ===== */
.hero-section { width: 100%; }
.hero-section img { width: 100%; height: auto; display: block; }
.hero-mobile { display: block; }
.hero-desktop { display: none; }

/* ===== ABOUT SECTION ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--white); }
.about-grid { display: flex; flex-direction: column; gap: 3rem; }
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(232,187,73,0.15);
  color: var(--primary);
  font-weight: 700;
  border-radius: 9999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(232,187,73,0.3);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.divider { width: 6rem; height: 6px; background: var(--secondary); border-radius: 9999px; margin: 1rem 0; }
.arabic-text {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--primary);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
}
.prose-text { font-size: 1.05rem; color: rgba(26,51,51,0.8); line-height: 1.85; }
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 1rem;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.service-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: 1;
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: var(--secondary); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.service-card:hover img { transform: scale(1.05); }
.service-card-body { padding: 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.service-card-body h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.service-card-body .urdu { font-family: var(--font-arabic); font-size: 1.1rem; color: rgba(46,82,82,0.85); direction: rtl; margin-bottom: 1.5rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  transition: background 0.2s;
  margin-top: auto;
}
.btn-primary:hover { background: var(--secondary); color: var(--secondary-fg); }

/* ===== FEATURED SECTION ===== */
.featured-section { padding: 3rem 0; background: var(--primary-dark); color: var(--white); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.featured-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: background 0.2s;
}
.featured-card:hover { background: rgba(255,255,255,0.1); }
.featured-symbol { font-family: var(--font-serif); font-size: 2.5rem; color: var(--secondary); margin-bottom: 0.75rem; }
.featured-card h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; }

/* ===== FULL WIDTH IMAGE ===== */
.full-img { width: 100%; height: auto; object-fit: contain; display: block; }

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* default (tablet type) */
  gap: 1.5rem;
}

/* Desktop (4 cards in one row) */
@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile (1 card per row) */
@media (max-width: 576px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--secondary);
  transition: transform 0.3s;
  width: 100%; /* FIX: full width on mobile */
}

.why-card:hover {
  transform: translateY(-6px);
}

.why-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.why-card h3 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 5rem 0;
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(232,187,73,0.08);
  border-radius: 50%;
  filter: blur(40px);
}
.testimonials-section::after {
  content: '';
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  width: 30rem;
  height: 30rem;
  background: rgba(232,187,73,0.08);
  border-radius: 50%;
  filter: blur(60px);
}
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; position: relative; z-index: 1; }
.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}
.testimonial-quote {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 3rem;
  height: 3rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: var(--font-serif);
  line-height: 1;
  padding-top: 0.5rem;
  box-shadow: var(--shadow);
}
.stars { color: var(--secondary); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { color: rgba(255,255,255,0.9); font-size: 1rem; line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-serif);
}
.author-name { font-weight: 700; font-size: 1rem; }
.author-loc { color: var(--secondary); font-size: 0.85rem; }

/* ===== LOCATION PILLS ===== */ .locations-section { padding: 3.5rem 0; background: var(--white); border-bottom: 1px solid var(--border); } .locations-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; max-width: 1000px; margin: 0 auto; } .location-pill { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.75rem 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 9999px; color: var(--primary); font-weight: 500; font-size: 0.875rem; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all 0.2s; } .location-pill:hover { background: var(--primary); color: var(--white); border-color: var(--primary); } .location-pill i { font-size: 0.75rem; opacity: 0.7; flex-shrink: 0; }

/* ===== DISCLAIMER ===== */
.disclaimer { padding: 2.5rem 0; background: #f0f4f4; text-align: center; }
.disclaimer p { font-size: 0.85rem; color: rgba(46,82,82,0.6); line-height: 1.7; max-width: 800px; margin: 0 auto; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 8px solid var(--secondary);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.footer-logo i { color: var(--secondary); font-size: 1.6rem; }
.footer-logo span { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.footer-desc { color: rgba(255,255,255,0.8); line-height: 1.7; }
.footer-heading { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.9); font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary); }
.footer-contact { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.9); }
.footer-contact i { color: var(--secondary); flex-shrink: 0; margin-top: 0.2rem; }
.footer-contact a { color: rgba(255,255,255,0.9); transition: color 0.2s; }
.footer-contact a:hover { color: var(--secondary); }
.footer-contact .wa-icon { color: #4ade80; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ===== FLOATING BUTTONS ===== */
.float-call {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.2s;
  text-decoration: none;
}
.float-call:hover { background: var(--primary-light); transform: scale(1.05); color: var(--white); }
.float-call:active { transform: scale(0.95); }
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--whatsapp);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.2s;
  text-decoration: none;
}
.float-wa:hover { background: var(--whatsapp-dark); transform: scale(1.05); color: var(--white); }
.float-wa:active { transform: scale(0.95); }
.float-label { display: none; }

/* ===== PAGE BANNER (Inner Pages) ===== */
.page-banner {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-banner h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .current { color: var(--secondary); }

/* ===== ABOUT PAGE ===== */
.about-grid-inner { display: flex; flex-direction: column; gap: 3rem; }
.core-principles {
  margin-top: 2rem;
  background: rgba(46,82,82,0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(46,82,82,0.1);
}
.core-principles h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--primary); margin-bottom: 0.75rem; }
.principles-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.principles-list li { display: flex; align-items: center; gap: 0.75rem; }
.bullet { width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; flex-shrink: 0; }

/* ===== SERVICE PAGE ===== */
.service-page-layout { display: flex; flex-direction: column; gap: 3rem; }
.service-content { flex: 1; }
.service-content p { color: rgba(26,51,51,0.8); line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }
.service-content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--primary);
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}
.service-content ul, .service-content ol { margin-bottom: 1rem; }
.service-content li { color: rgba(26,51,51,0.8); margin-bottom: 0.5rem; }
.service-content .lead {
  font-size: 1.15rem;
  color: rgba(46,82,82,0.8);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.quran-box {
  background: rgba(46,82,82,0.06);
  border: 1px solid rgba(46,82,82,0.12);
  padding: 1.5rem;
  border-radius: 1rem;
  margin: 2rem 0;
  text-align: center;
}
.quran-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--primary);
  direction: rtl;
  line-height: 2;
  margin-bottom: 0.5rem;
}
.quran-translation { font-size: 0.875rem; color: var(--text-muted); font-style: italic; }
.dark-quran-box {
  background: var(--primary);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dark-quran-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://istikharaforyou.com/slider_1.webp') center/cover no-repeat;
  opacity: 0.08;
}
.dark-quran-arabic { font-family: var(--font-arabic); font-size: 1.5rem; direction: rtl; line-height: 2; position: relative; z-index: 1; }
.dark-quran-trans { font-size: 0.875rem; color: var(--secondary); margin-top: 0.75rem; position: relative; z-index: 1; }
.blockquote {
  border-left: 4px solid var(--secondary);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  font-style: italic;
}
.sidebar {
  position: relative;
}
.sidebar-inner {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 1rem;
  overflow: hidden;
}
.sidebar-header {
  background: var(--primary);
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
}
.sidebar-header h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }
.sidebar-header p { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin-top: 0.25rem; }
.sidebar-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-body .btn-call, .sidebar-body .btn-whatsapp {
  width: 100%;
  justify-content: center;
  padding: 0.875rem;
  font-size: 1rem;
  border-radius: var(--radius);
}
.sidebar-note { font-size: 0.75rem; text-align: center; color: var(--text-muted); }
.related-services { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-services h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--primary); font-weight: 700; margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.related-link {
  display: block;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
}
.related-link:hover { background: var(--primary); color: var(--white); }

/* ===== CONTACT PAGE ===== */
.contact-layout { display: flex; flex-direction: column; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(46,82,82,0.05);
  border: 1px solid rgba(46,82,82,0.1);
}
.contact-card.green { background: #f0fdf4; border-color: #bbf7d0; }
.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-icon.green { background: var(--green); }
.contact-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.25rem; }
.contact-value { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.contact-value a { color: inherit; transition: color 0.2s; }
.contact-value a:hover { color: var(--secondary); }
.contact-value.green a { color: var(--green); }
.contact-form-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 150px; resize: vertical; }
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-submit:hover { background: var(--secondary); color: var(--secondary-fg); }

/* Success toast */
.toast {
  display: none;
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  font-weight: 600;
  text-align: center;
}
.toast.show { display: block; }

/* ===== VIDEOS PAGE ===== */
.videos-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.video-card {
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.video-card:hover { box-shadow: var(--shadow-lg); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-muted);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s;
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,0.15); }
.play-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(232,187,73,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
  padding-left: 4px;
}
.play-circle:hover { transform: scale(1.1); }
.video-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.video-body h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.btn-watch {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
  background: none;
  font-family: inherit;
}
.btn-watch:hover { background: var(--primary); color: var(--white); }

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.video-modal.open { display: flex; }
.video-modal-inner { max-width: 900px; width: 100%; position: relative; }
.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}
.video-modal-frame { aspect-ratio: 16/9; width: 100%; }
.video-modal-frame iframe { width: 100%; height: 100%; border: none; }

/* ===== HELPFUL ISTIKHARA ===== */
.istikhara-content { max-width: 900px; margin: 0 auto; }
.istikhara-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.istikhara-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.istikhara-content p { color: rgba(26,51,51,0.8); line-height: 1.8; margin-bottom: 1rem; }
.istikhara-steps {
  background: rgba(46,82,82,0.05);
  border: 1px solid rgba(46,82,82,0.12);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}
.istikhara-steps ol { display: flex; flex-direction: column; gap: 1rem; }
.istikhara-steps li { color: rgba(26,51,51,0.8); line-height: 1.7; }
.dua-box {
  background: var(--white);
  border-top: 4px solid var(--secondary);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.dua-arabic {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: var(--primary);
  direction: rtl;
  line-height: 2.2;
  margin-bottom: 1.25rem;
}
.dua-translation { font-size: 0.85rem; color: var(--text-muted); font-style: italic; text-align: left; }
.cta-box {
  background: var(--primary);
  color: var(--white);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://istikharaforyou.com/slider_1.webp') center/cover no-repeat;
  opacity: 0.08;
}
.cta-box h3 { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-btns { display: flex; flex-direction: column; gap: 1rem; align-items: center; position: relative; z-index: 1; }
.cta-btns .btn-call, .cta-btns .btn-whatsapp {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 9999px;
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .float-label { display: inline; }
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .featured-grid { grid-template-columns: repeat(4,1fr); }
  .why-grid { grid-template-columns: repeat(4,1fr); }
  .testimonials-grid { grid-template-columns: repeat(3,1fr); }
  .videos-grid { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 3rem; }
  .page-banner h1 { font-size: 3rem; }
  .contact-form-box { padding: 3rem; }
  .videos-grid { grid-template-columns: repeat(3,1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4,1fr); }
  .about-grid { flex-direction: row; align-items: flex-start; }
  .about-grid > * { flex: 1; }
  .services-grid { grid-template-columns: repeat(3,1fr); }
  .locations-grid { grid-template-columns: repeat(4,1fr); }
  .why-grid { grid-template-columns: repeat(4,1fr); }
  .service-page-layout { flex-direction: row; }
  .service-content { flex: 2; }
  .sidebar { width: 33%; }
  .sidebar-inner { position: sticky; top: 7rem; }
  .contact-layout { flex-direction: row; }
  .contact-info { flex: 1; }
  .contact-form-box-wrap { flex: 2; }
  .about-grid-inner { flex-direction: row; align-items: flex-start; }
  .about-grid-inner > * { flex: 1; }
}

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

  .why-card {
    width: 100% !important;
  }
}

