body.theme-v2 {
    --emaar-green: #005f2f;
    --emaar-green-2: #5f8f3d;
    --emaar-charcoal: #1e4d38;
    --emaar-ink: #1f2b24;
    --emaar-soft: #f4f8ef;
    --emaar-line: rgba(0, 95, 47, 0.14);
    --emaar-shadow: 0 18px 42px rgba(31, 43, 36, 0.12);
    background:
        linear-gradient(180deg, #fbfcf8 0%, #f4f8ef 44%, #ffffff 100%) !important;
    color: var(--emaar-ink);
}

body.theme-v2 a {
    color: var(--emaar-green);
}

body.theme-v2 .modern-header-desktop {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 12px 34px rgba(31, 43, 36, 0.12) !important;
    border-bottom: 1px solid var(--emaar-line);
}

body.theme-v2 .modern-header-desktop .top-info-bar {
    background: var(--emaar-charcoal) !important;
}

body.theme-v2 .modern-header-desktop .top-info-bar .container-fluid,
body.theme-v2 .modern-header-desktop .contact-item,
body.theme-v2 .modern-header-desktop .social-media a {
    color: rgba(255, 255, 255, 0.86) !important;
}

body.theme-v2 .modern-header-desktop .main-header-bar {
    height: 92px !important;
    background:
        linear-gradient(90deg, rgba(0, 95, 47, 0.05), rgba(95, 143, 61, 0.08) 55%, rgba(255, 255, 255, 0.95)) !important;
    box-shadow: none !important;
}

body.theme-v2 .modern-header-desktop .site-logo,
body.theme-v2 #header.onPhonee .logo-container,
body.theme-v2 .footer-logo a {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 !important;
}

body.theme-v2 .modern-header-desktop .site-logo img {
    height: 76px !important;
    max-width: 185px !important;
}

body.theme-v2 .modern-header-desktop .main-navigation .nav-link {
    color: var(--emaar-charcoal) !important;
    border-radius: 8px !important;
    padding: 8px 9px !important;
    background: transparent !important;
    font-size: 0.84rem !important;
}

body.theme-v2 .modern-header-desktop .main-navigation .nav-link:hover,
body.theme-v2 .modern-header-desktop .main-navigation .nav-link.active {
    color: #ffffff !important;
    background: var(--emaar-green) !important;
    box-shadow: 0 8px 18px rgba(0, 95, 47, 0.22);
}

body.theme-v2 .modern-header-desktop .main-navigation .nav-link:hover .nav-icon,
body.theme-v2 .modern-header-desktop .main-navigation .nav-link.active .nav-icon {
    color: #ffffff !important;
}

body.theme-v2 .modern-header-desktop .action-btn,
body.theme-v2 #header.onPhonee .btn-zakat-mobile,
body.theme-v2 #header.onPhonee .btn-lang-switcher,
body.theme-v2 #header.onPhonee .navbar-toggler {
    color: var(--emaar-green) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 95, 47, 0.18) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 20px rgba(31, 43, 36, 0.08);
}

body.theme-v2 .modern-header-desktop .action-btn:hover,
body.theme-v2 #header.onPhonee .btn-zakat-mobile:hover,
body.theme-v2 #header.onPhonee .btn-lang-switcher:hover,
body.theme-v2 #header.onPhonee .navbar-toggler:hover {
    background: var(--emaar-green) !important;
    color: #ffffff !important;
    border-color: var(--emaar-green) !important;
}

body.theme-v2 #header.onPhonee {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid var(--emaar-line);
    box-shadow: 0 12px 30px rgba(31, 43, 36, 0.12) !important;
}

body.theme-v2 #header.onPhonee .navbar {
    background:
        linear-gradient(90deg, rgba(0, 95, 47, 0.05), rgba(95, 143, 61, 0.08)) !important;
}

/* ── Center logo in mobile header ── */
body.theme-v2 #header.onPhonee .container-fluid {
    position: relative;
}
body.theme-v2 #header.onPhonee .logo-container {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 1;
}
body.theme-v2 #header.onPhonee .mobile-actions-container {
    margin-right: auto !important;
    position: relative;
    z-index: 2;
}

body.theme-v2 #header.onPhonee .logo-container img {
    height: 58px !important;
    max-width: 180px !important;
    width: auto !important;
    object-fit: contain !important;
}

body.theme-v2 #header.onPhonee .navbar-collapse,
body.theme-v2 #header .main-navB-1,
body.theme-v2 .mobile-bottom-nav {
    background: var(--emaar-charcoal) !important;
    border-color: var(--emaar-charcoal) !important;
}

body.theme-v2 #header.onPhonee .nav-link.active,
body.theme-v2 #header.onPhonee .nav-link:hover,
body.theme-v2 .mobile-nav-item.active,
body.theme-v2 .mobile-nav-item:hover {
    background: transparent !important;
    color: #ffffff !important;
}

/* Bottom nav — force white icons & text regardless of theme-v2 link color */
body.theme-v2 .mobile-bottom-nav .mobile-nav-item,
body.theme-v2 .mobile-bottom-nav a.mobile-nav-item,
body.theme-v2 .mobile-bottom-nav button.mobile-nav-item {
    color: rgba(255,255,255,.72) !important;
}
body.theme-v2 .mobile-bottom-nav .mobile-nav-item.active,
body.theme-v2 .mobile-bottom-nav .mobile-nav-item:hover,
body.theme-v2 .mobile-bottom-nav a.mobile-nav-item.active,
body.theme-v2 .mobile-bottom-nav a.mobile-nav-item:hover {
    color: #ffffff !important;
}
body.theme-v2 .mobile-bottom-nav .mobile-nav-donate-btn {
    color: #7effc0 !important;
}

body.theme-v2 .carousel,
body.theme-v2 .carousel-inner,
body.theme-v2 .iftar-banner-link img,
body.theme-v2 .abwab-hero-img,
body.theme-v2 .bsb-hero-1 {
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: var(--emaar-shadow);
}

body.theme-v2 .carousel {
    border: 1px solid var(--emaar-line);
}

body.theme-v2 .panel .card,
body.theme-v2 .card,
body.theme-v2 .project-card,
body.theme-v2 .achievement-card,
body.theme-v2 .news-card {
    border: 1px solid var(--emaar-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 30px rgba(31, 43, 36, 0.10) !important;
    overflow: hidden;
}

body.theme-v2 .panel .card .card-title,
body.theme-v2 h1,
body.theme-v2 h2,
body.theme-v2 h3,
body.theme-v2 h4,
body.theme-v2 .main-title {
    color: var(--emaar-green) !important;
}

/* ===== UNIFIED HERO BACKGROUND ===== */
body.theme-v2 .page-hero,
body.theme-v2 .about-hero,
body.theme-v2 .rpt-hero,
body.theme-v2 .prj-hero,
body.theme-v2 .zakat-hero,
body.theme-v2 .adahi-hero,
body.theme-v2 .iftar-hero,
body.theme-v2 .contact-hero,
body.theme-v2 .board-hero,
body.theme-v2 .ded-hero,
body.theme-v2 .cat-hero,
body.theme-v2 .skd-hero,
body.theme-v2 .search-hero,
body.theme-v2 .deleg-hero,
body.theme-v2 .news-hero,
body.theme-v2 .awqaf-hero {
    background: #005f2f !important;
}

/* ===== White text on ALL green/dark backgrounds ===== */

/* Page heroes & section heroes */
body.theme-v2 .page-hero h1,
body.theme-v2 .page-hero h2,
body.theme-v2 .page-hero h3,
body.theme-v2 .page-hero h4,
body.theme-v2 .page-hero p,
body.theme-v2 .page-hero span,
body.theme-v2 .page-hero i,
body.theme-v2 .about-hero h1,
body.theme-v2 .about-hero h2,
body.theme-v2 .about-hero h3,
body.theme-v2 .about-hero p,
body.theme-v2 .rpt-hero h1,
body.theme-v2 .rpt-hero h1 i,
body.theme-v2 .rpt-hero p,
body.theme-v2 .prj-hero h1,
body.theme-v2 .prj-hero h2,
body.theme-v2 .prj-hero p,
body.theme-v2 .prj-hero span,
body.theme-v2 [style*="background:linear-gradient(135deg, #0d3d2a"] h1,
body.theme-v2 [style*="background:linear-gradient(135deg, #0d3d2a"] h2,
body.theme-v2 [style*="background:linear-gradient(135deg, #0d3d2a"] p {
    color: #ffffff !important;
}

/* Quick donate panel header */
body.theme-v2 .qd-head h3,
body.theme-v2 .qd-head h1,
body.theme-v2 .qd-head h2,
body.theme-v2 .qd-head *,
body.theme-v2 #qdClose {
    color: #ffffff !important;
}

/* Quick donate button */
body.theme-v2 .qd-donate-btn,
body.theme-v2 .qd-donate-btn h1,
body.theme-v2 .qd-donate-btn h2,
body.theme-v2 .qd-donate-btn h3,
body.theme-v2 .qd-donate-btn span {
    color: #ffffff !important;
}

/* Toggle button */
body.theme-v2 #qdToggle {
    color: #ffffff !important;
}

/* Any element with green background should have white children */
body.theme-v2 [style*="background:#2a6049"] *,
body.theme-v2 [style*="background: #2a6049"] *,
body.theme-v2 [style*="background:#1e4d38"] *,
body.theme-v2 [style*="background: #1e4d38"] * {
    color: #ffffff !important;
}

/* Green buttons (BTN-1 / btn-success) text */
body.theme-v2 .BTN-1,
body.theme-v2 .BTN-1 *,
body.theme-v2 .btn-success,
body.theme-v2 .btn-success * {
    color: #ffffff !important;
}

/* Stats section */
body.theme-v2 .stats-section h2,
body.theme-v2 .stats-section h3,
body.theme-v2 .stats-section p,
body.theme-v2 .stats-section span {
    color: inherit;
}

body.theme-v2 .BTN-1,
body.theme-v2 .btn-success,
body.theme-v2 .panel .card .card-body .BTN-1,
body.theme-v2 #fastDonate .fast_donateBtn,
body.theme-v2 #fastDonate .dropend .dropdown-toggle,
body.theme-v2 #projectsTabs .panel .card .card-body .wiseBtn .active {
    background: var(--emaar-green) !important;
    border-color: var(--emaar-green) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

body.theme-v2 .BTN-1:hover,
body.theme-v2 .btn-success:hover,
body.theme-v2 .panel .card .card-body .BTN-1:hover,
body.theme-v2 #fastDonate .fast_donateBtn:hover {
    background: var(--emaar-charcoal) !important;
    border-color: var(--emaar-charcoal) !important;
}

body.theme-v2 .BTN-2,
body.theme-v2 .panel .card .card-body .BTN-2 {
    background: var(--emaar-charcoal) !important;
    border-color: var(--emaar-charcoal) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

body.theme-v2 .panel .card .card-body .progress .bg-success1,
body.theme-v2 .progress-bar,
body.theme-v2 .bg-success {
    background-color: var(--emaar-green-2) !important;
}

body.theme-v2 #projectsTabs .nav-pills .nav-link.active {
    color: var(--emaar-green) !important;
    border-bottom-color: var(--emaar-green) !important;
}

body.theme-v2 input:focus,
body.theme-v2 textarea:focus,
body.theme-v2 select:focus,
body.theme-v2 .form-control:focus,
body.theme-v2 .form-select:focus {
    border-color: var(--emaar-green-2) !important;
    box-shadow: 0 0 0 0.2rem rgba(95, 143, 61, 0.18) !important;
}

body.theme-v2 .footer,
body.theme-v2 footer.footer {
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8ef 45%, rgba(95, 143, 61, 0.12) 100%) !important;
    color: var(--emaar-charcoal) !important;
    border-top: 1px solid var(--emaar-line);
}

body.theme-v2 .footer-logo-img {
    width: 110px !important;
}

body.theme-v2 .footer-info-strip i,
body.theme-v2 .footer-mobile-line i {
    color: var(--emaar-green) !important;
}

body.theme-v2 .footer-social-btn,
body.theme-v2 .footer-social-btn i {
    color: #ffffff !important;
}

body.theme-v2 .footer-copyright {
    background: var(--emaar-charcoal) !important;
}

body.theme-v2 .back-button {
    background: var(--emaar-charcoal) !important;
}

body.theme-v2 .back-button:hover,
body.theme-v2 .up-button,
body.theme-v2 .up-button:hover {
    background: var(--emaar-green) !important;
}

body.theme-v2 .cart-badge,
body.theme-v2 .mobile-nav-item .badge {
    background: var(--emaar-green-2) !important;
}

@media (max-width: 991.98px) {
    body.theme-v2 #header.onPhonee .logo-container {
        padding: 4px 10px !important;
    }

    body.theme-v2 #header.onPhonee .btn-zakat-mobile,
    body.theme-v2 #header.onPhonee .btn-lang-switcher,
    body.theme-v2 #header.onPhonee .navbar-toggler {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 575.98px) {
    body.theme-v2 #header.onPhonee .logo-container img {
        height: 52px !important;
        max-width: 160px !important;
    }

    body.theme-v2 .footer-logo-img {
        width: 95px !important;
    }
}
