/*
Theme Name: Mucize Loghati
Description: Premium redesign for Mucize Loghati Association - Specializing in Arabic Language Skills.
Author: Antigravity
Version: 2.2.0
*/

:root {
    /* Core Palette: Refined Gold & Deep Forest Green */
    --primary: #B48C36;
    --primary-light: #D4AF37;
    --primary-dark: #8C6D2D;
    
    --secondary: #1E403F;
    --secondary-light: #2E4F4E;
    --secondary-dark: #142B2A;
    
    --accent: #E9C46A;
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --light: #FAF9F6; /* Bone White */
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-800: #343A40;
    
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    /* UI System */
    --font-main: 'Noto Kufi Arabic', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px rgba(30, 64, 63, 0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

p { margin: 0 0 1.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

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

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(180, 140, 54, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gold { color: var(--primary); }
.text-center { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(180, 140, 54, 0.4);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 140, 54, 0.5);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-nav-donate {
    background: #E63946;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
    animation: pulse-red 3s infinite;
}
.btn-nav-donate:hover { background: #d62828; transform: scale(1.05); }

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ============================================================
   HEADER PREMIUM
   ============================================================ */
/* Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    width: 0%;
    z-index: 10001;
    transition: width 0.1s ease;
}

/* ============================================================
   NEW UNIFIED NAVBAR SYSTEM
   ============================================================ */
#site-header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    min-height: 70px;
    display: flex;
    flex-direction: column;
}

/* Home Screen & Front Page Transparent Logic */
.home #site-header,
.page-template-template-home #site-header {
    background: rgba(255, 255, 255, 0.05); /* Subtle fallback */
    backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#site-header .main-navbar {
    padding: 20px 0;
    transition: all 0.4s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Scrolled State (All Pages) */
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
}

#site-header.scrolled .main-navbar {
    padding: 10px 0;
}

/* Header Elements Transitions */
#site-header .nav-menu > li > a,
#site-header .site-logo img,
#site-header .top-bar {
    transition: all 0.4s ease;
}

/* Home/Template Home Top State Colors */
.home:not(.scrolled) #site-header .nav-menu > li > a,
.page-template-template-home:not(.scrolled) #site-header .nav-menu > li > a {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.home:not(.scrolled) #site-header .top-bar,
.page-template-template-home:not(.scrolled) #site-header .top-bar {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.home:not(.scrolled) #site-header .top-bar a,
.page-template-template-home:not(.scrolled) #site-header .top-bar a {
    color: var(--white);
}

.home:not(.scrolled) #site-header .site-logo img,
.page-template-template-home:not(.scrolled) #site-header .site-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}


/* Scrolled State Reset */
#site-header.scrolled .nav-menu > li > a {
    color: var(--secondary) !important;
    text-shadow: none;
}

#site-header.scrolled .site-logo img {
    filter: none !important;
    height: 55px;
}

/* Admin Bar Fixes */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #site-header { top: 46px; }
}

/* Top Bar Visibility */
#site-header.scrolled .top-bar {
    height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
}




/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.top-info a:hover {
    opacity: 1;
    color: var(--primary);
}

.top-social {
    display: flex;
    gap: 15px;
}

.top-social a {
    opacity: 0.8;
}

.top-social a:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

/* Header Layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo img {
    height: 56px;
    width: auto;
    max-width: 160px;
    transition: all 0.4s ease;
}

#site-header.scrolled .site-logo img {
    height: 48px;
}

/* Nav Menu */
#primary-nav ul {
    display: flex;
    gap: 16px;
    align-items: center;
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-nav .nav-menu > li {
    position: relative;
    white-space: nowrap;
    padding: 10px 0;
}

#primary-nav ul li a {
    font-weight: 700;
    font-size: 0.88rem;
    color: inherit; /* Use parent color (white or secondary) */
    padding: 6px 0;
    position: relative;
    z-index: 5;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#primary-nav .nav-menu > li.menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: var(--primary, #B48C36);
    transition: transform 0.3s ease;
    margin-right: 4px;
}

#primary-nav .nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

#primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: #ffffff !important;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999 !important;
}

/* Invisible hover bridge to prevent dropdown from disappearing when mouse moves between parent and submenu */
#primary-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

#primary-nav .sub-menu li {
    position: relative;
    width: 100%;
    list-style: none;
}

#primary-nav .sub-menu li a {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary, #1B3C35) !important;
    padding: 9px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#primary-nav .sub-menu li a::after,
#primary-nav .sub-menu li a::before {
    display: none !important;
}

#primary-nav .sub-menu li a:hover,
#primary-nav .sub-menu li.current-menu-item a {
    background: rgba(180, 140, 54, 0.12) !important;
    color: var(--primary-dark, #8A6922) !important;
}

#primary-nav .menu-item-has-children:hover > .sub-menu,
#primary-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Hover underline lives on ::before — ::after is reserved for the dropdown
   caret above, and sharing one pseudo-element makes the caret inherit
   position:absolute and collapse into the underline bar. */
#primary-nav .nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 50px;
}

#primary-nav .nav-menu > li:hover > a::before,
#primary-nav .nav-menu > li.current-menu-item > a::before {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-nav-donate {
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 7px 16px;
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 100100 !important; /* Toggle on top of everything */
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--secondary); /* Dark green by default */
    border-radius: 2px;
    transition: var(--transition);
}

.home:not(.scrolled) #site-header .nav-toggle span,
.page-template-template-home:not(.scrolled) #site-header .nav-toggle span {
    background: var(--white); /* White only on transparent home state */
}

#site-header.scrolled .nav-toggle span {
    background: var(--secondary); /* Dark for scrolled state */
}


.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Menu Media Query */
@media (max-width: 991px) {
    #primary-nav {
        position: fixed;
        top: 0; /* Cover from top */
        right: 0; left: 0;
        bottom: 0; /* Full height */
        background: var(--white);
        display: none;
        padding: 100px 30px 40px; /* Space for logo/toggle */
        box-shadow: var(--shadow-lg);
        z-index: 100050; /* Above header, below toggle */
        max-height: 100vh;
        overflow-y: auto;
    }
    
    #primary-nav.open { display: block; animation: slideBottom 0.4s ease forwards; }
    #primary-nav ul { flex-direction: column; gap: 20px; align-items: center; }
    #primary-nav .nav-menu > li > a {
        color: var(--secondary) !important;
        text-shadow: none !important;
    }

    #primary-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        margin-top: 10px;
        width: 100%;
        background: var(--gray-50); /* Submenu background on mobile */
        border-radius: var(--radius-sm);
    }

    #primary-nav .sub-menu li a {
        text-align: center;
        background: transparent;
        padding: 15px;
    }

    #primary-nav .nav-menu > li.menu-item-has-children > a {
        justify-content: center;
    }
    
    .nav-toggle { display: flex; }
    .nav-toggle.active span {
        background: var(--secondary) !important;
    }
}

/* ============================================================
   HERO SECTION (Premium Redesign)
   ============================================================ */
.hero {
    position: relative;
    padding: 0; /* Reset padding to allow header overlap */
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white);
    z-index: 1;
}


/* Hero Slider Styles */
.hero-slider.swiper {
    width: 100%;
    height: auto;
}

.hero-slide {
    height: auto;
    display: flex;
    align-items: center;
}

/* Updated Hero Container */
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    padding: 160px 0 100px; /* Increased top padding for transparent header */
}


.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-mini-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 64, 63, 0.06);
    border: 1px solid rgba(30, 64, 63, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--secondary);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-mini-meta span i {
    color: var(--primary);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-50);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: var(--light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
    gap: 20px;
}

.hero-logo-book-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.floating-logo {
    width: 180px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.hero-book-img {
    width: 150px;
    height: auto;
    animation: float 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.glass-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.glass-float.top-right { top: -20px; right: -20px; }
.glass-float.bottom-left { bottom: -20px; left: -20px; }

/* Swiper Controls */
.hero-swiper-prev,
.hero-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 100;
    cursor: pointer;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.hero-swiper-prev { right: 30px; }
.hero-swiper-next { left: 30px; }

.hero-slider-footer {
    position: relative;
    z-index: 15;
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-slider .swiper-pagination {
    position: static;
    width: auto;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(30, 64, 63, 0.25);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.hero-slider-status {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 800;
    color: var(--secondary);
}

.hero-current-slide {
    font-size: 1.6rem;
    color: var(--primary);
}

.hero-slide-divider,
.hero-total-slides {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Background Orbs */
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.15;
}
.hero-orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -50px; left: -50px; }

/* ============================================================
   HERO SECTION (Floating Manuscript)
   ============================================================ */
.floating-manuscript-hero {
    background: #0d2218;
    color: #f5f7f2;
    position: relative;
    z-index: 1; /* Keep hero content at a lower stacking level */
}

.floating-manuscript-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 14%, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0.03) 30%, transparent 58%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 8% 90%, rgba(201, 168, 76, 0.08) 0%, transparent 45%);
    z-index: 1;
}

.floating-manuscript-hero .hero-bg-pattern,
.floating-manuscript-hero .hero-bg-glow,
.floating-manuscript-hero .hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-manuscript-hero .hero-bg-pattern {
    background-image:
        repeating-linear-gradient(45deg, rgba(201, 168, 76, 0.045) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(-45deg, rgba(201, 168, 76, 0.035) 0 1px, transparent 1px 46px),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 35%);
    opacity: 0.5;
    z-index: 0;
}

.floating-manuscript-hero .hero-bg-glow {
    background: radial-gradient(circle at 88% 16%, rgba(201, 168, 76, 0.35) 0%, rgba(201, 168, 76, 0.06) 34%, transparent 65%);
    z-index: 1;
}

.floating-manuscript-hero .hero-vignette {
    box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.floating-manuscript-hero .container,
.floating-manuscript-hero .hero-slide {
    position: relative;
    z-index: 3;
}

.floating-manuscript-hero .hero-container {
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 82vh;
    gap: clamp(2rem, 4vw, 5rem);
}

.floating-manuscript-hero .hero-content {
    text-align: right;
    position: relative;
}

.hero-vertical-line {
    position: absolute;
    right: -24px;
    top: 14px;
    width: 2px;
    height: min(300px, 60%);
    background: linear-gradient(to bottom, rgba(201, 168, 76, 0.7), rgba(201, 168, 76, 0.15), transparent);
}

.floating-manuscript-hero .hero-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #d6ddda;
    border-color: rgba(201, 168, 76, 0.2);
}

.floating-manuscript-hero .badge-dot {
    background: #c9a84c;
}

.floating-manuscript-hero .hero-main-title {
    color: #ffffff;
    font-size: clamp(2.5rem, 5.3vw, 4.5rem);
    font-family: "Cairo", "Noto Naskh Arabic", var(--font-main);
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 1rem;
}

.floating-manuscript-hero .hero-subtitle {
    color: #d4c084;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 500;
    margin: 0 0 1.4rem;
    padding-right: 1rem;
    border-right: 2px solid rgba(201, 168, 76, 0.65);
}

.floating-manuscript-hero .hero-content p {
    color: #a0b0a8;
    max-width: 480px;
    font-size: 18px;
}

.floating-manuscript-hero .hero-btns {
    display: flex;
    gap: 14px;
    margin-bottom: 2.2rem;
}

.floating-manuscript-hero .hero-btn-primary {
    background: #c9a84c;
    color: #0f231b;
    box-shadow: 0 12px 30px rgba(201, 168, 76, 0.28);
    position: relative;
    overflow: hidden;
}

.floating-manuscript-hero .hero-btn-primary::after {
    content: '';
    position: absolute;
    inset: -120% auto -120% -30%;
    width: 45%;
    transform: rotate(18deg) translateX(-160%);
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transition: transform 0.7s ease;
}

.floating-manuscript-hero .hero-btn-primary:hover::after {
    transform: rotate(18deg) translateX(360%);
}

.floating-manuscript-hero .hero-btn-primary:hover {
    background: #d8b65a;
}

.floating-manuscript-hero .hero-btn-ghost {
    background: transparent;
    color: #d4c084;
    border: 1px solid rgba(201, 168, 76, 0.75);
}

.floating-manuscript-hero .hero-btn-ghost:hover {
    background: rgba(201, 168, 76, 0.14);
    color: #f3e4b9;
}

.floating-manuscript-hero .hero-main-image {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 500px;
    perspective: 1300px;
}

.floating-manuscript-hero .hero-logo-book-wrap {
    position: relative;
}

.floating-manuscript-hero .hero-logo-book-wrap::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 110px;
    left: 50%;
    bottom: -70px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.35) 0%, rgba(201, 168, 76, 0.13) 35%, transparent 75%);
    filter: blur(10px);
}

.floating-manuscript-hero .hero-book-img {
    width: clamp(220px, 30vw, 360px);
    transform: rotateY(-20deg) rotateX(5deg);
    transform-style: preserve-3d;
    box-shadow: 40px 60px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(201, 168, 76, 0.15);
    animation: hero-book-float 4s ease-in-out infinite;
    filter: saturate(1.05);
}

@keyframes hero-book-float {
    0%, 100% { transform: rotateY(-20deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-20deg) rotateX(5deg) translateY(-12px); }
}

.hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(10, 26, 20, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat-item {
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 1rem 0.8rem;
    text-align: center;
    min-height: 98px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item:last-child {
    border-left: 0;
}

.hero-stat-item i {
    color: #c9a84c;
    margin-bottom: 0.25rem;
}

.hero-stat-item strong {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1.2;
}

.hero-stat-item span {
    color: #a0b0a8;
    font-size: 0.88rem;
}

.hero-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.9);
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.45);
    z-index: 2;
    animation: hero-particle-drift 10s ease-in-out infinite;
}

.hero-particle-1 { top: 16%; left: 18%; animation-delay: 0s; }
.hero-particle-2 { top: 38%; left: 8%; width: 6px; height: 6px; animation-delay: 1.3s; }
.hero-particle-3 { top: 22%; right: 28%; width: 7px; height: 7px; animation-delay: 2.2s; }
.hero-particle-4 { bottom: 18%; right: 12%; width: 5px; height: 5px; animation-delay: 3.4s; }

@keyframes hero-particle-drift {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.35; }
    50% { transform: translate3d(-10px, -16px, 0); opacity: 1; }
}

.floating-manuscript-hero .hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-reveal-up 0.9s ease forwards;
}

.floating-manuscript-hero .hero-reveal-1 { animation-delay: 0.15s; }
.floating-manuscript-hero .hero-reveal-2 { animation-delay: 0.35s; }
.floating-manuscript-hero .hero-reveal-3 { animation-delay: 0.55s; }
.floating-manuscript-hero .hero-reveal-4 { animation-delay: 0.75s; }
.floating-manuscript-hero .hero-reveal-5 { animation-delay: 0.95s; }
.floating-manuscript-hero .hero-reveal-6 { animation-delay: 1.15s; }

@keyframes hero-reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   STATS PREMIUM
   ============================================================ */
.stats-premium {
    background: var(--secondary);
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lg);
}

.stats-grid-refined {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--white);
    padding: 0 1.5rem;
}

.stat-box:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(180, 140, 54, 0.2);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content .counter {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-content label {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 600;
}

/* ============================================================
   ABOUT & VISION BESPOKE
   ============================================================ */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-mission-premium {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.vm-card-premium {
    position: relative;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.vm-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.vm-card-premium.vision {
    background: linear-gradient(145deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border: none;
}

.vm-card-premium.mission {
    background: var(--white);
    border: 1px solid var(--border);
}

.vm-card-bg-icon {
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(-15deg);
    transition: var(--transition);
    color: var(--primary);
}

.vm-card-premium:hover .vm-card-bg-icon {
    transform: scale(1.2) rotate(0deg);
    opacity: 0.1;
}

.vm-card-content {
    position: relative;
    z-index: 2;
}

.vm-icon-badge {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(180, 140, 54, 0.3);
}

.vm-card-premium.vision h3 { color: var(--accent); }
.vm-card-premium.mission h3 { color: var(--secondary); }

.vm-card-premium h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.vm-card-premium p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.9;
}

.vm-card-premium.vision p { color: var(--gray-100); }
.vm-card-premium.mission p { color: var(--text-muted); }

/* ============================================================
   VALUES HEXAGONAL / GRID
   ============================================================ */
.values-grid-bespoke {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.value-item-hex {
    background: var(--white);
    padding: 2.5rem 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-item-hex:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-5px);
}

.value-item-hex i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-item-hex:hover i { color: var(--white); }

/* ============================================================
   PROGRAMS PREMIUM
   ============================================================ */
.program-item-premium {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.program-item-premium:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.prog-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.vol-item-horizontal {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.vol-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 64, 63, 0.05);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ============================================================
   STEPS REFINED
   ============================================================ */
.steps-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card-minimal {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    position: relative;
}

.step-num-big {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 20px;
}

/* ============================================================
   ORGANIZATIONAL STRUCTURE
   ============================================================ */
.board-grid-bespoke {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.member-card-bespoke {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.member-card-bespoke:hover { border-color: var(--primary); transform: translateY(-5px); }

.member-avatar {
    width: 100px; height: 100px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.dept-grid-overlapping {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.dept-card-premium {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.dept-card-premium.active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.dept-header { font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.dept-card-premium ul li { font-size: 0.85rem; opacity: 0.8; margin-bottom: 5px; }

/* ============================================================
   REPORTS & BANK
   ============================================================ */
.report-box-premium {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
}

.report-box-premium i { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }

.bank-card-glass {
    background: linear-gradient(135deg, rgba(30, 64, 63, 0.95), rgba(30, 64, 63, 0.85));
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.bank-card-glass i { position: absolute; bottom: -20px; left: -20px; font-size: 8rem; opacity: 0.1; }

/* ============================================================
   FOOTER PREMIUM
   ============================================================ */
#site-footer {
    background: var(--secondary-dark);
    color: var(--white);
    direction: rtl;
}

.footer-top-premium {
    padding: 100px 0 60px;
    background-image: radial-gradient(circle at 10% 20%, rgba(180, 140, 54, 0.05) 0%, transparent 40%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
}

/* Brand */
.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.brand-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Nav Columns */
.footer-heading {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary);
    transform: translateX(-8px);
}

/* Contact Column */
.contact-list {
    display: grid;
    gap: 25px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(180, 140, 54, 0.15);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-text span, 
.contact-text a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* Bottom Bar */
.footer-bottom-premium {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.bottom-links {
    display: flex;
    gap: 25px;
}

.bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.bottom-links a:hover {
    color: var(--primary);
}


/* ============================================================
   SECTION 5: STRATEGIC GOALS
   ============================================================ */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.goal-card-premium {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.goal-card-premium:hover {
    border-color: var(--primary);
    transform: translateX(-10px);
    box-shadow: var(--shadow-md);
}

.goal-card-premium i {
    width: 45px;
    height: 45px;
    background: rgba(180, 140, 54, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.goal-card-premium span {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.05rem;
}

/* ============================================================
   SECTION 6 & 7: PROGRAMS & FACILITIES CARDS
   ============================================================ */
.cards-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-feature-premium {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.card-feature-premium:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-feature-premium i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.card-feature-premium h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-feature-premium p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.facilities-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.services-list-premium {
    padding-right: 0;
}

.service-item-premium {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-item-premium:hover {
    border-color: var(--primary);
    background: var(--light);
}

.service-item-premium i {
    color: var(--primary);
    font-size: 0.8rem;
}

.service-item-premium span {
    font-weight: 700;
    color: var(--secondary);
}

/* ============================================================
   SECTION 9: PARTNERS
   ============================================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.partner-logo-box {
    background: var(--white);
    height: 120px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    filter: grayscale(1);
    opacity: 0.6;
}

.partner-logo-box:hover {
    filter: grayscale(0);
    opacity: 1;
    border-color: var(--primary);
}

/* ============================================================
   SECTION 10: NEWS
   ============================================================ */
.news-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card-premium {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.news-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.news-card-thumb {
    height: 220px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-premium:hover .news-card-thumb img {
    transform: scale(1.1);
}

.news-card-content h4 a:hover {
    color: var(--primary);
}

.news-card-content {
    padding: 2rem;
}

.news-card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    line-height: 1.4;
}

.news-card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; flex-wrap: wrap; }
    .stats-grid-refined { grid-template-columns: repeat(2, 1fr); }
    .values-grid-bespoke { grid-template-columns: repeat(3, 1fr); }
    .board-grid-bespoke { grid-template-columns: repeat(2, 1fr); }
    .dept-grid-overlapping { grid-template-columns: repeat(2, 1fr); }
    .cards-grid-premium, .news-grid-premium { grid-template-columns: repeat(2, 1fr); }

    .floating-manuscript-hero .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }



    .floating-manuscript-hero .hero-main-image {
        min-height: 420px;
    }

    .floating-manuscript-hero .hero-content {
        text-align: center;
    }

    .floating-manuscript-hero .hero-content p {
        margin-inline: auto;
    }

    .floating-manuscript-hero .hero-subtitle {
        border-right: 0;
        border-top: 2px solid rgba(201, 168, 76, 0.65);
        padding-right: 0;
        padding-top: 0.8rem;
    }

    .floating-manuscript-hero .hero-btns {
        justify-content: center;
    }

    .floating-manuscript-hero .hero-vertical-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; } /* Hide top info on small screens to save space */
    
    .main-navbar { padding: 15px 0; }
    .site-logo img { height: 50px; }
    

    
    .nav-toggle { display: flex; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-heading::after { right: 50%; transform: translateX(50%); }
    .footer-social { justify-content: center; }
    .contact-list li { flex-direction: column; align-items: center; text-align: center; }
    .footer-logo img { margin-left: auto; margin-right: auto; }
    
    .bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
    .bottom-links { justify-content: center; flex-wrap: wrap; }
    
    .stats-grid-refined { grid-template-columns: 1fr; }
    .stat-box { border-left: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; }
    .about-flex { grid-template-columns: 1fr; }
    .values-grid-bespoke { grid-template-columns: repeat(2, 1fr); }
    .steps-grid-premium { grid-template-columns: 1fr; }
    .facilities-flex { grid-template-columns: 1fr; gap: 3rem; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slider-footer {
        justify-content: center;
        flex-direction: column;
    }

    .floating-manuscript-hero {
        padding-top: 95px;
    }

    .floating-manuscript-hero .hero-book-img {
        width: clamp(180px, 52vw, 260px);
    }

    .floating-manuscript-hero .hero-main-image {
        min-height: 320px;
    }

    .floating-manuscript-hero .hero-stats-bar {
        grid-template-columns: 1fr;
    }

    .floating-manuscript-hero .hero-stat-item {
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .floating-manuscript-hero .hero-stat-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .values-grid-bespoke { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .cards-grid-premium, .news-grid-premium { grid-template-columns: 1fr; }
}

/* Scroll to Top */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

#scroll-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

#scroll-to-top.show {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideBottom {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PROGRAMS PAGE EXTRA STYLES
   ============================================================ */
.category-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(180, 140, 54, 0.3);
}

.category-header h3 {
    font-size: 2.25rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 991px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Awareness Campaign Box */
.campaign-grid-bespoke {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.campaign-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.campaign-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.campaign-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.campaign-box h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Event Card Premium */
.event-card-premium {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    color: var(--white);
    text-align: center;
}

.event-card-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.event-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-card-premium h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.event-card-premium p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}
/* ============================================================
   CONTACT PAGE PREMIUM STYLES
   ============================================================ */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light) 0%, #FFFFFF 100%);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

/* Info Sidebar */
.contact-info-card {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
}

.contact-info-card h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.method-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover .method-icon {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.method-text h5 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-text span {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Working Hours */
.working-hours-card {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wh-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
}

.wh-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.wh-text strong {
    display: block;
    font-size: 1.1rem;
}

.wh-text span {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Form Styles */
.contact-form-premium {
    background: var(--white);
    padding: 5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
}

.form-header-refined {
    margin-bottom: 3rem;
}

.form-header-refined h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-header-refined p {
    color: var(--text-muted);
}

.refined-form .form-group {
    margin-bottom: 1.5rem;
}

.refined-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 0.95rem;
}

.refined-form input,
.refined-form select,
.refined-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.refined-form input:focus,
.refined-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(180, 140, 54, 0.1);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-card, .contact-form-premium { padding: 3rem; }
}

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

/* ============================================================
   ASSOCIATION PAGES GENERAL STYLES
   ============================================================ */

/* Generic Page Banner override if not in functions */
.page-banner {
    padding: 100px 0 60px;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-size: 0.95rem;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

/* Donate Page */
.donate-hero {
    background: var(--secondary);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.donate-amounts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-weight: 700;
    transition: var(--transition);
}

.amount-btn.active, .amount-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Reports & Governance */
.report-box-premium {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.report-box-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Electronic Library */
.mucize-library-subtitle {
    max-width: 760px;
    margin: 0.5rem auto 0;
    color: var(--text-muted);
}

.mucize-library-editor-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.mucize-library-editor-content > *:last-child {
    margin-bottom: 0;
}

.mucize-library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mucize-library-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.mucize-library-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.mucize-library-poster {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f8f3e6 0%, #f3f4f6 100%);
    border-bottom: 1px solid var(--border);
}

.mucize-library-poster img,
.mucize-library-poster-fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.mucize-library-poster img {
    object-fit: cover;
}

.mucize-library-poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.mucize-library-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
    line-height: 1.7;
}

.mucize-library-content {
    padding: 1rem 1.1rem 0.35rem;
}

.mucize-library-content p {
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.mucize-library-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mucize-library-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mucize-library-download {
    margin: auto 1.1rem 1.1rem;
}

.mucize-library-empty {
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 1.5rem;
}

.mucize-library-empty i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mucize-library-empty h3 {
    margin-bottom: 0.75rem;
}

.mucize-library-empty p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.mucize-library-pagination {
    text-align: center;
    margin-top: 2.5rem;
}

.mucize-library-single-card {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

.mucize-library-single-poster {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    min-height: 280px;
}

.mucize-library-single-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mucize-library-single-content h1 {
    margin-bottom: 0.8rem;
}

.mucize-library-single-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.mucize-library-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.policy-item-horizontal {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.bank-grid-refined {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bank-card-glass {
    background: var(--secondary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
}

/* Facility / Media center utility */
.card-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .card-grid-premium, .bank-grid-refined, .donate-amounts, .mucize-library-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-swiper-prev, .hero-swiper-next { width: 50px; height: 50px; }
    .hero-swiper-prev { right: 15px; }
    .hero-swiper-next { left: 15px; }
    .mucize-library-single-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .card-grid-premium, .bank-grid-refined, .donate-amounts, .mucize-library-grid { grid-template-columns: 1fr; }
    .hero-swiper-prev, .hero-swiper-next { display: none; } /* Hide on small mobile to save space */
    .vision-mission-premium { gap: 1.5rem; }
    .vm-card-premium { padding: 2rem; }
    .vm-card-bg-icon { font-size: 6rem; }
}

/* ============================================================
   TUTOR COURSE CATEGORY (PREMIUM CARDS)
   ============================================================ */
.mucize-courses-page {
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
    direction: rtl;
    padding: 80px 0;
}

.mucize-courses-shell {
    width: min(100%, 1680px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4.2vw, 4.5rem);
}

.mucize-courses-header {
    text-align: right;
    max-width: 100%;
    margin: 0 auto 3rem;
}

.mucize-courses-header h1 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.45;
}

.mucize-courses-header p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.95;
    max-width: 900px;
}

.mucize-course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.mucize-course-card {
    position: relative;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transition: var(--transition);
    padding: clamp(1.6rem, 4vw, 3rem) clamp(0.6rem, 2vw, 1.2rem);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.mucize-course-card:nth-child(odd) {
    background: radial-gradient(circle at 7% 10%, rgba(180, 140, 54, 0.08) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 252, 0.82) 100%);
}

.mucize-course-card:nth-child(even) {
    background: radial-gradient(circle at 92% 20%, rgba(30, 64, 63, 0.08) 0%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(180deg, rgba(246, 250, 251, 0.82) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.mucize-course-card:hover {
    transform: translateY(-2px);
}

.mucize-course-head {
    margin-bottom: 1.6rem;
    text-align: right;
}

.mucize-course-head h2 {
    margin: 0.65rem 0 0.7rem;
    font-size: clamp(1.4rem, 2.8vw, 2.25rem);
    line-height: 1.6;
    font-weight: 900;
    color: var(--secondary-dark);
}

.mucize-course-head h2 a {
    color: var(--secondary);
}

.mucize-course-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.95;
    font-size: 1rem;
    font-weight: 500;
    max-width: 980px;
}

.mucize-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: clamp(1.2rem, 2vw, 2rem);
    align-items: stretch;
}

.mucize-course-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mucize-course-poster {
    height: 100%;
    min-height: 350px;
    max-height: 460px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(135deg, #dbe3ea 0%, #f4f6f9 100%);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
    position: relative;
}

.mucize-course-poster img,
.mucize-course-poster-fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.mucize-course-poster img {
    max-height: 460px;
    object-fit: cover;
    object-position: center;
}

.mucize-course-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.24) 100%);
    pointer-events: none;
}

.mucize-course-poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 2rem;
}

.mucize-course-chip {
    display: inline-flex;
    width: fit-content;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(180, 140, 54, 0.12);
    border: 1px solid rgba(180, 140, 54, 0.28);
}

.mucize-course-content h3 {
    margin: 0 0 0.75rem;
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 800;
}

.mucize-course-about {
    margin: 0 0 1.15rem;
    color: var(--text);
    line-height: 2;
    font-size: 1rem;
}

.mucize-course-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.mucize-course-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(30, 64, 63, 0.06);
    border: 1px solid rgba(30, 64, 63, 0.1);
    color: var(--secondary-dark);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
}

.mucize-course-meta-bar span i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.mucize-course-contact-inline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 0.8rem;
    align-items: center;
    padding: 0.95rem 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.6);
    border-bottom: 1px dashed rgba(148, 163, 184, 0.6);
}

.mucize-course-contact-inline strong {
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 800;
}

.mucize-course-contact-inline span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.mucize-course-side {
    display: grid;
    grid-template-rows: minmax(350px, 1fr) auto auto;
    gap: 0.9rem;
    height: 100%;
    align-self: stretch;
}

.mucize-course-pricing {
    border: 1px solid #eadfbf;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: linear-gradient(160deg, #fffaf0 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
}

.mucize-price-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.mucize-price-old {
    font-size: 0.88rem;
    text-decoration: line-through;
    color: #9aa5b1;
    line-height: 1.5;
}

.mucize-price-current {
    font-size: 1.32rem;
    line-height: 1.2;
    color: var(--secondary);
    font-weight: 900;
}

.mucize-course-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mucize-course-actions .btn {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.93rem;
}

.mucize-course-actions .btn.btn-primary {
    box-shadow: 0 10px 18px rgba(180, 140, 54, 0.25);
}

.mucize-course-actions .btn.btn-primary:hover {
    box-shadow: 0 12px 22px rgba(180, 140, 54, 0.32);
}

.mucize-pagination {
    margin-top: 2.8rem;
}

.mucize-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.mucize-pagination a,
.mucize-pagination span {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    background: var(--white);
}

.mucize-pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.mucize-course-empty {
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
}

@media (max-width: 1200px) {
    .mucize-course-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(290px, 1fr);
    }

    .mucize-course-poster {
        min-height: 320px;
        max-height: 420px;
    }

    .mucize-course-side {
        grid-template-rows: minmax(320px, 1fr) auto auto;
    }
}

@media (max-width: 991px) {
    .mucize-courses-header {
        text-align: right;
    }

    .mucize-course-layout {
        grid-template-columns: 1fr;
    }

    .mucize-course-content {
        display: block;
    }

    .mucize-course-side {
        grid-template-rows: auto auto auto;
    }

    .mucize-course-poster {
        min-height: 280px;
        max-height: 380px;
    }
}

@media (max-width: 640px) {
    .mucize-courses-shell {
        padding-inline: 0.8rem;
    }

    .mucize-course-card {
        padding: 1rem 0.25rem;
    }

    .mucize-course-head h2 {
        font-size: 1.35rem;
    }

    .mucize-course-head p {
        font-size: 0.92rem;
    }

    .mucize-course-poster {
        min-height: 240px;
        max-height: 320px;
    }

    .mucize-course-meta-bar span {
        width: 100%;
    }

    .mucize-course-actions .btn {
        width: 100%;
    }

    .mucize-course-contact-inline {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

/* ============================================================
   IMMERSIVE EDITORIAL COURSE PAGE
   ============================================================ */
.mucize-editorial-page {
    background: #f7f3ed;
    padding: 58px 0 90px;
    font-family: "IBM Plex Sans Arabic", "Tajawal", var(--font-main);
}

.mucize-courses-intro h1 {
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-weight: 800;
}

.mucize-editorial-card {
    padding: 0;
    margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
    border: 0;
    background: transparent !important;
}

.mucize-editorial-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #0d2218;
    color: #fff;
    padding: clamp(1.3rem, 2.5vw, 2rem);
    box-shadow: 0 24px 60px rgba(8, 20, 15, 0.55);
}

.mucize-editorial-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 87% 12%, rgba(201, 168, 76, 0.28) 0%, rgba(201, 168, 76, 0.05) 32%, transparent 62%),
        repeating-linear-gradient(45deg, rgba(201, 168, 76, 0.042) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(-45deg, rgba(201, 168, 76, 0.033) 0 1px, transparent 1px 56px);
    opacity: 0.72;
    pointer-events: none;
}

.mucize-editorial-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

.mucize-editorial-content {
    text-align: right;
}

.mucize-editorial-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #bda45f;
    font-size: 0.84rem;
    margin-bottom: 1rem;
}

.mucize-editorial-breadcrumb i {
    font-size: 0.64rem;
}

.mucize-editorial-title {
    color: #fff;
    font-size: clamp(2rem, 4.3vw, 3.25rem);
    line-height: 1.45;
    margin: 0 0 0.75rem;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-weight: 800;
}

.mucize-editorial-title em {
    color: #c9a84c;
    font-style: italic;
}

.mucize-editorial-subtitle {
    color: #8aaa95;
    font-size: 1rem;
    line-height: 1.95;
    margin-bottom: 0.9rem;
}

.mucize-editorial-divider {
    display: block;
    width: 80px;
    height: 2px;
    border-radius: 99px;
    margin-bottom: 1.1rem;
    background: linear-gradient(90deg, #c9a84c, #a8872e);
}

.mucize-editorial-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.mucize-editorial-quick-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.56rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.34);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
}

.mucize-editorial-quick-stats span i {
    color: #c9a84c;
}

.mucize-editorial-image-col {
    position: relative;
}

.mucize-editorial-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    transform: perspective(800px) rotateY(8deg) rotateX(3deg);
    filter: drop-shadow(30px 40px 60px rgba(0, 0, 0, 0.7));
    will-change: transform;
}

.mucize-editorial-image-wrap::before {
    content: "";
    position: absolute;
    width: 84%;
    height: 56px;
    bottom: -24px;
    left: 8%;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.22);
    filter: blur(60px);
}

.mucize-editorial-image-wrap img,
.mucize-editorial-image-wrap .mucize-course-poster-fallback {
    width: 100%;
    min-height: 380px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 1) 56%, rgba(0, 0, 0, 0) 98%);
}

.mucize-editorial-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.6);
    color: #f7f3ed;
    background: rgba(16, 36, 27, 0.58);
    backdrop-filter: blur(12px);
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.mucize-editorial-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a84c;
    animation: mucize-pulse-dot 1.8s ease infinite;
}

.mucize-editorial-body {
    display: grid;
    grid-template-columns: minmax(0, 65%) minmax(0, 35%);
    gap: clamp(1rem, 2.2vw, 2rem);
    background: #f7f3ed;
    padding: clamp(1rem, 2vw, 1.6rem) clamp(0.1rem, 1vw, 0.3rem) 0;
}

.mucize-editorial-main {
    display: grid;
    gap: 1.15rem;
}

.mucize-content-section {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(26, 58, 42, 0.08);
    box-shadow: 0 8px 24px rgba(26, 58, 42, 0.06);
    padding: clamp(1rem, 2vw, 1.5rem);
}

.mucize-content-section h3 {
    margin: 0 0 0.9rem;
    padding-right: 0.72rem;
    border-right: 4px solid #c9a84c;
    color: #1a3a2a;
    font-size: 1.16rem;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}

.mucize-content-section .mucize-course-about {
    font-size: 1.03rem;
    line-height: 1.9;
    color: #2a3a2f;
    margin-bottom: 0;
}

.mucize-content-section .mucize-course-about.is-collapsed {
    max-height: 9.8rem;
    overflow: hidden;
    position: relative;
}

.mucize-content-section .mucize-course-about.is-collapsed::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 44px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 80%);
}

.mucize-read-more-toggle {
    margin-top: 0.65rem;
    color: #1a3a2a;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: underline;
}

.mucize-learn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.mucize-learn-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
    background: rgba(26, 58, 42, 0.05);
    border: 1px solid rgba(26, 58, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mucize-learn-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 58, 42, 0.12);
}

.mucize-learn-item i {
    color: #c9a84c;
    margin-top: 3px;
}

.mucize-program-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(26, 58, 42, 0.1);
}

.mucize-program-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.82rem 0.95rem;
    font-size: 0.92rem;
}

.mucize-program-row:nth-child(odd) {
    background: rgba(26, 58, 42, 0.03);
}

.mucize-program-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #1a3a2a;
    font-weight: 700;
}

.mucize-program-label i {
    color: #c9a84c;
}

.mucize-program-value {
    color: #3b5043;
}

.mucize-editorial-sidebar {
    position: relative;
}

.mucize-editorial-sidebar-card {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(26, 58, 42, 0.08);
    box-shadow: 0 20px 60px rgba(26, 58, 42, 0.12);
    padding: 1rem;
}

.mucize-editorial-sidebar-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #c9a84c, #a8872e);
}

.mucize-editorial-sidebar-card .mucize-price-label {
    display: block;
    margin-top: 0.35rem;
    color: #7c8f84;
    font-size: 0.8rem;
}

.mucize-editorial-sidebar-card .mucize-price-current {
    display: block;
    color: #1a3a2a;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.15rem 0 0.6rem;
    line-height: 1.05;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-variant-numeric: tabular-nums;
}

.mucize-premium-cart-btn {
    min-height: 56px !important;
    border-radius: 14px !important;
    background: linear-gradient(90deg, #c9a84c, #a8872e) !important;
    color: #fff !important;
    border: 0 !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mucize-premium-cart-btn::after {
    content: "";
    position: absolute;
    top: -180%;
    bottom: -180%;
    right: -40%;
    width: 35%;
    transform: rotate(22deg) translateX(-230%);
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.52) 50%, transparent 100%);
    transition: transform 0.62s ease;
}

.mucize-premium-cart-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 26px rgba(169, 133, 47, 0.35);
}

.mucize-premium-cart-btn:hover::after {
    transform: rotate(22deg) translateX(360%);
}

.mucize-premium-cart-btn i {
    font-size: 0.95rem;
}

.mucize-premium-cart-btn.is-processing {
    pointer-events: none;
    opacity: 0.92;
}

.mucize-premium-cart-btn.is-added {
    background: #2d6f4d !important;
}

.mucize-ghost-details-btn {
    min-height: 54px !important;
    border-radius: 14px !important;
    border-color: #1a3a2a !important;
    color: #1a3a2a !important;
    background: #fff !important;
}

.mucize-ghost-details-btn:hover {
    background: #1a3a2a !important;
    color: #fff !important;
}

.mucize-trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin-top: 0.88rem;
    padding-top: 0.88rem;
    border-top: 1px solid rgba(26, 58, 42, 0.12);
}

.mucize-trust-signals span {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    font-size: 0.76rem;
    color: #527260;
}

.mucize-trust-signals i {
    color: #2d6f4d;
}

.mucize-instructor-mini {
    margin-top: 0.92rem;
    padding-top: 0.92rem;
    border-top: 1px solid rgba(26, 58, 42, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.mucize-instructor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a3a2a;
    border: 2px solid rgba(201, 168, 76, 0.85);
    background: linear-gradient(180deg, #fffdf7, #f7f3ed);
}

.mucize-instructor-mini strong {
    display: block;
    color: #1a3a2a;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.mucize-instructor-mini span,
.mucize-instructor-mini a {
    display: block;
    font-size: 0.8rem;
    color: #6f8579;
}

.mucize-fade-stagger {
    opacity: 0;
    transform: translateY(20px);
    animation: mucize-stagger-in 0.85s ease forwards;
}

.mucize-editorial-card .mucize-editorial-body {
    animation-delay: 0.15s;
}

.mucize-gold-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.9);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.45);
    animation: mucize-particle-drift 11s ease-in-out infinite;
}

.mucize-gold-particle-1 { top: 17%; left: 8%; }
.mucize-gold-particle-2 { top: 36%; left: 22%; width: 5px; height: 5px; animation-delay: 1.5s; }
.mucize-gold-particle-3 { top: 19%; right: 17%; width: 7px; height: 7px; animation-delay: 2.2s; }

@keyframes mucize-particle-drift {
    0%, 100% { transform: translateY(0); opacity: 0.42; }
    50% { transform: translateY(-16px); opacity: 1; }
}

@keyframes mucize-stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mucize-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.45; }
}

@media (max-width: 1024px) {
    .mucize-editorial-hero-inner {
        grid-template-columns: 1fr;
    }

    .mucize-editorial-image-col {
        order: -1;
    }

    .mucize-editorial-image-wrap {
        transform: perspective(800px) rotateY(0) rotateX(0);
    }

    .mucize-editorial-body {
        grid-template-columns: 1fr;
    }

    .mucize-editorial-sidebar-card {
        position: static;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .mucize-editorial-title {
        font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    }

    .mucize-editorial-quick-stats span {
        width: 100%;
    }

    .mucize-learn-grid {
        grid-template-columns: 1fr;
    }

    .mucize-program-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* ============================================================
   NEW: FEATURED PROGRAM CARDS
   ============================================================ */
.program-featured-card {
    transition: var(--transition);
}
.program-featured-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}
.program-featured-card .btn {
    transition: var(--transition);
}
.program-featured-card:hover .btn {
    transform: scale(1.05);
}

/* ============================================================
   RESPONSIVE OPTIMIZATIONS (ALL PAGES)
   ============================================================ */
@media (max-width: 991px) {
    .container { padding: 0 1.25rem; }
    .section { padding: 60px 0; }
    
    /* Header/Banner Mobile */
    .page-banner { padding: 80px 0 40px; }
    .page-banner h1 { font-size: 2.25rem; }
    
    /* Grid Overrides */
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr !important; 
        gap: 1.5rem !important; 
    }
    
    /* About & Programs */
    .about-flex { grid-template-columns: 1fr; gap: 3rem !important; }
    .impact-grid-mini { grid-template-columns: 1fr !important; }
    
    /* Administrative Structure */
    .board-grid-bespoke { grid-template-columns: 1fr !important; }
    .mgmt-grid-refined { grid-template-columns: 1fr !important; }
    .dept-grid-overlapping { grid-template-columns: 1fr !important; }
    
    /* Facilities & Partners */
    .steps-grid-premium { grid-template-columns: 1fr !important; }
    .partners-grid-premium { grid-template-columns: repeat(2, 1fr) !important; }
    .bespoke-visual-box { margin-right: 0 !important; }
    .visual-card.secondary { margin-right: 0 !important; }
}

@media (max-width: 640px) {
    .partners-grid-premium { grid-template-columns: 1fr !important; }
    .page-banner h1 { font-size: 1.85rem; }
    .section-label { font-size: 0.75rem; padding: 4px 12px; }
    
    /* Featured cards on small mobile */
    .program-featured-card { padding: 1.5rem !important; }
    .program-featured-card h4 { font-size: 1.15rem; }
    
    /* Conditions box */
    .conditions-box-premium { padding: 2rem !important; }
}

/* ============================================================
   PREMIUM HOMEPAGE STYLES
   ============================================================ */

/* Hero Premium Section */
.hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--secondary);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 63, 0.9) 0%, rgba(30, 64, 63, 0.4) 100%);
    z-index: 2;
}

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

.hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.accent-text {
    color: var(--primary);
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Glass Card Stat */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-stat {
    text-align: center;
}

.card-stat .counter {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: var(--primary);
}

.card-stat p {
    font-size: 14px;
    margin: 5px 0 0;
    opacity: 0.8;
}

.card-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* About Section Stack */
.about-image-stack {
    position: relative;
    padding: 20px;
}

.about-image-stack .main-img {
    width: 80%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: var(--secondary);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.experience-badge span {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 25px;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.program-card .card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.program-card.featured {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.program-card.featured h3 {
    color: var(--white);
}

.program-card.featured .card-icon {
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(30, 64, 63, 0.95), rgba(30, 64, 63, 0.95)), url('book.png');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    margin: 0 20px;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Utility Classes */
.py-100 { padding: 100px 0; }
.mb-60 { margin-bottom: 60px; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-title { font-size: 3rem; }
    .programs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WOOCOMMERCE CART & CHECKOUT STYLING (PREMIUM THEME MATCH)
   ============================================================ */

/* Notices and Messages */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    border-top-color: var(--primary) !important;
    background-color: var(--white) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: var(--radius-sm) !important;
    padding: 1.25rem 2rem !important;
    font-family: var(--font-main) !important;
    margin-bottom: 2rem !important;
}
.woocommerce-message::before, 
.woocommerce-info::before {
    color: var(--primary) !important;
}
.woocommerce-error {
    border-top-color: #E63946 !important;
}
.woocommerce-error::before {
    color: #E63946 !important;
}

/* General Cart & Checkout Layout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    font-family: var(--font-main);
}

/* Shop Table Styling (Cart & Checkout) */
.woocommerce table.shop_table {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    border-collapse: separate !important;
    overflow: hidden !important;
    background: var(--white) !important;
    box-shadow: var(--shadow-sm) !important;
}
.woocommerce table.shop_table th {
    background-color: var(--secondary) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    padding: 15px 20px !important;
    border: none !important;
    font-size: 0.95rem !important;
}
.woocommerce table.shop_table td {
    padding: 20px !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    vertical-align: middle !important;
}
.woocommerce table.shop_table_responsive tr td::before {
    font-weight: 700 !important;
    color: var(--secondary) !important;
}

/* Product Links and Info */
.woocommerce table.shop_table td.product-name a {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}
.woocommerce table.shop_table td.product-name a:hover {
    color: var(--primary) !important;
}
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
}

/* Quantity Field styling */
.woocommerce .quantity .qty {
    width: 60px !important;
    height: 40px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
    background: var(--light) !important;
    text-align: center !important;
    padding: 0 !important;
}

/* Cart Actions & Coupon */
.woocommerce-cart-form__contents .actions {
    background-color: var(--gray-50) !important;
}
.woocommerce .coupon {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}
.woocommerce .coupon input.input-text {
    width: 200px !important;
    height: 44px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0 15px !important;
    background: var(--white) !important;
    font-family: var(--font-main) !important;
}

/* General Buttons styling */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit {
    font-family: var(--font-main) !important;
    background-color: var(--secondary) !important;
    color: var(--white) !important;
    padding: 12px 28px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    border: none !important;
    transition: var(--transition) !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
}
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover, 
.woocommerce #respond input#submit:hover {
    background-color: var(--secondary-dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px) !important;
}

/* Disabled buttons */
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
    background-color: var(--gray-200) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
}

/* Primary/Checkout/Submit Buttons */
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt, 
.woocommerce #respond input#submit.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(180, 140, 54, 0.3) !important;
}
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover, 
.woocommerce #respond input#submit.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 6px 20px rgba(180, 140, 54, 0.4) !important;
}

/* Cart Collaterals & Totals */
.cart-collaterals {
    margin-top: 40px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
}
@media (max-width: 768px) {
    .cart-collaterals {
        grid-template-columns: 1fr !important;
    }
}
.cart_totals {
    width: 100% !important;
    float: none !important;
    background: var(--white) !important;
    padding: 30px !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}
.cart_totals h2 {
    font-size: 1.5rem !important;
    color: var(--secondary) !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid var(--primary-light) !important;
    padding-bottom: 10px !important;
}
.cart_totals .shop_table {
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 20px !important;
}
.cart_totals .shop_table td,
.cart_totals .shop_table th {
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
}

/* Checkout Form Layout */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 40px !important;
}
.woocommerce-checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
}
.woocommerce-checkout #customer_details .col-1 {
    width: 100% !important;
    float: none !important;
}
.woocommerce-checkout #customer_details .col-2 {
    display: none !important;
}
.woocommerce-checkout #order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-top: 0 !important;
}
.woocommerce-checkout #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
}
@media (max-width: 992px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .woocommerce-checkout #customer_details {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    .woocommerce-checkout #order_review_heading {
        grid-column: 1 !important;
        grid-row: auto !important;
        margin-top: 20px !important;
    }
    .woocommerce-checkout #order_review {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
    font-size: 1.5rem !important;
    color: var(--secondary) !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid var(--primary-light) !important;
    padding-bottom: 10px !important;
}

/* Inputs & Form Fields */
.woocommerce form .form-row {
    margin-bottom: 15px !important;
}
.woocommerce form .form-row label {
    font-weight: 700 !important;
    color: var(--secondary) !important;
    margin-bottom: 8px !important;
    display: block !important;
}
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 15px !important;
    background-color: var(--white) !important;
    font-family: var(--font-main) !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
}
.woocommerce form .form-row textarea {
    height: 120px !important;
}
.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(180, 140, 54, 0.15) !important;
}

/* Select2 Dropdowns (WooCommerce Defaults) */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-right: 15px !important;
    color: var(--text) !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

/* Order Review Box */
#order_review {
    background: var(--white) !important;
    padding: 30px !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Payment Gateway Section */
.woocommerce-checkout #payment {
    background: var(--gray-50) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    padding: 20px !important;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
    font-family: var(--font-main) !important;
    line-height: 2 !important;
    margin-bottom: 10px !important;
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-left: 10px !important;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 700 !important;
    color: var(--secondary) !important;
    cursor: pointer !important;
}
.woocommerce-checkout #payment div.payment_box {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    box-shadow: var(--shadow-sm) !important;
}
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--border) !important;
}

/* Terms & Conditions Checkbox */
.woocommerce-checkout #payment .place-order {
    padding: 0 !important;
}
.woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px !important;
}
.woocommerce-checkout #payment .place-order .form-row.validate-required {
    float: none !important;
    width: 100% !important;
}

/* Order Received / Thank you page */
.woocommerce-order {
    background: var(--white) !important;
    padding: 40px !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 40px !important;
}
.woocommerce-order h2 {
    color: var(--secondary) !important;
}
.woocommerce-order ul.order_details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 20px !important;
    background: var(--gray-50) !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border) !important;
    margin: 20px 0 !important;
}
.woocommerce-order ul.order_details li {
    flex: 1 1 150px !important;
    border-left: 1px solid var(--border) !important;
    padding-left: 20px !important;
    margin-left: 0 !important;
}
.woocommerce-order ul.order_details li:last-child {
    border-left: none !important;
}
.woocommerce-order ul.order_details li strong {
    color: var(--secondary) !important;
    display: block !important;
    font-size: 1.1rem !important;
    margin-top: 5px !important;
}

/* ============================================================
   404 ERROR PAGE STYLING
   ============================================================ */
.error-404-container {
    padding: 120px 0;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
}
.error-404-content {
    max-width: 600px;
    margin: 0 auto;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(180, 140, 54, 0.15);
    font-family: 'Noto Kufi Arabic', sans-serif;
    letter-spacing: -2px;
}
.error-title {
    font-size: 2.25rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.error-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ============================================================
   HEADER CART LINK STYLING
   ============================================================ */
.header-cart-link {
    position: relative;
    color: var(--secondary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: var(--transition);
}

#site-header.scrolled .header-cart-link {
    color: var(--secondary);
}

.home:not(.scrolled) #site-header .header-cart-link,
.page-template-template-home:not(.scrolled) #site-header .header-cart-link {
    color: var(--white);
}

.header-cart-link:hover {
    color: var(--primary);
}

.header-cart-link .cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid var(--white);
    line-height: 1;
}



