/* ==========================================================================
   DARBAR ISLAMIC ORGANIZATION - VIP STYLESHEET
   ========================================================================== */

:root {
  --color-primary: #00473e;
  --color-primary-dark: #002d27;
  --color-secondary: #c9933b;
  --color-secondary-light: #e2ad54;
  --color-accent-purple: #5c4d8a;
  --color-accent-blue: #1d78f2;
  --color-text-dark: #142623;
  --color-cream: #f5f3ef;
  --header-logo-height: 52px;
  --header-logo-width: auto;
  --footer-logo-height: 46px;
  --footer-logo-width: auto;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --font-urdu-body: var(--font-urdu);

  --fs-en-brand-name: 22px;
  --fs-en-brand-tagline: 12px;
  --fs-en-nav: 14px;
  --fs-en-hero-title: 56px;
  --fs-en-hero-subtitle: 18px;
  --fs-en-section-title: 40px;
  --fs-en-page-title: 42px;
  --fs-en-body: 16px;
  --fs-en-card-title: 20px;
  --fs-en-card-text: 14px;
  --fs-en-button: 14px;
  --fs-en-footer: 14px;
  --fs-en-welfare-title: 20px;
  --fs-en-welfare-text: 13px;

  --fs-ur-brand-name: 22px;
  --fs-ur-brand-tagline: 14px;
  --fs-ur-nav: 15px;
  --fs-ur-hero-title: 46px;
  --fs-ur-hero-subtitle: 18px;
  --fs-ur-section-title: 34px;
  --fs-ur-page-title: 36px;
  --fs-ur-body: 16px;
  --fs-ur-card-title: 18px;
  --fs-ur-card-text: 14px;
  --fs-ur-button: 13px;
  --fs-ur-footer: 14px;
  --fs-ur-welfare-title: 18px;
  --fs-ur-welfare-text: 13px;
  
  --shadow-soft: 0 10px 30px rgba(0, 71, 62, 0.08);
  --shadow-hover: 0 20px 45px rgba(0, 71, 62, 0.16);
  --radius-lg: 16px;
  --radius-pill: 999px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

img {
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-en-body);
  color: var(--color-text-dark);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  font-family: var(--font-urdu-body), var(--font-urdu), var(--font-sans);
  font-size: var(--fs-ur-body);
  direction: rtl;
  text-align: right;
  line-height: 2.1;
}

body.has-audio-player {
  padding-bottom: 96px;
}

/* Headings typography */
h1, h2, h3, .section-title, .brand-name, .hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.rtl h1, body.rtl h2, body.rtl h3,
body.rtl .section-title, body.rtl .brand-name, body.rtl .hero-title {
  font-family: var(--font-urdu);
  line-height: 1.45;
  letter-spacing: 0;
}

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */

.top-bar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 71, 62, 0.08);
}

.brand { text-decoration: none; color: inherit; }

.brand-logo {
  height: var(--header-logo-height, 52px);
  width: var(--header-logo-width, auto);
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-size: var(--fs-en-brand-name);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

body.rtl .brand-name {
  font-size: var(--fs-ur-brand-name);
  letter-spacing: 0;
  text-transform: none;
}

.brand-tagline {
  font-size: var(--fs-en-brand-tagline);
  color: rgba(20, 38, 35, 0.7);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

body.rtl .brand-tagline {
  font-size: var(--fs-ur-brand-tagline);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-switch .btn {
  border: 1px solid rgba(0, 71, 62, 0.2);
  color: var(--color-primary);
  background: #fff;
  padding: 0.32rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 22px !important;
}

.lang-switch .btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.header-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 71, 62, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.5rem 0.28rem 1rem;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0, 71, 62, 0.04);
}

body.rtl .header-search {
  padding: 0.28rem 1rem 0.28rem 0.5rem;
}

.header-search input {
  border: 0;
  outline: 0;
  flex: 1;
  background: transparent;
  font-size: 0.88rem;
}

.header-search button {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

/* ==========================================================================
   NAVIGATION & MOBILE HEADER TOOLS
   ========================================================================== */

.main-nav {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 45, 39, 0.18);
}

.mobile-search-btn,
.mobile-nav-btn {
  background: rgba(0, 71, 62, 0.08);
  border: 1px solid rgba(0, 71, 62, 0.16);
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 0;
  cursor: pointer;
}

.mobile-search-btn:hover,
.mobile-search-btn:focus,
.mobile-nav-btn:hover,
.mobile-nav-btn:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.mobile-search-collapse {
  background: #f8faf9;
  border-top: 1px solid rgba(0, 71, 62, 0.08);
  border-bottom: 1px solid rgba(0, 71, 62, 0.08);
  animation: pageRise 0.3s ease;
}

.mobile-search-form input {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 71, 62, 0.2);
  padding: 0.35rem 0.95rem;
}

.nav-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  padding: 0.6rem 0;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu .nav-item {
  position: relative;
}

.nav-menu .nav-link-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 0.85rem 1.05rem;
  font-size: var(--fs-en-nav);
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  position: relative;
}

body.rtl .nav-menu .nav-link-item {
  font-size: var(--fs-ur-nav);
}

.nav-menu .nav-link-item:hover,
.nav-menu .nav-link-item.active,
.nav-menu .nav-item.is-active > .nav-link-dropdown-wrap > .nav-link-item,
.nav-menu .nav-item.is-active > .nav-link-item {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--color-secondary);
}

.dropdown-arrow {
  font-size: 0.72rem;
  margin-inline-start: 0.25rem;
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.nav-item.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Desktop Submenu Dropdowns */
@media (min-width: 992px) {
  .sub-nav-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 45, 39, 0.22);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 71, 62, 0.08);
  }

  .nav-item.has-dropdown:hover > .sub-nav-menu,
  .nav-item.has-dropdown:focus-within > .sub-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sub-nav-menu .sub-nav-link {
    color: var(--color-text-dark) !important;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 0 !important;
  }

  .sub-nav-menu .sub-nav-link:hover,
  .sub-nav-menu .sub-nav-link.active {
    background: rgba(0, 71, 62, 0.06);
    color: var(--color-primary) !important;
    padding-inline-start: 1.5rem;
  }
}

/* ==========================================================================
   HERO SECTION (Image / Video Slider)
   ========================================================================== */

.hero-section { position: relative; }

.hero-swiper {
  height: clamp(480px, 66vh, 650px);
}

.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

.hero-video-iframe-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-video-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 45%, rgba(255, 255, 255, 0.1) 100%);
}

body.rtl .hero-overlay {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 45%, rgba(255, 255, 255, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 7.25rem 0 4.75rem;
}

.hero-title {
  font-size: clamp(calc(var(--fs-en-hero-title) * 0.62), 5vw, var(--fs-en-hero-title));
  color: var(--color-primary-dark);
  line-height: 1.08;
  margin-bottom: 1rem;
}

body.rtl .hero-title {
  font-size: clamp(calc(var(--fs-ur-hero-title) * 0.72), 4.6vw, var(--fs-ur-hero-title));
  line-height: 1.45;
}

.hero-subtitle {
  font-size: var(--fs-en-hero-subtitle);
  color: rgba(20, 38, 35, 0.85);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  line-height: 1.5;
}

body.rtl .hero-subtitle {
  font-size: var(--fs-ur-hero-subtitle);
}

.btn-gold {
  background: var(--color-secondary);
  color: #ffffff !important;
  border: 0;
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-en-button);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 8px 24px rgba(201, 147, 59, 0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

body.rtl .btn-gold { font-size: var(--fs-ur-button); }

.btn-gold:hover {
  background: var(--color-secondary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(201, 147, 59, 0.45);
}

.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: btnSheen 3.6s ease-in-out infinite;
}

.btn-teal {
  background: var(--color-primary);
  color: #fff !important;
  border: 0;
  padding: 0.68rem 1.45rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-en-button);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

body.rtl .btn-teal { font-size: var(--fs-ur-button); }

.btn-teal:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 71, 62, 0.25);
}

.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.82rem; }

.circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.circle-btn:hover {
  transform: scale(1.12);
  color: #fff;
}

.circle-btn-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 71, 62, 0.08);
  color: var(--color-primary);
  transition: var(--transition);
}

.event-item:hover .circle-btn-sm {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}

/* Swiper navigation */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: #fff;
  transform: scale(1.08);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.7;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-secondary);
  opacity: 1;
  width: 24px;
  border-radius: 5px;
}

/* ==========================================================================
   5 RESOURCE CARDS SECTION
   ========================================================================== */

.section { padding: 4.5rem 0; }
.section-cream { background: var(--color-cream); }

.resource-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 71, 62, 0.06);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.resource-card .card-img {
  height: 135px;
  overflow: hidden;
  background: #e6eded;
}

.resource-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.6s ease;
}

.resource-card:hover .card-img img {
  transform: scale(1.04);
}

.resource-card .card-body {
  padding: 1.15rem 1.15rem 0.5rem;
  flex: 1;
}

.resource-card h3 {
  font-size: var(--fs-en-card-title);
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

body.rtl .resource-card h3 { font-size: var(--fs-ur-card-title); }

.resource-card p {
  font-size: var(--fs-en-card-text);
  color: rgba(20, 38, 35, 0.75);
  margin: 0;
  line-height: 1.45;
}

body.rtl .resource-card p { font-size: var(--fs-ur-card-text); }

.resource-card .card-foot {
  padding: 0 1.15rem 1.15rem;
  display: flex;
  justify-content: flex-end;
}

body.rtl .resource-card .card-foot {
  justify-content: flex-start;
}

/* ==========================================================================
   ABOUT US & CHAIRMAN
   ========================================================================== */

.section-title {
  font-size: clamp(calc(var(--fs-en-section-title) * 0.7), 3.5vw, var(--fs-en-section-title));
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

body.rtl .section-title {
  font-size: clamp(calc(var(--fs-ur-section-title) * 0.78), 3.2vw, var(--fs-ur-section-title));
}

.about-copy {
  color: rgba(20, 38, 35, 0.82);
  line-height: 1.8;
  font-size: var(--fs-en-body);
}

body.rtl .about-copy { font-size: var(--fs-ur-body); }

@media (min-width: 992px) {
  .about-home-col {
    flex: 0 0 30%;
    max-width: 30%;
  }
  .chairman-home-col {
    flex: 0 0 70%;
    max-width: 70%;
  }
}

.chairman-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 71, 62, 0.08);
  padding: 1.35rem;
  height: 100%;
}

.chairman-layout {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 1.35rem;
  align-items: stretch;
  min-height: 320px;
}

.chairman-photo-wrap {
  overflow: hidden;
  border-radius: 14px;
  background: #e8eeec;
  min-height: 280px;
}

.chairman-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 280px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.chairman-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.chairman-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.2rem;
}

.chairman-name {
  font-size: 1.55rem;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
}

.chairman-bio {
  color: rgba(20, 38, 35, 0.75);
  line-height: 1.55;
}

.mini-block {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.mini-block h4 {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.mini-block h4 i {
  color: var(--color-primary);
  margin-inline-end: 0.3rem;
}

/* ==========================================================================
   DATE BAR
   ========================================================================== */

.date-bar {
  background: var(--color-cream);
  padding: 1.5rem 0;
}

.date-card, .date-calendar-btn {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  height: 100%;
  border: 1px solid rgba(0, 71, 62, 0.05);
}

.date-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(201, 147, 59, 0.16);
  color: var(--color-secondary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.date-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(20, 38, 35, 0.6);
  font-weight: 600;
}

.date-value {
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

.date-calendar-btn {
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  justify-content: center;
  font-weight: 700;
  gap: 0.65rem;
  transition: var(--transition);
}

.date-calendar-btn:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 71, 62, 0.25);
}

/* ==========================================================================
   LATEST CONTENT SECTION
   ========================================================================== */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-all-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.view-all-links a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

.view-all-links a:hover {
  color: var(--color-secondary);
}

.view-all-links .sep {
  color: rgba(0, 71, 62, 0.25);
}

.latest-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 71, 62, 0.06);
  transition: var(--transition);
}

.latest-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.latest-card.accent-blue { border-top: 4px solid var(--color-accent-blue); }
.latest-card.accent-gold { border-top: 4px solid var(--color-secondary); }
.latest-card.accent-teal { border-top: 4px solid var(--color-primary); }
.latest-card.accent-purple { border-top: 4px solid var(--color-accent-purple); }

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.latest-card .thumb {
  height: 155px;
  overflow: hidden;
  background: #e6eded;
  position: relative;
}

.latest-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.6s ease;
}

.latest-card:hover .thumb img {
  transform: scale(1.04);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 2.8rem;
  text-decoration: none;
  transition: var(--transition);
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.play-badge:hover {
  transform: scale(1.15);
  color: #fff;
}

.duration-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

body.rtl .duration-chip {
  right: auto;
  left: 10px;
}

.latest-card .card-inner {
  flex: 1;
}

.latest-card h3 {
  font-size: var(--fs-en-card-title);
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.35;
}

body.rtl .latest-card h3 {
  font-size: var(--fs-ur-card-title);
  font-family: var(--font-urdu);
}

.latest-card h3 a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.latest-card h3 a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   UPCOMING EVENTS, MOSQUE PHOTO & WELFARE
   ========================================================================== */

.events-list .event-item {
  border: 1px solid rgba(0, 71, 62, 0.06);
  transition: var(--transition);
}

.events-list .event-item:hover {
  transform: translateX(4px);
  border-color: var(--color-primary);
}

body.rtl .events-list .event-item:hover {
  transform: translateX(-4px);
}

.event-date {
  min-width: 62px;
  background: var(--color-cream);
  border-radius: 10px;
  padding: 0.5rem 0.35rem;
  line-height: 1.1;
}

.event-date .mon {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
}

.event-date .day {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-top: 0.15rem;
}

.events-center-card {
  height: 100%;
  min-height: 290px;
}

.events-center-img {
  object-fit: cover;
  object-position: 78% 48%;
  display: block;
}

.events-center-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0, 45, 39, 0.65) 100%);
}

.play-badge-center {
  color: rgba(255, 255, 255, 0.95);
  font-size: 3.5rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  text-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.play-badge-center:hover {
  transform: scale(1.15);
  color: #fff;
}

.welfare-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 71, 62, 0.08);
  overflow: hidden;
  min-height: 320px;
}

.welfare-split {
  display: grid;
  grid-template-columns: 50% 50%;
  height: 100%;
  min-height: 300px;
}

.welfare-body {
  padding: 1.1rem 0.9rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  z-index: 2;
}

.welfare-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.35rem;
}

.welfare-title {
  font-size: var(--fs-en-welfare-title);
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

body.rtl .welfare-title { font-size: var(--fs-ur-welfare-title); }

.welfare-desc {
  font-size: var(--fs-en-welfare-text);
  color: rgba(20, 38, 35, 0.78);
  line-height: 1.5;
  margin-bottom: 0;
}

body.rtl .welfare-desc { font-size: var(--fs-ur-welfare-text); }

.welfare-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  margin-inline-start: -8%;
  width: calc(100% + 8%);
}

.welfare-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.welfare-card .btn-teal,
.welfare-btn {
  align-self: flex-start;
  font-size: 11px !important;
  font-weight: 600;
  padding: 0.3rem 0.72rem !important;
  gap: 0.25rem;
  white-space: nowrap;
  line-height: 1.2;
  max-width: 100%;
  border-radius: 999px;
}

body.rtl .welfare-body {
  padding: 1.35rem 1.45rem 1.35rem 1.15rem;
}

body.rtl .welfare-media {
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
}

.footer-logo {
  height: var(--footer-logo-height, 46px);
  width: var(--footer-logo-width, auto);
  max-width: 100%;
  object-fit: contain;
}

.footer-nav-line a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--fs-en-footer);
  transition: var(--transition);
}

body.rtl .footer-nav-line a { font-size: var(--fs-ur-footer); }

.footer-nav-line a:hover {
  color: var(--color-secondary-light);
}

.social-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-badge.fb { background: #1877f2; }
.social-badge.yt { background: #ff0000; }
.social-badge.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-badge.x  { background: #000000; }

.social-badge:hover {
  transform: translateY(-3px) scale(1.08);
  color: #fff;
}

.footer-bottom {
  background: #001f1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   VIP FLOATING AUDIO PLAYER
   ========================================================================== */

.darbar-audio-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 45, 39, 0.96);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.darbar-audio-bar.active {
  transform: translateY(0);
}

.audio-player-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.audio-thumb-wrap {
  position: relative;
  width: 48px;
  height: 48px;
}

/* Animated Equalizer Wave Bars */
.audio-bars-wave {
  position: absolute;
  inset: 0;
  background: rgba(0, 71, 62, 0.7);
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.darbar-audio-bar.playing .audio-bars-wave {
  opacity: 1;
}

.audio-bars-wave span {
  width: 4px;
  background: var(--color-secondary-light);
  border-radius: 2px;
  height: 4px;
}

.darbar-audio-bar.playing .audio-bars-wave span:nth-child(1) { animation: eqBar 0.9s infinite ease-in-out; }
.darbar-audio-bar.playing .audio-bars-wave span:nth-child(2) { animation: eqBar 0.7s infinite ease-in-out 0.2s; }
.darbar-audio-bar.playing .audio-bars-wave span:nth-child(3) { animation: eqBar 1.1s infinite ease-in-out 0.4s; }
.darbar-audio-bar.playing .audio-bars-wave span:nth-child(4) { animation: eqBar 0.8s infinite ease-in-out 0.1s; }

@keyframes eqBar {
  0%, 100% { height: 4px; }
  50% { height: 26px; }
}

.btn-circle-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(201, 147, 59, 0.4);
  transition: var(--transition);
}

.btn-circle-play:hover {
  background: var(--color-secondary-light);
  transform: scale(1.08);
  color: #fff;
}

.audio-seek-range {
  accent-color: var(--color-secondary);
}

/* ==========================================================================
   RESPONSIVENESS & RTL REFINEMENTS
   ========================================================================== */

/* ==========================================================================
   INNER PAGES, LISTINGS, GALLERY, CONTACT, LIGHTBOX
   ========================================================================== */

.page-breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 0.85rem;
}

.page-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.86rem;
  opacity: 0.92;
}

.page-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.55rem;
  opacity: 0.65;
}

.page-breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.page-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-after-breadcrumb {
  padding-top: 3.5rem !important;
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 78%);
  color: #fff;
  padding: 2.75rem 0 2.4rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero.has-custom-banner {
  padding: 0;
}

.page-hero.has-custom-banner .page-hero-inner {
  padding: 1.6rem 0;
  width: 100%;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero.has-custom-banner::before,
.page-hero.has-custom-banner::after {
  display: none;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: floatOrb 9s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(201, 147, 59, 0.18);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(calc(var(--fs-en-page-title) * 0.7), 4vw, var(--fs-en-page-title));
  margin: 0;
  position: relative;
  z-index: 1;
}

body.rtl .page-hero h1 {
  font-family: var(--font-urdu);
  font-size: clamp(calc(var(--fs-ur-page-title) * 0.78), 3.6vw, var(--fs-ur-page-title));
  line-height: 1.6;
}

.page-hero + .section {
  padding-top: 3.5rem;
}

.content-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 71, 62, 0.06);
  transition: var(--transition);
  height: 100%;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.content-card .thumb {
  height: 190px;
  overflow: hidden;
  background: #e6eded;
}

.content-card .thumb img,
.gallery-item img,
.detail-cover img,
.history-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  backface-visibility: hidden;
}

.content-card:hover .thumb img {
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.content-card .body h3 a,
.content-card h3 a {
  color: var(--color-text-dark);
}

.content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.content-tabs a {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(0, 71, 62, 0.15);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.content-tabs a.active,
.content-tabs a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.featured-video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.featured-video-wrap iframe,
.featured-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  max-height: 420px;
  box-shadow: var(--shadow-soft);
}

.detail-cover img {
  width: 100%;
  max-height: 420px;
}

.history-media {
  overflow: hidden;
  border-radius: 18px;
  min-height: 240px;
  box-shadow: var(--shadow-soft);
}

.gallery-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.gallery-item:hover img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.contact-info-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.contact-info-card p {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info-card i {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.contact-form .form-control {
  border-radius: 12px;
  border: 1px solid rgba(0, 71, 62, 0.16);
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 71, 62, 0.12);
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 18, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  width: auto;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.resource-grid {
  margin-top: -42px;
  position: relative;
  z-index: 5;
  padding: 0 0 3.2rem;
  background: linear-gradient(180deg, transparent 0 36px, var(--color-cream) 36px);
}

/* RTL: Nastaliq must not collide or mix glyphs */
body.rtl .nav-menu a {
  white-space: normal;
  line-height: 1.7;
}

body.rtl .about-copy,
body.rtl .rich-content,
body.rtl .chairman-bio,
body.rtl .resource-card p,
body.rtl .welfare-desc {
  line-height: 2.35;
  letter-spacing: 0;
  word-spacing: 0.03em;
}

body.rtl .resource-card h3,
body.rtl .latest-card h3,
body.rtl .section-title,
body.rtl .chairman-name,
body.rtl .welfare-title {
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  /* Dynamic Mobile Logo Size (Configurable from Dashboard) */
  .brand-logo { 
    height: var(--mobile-logo-height, 44px) !important; 
    width: var(--mobile-logo-width, auto) !important; 
  }
  .brand-name { font-size: 1.05rem; }
  .lang-switch .btn { padding: 0.22rem 0.65rem; font-size: 0.78rem; border-radius: 16px !important; }
  
  /* Mobile Main Nav & Sub-menus */
  .nav-menu { flex-direction: column; padding: 0.75rem 0; width: 100%; }
  .nav-menu .nav-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-menu .nav-link-item { width: 100%; padding: 0.75rem 1rem; border-bottom: 0; }
  
  .nav-link-dropdown-wrap {
    width: 100%;
    padding-inline-end: 0.75rem;
  }
  .subnav-toggle-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
  }
  .subnav-toggle-btn.open {
    transform: rotate(180deg);
    background: var(--color-secondary);
  }
  .sub-nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0 0.6rem 2rem;
    background: rgba(0, 0, 0, 0.18);
  }
  body.rtl .sub-nav-menu {
    padding: 0.4rem 2rem 0.6rem 0;
  }
  .sub-nav-menu.show {
    display: block;
    animation: pageRise 0.25s ease;
  }
  .sub-nav-menu .sub-nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 1rem;
    display: block;
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
  }
  .sub-nav-menu .sub-nav-link:hover,
  .sub-nav-menu .sub-nav-link.active {
    color: var(--color-secondary-light);
    background: rgba(255, 255, 255, 0.06);
  }

  /* Hero Section fixes on Tablet & Mobile:
     1. Baray Sahab (on right side) is positioned 100% visible & clear
     2. Soft directional overlay protects text without washing out Baray Sahab
     3. Strict height eliminates any empty white gaps below hero */
  .hero-swiper { 
    height: 480px !important; 
  }
  .hero-slide {
    height: 100% !important;
  }
  .hero-media { 
    object-position: 78% center !important; 
  }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 80%) !important;
  }
  body.rtl .hero-overlay {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 80%) !important;
  }
  .hero-content {
    max-width: 380px;
    padding: 3.5rem 1rem 2rem;
    text-align: start;
  }
  .hero-title {
    font-size: clamp(2rem, 6.2vw, 2.75rem);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  }
  .hero-subtitle {
    font-size: 1rem;
    max-width: 320px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  }

  /* Eliminate excessive white space between hero & cards */
  .resource-grid { 
    margin-top: -24px !important; 
    background: var(--color-cream) !important;
    padding: 1.5rem 0 2.5rem !important;
  }
  .header-search { min-width: 170px; }
  .footer-nav-line { justify-content: center !important; }
  .welfare-split { grid-template-columns: 1fr; min-height: 0; }
  .welfare-media {
    min-height: 180px;
    clip-path: none;
    margin-inline-start: 0;
    width: 100%;
  }
  .chairman-layout { grid-template-columns: 1fr; min-height: 0; }
  .chairman-photo,
  .chairman-photo-wrap { min-height: 300px; max-height: 420px; }
}

@media (max-width: 767.98px) {
  .hero-media { object-position: 78% center !important; }
  .chairman-mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .brand-name { font-size: 0.95rem; }
  .hero-swiper { height: 440px !important; }
  .hero-media { object-position: 78% center !important; }
  .hero-title { font-size: 1.95rem; line-height: 1.15; }
  .hero-subtitle { font-size: 0.92rem; margin-bottom: 1.15rem; }
  .date-card, .date-calendar-btn { min-height: 75px; }
  .resource-grid { margin-top: -20px !important; padding: 1.25rem 0 2rem !important; }
  .hero-content { padding: 3rem 0.5rem 2rem; max-width: 300px; }
  .btn-gold { padding: 0.62rem 1.3rem; font-size: 0.9rem; }
}

/* VIP motion */
html { scroll-behavior: smooth; }

.page-enter .site-wrapper {
  animation: pageRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lang-switch .btn {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

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

.lang-switch .btn.active {
  box-shadow: 0 8px 18px rgba(0, 71, 62, 0.22);
}

.brand-logo:hover {
  transform: scale(1.04) rotate(-2deg);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.circle-btn,
.circle-btn-sm {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.circle-btn:hover,
.circle-btn-sm:hover {
  transform: scale(1.08);
}

.resource-card,
.latest-card,
.chairman-card,
.welfare-card,
.event-item,
.contact-info-card,
.contact-form {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.resource-card:hover,
.latest-card:hover {
  transform: translateY(-8px);
}

.event-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover) !important;
}

body.rtl .event-item:hover {
  transform: translateX(-6px);
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.play-badge {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.header-search:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(201, 147, 59, 0.15);
}

@keyframes heroKenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes pageRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes btnSheen {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(24px, 18px, 0); }
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 147, 59, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(201, 147, 59, 0.55)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-enter .site-wrapper,
  .hero-media,
  .btn-gold::before,
  .page-hero::before,
  .play-badge {
    animation: none !important;
  }
  .resource-card:hover,
  .latest-card:hover,
  .event-item:hover,
  .content-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   ABOUT CONTRACTING SECTION (Matching Exact Reference Screenshot)
   ========================================================================== */
.about-contracting-section {
  position: relative;
  background: transparent;
  padding: 1.5rem 0 3.5rem;
}

.about-contracting-visual {
  position: relative;
  padding-inline-end: 85px;
}

.about-photo-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  background: #f4f6f5;
}

.about-contracting-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-photo-wrapper:hover .about-contracting-img {
  transform: scale(1.025);
}

.about-floating-stat {
  position: absolute;
  inset-inline-end: 0;
  width: 225px;
  z-index: 5;
}

.stat-badge-1 {
  top: 15%;
}

.stat-badge-2 {
  bottom: 18%;
}

.floating-stat-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.45rem 1.65rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.16);
}

.floating-stat-box .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.floating-stat-box .stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.35;
}

body.rtl .floating-stat-box .stat-label {
  font-size: 1rem;
}

.about-kicker-text {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.about-contracting-heading {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  font-family: var(--font-sans);
}

body.rtl .about-contracting-heading {
  font-family: var(--font-urdu);
  line-height: 1.45;
}

.about-contracting-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555555;
}

.btn-contracting-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 2.2rem;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-contracting-cta:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 991.98px) {
  .about-contracting-visual {
    padding-inline-end: 0;
    margin-bottom: 3.5rem;
  }
  .about-contracting-img {
    height: 420px;
    object-position: top center;
  }
  .about-floating-stat {
    position: relative;
    inset-inline-end: auto;
    width: 48%;
    display: inline-block;
    margin-top: -30px;
  }
  .stat-badge-1 {
    top: auto;
    float: left;
    margin-inline-start: 1rem;
  }
  body.rtl .stat-badge-1 {
    float: right;
  }
  .stat-badge-2 {
    bottom: auto;
    float: right;
    margin-inline-end: 1rem;
  }
  body.rtl .stat-badge-2 {
    float: left;
  }
  .about-contracting-details {
    clear: both;
    padding-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .about-contracting-img {
    height: 350px;
    object-position: top center;
  }
  .about-floating-stat {
    width: 100%;
    margin-top: 1rem;
    float: none !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
  }
  .floating-stat-box {
    text-align: center;
    padding: 1.15rem 1.25rem;
  }
  .about-contracting-heading {
    font-size: 1.85rem;
  }
  .btn-contracting-cta {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* History Page New Full-Width Image Layout */
.history-block {
  transition: transform 0.3s ease;
}
.history-banner-box {
  transition: box-shadow 0.3s ease;
}
.history-banner-box img {
  transition: transform 0.6s ease;
}
.history-banner-box:hover img {
  transform: scale(1.015);
}
.history-body-text p:last-child {
  margin-bottom: 0;
}
.history-body-text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
@media (max-width: 767.98px) {
  .history-banner-box {
    height: auto !important;
    max-height: 280px !important;
    min-height: 180px !important;
  }
  .history-heading {
    font-size: 1.6rem !important;
  }
}

