/* ============================================================
   Al-Furqan — Pixel-Perfect CSS (matched to SVG source)
   Canvas: 1920px wide, RTL Arabic
   Colors from SVG: #211e1f (dark), #af8e60 (gold), #1a564c (green-dark),
                    #ff0013 (red), #f3f4f6 (light bg), #525252 (gray)
   ============================================================ */

/* --- Fonts --- */
@font-face { font-family:'IBM Plex Sans Arabic'; src:url('../fonts/IBMPlexSansArabic-Thin.ttf') format('truetype'); font-weight:100; }
@font-face { font-family:'IBM Plex Sans Arabic'; src:url('../fonts/IBMPlexSansArabic-ExtraLight.ttf') format('truetype'); font-weight:200; }
@font-face { font-family:'IBM Plex Sans Arabic'; src:url('../fonts/IBMPlexSansArabic-Light.ttf') format('truetype'); font-weight:300; }
@font-face { font-family:'IBM Plex Sans Arabic'; src:url('../fonts/IBMPlexSansArabic-Regular.ttf') format('truetype'); font-weight:400; }
@font-face { font-family:'IBM Plex Sans Arabic'; src:url('../fonts/IBMPlexSansArabic-Medium.ttf') format('truetype'); font-weight:500; }
@font-face { font-family:'IBM Plex Sans Arabic'; src:url('../fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype'); font-weight:600; }
@font-face { font-family:'IBM Plex Sans Arabic'; src:url('../fonts/IBMPlexSansArabic-Bold.ttf') format('truetype'); font-weight:700; }

/* --- Design tokens from SVG --- */
:root {
  --c-dark:    #211e1f;
  --c-dark2:   #212121;
  --c-green:   #1a564c;
  --c-gold:    #af8e60;
  --c-gold2:   #a8885b;
  --c-gold3:   #8c6239;
  --c-red:     #ff0013;
  --c-gray:    #525252;
  --c-light:   #f3f4f6;
  --c-white:   #ffffff;
  --grad-gold: linear-gradient(180deg, #fada4e 0%, #9b3c23 100%);
  --grad-gold-h: linear-gradient(90deg, #9b3c23 0%, #fada4e 100%);
  --font: 'IBM Plex Sans Arabic', sans-serif;

  /* SVG exact measurements scaled to viewport */
  --nav-h: 63px;          /* SVG: navbar rect height 62.9 */
  --nav-bar-h: 35px;      /* SVG: top bar height 35.15 */
  --hero-h: 600px;        /* SVG: hero section height 513.01 */
  --card-r: 10px;         /* SVG: card border-radius 10.12 */
}

*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-white);
  color: var(--c-dark);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; }

/* ============================================================
   TOP ANNOUNCEMENT BAR  (SVG: rect y=0 h=35.15 fill=#f3f4f6)
   ============================================================ */
.top-bar {
  background: #efefef;
  height: var(--nav-bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-dark);
}

/* ============================================================
   NAVBAR  (SVG: rect x=380 y=69.59 w=1540 h=62.9 fill=white;
            logo rect x=112 y=69 w=128 h=62)
   ============================================================ */
.navbar-wrap {
  background: var(--c-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(33,30,31,0.08);
  height: var(--nav-h);
}

.navbar-inner {
  max-width: 1920px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 112px;        /* logo starts at x=112 in SVG */
}

.nav-logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

/* SVG: nav links rect starts x=380 → content area to the left of logo */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 0;     /* RTL: push to right */
  list-style: none;
  height: 100%;
}
.nav-logo img, .navbar-inner > a:first-child img{    height: 70px !important;}
.nav-links li { height: 100%; display: flex; align-items: center; height:48px;}

.nav-links a {
  font-size: 14.45px;     /* SVG: st2/st19 font-size */
  font-weight: 500;
  color: var(--c-dark);
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color .2s;
  position: relative;
}

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

/* Active underline — gold gradient from SVG linearGradient */
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold-h);
}

/* SVG: phone/battery icon top-right — represented as language toggle */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-dark);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--c-dark);
  font-size: 18px;
}

/* ============================================================
   HERO SECTION
   SVG: rect y=131.2 w=1920 h=513 fill=#af8e60 (gold)
        hero image clip: y=131.86 h=513.01
        login btn: rect x=1136 y=511 w=265 h=57 rx=5 fill=#1a564c
   ============================================================ */
.hero {
  background: var(--c-gold);           /* SVG: st1 fill=#af8e60 */
  min-height: var(--hero-h);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* placeholder image area — SVG has full-width photo */
.hero-img-bg {
  position: absolute;
  inset: 0;
  background: #af8e60;
  overflow: hidden;
}

.hero-img-bg img {
  width: 100%;
  height: 100%;
  -webkit-object-fit: cover;
  object-fit: cover;
  opacity: 0.12;
  object-position: center;
  /* background-attachment:fixed removed — breaks Safari mobile entirely */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* placeholder when no image */
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-weight: 500;
}

.hero-img-placeholder .ph-icon {
  width: 80px;
  height: 60px;
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px 0 112px;  /* SVG: main content starts ~229px from right */
  width: 100%;
  display: flex;

  align-items: center;
  min-height: var(--hero-h);
}

.hero-text-block {
  text-align: right;
  max-width: 100%;
}

/* SVG: "الفرقان…" font-size=81px bold white */
.hero-title-main {
  font-size: clamp(42px, 4.2vw, 81px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
  font-family: var(--font);
}

/* SVG: "من البداية حتى الختام" font-size=62.15px */
.hero-title-sub {
  font-size: clamp(32px, 3.2vw, 62px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 18px;
}

/* SVG: subtitle text fill=#ff0013 */
.hero-desc {
  font-size: clamp(14px, 1.1vw, 21px);
  font-weight: 400;
  color: var(--c-white);
  max-width: 800px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* SVG: login button rect x=1136 y=511 w=265 h=57 rx=5 fill=#1a564c (green) */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green);
  color: var(--c-white);
  font-size: 23px;              /* SVG: st11 font-size=23px */
  font-weight: 500;
  padding: 0 32px;
  height: 57px;
  border-radius: 5px;
  min-width: 265px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

.btn-login:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--c-white);
}

/* SVG: "بدايتك مع الفرقان" heading (font-size=31px bold white positioned within hero) */
.hero-intro-block {
  margin-top: 24px;
}

.hero-intro-title {
  font-size: clamp(18px, 1.6vw, 31px);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 6px;
}

.hero-intro-text {
  font-size: clamp(12px, .9vw, 16px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}
.btn-call, .btn-msg {
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-call {
  background-color: #0d6efd;
  color: white; font-size:20px;
}

.btn-msg {
  background-color: #25D366;
  color: white;
}
/* ============================================================
   CARDS SECTION — "بدايتك مع الفرقان"
   SVG: rect y=644.2 w=1920 h=468.92 fill=#f3f4f6
        4 white cards: x=229,598,966,1335 y=796.95 w=356 h=269.65 rx=10
        "إقرأ المزيد" btn: x=479,851,1216,1583 y=1011 w=82 h=34.76 rx=4.57 fill=#1a564c
   ============================================================ */
.intro-section {
  background: var(--c-light);
  padding: 60px 0 80px;
}

.intro-section-header {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
  text-align: right;
  margin-bottom: 40px;
}

/* SVG: "بدايتك مع الفرقان" font-size=31px bold */
.intro-section-title {
  font-size: clamp(22px, 1.6vw, 31px);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
}

/* SVG: subtitle font-size=16px regular */
.intro-section-subtitle {
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 400;
  color: var(--c-dark);
  margin-top: 6px;
}

/* SVG: 4 cards in a row, total area 1920-2*229=1462px → each card 356/1462 */
.intro-cards-row {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* SVG: white card w=356 h=269.65 rx=10.12 */
.intro-card {
  background: var(--c-white);
  border-radius: var(--card-r);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.intro-card svg{
  max-width: 60px;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  overflow: visible;
}
  overflow: hidden;
.intro-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(33,30,31,0.1);
}

/* Placeholder image area inside card */
.card-img-ph {
  width: 100%;
  height: 100px;
  background: var(--c-light);
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(33,30,31,0.3);
  font-size: 11px;
  border: 1.5px dashed rgba(33,30,31,0.15);
}

.card-img-ph .ph-box {
  width: 36px;
  height: 28px;
  border: 1.5px dashed rgba(33,30,31,0.25);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* SVG: card title font-size=28px medium */
.intro-card-title {
  font-size: clamp(16px, 1.45vw, 28px);
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* SVG: card body text font-size=21px regular */
.intro-card-body {
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 400;
  color: var(--c-dark);
  line-height: 1.7;
  flex: 1;
}

/* SVG: "إقرأ المزيد" btn h=34.76 rx=4.57 fill=#1a564c */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green);
  color: var(--c-white);
  font-size: 14.63px;       /* SVG: st13 font-size=14.63 */
  font-weight: 700;
  height: 35px;
  padding: 0 18px;
  border-radius: 5px;
  margin-top: 0px;
  align-self: flex-start;
  transition: opacity .2s;
}

.btn-read-more:hover { opacity: 0.85; color: var(--c-white); }

/* ============================================================
   TEAM SECTION — "متاحون لخدمتكم"
   SVG: y=1113 (after cards section ends at ~1113)
        3 team cards with call/message buttons
        btn-call: rect w=356 h=56.26 rx=7 fill=white
        btn-msg:  rect w=356 h=56.26 rx=7 stroke=#1a564c
   ============================================================ */
.team-section {
  background: var(--c-white);
  padding: 60px 0 70px;
}

.team-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
}

.section-label {
  font-size: clamp(12px, .75vw, 14px);
  font-weight: 500;
  color: var(--c-gold3);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 8px;
}

/* SVG: "متاحون لخدمتكم" font-size=31px bold */
.section-title {
  font-size: clamp(22px, 1.6vw, 31px);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.section-title.white { color: var(--c-white); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 0;text-align: center;
}
.team-card svg{
  max-width: 80px;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  overflow: visible;
}
/* Placeholder image */
.team-img-ph {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--c-light);
  border-radius: var(--card-r);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(33,30,31,0.3);
  font-size: 12px;
  border: 1.5px dashed rgba(33,30,31,0.15);
}

.team-img-ph .ph-icon { font-size: 32px; opacity: .3; }

/* SVG: team member name font-size=28px medium */
.team-name {
  font-size: clamp(16px, 1.45vw, 28px);
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 14px;
}

/* SVG: call btn rect h=56.26 rx=7.08 fill=white, border ~dark */
.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border: 1.5px solid var(--c-dark);
  border-radius: 7px;
  height: 56px;
  font-size: clamp(14px, .9vw, 17px);
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 8px;
  transition: background .2s, color .2s;
}

.btn-call:hover {
  background: var(--c-dark);
  color: var(--c-white);
}

/* SVG: message btn rect h=56.26 rx=7 stroke=#1a564c */
.btn-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--c-green);
  border-radius: 7px;
  height: 56px;
  font-size: clamp(14px, .9vw, 17px);
  font-weight: 500;
  color: var(--c-green);
  transition: background .2s, color .2s;
}

.btn-msg:hover {
  background: var(--c-green);
  color: var(--c-white);
}

.video-player-wrap {
  width: 100%;
  height: 400px; /* adjust as needed */
  background: #000;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  font-size: 60px;
  color: white;
  opacity: 0.8;
}
/* ============================================================
   SERVICES SECTION — "خدماتنا"
   SVG: rect y=1480 h=558.58 fill=#f3f4f6
        8 service cards in 2 rows of 4
        rect w=356 h=137.91 rx=10 fill=#af8e60 (gold)
   ============================================================ */
.services-section {
  background: var(--c-light);
  padding: 60px 0 80px;
}

.services-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
}

.services-header {
  margin-bottom: 40px;
}

/* SVG: "خدماتنا" bold 31px + subtitle regular */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* SVG: gold card w=356 h=137.91 rx=10 fill=#af8e60 */
.service-card {
  background: var(--c-gold);
  border-radius: var(--card-r);
  height: 138px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background .2s, transform .2s;
  padding: 16px;
}

.service-card:hover {
  background: var(--c-gold3);
  transform: translateY(-2px);
}

/* Service icon circle placeholder */
.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--c-white);
  flex-shrink: 0;
}

/* Safari fix: SVGs inside flex containers need explicit dimensions */
.svc-icon svg {
  display: block;
  width: 52px;
  height: 52px;
  max-width: 52px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  overflow: visible;
}

/* SVG: service name font-size=28px medium white */
.svc-name {
  font-size: clamp(14px, 1.1vw, 22px);
  font-weight: 500;
  color: var(--c-white);
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   VIDEO / MEDIA SECTION
   SVG: rect x=634 y=2064 w=699 h=396 fill=#212121 + play button circle r=52
        progress bar y=2402 h=7 / player bar y=2406 h=52
   ============================================================ */
.media-section {
  background: var(--c-white);
  padding: 70px 0 80px;
}

.media-inner {
  max-width: 1920px;
  margin: 0 auto;

  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.media-text {}

/* SVG: section title "بدايتك مع الفرقان" */
.media-title {
  font-size: clamp(22px, 1.6vw, 31px);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.media-subtitle {
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 400;
  color: var(--c-dark);
  line-height: 1.8;
}

/* SVG: video player container rect x=634 y=2064 w=699 h=396 */
.video-player-wrap {
  position: relative;
}

.video-frame {
  background: var(--c-dark2);
  width: 100%;
  aspect-ratio: 699/396;     /* exact SVG ratio */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-ph-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 12px;
}

/* SVG: border rect stroke=#1a564c around video */
.video-border {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--c-green);
  border-radius: 4px;
  pointer-events: none;
}

/* SVG: play button circle r=52 fill=white */
.play-btn {
  width: 104px;
  height: 104px;
  background: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  border: none;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.play-btn svg {
  width: 36px;
  height: 36px;
  margin-right: -4px;  /* optical offset for play triangle */
  fill: var(--c-dark);
}

/* SVG: progress bar y=2402 h=7 (gray bg), red fill w=224/693 */
.video-controls {
  margin-top: 0;
  background: var(--c-dark2);
  border-radius: 0 0 4px 4px;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.video-progress-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: rgba(255,255,255,0.15);
  border-radius: 0;
}

.video-progress-fill {
  height: 100%;
  width: 32%;     /* SVG: 224/692.63 ≈ 32% */
  background: var(--c-red);
}

.video-progress-dot {
  width: 12px;
  height: 12px;
  background: var(--c-red);
  border-radius: 50%;
  position: absolute;
  top: -2.5px;
  left: 32%;
  transform: translateX(-50%);
}

/* Control buttons */
.ctrl-btn {
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: opacity .15s;
  margin-top: 8px;
}

.ctrl-btn:hover { opacity: .7; }

.ctrl-time {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  margin-right: auto;
}

/* ============================================================
   MAP / CITIES SECTION
   SVG: green section y=2559.89 h=634.12 fill=#1a564c
        city labels: مكة, المدينة in gold
        vertical divider: rect x=946 y=2534 w=26 h=686 fill=white
   ============================================================ */
.cities-section {
  background: var(--c-green);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.cities-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: auto;
  position: relative;
}

/* SVG: white divider x=946 w=26 */
.cities-inner::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 26px;
  background: var(--c-white);
  transform: translateX(-50%);
}

.city-panel {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  justify-content: space-around;
  padding: 50px;
  height: 500px;
  width: 100%;
  /* Ensure this is the containing block for absolute children */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Placeholder image bg for each city */
.city-panel-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  overflow: hidden;
  /* Safari GPU layer */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.city-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
  border: 2px dashed rgba(255,255,255,0.15);
}

.city-img-ph .ph-icon-lg { font-size: 56px; opacity: .15; }

/* SVG: city name font-size=122px bold gold */
.city-name {
  position: relative;
  z-index: 2;
  font-size: clamp(48px, 6.35vw, 122px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);    text-align: center;width:100%;
  align-content:center;
}

/* City panel content sits above the image */
.city-panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 24px;
}

/* Read more button on city panels */
.city-btn-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a564c;

  color: var(--c-white);
  font-family: var(--font);
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 600;
  padding: 0 28px;
  height: 46px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  text-shadow: none;
}

.city-btn-readmore:hover {
  background: var(--c-white);
  color: var(--c-dark);
}

/* ============================================================
   APP SECTION
   SVG: between map y=3213.8 — light bg strip h=48
        App title + QR/download placeholder
   ============================================================ */
.app-section {
  background: var(--c-light);
  padding: 70px 0 80px;
}

.app-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.app-title {
  font-size: clamp(22px, 1.6vw, 31px);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.app-desc {
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 400;
  color: var(--c-dark);
  line-height: 1.8;
  margin-bottom: 28px;
}

.app-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* SVG: download button rects x=1185,382 y=3337 w=242,153 h=58 fill=white */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-white);
  border: 1.5px solid rgba(33,30,31,0.15);
  border-radius: 6px;
  padding: 0 24px;
  height: 58px;
  font-size: clamp(13px, .9vw, 15px);
  font-weight: 600;
  color: var(--c-dark);
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-appstore:hover {
  border-color: var(--c-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  color: var(--c-dark);
}

.btn-appstore svg { width: 24px; height: 24px; flex-shrink: 0; }

/* QR placeholder */
.app-qr-ph {
  width: 180px;
  height: 180px;
  background: var(--c-white);
  border: 1.5px dashed rgba(33,30,31,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(33,30,31,0.3);
  font-size: 11px;
  font-weight: 500;
}

.app-qr-ph .qr-grid {
  display: grid;
  grid-template-columns: repeat(5, 8px);
  grid-template-rows: repeat(5, 8px);
  gap: 2px;
  opacity: .2;
}

.app-qr-ph .qr-cell {
  background: var(--c-dark);
  border-radius: 1px;
}

/* ============================================================
   FOOTER
   SVG: bottom area with logo + nav links
   ============================================================ */
.custom-footer {
background: linear-gradient(90deg, rgba(176, 142, 97, 1) 0%, rgba(148, 121, 78, 1) 51%, rgba(124, 98, 63, 1) 100%);direction:rtl;
}

.icon-box {border: 2px solid #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 8px;
    font-size: 22px;
}
.appcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #efefef;
  padding: 18px 40px;
  border-radius: 4px;
}

/* LEFT SECTION */
.apps .d-flex {
  display: flex;
  gap: 16px;
  direction: ltr;
  margin: 0;
}

/* Store buttons */
.store-btn svg {
  height: 42px;
  width: auto;
  display: block;
}

/* RIGHT SECTION */
.right-section {
  display: flex;
  align-items: center;
  gap: 14px;
  direction: rtl;
}

/* Arabic text */
.text {
  font-size: 14px;
  color: #333;
  text-align: right;
  white-space: nowrap;
  font-family: "Tahoma", Arial, sans-serif;
}

/* QR BOX */
.qr-box {
  width: 78px;
  height: 78px;
  background: #fff;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 60px;
  align-items: start;
}

.footer-logo { height: 44px; width: auto; }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-links-wrap {
  display: flex;
  gap: 60px;
  justify-content: center;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-gold);
  margin-bottom: 14px;
  letter-spacing: .04em;
}

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

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--c-gold); }

.footer-bottom {
  max-width: 1920px;
  margin: 40px auto 0;
  padding: 20px 229px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   HAJJ PAGE — Page hero
   ============================================================ */
.page-hero {
  background: var(--c-dark);
  padding: 72px 229px 56px;
  position: relative;
  overflow: hidden;
  max-width: 1920px;
  margin: 0 auto;
}

/* gold bottom border from SVG gradient */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-gold-h);
}

.page-hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-gold);
  letter-spacing: .08em;
  margin-bottom: 12px;
  display: block;
}

.page-hero-title {
  font-size: clamp(36px, 2.5vw, 48px);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 20px;
}

.page-hero-text {
  font-size: clamp(14px, .95vw, 18px);
  color: rgba(255,255,255,0.65);
  max-width: 900px;
  line-height: 2;
}

/* ============================================================
   SUB-NAV tabs
   SVG: 4 tabs: مناسك / أركان / سنن / فضائل
   ============================================================ */
.subnav-wrap {
  background: var(--c-white);
  border-bottom: 1.5px solid rgba(33,30,31,0.1);
  position: sticky;
  top: calc(var(--nav-bar-h) + var(--nav-h));
  z-index: 900;
}

.subnav-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
  display: flex;
  overflow-x: auto;
}

/* SVG: tab font-size=28px medium */
.subnav-tab {
  font-size: clamp(14px, 1vw, 22px);
  font-weight: 500;
  color: var(--c-gray);
  padding: 18px 28px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}

.subnav-tab:hover { color: var(--c-dark); }
.subnav-tab.active {
  color: var(--c-dark);
  border-bottom-color: var(--c-gold);
  font-weight: 600;
}

/* ============================================================
   STEPS (مناسك الحج)
   ============================================================ */
.steps-section {
  background: var(--c-white);
  padding: 70px 0 80px;
}

.steps-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
}

.section-header {
  margin-bottom: 44px;
}

.step-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 32px 36px;
  border: 1.5px solid rgba(33,30,31,0.1);
  border-radius: var(--card-r);
  margin-bottom: 20px;
  align-items: start;
  transition: border-color .2s;
}

.step-item:hover { border-color: var(--c-gold); }

.step-num-block { text-align: center; }

/* SVG: step numbers font-size large, gradient fill */
.step-num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  background: var(--grad-gold-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-gold3);
  margin-top: 2px;
}

.step-title {
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 10px;
}

.step-text {
  font-size: clamp(13px, .9vw, 16px);
  color: var(--c-gray);
  line-height: 1.9;
}

/* ============================================================
   PILLARS (أركان الحج)
   ============================================================ */
.pillars-section {
  background: var(--c-light);
  padding: 70px 0 80px;
}

.pillars-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
}

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

.pillar-card {
  background: var(--c-white);
  border: 1.5px solid rgba(33,30,31,0.08);
  border-radius: var(--card-r);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}

.pillar-card:hover {
  box-shadow: 0 8px 24px rgba(33,30,31,0.08);
  border-color: var(--c-gold);
}

.pillar-num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  background: var(--grad-gold-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.pillar-title {
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 12px;
}

.pillar-text {
  font-size: clamp(12px, .85vw, 15px);
  color: var(--c-gray);
  line-height: 1.85;
}
.city-panel-img img{
    /* Works on all browsers including Safari mobile */
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    -webkit-object-fit: cover;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Safari GPU layer — prevents blank/missing image */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    }
/* ============================================================
   SUNNAH LIST (سنن الحج)
   ============================================================ */
.sunnah-section {
  background: var(--c-white);
  padding: 70px 0 80px;
}

.sunnah-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
}

.sunnah-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.sunnah-col-title {
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 700;
  color: var(--c-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-gold);
  margin-bottom: 18px;
}

.sunnah-list {
  list-style: none;
}

.sunnah-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(33,30,31,0.07);
  font-size: clamp(13px, .9vw, 16px);
  color: var(--c-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sunnah-list li::before {
  content: '';
  width: 7px; height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--c-gold);
  display: block;
}

/* ============================================================
   VIRTUES (فضائل الحج)
   ============================================================ */
.virtues-section {
  background: var(--c-light);
  padding: 70px 0 80px;
}

.virtues-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
}

.virtues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}

.virtue-card {
  background: var(--c-white);
  border: 1.5px solid rgba(33,30,31,0.08);
  border-radius: var(--card-r);
  padding: 32px 28px;
  transition: box-shadow .25s, border-color .25s;
}

.virtue-card:hover {
  box-shadow: 0 8px 24px rgba(33,30,31,0.08);
  border-color: var(--c-gold);
}

.virtue-title {
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(33,30,31,0.08);
}

.virtue-text {
  font-size: clamp(13px, .88vw, 15px);
  color: var(--c-gray);
  line-height: 1.95;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
  :root { --hero-h: 480px; }
  .navbar-inner,
  .intro-section-header,
  .intro-cards-row,
  .team-inner,
  .services-inner,
  .media-inner,
  .app-inner,
  .footer-inner,
  .footer-bottom,
  .page-hero,
  .subnav-inner,
  .steps-inner,
  .pillars-inner,
  .sunnah-inner,
  .virtues-inner { padding-left: 80px; padding-right: 80px; }
}

@media (max-width: 1100px) {
  .intro-cards-row,
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid   { grid-template-columns: repeat(2, 1fr); }
  .team-grid      { grid-template-columns: repeat(3, 1fr); }
  .media-inner    { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-wrap { flex-wrap: wrap; gap: 32px; }
  .cities-inner   { grid-template-columns: 1fr; }
  .cities-inner::after { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; --nav-bar-h: 0px; }
  .navbar-inner,
  .intro-section-header,
  .intro-cards-row,
  .team-inner,
  .services-inner,
  .media-inner,
  .app-inner,
  .footer-inner,
  .footer-bottom,
  .page-hero,
  .subnav-inner,
  .steps-inner,
  .pillars-inner,
  .sunnah-inner,
  .virtues-inner { padding-left: 20px; padding-right: 20px; }

  .top-bar { height:30px; padding:0px 0px !important;}
  .bar-left{display:none !important;}
  #status-bar{padding:0px 0px !important;}

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    right: 0; left: 0;
    background: var(--c-white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 10px 0;
    height: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links li { height: auto; }
  .nav-links a { height: 48px; padding: 0 20px; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 0 20px; }
  .hero-text-block { max-width: 100%; }
  .btn-login { min-width: auto; width: 100%; font-size: 17px; }
.appcontainer {
  display: block;

}
  .city-panel{ height: 280px; padding: 30px 20px; }
  .intro-cards-row,
  .team-grid,
  .pillars-grid,
  .virtues-grid,
  .sunnah-cols { grid-template-columns: 1fr; }

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

  .step-item { grid-template-columns: 1fr; gap: 12px; padding:15px;}

  .app-inner { grid-template-columns: 1fr; }
  .app-qr-ph { display: none; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }


}


/* ============================================================
   CONTACT PAGE
   Section 1 : Details (right col) + Map (left col) — equal height
   Section 2 : Form — full width, 4 fields in 1 row then message
   ============================================================ */
 
/* ---- Section 1 ---- */
.contact-map-section {
  background: var(--c-light);
  padding: 70px 0 80px;
}
 
.contact-map-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
  display: grid;
  /* RTL: details on right, map on left */
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: stretch;   /* equal height */
}
 
/* MAP */
.contact-map {
  border-radius: var(--card-r);
  overflow: hidden;
  min-height: 440px;
  box-shadow: 0 4px 20px rgba(33,30,31,0.08);
}
 
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
 
/* DETAILS BOX */
.contact-info-box {
  background: var(--c-white);
  border: 1px solid rgba(33,30,31,0.09);
  border-radius: var(--card-r);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
 
.contact-info-title {
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-gold);
}
 
.contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(33,30,31,0.07);
}
 
.contact-row:last-of-type { border-bottom: none; }
 
.contact-value {
  font-size: clamp(13px, .9vw, 15px);
  font-weight: 600;
  color: var(--c-dark);
  direction: ltr;
  text-align: right;
}
 
.contact-icon-circle {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  font-size: 15px;
  flex-shrink: 0;
}
 
.contact-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px 0 0;
  margin-top: auto;   /* push socials to bottom of box */
}
 
.social-icon-link {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--c-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  font-size: 15px;
  transition: background .2s, color .2s;
}
 
.social-icon-link:hover {
  background: var(--c-gold);
  color: var(--c-white);
}
 
 
/* ---- Section 2 ---- */
.contact-form-section {
  background: var(--c-white);
  padding: 70px 0 90px;
}
 
.contact-form-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 229px;
}
 
.contact-form-header {
  margin-bottom: 36px;
}
 
.contact-form-title {
  font-size: clamp(22px, 1.6vw, 31px);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}
 
.contact-form-subtitle {
  font-size: clamp(13px, .9vw, 16px);
  color: var(--c-gray);
}
 
.contact-form-wrap {
  background: var(--c-light);
  border-radius: var(--card-r);
  padding: 40px 48px;
}
 
/* 4 fields in ONE row */
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0;   /* form-group inside already has margin-bottom */
}
 
.form-group {
  margin-bottom: 22px;
}
 
.form-group label {
  display: block;
  font-size: clamp(13px, .85vw, 15px);
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 8px;
}
 
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(33,30,31,0.14);
  border-radius: 6px;
  font-family: var(--font);
  font-size: clamp(13px, .85vw, 15px);
  color: var(--c-dark);
  background: var(--c-white);
  direction: rtl;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
 
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(175,142,96,0.12);
}
 
.form-group textarea {
  height: 140px;
  resize: vertical;
}
 
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green);
  color: var(--c-white);
  font-family: var(--font);
  font-size: clamp(14px, .95vw, 17px);
  font-weight: 600;
  padding: 0 48px;
  height: 52px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  margin-top: 4px;
}
 
.btn-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
 
/* ---- Contact responsive ---- */
@media (max-width: 1400px) {
  .contact-map-inner,
  .contact-form-inner { padding-left: 80px; padding-right: 80px; }
}
 
@media (max-width: 1100px) {
  .contact-map-inner  { grid-template-columns: 1fr; }
  .contact-map        { min-height: 320px; }
  .contact-form-row   { grid-template-columns: repeat(2, 1fr); }
}
 
@media (max-width: 768px) {
  .contact-map-section,
  .contact-form-section { padding: 40px 0 50px; }
  .contact-map-inner,
  .contact-form-inner   { padding-left: 20px; padding-right: 20px; }
  .contact-map          { min-height: 260px; }
  .contact-form-wrap    { padding: 28px 20px; }
  .contact-form-row     { grid-template-columns: 1fr; }
  .btn-submit           { width: 100%; }
}
 
  
  
.brochure-section .container{max-width: 1480px;margin:0 auto;}
/* MAIN WRAPPER */
.brochure-section {
  direction: rtl;
  padding: 20px 0;
  background: #efefef;
  border-bottom: 0 solid #ffffff;
  margin-bottom: 25px;
}

/* 2 COLUMN LAYOUT */
.brochure-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* RIGHT SIDE (TITLE) */
.brochure-right {
  flex: 1;
  display: flex;
  justify-content: start;
  align-items: center;
}

/* TITLE */
.brochure-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

/* LEFT SIDE (GRID) */
.brochure-left {
  flex: 2;
  display: flex;
  justify-content: flex-end;
}

/* GRID */
.brochure-grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

/* CARD */
.brochure-card {
  display: inline-block;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  width: 180px;
  background: #fff;
  transition: 0.3s;
}

/* IMAGE */
.brochure-card img {
  width: 100%;
  display: block;
}

/* HOVER */
.brochure-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
   .brochure-layout {
  display:block;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.brochure-title {font-size:20px;margin-bottom:20px;}
/* RIGHT SIDE (TITLE) */
.brochure-right {
  flex: 1;
  display: flex;
  justify-content: start;
  align-items: center;
}
 
    
}