/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child - Al Habib Holding customization
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

:root {
  --color-brand-green: #335040;
  --color-brand-green-light: #4A6B58;
  --color-brand-green-dark: #243A2D;
  --color-brand-gold: #C3A66C;
  --color-brand-gold-light: #CEB688;
  --color-brand-gold-dark: #A88B4E;
  --color-brand-cream: #F5F0E8;
  --color-brand-charcoal: #2D2D3F;
  --color-brand-dark: #1A1A2E;
  --font-english: 'Inter', system-ui, sans-serif;
  --font-arabic: 'Tajawal', system-ui, sans-serif;
}

body {
  font-family: var(--font-english);
  color: var(--color-brand-charcoal);
  overflow-x: hidden;
}

body.rtl,
body.rtl .elementor * {
  font-family: var(--font-arabic);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-brand-green);
  font-weight: 700;
}

a {
  color: var(--color-brand-green);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-brand-gold);
}

/* === GLASS HEADER === */
#site-header,
.site-header,
.site-header.dynamic-header,
header.entry-header {
  background: rgba(51, 80, 64, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none !important;
  padding-block: 0.5rem;
  position: relative;
  z-index: 100;
}

#site-header .header-inner,
.site-header .header-inner,
.site-header .site-branding,
.site-header .site-navigation {
  color: #fff;
}

#site-header a,
.site-header a,
#site-header .menu-item a,
.site-header .menu-item a,
.site-navigation ul.menu li a {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  font-size: 0.875rem;
}

#site-header a:hover,
.site-header a:hover,
#site-header .current-menu-item a,
.site-header .current-menu-item a,
.site-navigation-dropdown ul.menu li.current-menu-item a {
  color: var(--color-brand-gold) !important;
}

.site-navigation ul.menu li.menu-item-has-children:after {
  color: rgba(255,255,255,0.6) !important;
}

.site-navigation-dropdown ul.menu li a {
  background: var(--color-brand-green-dark) !important;
  color: rgba(255,255,255,0.8) !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1) !important;
}

.site-navigation-dropdown ul.menu li.current-menu-item a {
  background: rgba(195,166,108,0.2) !important;
  color: var(--color-brand-gold) !important;
}

/* === FOOTER === */
#site-footer,
.site-footer,
.site-footer.dynamic-footer {
  background: var(--color-brand-green) !important;
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 0;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === FOOTER GRID === */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === FOOTER COLUMNS === */
.footer-col p {
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.footer-heading {
  color: var(--color-brand-gold) !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.rtl .footer-heading {
  letter-spacing: 0;
}

/* === LOGO === */
#site-footer .custom-logo-link img,
.site-footer .custom-logo-link img {
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
}

/* Header logo */
#site-header .custom-logo-link img,
.site-header .custom-logo-link img {
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
}

/* === FOOTER MENU (Quick Links) === */
.site-footer .site-navigation ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
}

.site-footer .site-navigation ul.menu li {
  margin: 0;
}

.site-footer .site-navigation ul.menu li a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-block;
  transition: color 0.2s ease, padding-left 0.2s ease;
  position: relative;
  line-height: 1.4;
  white-space: nowrap;
}

.site-footer .site-navigation ul.menu li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-brand-gold);
  transition: width 0.3s ease;
}

body.rtl .site-footer .site-navigation ul.menu li a::before {
  left: auto;
  right: 0;
}

.site-footer .site-navigation ul.menu li a:hover {
  color: var(--color-brand-gold) !important;
  padding-left: 0.4rem;
}

body.rtl .site-footer .site-navigation ul.menu li a:hover {
  padding-left: 0;
  padding-right: 0.4rem;
}

.site-footer .site-navigation ul.menu li a:hover::before {
  width: 100%;
}

.site-footer .site-navigation ul.menu li.menu-item-has-children {
  display: none;
}

@media (max-width: 480px) {
  .site-footer .site-navigation ul.menu {
    grid-template-columns: 1fr;
  }
}

/* === CONTACT LIST === */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-brand-gold);
  margin-top: 0.15rem;
}

/* === FOOTER BOTTOM === */
.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
}

.footer-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195,166,108,0.4), transparent);
  margin-bottom: 1.25rem;
}

.site-footer .copyright {
  text-align: center;
}

.site-footer .copyright p {
  color: rgba(255,255,255,0.45);
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* === FOOTER LINKS === */
.site-footer a {
  color: rgba(255,255,255,0.7) !important;
}

.site-footer a:hover {
  color: var(--color-brand-gold) !important;
}

/* === FOOTER RESPONSIVE === */
@media (max-width: 768px) {
  #site-footer,
  .site-footer,
  .site-footer.dynamic-footer {
    padding: 2rem 0 0;
  }
  
  .site-footer .footer-inner {
    padding: 0 1rem;
  }
  
  .footer-heading {
    margin-bottom: 0.75rem;
  }
  
  .footer-bottom {
    margin-top: 1.5rem;
  }
}

/* === HEADER LAYOUT FIX === */
#site-header .header-inner,
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
}

#site-header .site-branding,
.site-header .site-branding {
  flex: 0 0 auto;
  width: auto !important;
}

#site-header .site-navigation,
.site-header .site-navigation {
  flex: 1 1 auto;
}

#site-header ul.menu,
.site-header ul.menu {
  justify-content: flex-end;
}

body.rtl #site-header ul.menu,
body.rtl .site-header ul.menu {
  justify-content: flex-start;
}



/* === CONSISTENT HERO BANNERS === */

/* All inner page hero containers */
.e-con[class*="elementor-element-14a2d6f"],
.e-con[class*="elementor-element-1cf2cce"],
.page-id-790 .e-con:first-child,
.page-id-795 .e-con:first-child,
.page-id-806 .e-con:first-child,
.page-id-819 .e-con:first-child,
:is(.page-id-829, .page-id-127) .e-con:first-child,
.page-id-844 .e-con:first-child,
.page-id-850 .e-con:first-child,
.page-id-127 .e-con:first-child,
.page-id-181 .e-con:first-child,
.page-id-213 .e-con:first-child,
.page-id-247 .e-con:first-child,
.page-id-260 .e-con:first-child,
.page-id-279 .e-con:first-child,
.page-id-419 .e-con:first-child,
.page-id-626 .e-con:first-child {
  min-height: 100vh !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
}

/* Ensure hero headings are always white on dark overlay */
.e-con[class*="elementor-element-14a2d6f"] .elementor-heading-title,
.e-con[class*="elementor-element-14a2d6f"] .elementor-widget-text-editor,
.e-con[class*="elementor-element-14a2d6f"] .elementor-widget-text-editor p,
[class*="elementor-element-14a2d6f"] .elementor-widget-text-editor,
[class*="elementor-element-14a2d6f"] .elementor-widget-text-editor p,
.elementor-element-14a2d6f .elementor-widget-text-editor,
.elementor-element-14a2d6f .elementor-widget-text-editor p {
  color: #ffffff !important;
  font-family: var(--font-english);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.6;
}

body.rtl .elementor-element-14a2d6f .elementor-widget-text-editor,
body.rtl .elementor-element-14a2d6f .elementor-widget-text-editor p {
  font-family: var(--font-arabic);
}

.e-con[class*="elementor-element-14a2d6f"] .elementor-heading-title,
[class*="elementor-element-14a2d6f"] .elementor-heading-title,
.elementor-element-14a2d6f .elementor-heading-title {
  font-size: 50px !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Slides widget on Our Projects - ensure it displays as hero */
.elementor-widget-slides {
  min-height: 448px;
}

.elementor-widget-slides .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === TEXT CONTRAST FIX === */
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  color: var(--color-brand-charcoal);
}

/* Only force dark headings where Elementor has poor defaults */
.elementor-widget-heading .elementor-heading-title[style*="color"] {
  /* Let Elementor style through if explicit */
}

/* Default text color for paragraphs in text editors */
.elementor-widget-text-editor p {
  line-height: 1.7;
}

/* White text on backgrounds with dark overlay */
[class*="elementor-element-14a2d6f"] .elementor-heading-title,
[class*="elementor-element-14a2d6f"] .elementor-widget-text-editor,
[class*="elementor-element-a69af69"] .elementor-heading-title,
[class*="elementor-element-a69af69"] .elementor-widget-text-editor {
  color: #ffffff !important;
}

/* White text on green/dark backgrounds */
.has-primary-background-color,
.elementor-widget-wrap[style*="#335040"],
.e-con[style*="#335040"],
.e-con[style*="#243A2D"],
.e-con[style*="#23504C"] {
  color: #ffffff !important;
}

.has-primary-background-color .elementor-heading-title,
.elementor-widget-wrap[style*="#335040"] .elementor-heading-title,
.e-con[style*="#335040"] .elementor-heading-title,
.e-con[style*="#335040"] .elementor-widget-text-editor,
.e-con[style*="#243A2D"] .elementor-heading-title,
.e-con[style*="#243A2D"] .elementor-widget-text-editor {
  color: #ffffff !important;
}

/* Dark text on gold/cream backgrounds */
.elementor-widget-wrap[style*="#C3A66C"],
.e-con[style*="#C3A66C"] {
  color: var(--color-brand-green-dark) !important;
}

/* Primary color text override */
.has-primary-color {
  color: var(--color-brand-green) !important;
}

/* === ABOUT US - ASTRO-STYLE === */

/* ========================================
   Reset Elementor Inline CSS Variables
   Use CSS variables override to beat <style> blocks
   ======================================== */

/* ========================================
   Standardized Section Padding (Astro: 6rem/4rem)
   Override Elementor --padding-* CSS variables
   ======================================== */

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-b87ebae"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-38b0aa1"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-5690849"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-1b0c549"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] {
  --padding-top: 6rem !important;
  --padding-bottom: 6rem !important;
  --padding-left: 2rem !important;
  --padding-right: 2rem !important;
  --gap: 0px !important;
  --row-gap: 0px !important;
  padding: 6rem 2rem !important;
}

@media (max-width: 768px) {
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-b87ebae"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-38b0aa1"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-5690849"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-1b0c549"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] {
    --padding-top: 4rem !important;
    --padding-bottom: 4rem !important;
    --padding-left: 1.5rem !important;
    --padding-right: 1.5rem !important;
    padding: 4rem 1.5rem !important;
  }
}

/* Alternating backgrounds per Astro design */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-b87ebae"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] {
  background: #ffffff !important;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-38b0aa1"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-5690849"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-1b0c549"] {
  background: var(--color-brand-cream) !important;
}

/* Inner page containers max-width centered */
:is(.page-id-829, .page-id-127) .e-con > .e-con-inner {
  max-width: 1152px;
  margin: 0 auto;
}

/* ========================================
   FIX: shap.png watermarks
   - Too large (background-size:contain stretches to full height)
   - Make small, positioned left (EN) / right (AR)
   ======================================== */

:is(.page-id-829, .page-id-127) .elementor-element-c72b1ba::before,
:is(.page-id-829, .page-id-127) .elementor-element-f84163b::before {
  background-size: 160px auto !important;
  background-position: left center !important;
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-c72b1ba::before,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-f84163b::before {
  background-position: right center !important;
}

:is(.page-id-829, .page-id-127) .elementor-element-c72b1ba,
:is(.page-id-829, .page-id-127) .elementor-element-f84163b {
  --overlay-opacity: 0.3 !important;
}

/* ========================================
   Gold Accent Under Section Headings
   ======================================== */

:is(.page-id-829, .page-id-127) .elementor-element-c78d510,
:is(.page-id-829, .page-id-127) .elementor-element-c81c1a6,
:is(.page-id-829, .page-id-127) .elementor-element-3957f1f {
  position: relative;
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.5rem !important;
}

:is(.page-id-829, .page-id-127) .elementor-element-c78d510::after,
:is(.page-id-829, .page-id-127) .elementor-element-c81c1a6::after,
:is(.page-id-829, .page-id-127) .elementor-element-3957f1f::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--color-brand-gold);
  border-radius: 2px;
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-c78d510::after,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-c81c1a6::after,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-3957f1f::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* ========================================
   Section Heading Typography (EN = Inter, AR = Tajawal)
   ======================================== */

:is(.page-id-829, .page-id-127) .elementor-element-c78d510 .elementor-heading-title,
:is(.page-id-829, .page-id-127) .elementor-element-c81c1a6 .elementor-heading-title,
:is(.page-id-829, .page-id-127) .elementor-element-3957f1f .elementor-heading-title,
:is(.page-id-829, .page-id-127) .elementor-element-dce8cd4 .elementor-heading-title {
  text-align: center !important;
  font-family: var(--font-english) !important;
  font-weight: 300 !important;
  letter-spacing: -0.02em;
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-c78d510 .elementor-heading-title,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-c81c1a6 .elementor-heading-title,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-3957f1f .elementor-heading-title,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-dce8cd4 .elementor-heading-title {
  font-family: var(--font-arabic) !important;
  font-weight: 300 !important;
  letter-spacing: 0;
}

/* Bold span inside heading */
:is(.page-id-829, .page-id-127) .elementor-element-c78d510 span,
:is(.page-id-829, .page-id-127) .elementor-element-c81c1a6 span,
:is(.page-id-829, .page-id-127) .elementor-element-3957f1f span {
  font-weight: 700 !important;
  display: inline;
}

/* Reduce board heading padding */
:is(.page-id-829, .page-id-127) .elementor-element-dce8cd4 > .elementor-widget-container {
  padding: 10px 0px 5px 0px !important;
}

/* Segment description text (under heading) */
:is(.page-id-829, .page-id-127) .elementor-element-ed9b25a p,
:is(.page-id-829, .page-id-127) .elementor-element-afb5734 p {
  font-family: var(--font-english);
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: var(--color-brand-charcoal);
  max-width: 800px;
  margin: 0 auto;
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-ed9b25a p,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-afb5734 p {
  font-family: var(--font-arabic);
}

/* Fix hero heading - Elementor uses Tajawal by default */
:is(.page-id-829, .page-id-127) .elementor-element-639e884 .elementor-heading-title {
  font-family: var(--font-english) !important;
  font-size: 50px !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-639e884 .elementor-heading-title {
  font-family: var(--font-arabic) !important;
}

/* Reduce hero subtitle side padding */
:is(.page-id-829, .page-id-127) .elementor-element-e603c1b > .elementor-widget-container {
  padding: 0px 80px 0px 80px !important;
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-e603c1b > .elementor-widget-container {
  padding: 0px 80px 0px 80px !important;
}

/* ========================================
   Fix: Hero min-height too short (360px)
   ======================================== */

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-14a2d6f"] {
  --min-height: 100vh !important;
  --padding-top: 0px !important;
  --padding-bottom: 0px !important;
  padding: 0px !important;
}

/* ========================================
   CHAIRMAN/CEO/MD SECTIONS
   ======================================== */

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"],
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] {
  gap: 3rem !important;
  align-items: center !important;
}

@media (max-width: 768px) {
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"],
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] {
    gap: 2rem !important;
  }
}

/* Image hover zoom effect */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-widget-image,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-widget-image,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-widget-image {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: box-shadow 0.5s ease;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-widget-image:hover,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-widget-image:hover,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-widget-image:hover {
  box-shadow: 0 16px 48px rgba(51,80,64,0.18);
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-widget-image img,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-widget-image img,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-widget-image img {
  transition: transform 1s ease-out, filter 1s ease-out;
  width: 100%;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-widget-image:hover img,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-widget-image:hover img,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-widget-image:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Title label (Chairman/CEO/MD) */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-heading-title,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-heading-title,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-heading-title {
  font-family: var(--font-english) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-heading-title,
body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-heading-title,
body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-heading-title {
  font-family: var(--font-arabic) !important;
}

/* Person name in gold */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-widget-heading[class*="elementor-element-cb75137"] .elementor-heading-title,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-widget-heading[class*="elementor-element-ab35f92"] .elementor-heading-title,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-widget-heading[class*="elementor-element-09678f4"] .elementor-heading-title {
  color: var(--color-brand-gold) !important;
  font-weight: 600 !important;
}

/* Icon-box title ("Chairman's Message", "CEO's Message", etc.) */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-icon-box-title,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-icon-box-title,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-icon-box-title {
  color: var(--color-brand-green) !important;
  font-family: var(--font-english) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-icon-box-title,
body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-icon-box-title,
body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-icon-box-title {
  font-family: var(--font-arabic) !important;
}

/* Message text paragraphs */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-widget-text-editor p,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-widget-text-editor p,
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-widget-text-editor p {
  font-family: var(--font-english);
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: var(--color-brand-charcoal);
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-374b003"] .elementor-widget-text-editor p,
body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-f56d01f"] .elementor-widget-text-editor p,
body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-9a86963"] .elementor-widget-text-editor p {
  font-family: var(--font-arabic);
}

/* ========================================
   VISION / MISSION / VALUES
   ======================================== */

/* Left column image styling */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-b6688e1"] img {
  border-radius: 0 1.5rem 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fix: Image + content column widths exceed 100% (33.33% + 73.053% = 106.386%) */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-b6688e1"] {
  --flex-basis: 35% !important;
  width: 35% !important;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] {
  --flex-basis: 65% !important;
  width: 65% !important;
  background: #ffffff !important;
  padding: 2.5rem !important;
  border-radius: 1rem !important;
  margin-left: 1rem;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] {
  margin-left: 0;
  margin-right: 1rem;
}

/* VMV icon box titles */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] .elementor-icon-box-title {
  font-family: var(--font-english) !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  color: var(--color-brand-green) !important;
  margin-bottom: 0.25rem !important;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] .elementor-icon-box-title {
  font-family: var(--font-arabic) !important;
}

/* VMV description text */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] .elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-english) !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  color: var(--color-brand-charcoal);
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] .elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-arabic) !important;
}

/* ========================================
   BOARD OF DIRECTORS
   ======================================== */

/* Board members grid */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] {
  --grid-auto-flow: row !important;
  gap: 1.5rem !important;
  padding: 0 !important;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .e-con {
  background: var(--color-brand-cream);
  border-radius: 1rem;
  padding: 1.5rem !important;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .e-con:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(51,80,64,0.15);
}

/* Board member images */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .elementor-widget-image {
  overflow: hidden;
  border-radius: 0.5rem;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .elementor-widget-image img {
  transition: transform 0.6s ease;
  width: 100%;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .e-con:hover .elementor-widget-image img {
  transform: scale(1.08);
}

/* Board member name */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .elementor-heading-title {
  font-family: var(--font-english) !important;
  font-weight: 600 !important;
  color: var(--color-brand-green) !important;
  margin-top: 0.75rem;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .elementor-heading-title {
  font-family: var(--font-arabic) !important;
}

/* Board member role */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .elementor-widget-text-editor p {
  color: var(--color-brand-gold) !important;
  font-family: var(--font-english) !important;
  font-size: 0.85rem !important;
  margin-top: 0.25rem;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] .elementor-widget-text-editor p {
  font-family: var(--font-arabic) !important;
}

/* Chairman card visual unification: title + image as one cohesive card */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-c22c197"] {
  max-width: 420px;
  margin: 0 auto 0 !important;
  background: var(--color-brand-cream);
  border-radius: 1rem 1rem 0 0;
  padding: 2rem 2rem 0.5rem !important;
  text-align: center;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] .e-con[class*="elementor-element-9e6a504"] {
  max-width: 420px;
  margin: 0 auto 2rem !important;
  background: var(--color-brand-cream);
  border-radius: 0 0 1rem 1rem;
  padding: 0 2rem 2rem !important;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] .e-con[class*="elementor-element-9e6a504"]:hover {
  box-shadow: 0 12px 40px rgba(51,80,64,0.1);
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] .e-con[class*="elementor-element-9e6a504"] .elementor-widget-image {
  overflow: hidden;
  border-radius: 0.5rem;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] .e-con[class*="elementor-element-9e6a504"] .elementor-widget-image img {
  transition: transform 0.6s ease;
  width: 100%;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a6f84b5"] .e-con[class*="elementor-element-9e6a504"]:hover .elementor-widget-image img {
  transform: scale(1.06);
}

/* Board section subtitles (chairman label + name inside heading card) */
:is(.page-id-829, .page-id-127) .elementor-element-2bb428f .elementor-heading-title,
:is(.page-id-829, .page-id-127) .elementor-element-831dcce .elementor-heading-title {
  text-align: center !important;
}

:is(.page-id-829, .page-id-127) .elementor-element-2bb428f .elementor-heading-title {
  font-family: var(--font-english) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--color-brand-green) !important;
}

:is(.page-id-829, .page-id-127) .elementor-element-831dcce .elementor-heading-title {
  color: var(--color-brand-gold) !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  font-size: 22px !important;
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-2bb428f .elementor-heading-title,
body.rtl :is(.page-id-829, .page-id-127) .elementor-element-831dcce .elementor-heading-title {
  font-family: var(--font-arabic) !important;
}

/* ========================================
   OUR SERVICES SECTION
   ======================================== */

/* Remove negative margin on services grid */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"] {
  --margin-top: 0px !important;
  margin-top: 0 !important;
}

/* Service cards */
:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"] .elementor-widget-image-box {
  background: #ffffff !important;
  border-radius: 1rem;
  padding: 2rem !important;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"] .elementor-widget-image-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(51,80,64,0.08);
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"] .elementor-image-box-title {
  font-family: var(--font-english) !important;
  font-weight: 600 !important;
  color: var(--color-brand-green) !important;
  font-size: 1.1rem !important;
  margin-top: 1rem !important;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-79275b2"] .elementor-image-box-title {
  font-family: var(--font-arabic) !important;
}

/* Reduce services heading side padding */
:is(.page-id-829, .page-id-127) .elementor-element-28f68c7 > .elementor-widget-container {
  padding: 0px 80px 0px 80px !important;
}

body.rtl :is(.page-id-829, .page-id-127) .elementor-element-28f68c7 > .elementor-widget-container {
  padding: 0px 80px 0px 80px !important;
}

/* ========================================
   CTA SECTION
   ======================================== */

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a69af69"] {
  --padding-top: 5rem !important;
  --padding-bottom: 5rem !important;
  --padding-left: 2rem !important;
  --padding-right: 2rem !important;
  --margin-top: 0px !important;
  --margin-bottom: 0px !important;
  min-height: 320px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 1.5rem !important;
  margin: 0 1rem !important;
  background-size: cover !important;
  background-position: center !important;
}

:is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a69af69"] .elementor-heading-title {
  font-size: 2rem !important;
  color: #ffffff !important;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5 !important;
  font-family: var(--font-english) !important;
  font-weight: 400 !important;
}

body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a69af69"] .elementor-heading-title {
  font-family: var(--font-arabic) !important;
}

/* ========================================
   Responsive: Mobile adjustments
   ======================================== */

@media (max-width: 1024px) {
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] {
    --e-con-grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-b6688e1"] {
    width: 100% !important;
  }
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] {
    width: 100% !important;
    margin-left: 0 !important;
  }
  body.rtl :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-408ca7d"] .e-con[class*="elementor-element-48e42ae"] {
    margin-right: 0 !important;
  }
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-a69af69"] {
    margin: 0 !important;
    border-radius: 0 !important;
  }
  :is(.page-id-829, .page-id-127) .elementor-element-e603c1b > .elementor-widget-container {
    padding: 0px 20px 0px 20px !important;
  }
  :is(.page-id-829, .page-id-127) .elementor-element-28f68c7 > .elementor-widget-container {
    padding: 0px 20px 0px 20px !important;
  }
}

@media (max-width: 640px) {
  :is(.page-id-829, .page-id-127) .e-con[class*="elementor-element-3e9b86e"] {
    --e-con-grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* === OUR PROJECTS - Add hero fallback via first container background === */
.page-id-819 .elementor-widget-slides {
  position: relative;
}

.page-id-819 .elementor-widget-slides::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51,80,64,0.7), rgba(36,58,45,0.8));
  z-index: 1;
  pointer-events: none;
}

.page-id-819 .elementor-widget-slides .swiper-slide-contents {
  z-index: 2;
  position: relative;
}

/* === GENERAL SECTION SPACING === */
.e-con {
  width: 100%;
}

.e-con > .e-con-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Icon box alignment fix */
.elementor-icon-box-wrapper {
  align-items: flex-start !important;
}

body.rtl .elementor-icon-box-wrapper {
  text-align: right !important;
}

/* Image box styling */
.elementor-image-box-wrapper {
  text-align: center;
}

.elementor-image-box-img {
  margin-bottom: 1rem !important;
}

/* Heading spacing */
.elementor-heading-title {
  line-height: 1.3;
}

/* Grid layout improvements */
.e-con.e-grid {
  gap: 1.5rem !important;
}

/* === BUTTONS === */
.elementor-button,
button,
input[type="submit"],
.wp-block-button__link {
  font-weight: 600 !important;
  border-radius: 999px !important;
  transition: all 0.25s ease !important;
}

.elementor-button:hover {
  transform: translateY(-1px);
}

/* === ALHABIB SPECIFIC ELEMENTS === */

.glass-header {
  background: rgba(51, 80, 64, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
}

.glass-card {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.glass-white {
  background: rgba(245, 240, 232, 0.6) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-gold {
  background: rgba(195, 166, 109, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(195, 166, 109, 0.2);
}

.gradient-green {
  background: linear-gradient(135deg, var(--color-brand-green), var(--color-brand-green-dark)) !important;
}

.gradient-gold {
  background: linear-gradient(135deg, var(--color-brand-gold), var(--color-brand-gold-dark)) !important;
}

.gold-accent {
  position: relative;
}

.gold-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 4rem;
  background: var(--color-brand-gold);
}

body.rtl .gold-accent::after {
  left: auto;
  right: 0;
}

.gold-accent-center {
  position: relative;
  padding-bottom: 1.25rem;
}

.gold-accent-center::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 4rem;
  background: var(--color-brand-gold);
  left: 50%;
  transform: translateX(-50%);
}

body.rtl .gold-accent-center::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* === HEADER DROPDOWN MENU === */
.site-header .site-navigation ul.menu li.menu-item-has-children {
  position: relative;
}

.site-header .site-navigation ul.menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

body.rtl .site-header .site-navigation ul.menu li.menu-item-has-children > a::after {
  margin-left: 0;
  margin-right: 0.35rem;
}

.site-header .site-navigation ul.menu li.menu-item-has-children ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 101;
  min-width: 220px;
  background: var(--color-brand-green-dark);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  list-style: none;
  margin: 0;
}

body.rtl .site-header .site-navigation ul.menu li.menu-item-has-children ul.sub-menu {
  left: auto;
  right: 0;
}

.site-header .site-navigation ul.menu li.menu-item-has-children:hover > ul.sub-menu,
.site-header .site-navigation ul.menu li.menu-item-has-children.focus > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .site-navigation ul.menu li.menu-item-has-children ul.sub-menu li {
  margin: 0;
  padding: 0;
}

.site-header .site-navigation ul.menu li.menu-item-has-children ul.sub-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header .site-navigation ul.menu li.menu-item-has-children ul.sub-menu li:last-child a {
  border-bottom: none;
}

.site-header .site-navigation ul.menu li.menu-item-has-children ul.sub-menu li a:hover {
  background: rgba(195,166,108,0.12);
  color: var(--color-brand-gold) !important;
}

/* === ISLAMIC STAR PATTERN === */
.islamic-star-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 61.6,35.3 95,35.3 68.5,55.5 77.6,85.5 50,67 22.4,85.5 31.5,55.5 5,35.3 38.4,35.3' fill='%23C3A66C' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-repeat: repeat;
}

/* === HERO SECTION === */
.alhabib-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.alhabib-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.32) 45%, transparent 80%),
              linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 40%);
}

body.rtl .alhabib-hero .hero-overlay {
  background: linear-gradient(to left, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.32) 45%, transparent 80%),
              linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 40%);
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51,80,64,0.6), rgba(36,58,45,0.7));
}

/* === SECTIONS === */
.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 6rem 4rem;
  }
}

/* === CARD PATTERNS === */
.alhabib-card {
  background: var(--color-brand-cream);
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.alhabib-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(51, 80, 64, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease;
}

.icon-wrap svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-brand-green);
}

.icon-wrap:hover {
  background: var(--color-brand-green);
}

.icon-wrap:hover svg {
  color: #fff;
}

/* === STAT NUMBERS === */
.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-brand-gold);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

/* === IMAGE ZOOM === */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 1s ease-out, filter 1s ease-out;
}

.img-zoom:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

[data-reveal="fade-up"] {
  transform: translateY(48px);
}

[data-reveal="fade-down"] {
  transform: translateY(-48px);
}

[data-reveal="fade-left"] {
  transform: translateX(-48px);
}

[data-reveal="fade-right"] {
  transform: translateX(48px);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

/* === STAGGER ANIMATION === */
.reveal-stagger > [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > [data-reveal]:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > [data-reveal]:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > [data-reveal]:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > [data-reveal]:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger > [data-reveal]:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > [data-reveal]:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger > [data-reveal]:nth-child(8) { transition-delay: 0.54s; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes unmaskText {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s ease-out both;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.7s ease-out both;
}

.animate-fadeInRight {
  animation: fadeInRight 0.7s ease-out both;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out both;
}

.kinetic-text {
  animation: unmaskText 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kinetic-text-delay-1 { animation-delay: 0.15s; }
.kinetic-text-delay-2 { animation-delay: 0.3s; }
.kinetic-text-delay-3 { animation-delay: 0.45s; }

/* === TIMELINE === */
.cd-timeline__container {
  position: relative;
}

.cd-timeline__container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(195,166,108,0.3), rgba(195,166,108,0.6), rgba(195,166,108,0.3));
}

body.rtl .cd-timeline__container::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* === HONEYCOMB BG === */
.honeycomb-bg {
  background-image: url('/alhabiblocal/wp-content/uploads/bg-logo.png');
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: 0.15;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cd-timeline__container::before {
    left: 1.5rem;
  }
  
  body.rtl .cd-timeline__container::before {
    left: auto;
    right: 1.5rem;
  }
}

@media (max-width: 640px) {
  .stat-number {
    font-size: 1.875rem;
  }
  
  .section-padding {
    padding: 3rem 1rem;
  }
}

/* === WORDPRESS CORE OVERRIDES === */
.bypostauthor,
.comment-form .form-submit input {
  border-radius: 999px;
  background: var(--color-brand-green);
  color: #fff;
}

.wp-caption {
  border-radius: 0.5rem;
  overflow: hidden;
}

.sticky {
  border-left: 3px solid var(--color-brand-gold);
  padding-left: 1rem;
}

body.rtl .sticky {
  border-left: none;
  border-right: 3px solid var(--color-brand-gold);
  padding-left: 0;
  padding-right: 1rem;
}

/* === ALIGNMENT === */
.aligncenter {
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

body.rtl .alignleft {
  float: right;
  margin-right: 0;
  margin-left: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

body.rtl .alignright {
  float: left;
  margin-left: 0;
  margin-right: 1rem;
}

/* === HELLO ELEMENTOR SPECIFIC OVERRIDES === */
.hello-elementor .site-header {
  background: rgba(51, 80, 64, 0.85) !important;
  backdrop-filter: blur(12px);
}

.hello-elementor .site-header a {
  color: rgba(255,255,255,0.9) !important;
}

.hello-elementor .site-header .menu-item.current-menu-item a,
.hello-elementor .site-header a:hover {
  color: var(--color-brand-gold) !important;
}

/* === ELEMENTOR WIDGET OVERRIDES === */
.elementor-widget-heading .elementor-heading-title {
  color: var(--color-brand-green);
}

.elementor-button,
.elementor-button.elementor-size-sm,
.elementor-button.elementor-size-md,
.elementor-button.elementor-size-lg {
  border-radius: 999px !important;
  font-weight: 600 !important;
}

.elementor-button.brand-primary {
  background: var(--color-brand-green) !important;
}

.elementor-button.brand-primary:hover {
  background: var(--color-brand-green-dark) !important;
}

.elementor-button.brand-gold {
  background: var(--color-brand-gold) !important;
  color: var(--color-brand-green-dark) !important;
}

.elementor-button.brand-gold:hover {
  background: #fff !important;
  color: var(--color-brand-green-dark) !important;
}

/* === POLYLANG LANGUAGE SWITCHER === */
.polylang-switcher a {
  color: rgba(255,255,255,0.7) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: all 0.3s ease;
}

.polylang-switcher a:hover {
  color: #fff !important;
  border-color: var(--color-brand-gold);
}

/* === ELEMENTOR KIT GLOBAL STYLES === */
.elementor-kit-8 {
  --e-global-color-primary: #335040;
  --e-global-color-secondary: #C3A66C;
  --e-global-color-text: #2D2D3F;
  --e-global-color-accent: #C3A66C;
}

/* === GUTENBERG ABOUT US PAGES === */
:is(.page-id-8587, .page-id-8588) .entry-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Hide page title above hero */
:is(.page-id-8587, .page-id-8588) .page-header,
:is(.page-id-8587, .page-id-8588) header.entry-header,
:is(.page-id-8587, .page-id-8588) .entry-title {
  display: none !important;
}

/* Hero Cover */
:is(.page-id-8587, .page-id-8588) .wp-block-cover.about-hero {
  min-height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

:is(.page-id-8587, .page-id-8588) .wp-block-cover.about-hero .wp-block-cover__inner-container {
  text-align: center;
  color: #fff;
}

:is(.page-id-8587, .page-id-8588) .wp-block-cover.about-hero h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

:is(.page-id-8587, .page-id-8588) .wp-block-cover.about-hero p {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  color: rgba(255,255,255,0.9) !important;
}

/* Global section styling */
:is(.page-id-8587, .page-id-8588) .about-section {
  padding: 5rem 2rem;
}

:is(.page-id-8587, .page-id-8588) .about-section.bg-cream {
  background: var(--color-brand-cream);
}

/* ========================================
   OUR PROJECTS V2 (Gutenberg Test Pages)
   ======================================== */

/* Prevent footer gap */
body.page-id-8598 .site,
body.page-id-8599 .site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.page-id-8598 .site-main,
body.page-id-8599 .site-main {
  flex: 1;
}

:is(.page-id-8598, .page-id-8599) .entry-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

:is(.page-id-8598, .page-id-8599) header.entry-header,
:is(.page-id-8598, .page-id-8599) .page-header,
:is(.page-id-8598, .page-id-8599) .entry-title {
  display: none !important;
}

/* ── Hero ── */
:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero {
  min-height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51,80,64,0.75), rgba(36,58,45,0.85));
  z-index: 1;
  pointer-events: none;
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero .wp-block-cover__inner-container {
  text-align: center;
  color: #fff;
  z-index: 2;
  position: relative;
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero p {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  color: rgba(255,255,255,0.9) !important;
}

/* ── Modernity Section ── */
:is(.page-id-8598, .page-id-8599) .v2-modernity {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--color-brand-cream);
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-group__inner-container {
  max-width: 1152px;
  margin: 0 auto;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity h2 {
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--color-brand-gold);
  border-radius: 2px;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-brand-charcoal);
}

/* Single-column gallery */
:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery {
  max-width: 800px;
  margin: 0 auto !important;
  gap: 1.5rem !important;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery .wp-block-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery .wp-block-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(51,80,64,0.12);
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Cards Section ── */
:is(.page-id-8598, .page-id-8599) .v2-cards {
  background: #ffffff;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 1.5rem 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

:is(.page-id-8598, .page-id-8599) .v2-cards-right {
  background: #335040;
  padding: 2.5rem !important;
  border-radius: 1rem !important;
  margin-left: 1rem;
}

body.rtl :is(.page-id-8598, .page-id-8599) .v2-cards-right {
  margin-left: 0;
  margin-right: 1rem;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-right .wp-block-columns {
  gap: 1.5rem;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-right .wp-block-column {
  text-align: center;
  padding: 1rem;
}

:is(.page-id-8598, .page-id-8599) .v2-card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
}

:is(.page-id-8598, .page-id-8599) .v2-card-icon img {
  width: 100%;
  height: auto;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-right h3,
:is(.page-id-8598, .page-id-8599) .v2-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 0.75rem;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-right p,
:is(.page-id-8598, .page-id-8599) .v2-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85) !important;
}

/* ── Journey Section ── */
:is(.page-id-8598, .page-id-8599) .v2-journey {
  padding: 5rem 2rem;
  background: var(--color-brand-cream);
}

:is(.page-id-8598, .page-id-8599) .v2-journey .wp-block-group__inner-container {
  max-width: 1152px;
  margin: 0 auto;
}

:is(.page-id-8598, .page-id-8599) .v2-journey h2 {
  text-align: center;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

:is(.page-id-8598, .page-id-8599) .v2-journey h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--color-brand-gold);
  border-radius: 2px;
}

:is(.page-id-8598, .page-id-8599) .v2-journey > .wp-block-group__inner-container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-brand-charcoal);
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text {
  gap: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__content {
  padding: 2rem !important;
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-brand-charcoal);
}

/* ── NEW Cards Section (plain HTML, no WP columns) ── */
:is(.page-id-8598, .page-id-8599) .v2-cards-new {
  display: flex;
  gap: 0.5rem;
  max-width: 1312px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: #ffffff;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-left {
  flex: 0 0 38%;
  display: flex;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 1.25rem 1.25rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-right {
  flex: 1;
  background: #335040;
  padding: 2rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-card {
  text-align: center;
  padding: 0.75rem;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: block;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-card h3 {
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-new-card p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* RTL */
body.rtl :is(.page-id-8598, .page-id-8599) .v2-cards-new {
  direction: rtl;
}

body.rtl :is(.page-id-8598, .page-id-8599) .v2-cards-new-left img {
  border-radius: 1.25rem 0 0 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  :is(.page-id-8598, .page-id-8599) .v2-cards-new {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  :is(.page-id-8598, .page-id-8599) .v2-cards-new-left {
    flex: none;
    max-height: 300px;
  }
  :is(.page-id-8598, .page-id-8599) .v2-cards-new-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  :is(.page-id-8598, .page-id-8599) .v2-cards-new-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive (old sections) ── */
@media (max-width: 768px) {
  :is(.page-id-8598, .page-id-8599) .v2-cards-left {
    display: none !important;
  }
  
  :is(.page-id-8598, .page-id-8599) .v2-cards-right {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.5rem !important;
  }
  
  :is(.page-id-8598, .page-id-8599) .v2-modernity,
  :is(.page-id-8598, .page-id-8599) .v2-journey {
    padding: 3rem 1rem;
  }
}
body.page-id-8598 .site-main,
body.page-id-8599 .site-main {
  flex: 1;
}

:is(.page-id-8598, .page-id-8599) .entry-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

:is(.page-id-8598, .page-id-8599) header.entry-header,
:is(.page-id-8598, .page-id-8599) .page-header,
:is(.page-id-8598, .page-id-8599) .entry-title {
  display: none !important;
}

/* ── Hero ── */
:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero {
  min-height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51,80,64,0.75), rgba(36,58,45,0.85));
  z-index: 1;
  pointer-events: none;
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero .wp-block-cover__inner-container {
  text-align: center;
  color: #fff;
  z-index: 2;
  position: relative;
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

:is(.page-id-8598, .page-id-8599) .wp-block-cover.v2-hero p {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  color: rgba(255,255,255,0.9) !important;
}

/* ── Modernity Section ── */
:is(.page-id-8598, .page-id-8599) .v2-modernity {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--color-brand-cream);
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-group__inner-container {
  max-width: 960px;
  margin: 0 auto;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity h2 {
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

:is(.page-id-8598, .page-id-8599) .v2-modernity h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--color-brand-gold);
  border-radius: 2px;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity > .wp-block-group__inner-container > p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-brand-charcoal);
}

/* Single-column gallery (stacked, full-width within boxed container) */
:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery {
  max-width: 800px;
  margin: 0 auto !important;
  gap: 1.5rem !important;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery .wp-block-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  width: 100%;
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery .wp-block-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(51,80,64,0.12);
}

:is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Cards Section ── */
:is(.page-id-8598, .page-id-8599) .v2-cards {
  background: #ffffff;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-left {
  display: flex;
  align-items: stretch;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-left {
  padding: 0 !important;
  overflow: hidden;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-left .v2-left-img {
  margin: 0 !important;
  height: 100%;
  display: flex;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-left .v2-left-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 1.5rem 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  max-height: 550px;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-right {
  background: #335040;
  padding: 2rem !important;
  border-radius: 1rem !important;
  margin-left: 1rem;
}

body.rtl :is(.page-id-8598, .page-id-8599) .v2-cards-right {
  margin-left: 0;
  margin-right: 1rem;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-grid {
  gap: 1rem !important;
  margin-bottom: 0.5rem;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-grid:last-child {
  margin-bottom: 0;
}

body.rtl :is(.page-id-8598, .page-id-8599) .v2-cards-grid {
  direction: rtl;
}

:is(.page-id-8598, .page-id-8599) .v2-cards-grid > .wp-block-column {
  flex-basis: calc(50% - 0.5rem) !important;
}

:is(.page-id-8598, .page-id-8599) .v2-card {
  text-align: center;
  padding: 0.75rem;
}

:is(.page-id-8598, .page-id-8599) .v2-card-icon {
  width: 50px;
  margin: 0 auto 0.75rem;
}

:is(.page-id-8598, .page-id-8599) .v2-card-icon img {
  width: 100%;
  height: auto;
}

:is(.page-id-8598, .page-id-8599) .v2-card h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem;
}

:is(.page-id-8598, .page-id-8599) .v2-card p {
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,0.85) !important;
}

/* ── Journey Section ── */
:is(.page-id-8598, .page-id-8599) .v2-journey {
  padding: 4rem 2rem;
  background: var(--color-brand-cream);
}

:is(.page-id-8598, .page-id-8599) .v2-journey .wp-block-group__inner-container {
  max-width: 1152px;
  margin: 0 auto;
}

:is(.page-id-8598, .page-id-8599) .v2-journey h2 {
  text-align: center;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

:is(.page-id-8598, .page-id-8599) .v2-journey h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: var(--color-brand-gold);
  border-radius: 2px;
}

:is(.page-id-8598, .page-id-8599) .v2-journey > .wp-block-group__inner-container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-brand-charcoal);
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text {
  gap: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  background: #fff;
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__media {
  min-height: 350px;
  overflow: hidden;
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__content {
  padding: 2.5rem !important;
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-brand-charcoal);
  margin-bottom: 1rem;
}

:is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__content p:last-child {
  margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :is(.page-id-8598, .page-id-8599) .v2-cards-left {
    display: none !important;
  }

  :is(.page-id-8598, .page-id-8599) .v2-cards-right {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.5rem !important;
  }

  :is(.page-id-8598, .page-id-8599) .v2-cards-grid > .wp-block-column {
    flex-basis: 50% !important;
  }

  :is(.page-id-8598, .page-id-8599) .v2-modernity,
  :is(.page-id-8598, .page-id-8599) .v2-journey {
    padding: 2.5rem 1rem;
  }

  :is(.page-id-8598, .page-id-8599) .v2-modernity .wp-block-gallery {
    gap: 0.75rem !important;
  }

  :is(.page-id-8598, .page-id-8599) .wp-block-media-text {
    grid-template-columns: 1fr !important;
  }
  
  :is(.page-id-8598, .page-id-8599) .wp-block-media-text .wp-block-media-text__media {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  :is(.page-id-8598, .page-id-8599) .v2-cards-grid > .wp-block-column {
    flex-basis: 100% !important;
  }
}

:is(.page-id-8587, .page-id-8588) .about-section > .wp-block-group__inner-container,
:is(.page-id-8587, .page-id-8588) .about-section .wp-block-cover__inner-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section headings */
:is(.page-id-8587, .page-id-8588) .about-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-brand-green);
  margin-bottom: 0.5rem;
}

:is(.page-id-8587, .page-id-8588) .about-section .services-intro,
:is(.page-id-8587, .page-id-8588) .about-section .services-cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
  line-height: 1.7;
}

:is(.page-id-8587, .page-id-8588) .about-section p {
  line-height: 1.8;
  color: #444;
}

/* Who We Are / Overview sections */
:is(.page-id-8587, .page-id-8588) .about-section:not(.vmv):not(.chairman):not(.ceo):not(.md):not(.services):not(.about-hero):not(.board) h2 {
  margin-bottom: 1.5rem;
}

/* VMV Section */
:is(.page-id-8587, .page-id-8588) .vmv .wp-block-columns {
  gap: 2rem;
  align-items: flex-start;
}

:is(.page-id-8587, .page-id-8588) .vmv-image img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.vmv-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vmv-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vmv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.vmv-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vmv-card-icon svg {
  width: 24px;
  height: 24px;
}

.vision-icon { background: #E8F5E9; color: var(--color-brand-green); }
.mission-icon { background: #E3F2FD; color: #1565C0; }
.values-icon { background: #FFF3E0; color: #E65100; }

.vmv-card-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-brand-green);
  margin: 0 0 0.35rem;
}

.vmv-card-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  font-size: 0.9rem;
  color: #555;
  padding: 0.35rem 0;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
}

.values-list li:last-child { border-bottom: none; }

.values-list li strong {
  color: var(--color-brand-green-dark);
}

/* RTL VMV adjustments */
body.rtl .vmv-card {
  flex-direction: row;
}

body.rtl .vmv-card-content h3 {
  text-align: right;
}

body.rtl .vmv-card-content p,
body.rtl .vmv-card-content li {
  text-align: right;
}

/* Chairman / CEO / MD sections */
:is(.page-id-8587, .page-id-8588) .chairman .wp-block-columns,
:is(.page-id-8587, .page-id-8588) .ceo .wp-block-columns,
:is(.page-id-8587, .page-id-8588) .md .wp-block-columns {
  gap: 3rem;
  align-items: center;
}

:is(.page-id-8587, .page-id-8588) .chairman-image img,
:is(.page-id-8587, .page-id-8588) .ceo-image img,
:is(.page-id-8587, .page-id-8588) .md-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

:is(.page-id-8587, .page-id-8588) .chairman-image img:hover,
:is(.page-id-8587, .page-id-8588) .ceo-image img:hover,
:is(.page-id-8587, .page-id-8588) .md-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

:is(.page-id-8587, .page-id-8588) .chairman-text .chairman-label,
:is(.page-id-8587, .page-id-8588) .ceo-text .ceo-label,
:is(.page-id-8587, .page-id-8588) .md-text .md-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-brand-gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

:is(.page-id-8587, .page-id-8588) .chairman-text .chairman-name,
:is(.page-id-8587, .page-id-8588) .ceo-text .ceo-name,
:is(.page-id-8587, .page-id-8588) .md-text .md-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-brand-green);
  margin-bottom: 0.5rem;
}

:is(.page-id-8587, .page-id-8588) .chairman-text .chairman-heading,
:is(.page-id-8587, .page-id-8588) .ceo-text .ceo-heading,
:is(.page-id-8587, .page-id-8588) .md-text .md-heading {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-brand-gold);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

:is(.page-id-8587, .page-id-8588) .chairman-text .chairman-heading::after,
:is(.page-id-8587, .page-id-8588) .ceo-text .ceo-heading::after,
:is(.page-id-8587, .page-id-8588) .md-text .md-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-brand-gold);
  border-radius: 2px;
}

body.rtl :is(.page-id-8587, .page-id-8588) .chairman-text .chairman-heading::after,
body.rtl :is(.page-id-8587, .page-id-8588) .ceo-text .ceo-heading::after,
body.rtl :is(.page-id-8587, .page-id-8588) .md-text .md-heading::after {
  left: auto;
  right: 0;
}

:is(.page-id-8587, .page-id-8588) .chairman-text p,
:is(.page-id-8587, .page-id-8588) .ceo-text p,
:is(.page-id-8587, .page-id-8588) .md-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

:is(.page-id-8587, .page-id-8588) .ceo-text ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

:is(.page-id-8587, .page-id-8588) .ceo-text ul li {
  padding: 0.5rem 1.5rem 0.5rem 0;
  position: relative;
  line-height: 1.6;
  color: #444;
}

:is(.page-id-8587, .page-id-8588) .ceo-text ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-gold);
}

body.rtl :is(.page-id-8587, .page-id-8588) .ceo-text ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
}

body.rtl :is(.page-id-8587, .page-id-8588) .ceo-text ul li::before {
  right: auto;
  left: 0;
}

:is(.page-id-8587, .page-id-8588) .ceo-text ul li strong {
  color: var(--color-brand-green);
}

/* Board of Directors */
.board-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.board-grid .board-chairman-card {
  text-align: center;
  margin-bottom: 3rem;
}

.board-grid .board-chairman-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
  transition: transform 0.6s ease;
}

.board-grid .board-chairman-card img:hover {
  transform: scale(1.05);
}

.board-grid .board-chairman-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-brand-green);
  margin-bottom: 0.25rem;
}

.board-grid .board-chairman-card p {
  font-size: 0.9rem;
  color: var(--color-brand-gold);
  font-weight: 500;
}

.board-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.board-member-card {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.board-member-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  transition: transform 0.6s ease;
}

.board-member-card:hover img {
  transform: scale(1.08);
}

.board-member-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand-green);
  margin-bottom: 0.25rem;
}

.board-member-card p {
  font-size: 0.8rem;
  color: var(--color-brand-gold);
  font-weight: 500;
  margin: 0;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.service-card {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: #E8F5E9;
  color: var(--color-brand-green);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand-charcoal);
  margin: 0;
}

/* CTA Cover */
:is(.page-id-8587, .page-id-8588) .wp-block-cover.about-cta {
  min-height: 400px !important;
  display: flex;
  align-items: center;
}

:is(.page-id-8587, .page-id-8588) .wp-block-cover.about-cta .wp-block-cover__inner-container {
  text-align: center;
}

:is(.page-id-8587, .page-id-8588) .wp-block-cover.about-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #fff !important;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

:is(.page-id-8587, .page-id-8588) .wp-block-button.cta-button .wp-block-button__link {
  background: var(--color-brand-gold);
  color: var(--color-brand-green-dark) !important;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

:is(.page-id-8587, .page-id-8588) .wp-block-button.cta-button .wp-block-button__link:hover {
  background: #fff;
  color: var(--color-brand-green-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* RTL text overrides */
body.rtl .chairman-text,
body.rtl .ceo-text,
body.rtl .md-text {
  text-align: right;
}

body.rtl .chairman-text p,
body.rtl .ceo-text p,
body.rtl .md-text p {
  text-align: right;
}

body.rtl .services-grid {
  direction: rtl;
}

body.rtl .board-members-grid {
  direction: rtl;
}

/* Responsive */
@media (max-width: 768px) {
  :is(.page-id-8587, .page-id-8588) .about-section {
    padding: 3rem 1.25rem;
  }

  :is(.page-id-8587, .page-id-8588) .vmv .wp-block-columns {
    flex-direction: column;
  }

  :is(.page-id-8587, .page-id-8588) .chairman .wp-block-columns,
  :is(.page-id-8587, .page-id-8588) .ceo .wp-block-columns,
  :is(.page-id-8587, .page-id-8588) .md .wp-block-columns {
    flex-direction: column;
  }

  .board-members-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .board-grid .board-chairman-card img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  :is(.page-id-8587, .page-id-8588) .about-section {
    padding: 2rem 1rem;
  }

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

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

/* === OUR PROJECTS PAGE FIXES === */

/* Remove empty slides section below hero */
:is(.page-id-819, .page-id-181) .elementor-element-857a660 {
  display: none !important;
}

/* 1. Hero section - white text */
.page-id-819 .elementor-element-882053 .elementor-heading-title,
.page-id-819 .elementor-element-882053 .elementor-widget-text-editor,
.page-id-819 .elementor-element-882053 .elementor-widget-text-editor p,
.page-id-819 .elementor-element-882053 .elementor-widget-text-editor .elementor-widget-container {
  color: #ffffff !important;
}
.page-id-181 .elementor-element-f56f6a .elementor-heading-title,
.page-id-181 .elementor-element-f56f6a .elementor-widget-text-editor,
.page-id-181 .elementor-element-f56f6a .elementor-widget-text-editor p,
.page-id-181 .elementor-element-f56f6a .elementor-widget-text-editor .elementor-widget-container {
  color: #ffffff !important;
}

/* 2. Section 3 - 4 equal cards across using nested grid per inner container */
/* Right column: flex row so inner containers sit side-by-side */
:is(.page-id-819, .page-id-181) .elementor-element-ca68be5 {
  flex-direction: row !important;
  gap: 0 !important;
  padding: 15px !important;
}

/* Each inner container gets a 2-column grid (icon+heading pair) */
:is(.page-id-819, .page-id-181) .elementor-element-3b37980,
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 {
  width: 50% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto 1fr !important;
  gap: 10px !important;
  padding: 10px !important;
}

/* Explicit grid column pairing */
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 > .elementor-element-b382d84 {
  grid-column: 1; grid-row: 1;
}
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 > .elementor-element-60d4419 {
  grid-column: 1; grid-row: 2;
}
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 > .elementor-element-a6ded30 {
  grid-column: 2; grid-row: 1;
}
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 > .elementor-element-0f5b5c1 {
  grid-column: 2; grid-row: 2;
}

:is(.page-id-819, .page-id-181) .elementor-element-eefec14 > .elementor-element-d955fd0 {
  grid-column: 1; grid-row: 1;
}
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 > .elementor-element-bd94115 {
  grid-column: 1; grid-row: 2;
}
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 > .elementor-element-67a1d95 {
  grid-column: 2; grid-row: 1;
}
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 > .elementor-element-9ccb769 {
  grid-column: 2; grid-row: 2;
}

/* Stack icon above title, center */
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 .elementor-icon-box-wrapper,
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 .elementor-icon-box-wrapper {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* White text for all cards */
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 .elementor-icon-box-title,
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 .elementor-heading-title,
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 .elementor-icon-box-title,
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 .elementor-heading-title {
  color: #ffffff;
}

/* Icon box title */
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 .elementor-icon-box-title,
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 .elementor-icon-box-title {
  font-size: 15px !important;
  margin-top: 6px !important;
  font-weight: 600 !important;
}

/* Description paragraph */
:is(.page-id-819, .page-id-181) .elementor-element-3b37980 .elementor-heading-title,
:is(.page-id-819, .page-id-181) .elementor-element-eefec14 .elementor-heading-title {
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

@media (max-width: 1024px) {
  :is(.page-id-819, .page-id-181) .elementor-element-ca68be5 {
    flex-direction: column !important;
  }
  :is(.page-id-819, .page-id-181) .elementor-element-3b37980,
  :is(.page-id-819, .page-id-181) .elementor-element-eefec14 {
    width: 100% !important;
  }
}

/* 3. Section 4 - spacing reduction */
:is(.page-id-819, .page-id-181) .elementor-element-9ccdf43 {
  --padding-top: 30px !important;
  --padding-bottom: 30px !important;
}

@media (max-width: 1024px) {
  :is(.page-id-819, .page-id-181) .elementor-element-9ccdf43 {
    --padding-top: 20px !important;
    --padding-bottom: 20px !important;
  }
}
