/**
 * YourIslamicTutor - Premium Islamic Education Theme
 * Colors: Green / White / Gold
 */

/* =====================================================
   1. CSS VARIABLES & RESET
   ===================================================== */
:root {
    --primary: #0F7A3D;
    --dark-green: #0A5A2C;
    --white: #FFFFFF;
    --light-bg: #F7FCF7;
    --gold: #C9A227;
    --gold-light: #E8C547;
    --gold-dark: #A8861F;
    --text-dark: #1A2E1F;
    --text-muted: #5A6B5E;
    --text-light: #8A9A8E;
    --border-color: #E2EDE4;
    --border-light: #EEF5EF;
    --shadow-sm: 0 2px 8px rgba(15, 122, 61, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 122, 61, 0.1);
    --shadow-lg: 0 8px 40px rgba(15, 122, 61, 0.14);
    --shadow-hover: 0 12px 48px rgba(15, 122, 61, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --font-body: 'Nunito', sans-serif;
    --font-display: 'Cormorant Garamond', serif;
    --font-arabic: 'Amiri', serif;
    --navbar-height: 72px;
    --topbar-height: 40px;
    --pattern-opacity: 0.04;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--dark-green);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

::selection {
    background: rgba(15, 122, 61, 0.15);
    color: var(--dark-green);
}

/* =====================================================
   2. TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4,
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
}

.arabic-text,
.text-arabic,
[dir="rtl"].arabic {
    font-family: var(--font-arabic);
    direction: rtl;
    font-size: 1.35rem;
    line-height: 2;
    color: var(--dark-green);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    hyphens: auto;
}

/* =====================================================
   3. UTILITIES
   ===================================================== */
.text-primary-green { color: var(--primary) !important; }
.text-dark-green { color: var(--dark-green) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.bg-light-green { background-color: var(--light-bg) !important; }
.bg-primary-green { background-color: var(--primary) !important; }
.bg-dark-green { background-color: var(--dark-green) !important; }

.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

.shadow-soft { box-shadow: var(--shadow-md); }
.shadow-soft-lg { box-shadow: var(--shadow-lg); }

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-padding-sm {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pattern-bg {
    position: relative;
    background-color: var(--light-bg);
}

.pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--islamic-pattern);
    opacity: var(--pattern-opacity);
    pointer-events: none;
}

.pattern-bg > * {
    position: relative;
    z-index: 1;
}

/* Islamic geometric pattern via SVG data URI */
:root {
    --islamic-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230F7A3D' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --islamic-pattern-diamond: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%230F7A3D' stroke-width='0.5'/%3E%3C/svg%3E");
    --islamic-pattern-star: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L48 32L80 40L48 48L40 80L32 48L0 40L32 32Z' fill='none' stroke='%230F7A3D' stroke-width='0.3'/%3E%3C/svg%3E");
}

.geometric-overlay {
    position: relative;
    overflow: hidden;
}

.geometric-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(201, 162, 39, 0.03) 20px,
        rgba(201, 162, 39, 0.03) 22px
    );
    pointer-events: none;
    z-index: 0;
}

/* Crescent decorative elements */
.crescent-decor {
    position: relative;
}

.crescent-decor::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 18px -8px 0 0 var(--gold);
    opacity: 0.12;
    top: -20px;
    left: -20px;
    pointer-events: none;
}

.crescent-decor-right::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: -14px -6px 0 0 var(--primary);
    opacity: 0.1;
    bottom: -10px;
    right: -10px;
    pointer-events: none;
}

/* =====================================================
   4. LOADING SCREEN
   ===================================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary) 50%, #128848 100%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-inner {
    text-align: center;
    color: var(--white);
}

.loading-inner p {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
    animation: pulse-text 2s ease-in-out infinite;
}

.crescent-loader {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 22px -10px 0 0 var(--gold);
    animation: crescent-spin 1.2s linear infinite;
}

@keyframes crescent-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* =====================================================
   5. TOP BAR
   ===================================================== */
.top-bar {
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1040;
}

.top-bar a.top-link {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
}

.top-bar a.top-link:hover {
    color: var(--gold);
}

.top-bar a.top-link i {
    font-size: 0.75rem;
    color: var(--gold);
}

.top-bar .social-links {
    display: flex;
    gap: 0.65rem;
}

.top-bar .social-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.top-bar .social-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.top-bar .lang-selector {
    position: relative;
    z-index: 1050;
}

.top-bar .btn-lang {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
}

.top-bar .btn-lang:hover,
.top-bar .btn-lang:focus,
.top-bar .btn-lang.show {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.3);
}

.top-bar .btn-lang::after {
    margin-left: 0.25rem;
}

.lang-dropdown-menu {
    z-index: 1060 !important;
    min-width: 140px;
    border: 1px solid rgba(15, 122, 61, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    padding: 0.35rem;
    margin-top: 0.35rem !important;
}

.lang-dropdown-menu .dropdown-item {
    color: #1a1a1a !important;
    background: #fff !important;
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.lang-dropdown-menu .dropdown-item:hover,
.lang-dropdown-menu .dropdown-item:focus {
    background: #F7FCF7 !important;
    color: #0A5A2C !important;
}

.lang-dropdown-menu .dropdown-item.active {
    background: rgba(15, 122, 61, 0.1) !important;
    color: #0F7A3D !important;
    font-weight: 700;
}

.top-bar .lang-selector .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.2rem 1.75rem 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    min-width: 100px;
}

.top-bar .lang-selector .form-select option {
    color: #1a1a1a;
    background: #fff;
}

.top-bar .lang-selector .form-select:focus {
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.3);
    border-color: var(--gold);
}

/* =====================================================
   6. STICKY NAVBAR
   ===================================================== */
.main-navbar {
    background: var(--white);
    padding: 0.65rem 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    z-index: 1030;
}

.main-navbar.navbar-scrolled {
    padding: 0.4rem 0;
    box-shadow: var(--shadow-md);
}

.main-navbar .navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.15);
}

.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230F7A3D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo placeholder */
.site-logo {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
    text-decoration: none;
}

.brand-logo {
    height: 56px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.brand-logo-footer {
    height: 52px;
    max-width: 220px;
    filter: none;
}

.footer-logo .brand-logo {
    background: #fff;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
}

@media (max-width: 575.98px) {
    .brand-logo {
        height: 44px;
        max-width: 180px;
    }
}

.logo-placeholder {
    text-decoration: none;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--dark-green));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-green);
}

.logo-text small {
    font-size: 0.625rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.main-navbar .primary-menu .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.main-navbar .primary-menu .nav-link:hover,
.main-navbar .primary-menu .nav-link.active {
    color: var(--primary);
    background: rgba(15, 122, 61, 0.06);
}

.main-navbar .primary-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.main-navbar .dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.main-navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.main-navbar .dropdown-item:hover {
    background: rgba(15, 122, 61, 0.08);
    color: var(--primary);
}

.nav-actions {
    flex-shrink: 0;
}

/* =====================================================
   7. ISLAMIC MARQUEE
   ===================================================== */
.islamic-marquee {
    background: linear-gradient(90deg, #074527 0%, #0F7A3D 50%, #074527 100%);
    overflow: hidden;
    padding: 0.7rem 0 0.85rem;
    border-top: 1px solid rgba(201, 162, 39, 0.35);
    border-bottom: 2px solid var(--gold);
    position: relative;
}

.islamic-marquee-vip {
    padding: 1.65rem 0 1rem;
    box-shadow: inset 0 0 40px rgba(201, 162, 39, 0.12);
}

.marquee-vip-badge {
    position: absolute;
    left: 50%;
    top: 0.35rem;
    transform: translateX(-50%);
    z-index: 2;
    background: linear-gradient(135deg, #C9A227, #E8C84A);
    color: #0A5A2C;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    font-family: 'Amiri', serif;
    line-height: 1.3;
}

.marquee-vip-badge i {
    margin-left: 0.2rem;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 55s linear infinite;
    margin-top: 0.35rem;
    align-items: center;
}

.marquee-content {
    font-family: var(--font-arabic);
    color: var(--gold);
    white-space: nowrap;
    padding: 0.15rem 1.5rem 0.3rem;
    direction: rtl;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.85;
}

.marquee-arabic {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: #F0D878;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    line-height: 1.9;
    display: inline-block;
}

.marquee-urdu {
    font-family: 'Amiri', 'Noto Nastaliq Urdu', serif;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    line-height: 1.75;
    display: inline-block;
}

.marquee-divider {
    color: var(--gold);
    opacity: 0.75;
    font-size: 0.85rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(-33.333%); }
    100% { transform: translateX(0); }
}

.islamic-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@media (max-width: 575.98px) {
    .marquee-vip-badge {
        font-size: 0.62rem;
        padding: 0.12rem 0.55rem;
    }
    .marquee-arabic {
        font-size: 0.95rem;
    }
    .marquee-urdu {
        font-size: 0.8rem;
    }
}


/* =====================================================
   8. HERO SLIDER
   ===================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    min-height: clamp(420px, 65vh, 680px);
    position: relative;
}

.hero-slide {
    position: relative;
    min-height: inherit;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-green);
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 90, 44, 0.88) 0%,
        rgba(15, 122, 61, 0.72) 50%,
        rgba(10, 90, 44, 0.55) 100%
    );
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--islamic-pattern-star);
    background-size: 120px 120px;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 640px;
    color: var(--white);
    padding: 3rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 162, 39, 0.35);
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-content .arabic-text {
    color: var(--gold-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-slider .carousel-indicators {
    bottom: 2rem;
    margin-bottom: 0;
    gap: 0.5rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    opacity: 1;
    transition: all var(--transition);
}

.hero-slider .carousel-indicators .active {
    background: var(--gold);
    border-color: var(--gold);
    width: 28px;
    border-radius: var(--radius-full);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev { left: 1.5rem; }
.hero-slider .carousel-control-next { right: 1.5rem; }

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-geometric-accent {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    border: 2px solid rgba(201, 162, 39, 0.15);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-geometric-accent::before {
    content: '';
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.hero-geometric-accent::after {
    content: '';
    position: absolute;
    inset: 60px;
    border: 1px dashed rgba(201, 162, 39, 0.2);
    border-radius: 50%;
}

/* =====================================================
   9. SECTION STYLES
   ===================================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(15, 122, 61, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(15, 122, 61, 0.12);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header-left {
    text-align: left;
    max-width: none;
    margin: 0 0 2.5rem;
}

.section-header-left .section-subtitle {
    margin: 0;
}

/* =====================================================
   10. COURSE CARDS
   ===================================================== */
.course-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 122, 61, 0.15);
}

.course-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    z-index: 2;
}

.course-card-badge.popular {
    background: var(--gold);
    color: var(--dark-green);
}

.course-thumb .course-card-wishlist,
.course-thumb .wishlist-btn,
.course-card-image .course-card-wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
    z-index: 2;
    border: none;
    padding: 0;
    cursor: pointer;
}

.course-thumb .course-card-wishlist:hover,
.course-thumb .wishlist-btn:hover,
.course-thumb .course-card-wishlist.active,
.course-thumb .wishlist-btn.active,
.course-card-image .course-card-wishlist:hover,
.course-card-image .course-card-wishlist.active {
    color: #E74C3C;
    background: #FFF5F5;
}

.wishlist-action-btn.active {
    color: #E74C3C;
    border-color: #E74C3C;
}

.course-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.65rem;
}

.course-card-meta i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.course-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.course-card-title a {
    color: var(--text-dark);
    transition: color var(--transition-fast);
}

.course-card-title a:hover {
    color: var(--primary);
}

.course-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.course-price .current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.course-price .original {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 122, 61, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.price-badge.sale {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-dark);
}

.price-badge.free {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   11. TEACHER CARDS
   ===================================================== */
.teacher-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.teacher-card-photo {
    position: relative;
    padding: 1.5rem 1.5rem 0;
}

.teacher-card-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--light-bg);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition);
}

.teacher-card:hover .teacher-card-photo img {
    border-color: rgba(15, 122, 61, 0.2);
}

.teacher-card-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--transition);
}

.teacher-card:hover .teacher-card-photo::after {
    opacity: 1;
}

.teacher-card-body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.teacher-card-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-card-name a {
    color: var(--text-dark);
}

.teacher-card-name a:hover {
    color: var(--primary);
}

.teacher-card-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.teacher-card-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.teacher-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.teacher-tag {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--light-bg);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.teacher-card-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.teacher-card-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--light-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.teacher-card-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   12. TESTIMONIAL CARDS
   ===================================================== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: 100%;
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 122, 61, 0.12);
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(15, 122, 61, 0.1);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-card .stars {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-bg);
}

.testimonial-author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* =====================================================
   13. BLOG CARDS
   ===================================================== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    line-height: 1.2;
}

.blog-card-date .day {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.blog-card-date .month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.blog-card-title a {
    color: var(--text-dark);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blog-card-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap var(--transition-fast);
}

.blog-card-link:hover {
    gap: 0.6rem;
    color: var(--dark-green);
}

/* =====================================================
   14. DUA CARDS
   ===================================================== */
.dua-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-right: 4px solid var(--gold);
    transition: all var(--transition);
    height: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dua-card:hover {
    box-shadow: var(--shadow-md);
    border-right-color: var(--primary);
}

.dua-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.dua-card-arabic {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    direction: rtl;
    text-align: right;
    color: var(--dark-green);
    line-height: 2;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    max-height: 12em;
    overflow-y: auto;
}

.dua-card-transliteration {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 6em;
    overflow-y: auto;
}

.dua-card-translation {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 0.75rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 8em;
    overflow-y: auto;
}

.dua-card-reference {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.dua-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* =====================================================
   15. ISLAMIC CONTENT BOXES (Ayah / Hadith)
   ===================================================== */
.islamic-content-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 0;
    max-width: 100%;
}

.islamic-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

.islamic-content-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--islamic-pattern-diamond);
    background-size: 40px 40px;
    opacity: 0.03;
    pointer-events: none;
}

.islamic-content-box .content-icon {
    width: 56px;
    height: 56px;
    background: rgba(15, 122, 61, 0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.islamic-content-box .arabic-text {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.islamic-content-box .translation {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.islamic-content-box .reference {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gold-dark);
    position: relative;
    z-index: 1;
}

.islamic-content-box.hadith {
    border-left: 4px solid var(--gold);
}

.islamic-content-box.ayah {
    border-left: 4px solid var(--primary);
}

.footer-ayah {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.footer-ayah .arabic-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-ayah small {
    color: var(--gold);
}

/* =====================================================
   16. BUTTONS
   ===================================================== */
.btn-primary-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--dark-green));
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(15, 122, 61, 0.25);
    text-decoration: none;
}

.btn-primary-green:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 122, 61, 0.35);
    background: linear-gradient(135deg, #128848, var(--primary));
}

.btn-primary-green:active {
    transform: translateY(0);
}

.btn-sm.btn-primary-green {
    padding: 0.4rem 0.95rem;
    font-size: 0.8rem;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(15, 122, 61, 0.2);
}

/* Filter chips (blog / gallery) — uniform pill buttons */
.filter-chips {
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--border-color, #d5e0d5);
    background: #fff;
    color: var(--text-dark, #2d3a2d);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-chip:hover {
    color: var(--primary, #0F7A3D);
    border-color: var(--primary, #0F7A3D);
    background: rgba(15, 122, 61, 0.06);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary, #0F7A3D), var(--dark-green, #0A5A2C));
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 122, 61, 0.25);
}

.filter-chip.active:hover {
    color: #fff;
    background: linear-gradient(135deg, #128848, var(--primary, #0F7A3D));
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
    text-decoration: none;
}

.btn-gold:hover {
    color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    transition: all var(--transition);
    text-decoration: none;
}

.btn-outline-green:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nav-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-nav-icon:hover {
    background: rgba(15, 122, 61, 0.08);
    color: var(--primary);
    border-color: rgba(15, 122, 61, 0.12);
}

.btn-nav-text {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-dark);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-nav-text:hover {
    color: var(--primary);
    background: rgba(15, 122, 61, 0.06);
}

.btn-sm-custom {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-lg-custom {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-full);
}

.add-to-cart-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.add-to-cart-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   17. FOOTER
   ===================================================== */
.newsletter-section {
    padding: 0 0 3rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--dark-green), var(--primary));
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.08);
    pointer-events: none;
}

.newsletter-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.newsletter-text h2 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.newsletter-text .section-badge {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-light);
    border-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form {
    width: 100%;
    position: relative;
    z-index: 1;
}

.newsletter-form .input-group {
    width: 100%;
    flex-wrap: nowrap;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    font-size: 0.9rem;
    min-width: 0;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn-gold {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    flex-shrink: 0;
}

.site-footer {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    background-image: var(--islamic-pattern);
    background-size: 60px 60px;
    opacity: 0.04;
    pointer-events: none;
}

.site-footer .footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.site-footer .logo-text strong {
    color: var(--white);
}

.site-footer .logo-text small {
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .logo-mark {
    background: rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '\203A';
    margin-right: 0.5rem;
    color: var(--gold);
    font-weight: 700;
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.25rem;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-posts li {
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-posts a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    display: block;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.footer-posts a:hover {
    color: var(--gold);
}

.footer-posts small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--dark-green);
    transform: translateY(-2px);
}

.footer-ayah {
    margin-top: 1.25rem !important;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.footer-ayah .footer-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
}

.footer-ayah .arabic-text {
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    color: #fff;
    margin-bottom: 0.35rem !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    max-height: 7.5em;
    overflow-y: auto;
}

.footer-ayah small {
    color: var(--gold);
    font-size: 0.75rem;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--gold);
}

.footer-developed {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
}

.footer-developer-link {
    color: var(--gold) !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-developer-link:hover {
    color: #E8C84A !important;
    opacity: 0.95;
}

@media (max-width: 991.98px) {
    .footer-bottom .text-lg-center,
    .footer-bottom .text-lg-end {
        text-align: center !important;
    }
}


/* =====================================================
   18. FLOATING ELEMENTS
   ===================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1040;
    transition: all var(--transition);
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.floating-whatsapp:hover {
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   19. CART BADGE & STARS
   ===================================================== */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--gold);
    color: var(--dark-green);
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid var(--white);
    transition: transform var(--transition-fast);
}

.cart-badge.bump {
    animation: badge-bump 0.4s ease;
}

@keyframes badge-bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

.stars {
    display: inline-flex;
    gap: 0.15rem;
    color: var(--gold);
    font-size: 0.9rem;
}

.stars i {
    color: var(--gold);
}

.stars .bi-star {
    color: #DDD;
}

.stars .bi-star-half {
    color: var(--gold);
}

.rating-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: 0.35rem;
}

/* =====================================================
   20. FORMS
   ===================================================== */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.12);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.12);
    border-color: var(--primary);
}

.input-group-text {
    background: var(--light-bg);
    border-color: var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-md);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
}

.invalid-feedback {
    font-size: 0.8rem;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--primary);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #DC3545;
}

.search-modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-modal-content .modal-body {
    padding: 2rem;
}

/* =====================================================
   21. PAGINATION
   ===================================================== */
.pagination-custom {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
}

.pagination-custom .page-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--white);
}

.pagination-custom .page-link:hover {
    background: rgba(15, 122, 61, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(15, 122, 61, 0.3);
}

.pagination-custom .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* =====================================================
   22. BREADCRUMBS & PAGE HEADERS
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary) 100%);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--islamic-pattern-star);
    background-size: 100px 100px;
    opacity: 0.05;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-header h1 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.breadcrumb-custom a,
.breadcrumb-custom span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-custom a:hover {
    color: var(--gold);
}

.breadcrumb-custom .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.25rem;
}

.breadcrumb-custom .current {
    color: var(--gold);
    font-weight: 600;
}

.page-header-compact {
    padding: 2.5rem 0;
}

/* =====================================================
   23. AUTH PAGES
   ===================================================== */
.auth-page {
    min-height: calc(100vh - var(--navbar-height) - var(--topbar-height));
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: var(--light-bg);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--islamic-pattern);
    background-size: 60px 60px;
    opacity: 0.03;
    pointer-events: none;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-card-wide {
    max-width: 560px;
}

.auth-card-header {
    background: linear-gradient(135deg, var(--dark-green), var(--primary));
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-card-header::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 20px -8px 0 0 rgba(201, 162, 39, 0.15);
}

.auth-card-header h1,
.auth-card-header h2 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.auth-card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.auth-card-body {
    padding: 2rem 2.25rem 2.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer-link a {
    font-weight: 700;
    color: var(--primary);
}

.auth-footer-link a:hover {
    color: var(--dark-green);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    background: none;
    border: none;
    padding: 0.25rem;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-field-wrap {
    position: relative;
}

.auth-illustration-side {
    display: none;
}

@media (min-width: 992px) {
    .auth-layout-split {
        display: flex;
        max-width: 960px;
        margin: 0 auto;
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }

    .auth-layout-split .auth-illustration-side {
        display: flex;
        flex: 1;
        background: linear-gradient(160deg, var(--dark-green), var(--primary));
        align-items: center;
        justify-content: center;
        padding: 3rem;
        position: relative;
        overflow: hidden;
    }

    .auth-layout-split .auth-illustration-side::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: var(--islamic-pattern-star);
        background-size: 80px 80px;
        opacity: 0.06;
    }

    .auth-layout-split .auth-illustration-content {
        text-align: center;
        color: #fff;
        position: relative;
        z-index: 1;
    }

    .auth-layout-split .auth-illustration-content h2 {
        color: #fff;
        margin-bottom: 0.65rem;
    }

    .auth-layout-split .auth-illustration-content > p {
        color: rgba(255, 255, 255, 0.92);
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 0;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-layout-split .auth-illustration-content .arabic-text {
        color: var(--gold-light);
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .auth-layout-split .auth-card {
        max-width: none;
        flex: 1;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .auth-layout-split .auth-card-header {
        display: none;
    }
}

/* =====================================================
   24. CART PAGE
   ===================================================== */
.cart-table {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.cart-table .table {
    margin-bottom: 0;
}

.cart-table th {
    background: var(--light-bg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.cart-table td {
    padding: 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-info img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.cart-item-title a {
    color: inherit;
}

.cart-item-title a:hover {
    color: var(--primary);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-control button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: none;
}

.qty-control button:hover {
    background: var(--primary);
    color: var(--white);
}

.qty-control input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: transparent;
    -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: sticky;
    top: calc(var(--navbar-height) + 1rem);
}

/* Course detail enroll box */
.course-enroll-box {
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 122, 61, 0.12);
    box-shadow: 0 14px 40px rgba(10, 90, 44, 0.1);
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fcf7 100%);
}

.course-enroll-price {
    margin-bottom: 1.15rem;
}

.course-enroll-old {
    display: inline-block;
    margin-right: 0.5rem;
    text-decoration: line-through;
    color: #8a978a;
    font-size: 0.95rem;
    font-weight: 600;
}

.course-enroll-save {
    display: inline-flex;
    align-items: center;
    background: rgba(201, 162, 39, 0.16);
    color: #8a6d12;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    vertical-align: middle;
}

.course-enroll-current {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark-green, #0A5A2C);
    letter-spacing: -0.02em;
}

.course-enroll-note {
    margin: 0.35rem 0 0;
    color: #6a7a6a;
    font-size: 0.85rem;
    font-weight: 500;
}

.course-enroll-teacher {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid rgba(15, 122, 61, 0.1);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.course-enroll-teacher:hover {
    opacity: 0.9;
}

.course-enroll-teacher img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(15, 122, 61, 0.18);
}

.course-enroll-teacher small {
    display: block;
    font-size: 0.75rem;
    color: #7a8a7a;
    margin-bottom: 0.1rem;
}

.course-enroll-teacher strong {
    display: block;
    color: var(--dark-green);
    font-size: 0.98rem;
    font-weight: 700;
}

.course-enroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 55%, #0F7A3D 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18, 140, 126, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-enroll-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 140, 126, 0.35);
}

.course-enroll-btn > i {
    font-size: 1.55rem;
    line-height: 1;
}

.course-enroll-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.course-enroll-btn strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.course-enroll-btn small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.92;
}

.course-enroll-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.course-enroll-wish {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(15, 122, 61, 0.16);
    background: #fff;
    color: #5a6b5a;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-enroll-wish:hover,
.course-enroll-wish.active {
    color: #E74C3C;
    border-color: rgba(231, 76, 60, 0.35);
    background: #fff7f6;
}

.course-enroll-share {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.course-enroll-share .share-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

.course-enroll-perks {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(15, 122, 61, 0.1);
}

.course-enroll-perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: #4f5f4f;
    font-weight: 500;
    margin-bottom: 0.45rem;
}

.course-enroll-perks li:last-child {
    margin-bottom: 0;
}

.course-enroll-perks i {
    color: var(--primary);
    margin-top: 0.1rem;
}

.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-bg);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-summary-row.total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    border-top: 2px solid var(--border-light);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.cart-summary-row.total .amount {
    color: var(--primary);
}

.coupon-form {
    margin: 1.25rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.coupon-form .input-group {
    border-radius: var(--radius-full);
    overflow: hidden;
}

.coupon-form .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 122, 61, 0.06);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.cart-empty i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

/* =====================================================
   25. MISC COMPONENTS
   ===================================================== */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    height: 100%;
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 122, 61, 0.12);
    transform: translateY(-3px);
}

.feature-box-icon {
    width: 64px;
    height: 64px;
    background: rgba(15, 122, 61, 0.08);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.feature-box:hover .feature-box-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-box h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.875rem;
    margin: 0;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box .stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--dark-green));
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--islamic-pattern-star);
    background-size: 80px 80px;
    opacity: 0.05;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-banner .btn-gold {
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item .accordion-button {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 1.15rem 1.5rem;
    background: var(--white);
    box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(15, 122, 61, 0.04);
}

.faq-item .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.1);
}

.faq-item .accordion-body {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 90, 44, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.contact-info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    height: 100%;
    min-height: 180px;
    padding: 1.6rem 1.5rem 1.5rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fcf7 100%);
    border: 1px solid rgba(15, 122, 61, 0.12);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(10, 90, 44, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold, #C9A227));
    opacity: 0.85;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 122, 61, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

a.contact-info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 122, 61, 0.28);
    box-shadow: 0 16px 36px rgba(10, 90, 44, 0.14);
    color: inherit;
}

a.contact-info-card:hover .contact-info-icon {
    background: linear-gradient(135deg, var(--primary), var(--dark-green));
    color: #fff;
    transform: scale(1.06);
}

.contact-info-card-static {
    cursor: default;
}

.contact-info-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 122, 61, 0.1);
    color: var(--primary);
    font-size: 1.35rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    position: relative;
    z-index: 1;
}

.contact-info-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--dark-green, #0A5A2C);
    line-height: 1.35;
}

.contact-info-value {
    position: relative;
    z-index: 1;
    margin-top: 0.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--primary);
    word-break: break-word;
}

.contact-info-card-static .contact-info-value {
    color: #5a6b5a;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .contact-info-card {
        min-height: 0;
        padding: 1.35rem 1.25rem;
    }
}

.contact-form-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcf7 100%);
    border: 1px solid rgba(15, 122, 61, 0.12);
    border-radius: 20px;
    padding: 1.75rem 1.75rem 1.9rem;
    box-shadow: 0 12px 36px rgba(10, 90, 44, 0.08);
    height: 100%;
}

.contact-form-lead {
    color: #6a7a6a;
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
    max-width: 36rem;
}

.contact-form .form-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--dark-green, #0A5A2C);
    margin-bottom: 0.45rem;
}

.contact-form .form-label .req {
    color: #c0392b;
}

.contact-input-wrap {
    position: relative;
}

.contact-input-wrap > i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.contact-input-textarea > i {
    top: 1rem;
    transform: none;
}

.contact-form .contact-input-wrap .form-control {
    padding-left: 2.55rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 122, 61, 0.16);
    background: #fff;
    min-height: 48px;
    box-shadow: none;
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
    padding-top: 0.85rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 122, 61, 0.12);
}

.contact-submit-btn {
    margin-top: 0.35rem;
    border-radius: 12px !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 575.98px) {
    .contact-form-panel {
        padding: 1.35rem 1.15rem 1.5rem;
    }
}

.location-highlight {
    background: linear-gradient(135deg, rgba(15, 122, 61, 0.06), rgba(201, 162, 39, 0.08));
    border: 1px solid rgba(15, 122, 61, 0.12);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary), var(--dark-green));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--dark-green);
    font-weight: 600;
    font-size: 0.95rem;
}

.location-address i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.location-map {
    border: 1px solid rgba(15, 122, 61, 0.15);
    box-shadow: 0 10px 28px rgba(10, 90, 44, 0.08);
}

.about-location-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: rgba(15, 122, 61, 0.06);
    border-left: 4px solid var(--gold, #C9A227);
    border-radius: 12px;
}

.about-location-note > i {
    color: var(--primary);
    font-size: 1.35rem;
    margin-top: 0.15rem;
}

.about-location-note strong {
    display: block;
    color: var(--dark-green);
    font-size: 1rem;
}

.about-location-note span {
    display: block;
    color: #5a6b5a;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.footer-location {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.footer-location i {
    color: var(--gold, #C9A227);
    margin-right: 0.35rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--light-bg);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}

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

.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    position: sticky;
    top: calc(var(--navbar-height) + 1rem);
}

.filter-sidebar h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--light-bg);
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.alert-custom {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
}

.alert-success-custom {
    background: rgba(15, 122, 61, 0.08);
    color: var(--dark-green);
    border-left: 4px solid var(--primary);
}

.alert-error-custom {
    background: rgba(220, 53, 69, 0.08);
    color: #842029;
    border-left: 4px solid #DC3545;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.badge-green {
    background: rgba(15, 122, 61, 0.1);
    color: var(--primary);
}

.badge-gold {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-dark);
}

/* =====================================================
   26. TOAST STYLING
   ===================================================== */
#toastContainer .toast {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 320px;
    background: var(--white);
}

#toastContainer .toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem 0.25rem;
    background: transparent;
    font-weight: 700;
    font-size: 0.875rem;
}

#toastContainer .toast-body {
    padding: 0.25rem 1rem 0.85rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

#toastContainer .toast.toast-success {
    border-left: 4px solid var(--primary);
}

#toastContainer .toast.toast-success .toast-header {
    color: var(--primary);
}

#toastContainer .toast.toast-error,
#toastContainer .toast.toast-danger {
    border-left: 4px solid #DC3545;
}

#toastContainer .toast.toast-error .toast-header,
#toastContainer .toast.toast-danger .toast-header {
    color: #DC3545;
}

#toastContainer .toast.toast-warning {
    border-left: 4px solid var(--gold);
}

#toastContainer .toast.toast-warning .toast-header {
    color: var(--gold-dark);
}

#toastContainer .toast.toast-info {
    border-left: 4px solid #0DCAF0;
}

#toastContainer .toast.toast-info .toast-header {
    color: #055160;
}

#toastContainer .btn-close {
    font-size: 0.7rem;
    opacity: 0.5;
}

#toastContainer .btn-close:hover {
    opacity: 1;
}

/* =====================================================
   27. ANIMATIONS (AOS-FRIENDLY)
   ===================================================== */
[data-aos] {
    pointer-events: auto;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

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

.hover-lift {
    transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.img-lazy {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-lazy.loaded {
    opacity: 1;
}

/* Stagger children animation helper */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .marquee-track {
        animation: none;
    }

    .crescent-loader {
        animation: none;
    }
}

/* =====================================================
   28. RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Extra large desktops */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Match Bootstrap navbar-expand-xl (< 1200px = collapsed menu) */
@media (max-width: 1199.98px) {
    .main-navbar .primary-menu .nav-link {
        padding: 0.45rem 0.65rem;
        font-size: 0.85rem;
    }

    .hero-geometric-accent {
        display: none;
    }

    .main-navbar .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 0.75rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-light);
    }

    .main-navbar .primary-menu {
        margin-bottom: 0.75rem;
    }

    .main-navbar .primary-menu .nav-link.active::after {
        display: none;
    }

    .nav-actions {
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-light);
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .newsletter-box {
        padding: 1.75rem 1.35rem;
    }

    .newsletter-form .input-group {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .newsletter-form .input-group > .form-control {
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 auto;
        min-width: 0;
        border-radius: 999px !important;
    }

    .newsletter-form .input-group > .btn-gold {
        width: 100%;
        flex: 0 0 auto;
        border-radius: 999px !important;
        margin-left: 0 !important;
    }

    .newsletter-form .input-group > * {
        margin-left: 0 !important;
    }

    .cart-summary {
        position: static;
        margin-top: 1.5rem;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}

/* Mobile landscape / large phones */
@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.75rem;
    }

    .top-bar-left span {
        display: none;
    }

    .top-bar .social-links {
        display: none;
    }

    .top-bar-right {
        justify-content: flex-end !important;
    }

    .hero-slider .carousel-item {
        min-height: 380px;
    }

    .hero-content {
        padding: 2rem 0;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .islamic-content-box {
        padding: 1.75rem 1.25rem;
    }

    .dua-card-arabic {
        font-size: 1.2rem;
    }

    .page-header {
        padding: 2.5rem 0;
    }

    .cta-banner {
        padding: 2rem 1.5rem;
    }

    .auth-card-body {
        padding: 1.5rem;
    }

    .cart-table {
        overflow-x: auto;
    }

    .cart-item-info img {
        width: 60px;
        height: 42px;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 5rem;
        right: 1rem;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }

    #toastContainer .toast {
        min-width: auto;
        max-width: calc(100vw - 2rem);
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .logo-text strong {
        font-size: 1rem;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .marquee-content {
        font-size: 0.95rem;
        padding: 0.15rem 2rem 0.3rem;
    }

    .marquee-vip-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.65rem;
        top: 0.3rem;
    }

    .islamic-marquee-vip {
        padding: 1.5rem 0 0.9rem;
    }

    .course-card-body,
    .course-body,
    .blog-card-body {
        padding: 1.15rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .teacher-card-photo img {
        width: 110px;
        height: 110px;
    }

    .stat-box .stat-number {
        font-size: 2rem;
    }

    .footer-bottom .col-md-6 {
        text-align: center !important;
    }

    .footer-bottom .col-md-6 + .col-md-6 {
        margin-top: 0.5rem;
    }

    .pagination-custom .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .page-header h1 {
        font-size: 1.65rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .dual-cta-content h2 {
        font-size: 1.25rem;
    }

    .cart-table .table th,
    .cart-table .table td {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .auth-card {
        margin: 0 0.25rem;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .main-navbar,
    .islamic-marquee,
    .floating-whatsapp,
    .back-to-top,
    .newsletter-section,
    .site-footer,
    .loading-screen,
    #toastContainer {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .course-card,
    .blog-card,
    .teacher-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* =====================================================
   COMPATIBILITY ALIASES (PHP markup ? CSS components)
   ===================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item {
    min-height: clamp(420px, 65vh, 680px);
    position: relative;
}

.hero-section .carousel-indicators {
    bottom: 2rem;
    margin-bottom: 0;
    gap: 0.5rem;
}

.hero-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    opacity: 1;
}

.hero-section .carousel-indicators .active {
    background: var(--gold);
    border-color: var(--gold);
    width: 28px;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
}

.hero-section .carousel-control-prev { left: 1.5rem; }
.hero-section .carousel-control-next { right: 1.5rem; }

.hero-overlay,
.hero-pattern {
    display: none; /* overlay handled by .hero-slide::before/::after */
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold-light, #e8c84a);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Course card markup aliases */
.course-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--light-bg, #F7FCF7);
}

.course-thumb > a {
    display: block;
    width: 100%;
    height: 100%;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.course-cat-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    z-index: 2;
}

.course-sale-badge {
    position: absolute;
    top: 1rem;
    left: auto;
    right: 3.5rem;
    background: var(--gold);
    color: var(--dark-green);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    z-index: 2;
}

.course-sale-badge--solo {
    right: 1rem;
}

.course-detail-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    aspect-ratio: 16 / 9;
    background: var(--light-bg, #F7FCF7);
}

.course-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-body {
    padding: 1.25rem 1.35rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.course-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.course-title a {
    color: var(--text-dark, #1a1a1a);
    text-decoration: none;
}

.course-title a:hover {
    color: var(--primary);
}

.course-teacher,
.course-info {
    font-size: 0.85rem;
    color: var(--text-light, #6b7280);
    margin-bottom: 0.5rem;
}

.course-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light, #e8efe8);
    min-width: 0;
}

.course-footer .course-price {
    min-width: 0;
    flex: 1 1 auto;
}

.course-footer .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.course-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
}

.price-current {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.15rem;
}

.stat-card {
    background: var(--white);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light, #e8efe8);
    height: 100%;
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.stat-card p {
    margin: 0;
    color: var(--text-light, #5f6b5f);
    font-weight: 600;
    font-size: 0.9rem;
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--light-bg); }

/* Dual CTA banners (from live site layout, green theme) */
.dual-cta-section {
    padding-top: 1rem;
    padding-bottom: 4rem;
}
.dual-cta-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 240px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #0A5A2C 0%, #0F7A3D 55%, #14944A 100%);
    box-shadow: 0 14px 40px rgba(10, 90, 44, 0.22);
    height: 100%;
}
.dual-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.18), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}
.dual-cta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/patterns/geometric.svg');
    background-size: 140px;
    opacity: 0.07;
    pointer-events: none;
}
.dual-cta-content {
    position: relative;
    z-index: 2;
    flex: 1 1 55%;
    padding: 2rem 1.25rem 2rem 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dual-cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #C9A227;
    font-size: 1.25rem;
}
.dual-cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.dual-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
}
.btn-dual-cta {
    align-self: flex-start;
    background: #fff;
    color: #0A5A2C;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-dual-cta:hover {
    background: #C9A227;
    color: #0A5A2C;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.dual-cta-visual {
    position: relative;
    z-index: 2;
    flex: 0 0 42%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem 0 0;
}
.dual-cta-visual img {
    max-height: 230px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}
@media (max-width: 575.98px) {
    .dual-cta-card {
        flex-direction: column;
        min-height: auto;
    }
    .dual-cta-content {
        padding: 1.75rem 1.5rem 0.75rem;
    }
    .dual-cta-visual {
        justify-content: center;
        padding: 0 1rem 0.5rem;
    }
    .dual-cta-visual img {
        max-height: 180px;
    }
}

.section-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.section-badge.light { color: var(--gold); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.75rem;
}
.section-subtitle, .section-lead {
    color: var(--text-light, #5f6b5f);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.section-header { margin-bottom: 2.5rem; }
.welcome-point {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    font-weight: 600;
}
.welcome-point i { color: var(--primary); }
.feature-card, .process-card, .testimonial-card {
    background: var(--white);
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light, #e8efe8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover, .process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover, 0 12px 30px rgba(15,122,61,0.12));
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(15, 122, 61, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.category-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    background: var(--white);
    border: 1px solid var(--border-light, #e8efe8);
    border-radius: 14px;
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 600;
    transition: all 0.25s ease;
    height: 100%;
}
.category-chip:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.category-chip i { font-size: 1.25rem; }
.teacher-photo {
    text-align: center;
    padding: 1.5rem 1.5rem 0.5rem;
    margin-bottom: 0;
}
.teacher-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--gold);
    box-shadow: 0 6px 18px rgba(15, 122, 61, 0.15);
    margin: 0 auto;
    display: block;
    background: #E8F5EC;
}
.teacher-body {
    text-align: center;
    padding: 0.75rem 1.25rem 1.5rem;
}
.teacher-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.teacher-body h3 a {
    color: var(--dark-green);
    text-decoration: none;
}
.teacher-body h3 a:hover {
    color: var(--primary);
}
.teacher-spec {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}
.teacher-exp {
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
    margin: 0;
}
.teacher-exp i {
    margin-right: 0.25rem;
    color: var(--gold);
}
.teachers-section .teacher-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}
.process-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.islamic-banner {
    background: linear-gradient(135deg, var(--dark-green), var(--primary));
    color: var(--white);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.islamic-banner .arabic-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    direction: rtl;
    margin: 1rem auto;
    color: var(--gold);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.islamic-banner .translation {
    opacity: 0.92;
    max-width: min(700px, 100%);
    margin: 0 auto 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.islamic-banner cite { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.ayah-box {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light, #e8efe8);
}
.ayah-label {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.65rem;
    direction: rtl;
    line-height: 1.9;
    color: var(--dark-green);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.ayah-translation { color: var(--text-light, #5f6b5f); margin: 0.75rem 0; }

/* Islamic text AR/EN/UR toggle — overflow-safe for long duas/hadith/ayah */
.islamic-text-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.islamic-text-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: inherit;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.islamic-text-arabic,
.islamic-text-block .arabic-text {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Cards / boxes: cap height so long text scrolls instead of breaking layout */
.dua-card .islamic-text-arabic,
.dua-card .islamic-text-block .arabic-text,
.ayah-box .islamic-text-arabic,
.ayah-box .islamic-text-block .arabic-text,
.islamic-content-box .islamic-text-arabic,
.islamic-content-box .islamic-text-block .arabic-text {
    max-height: 11em;
}

.islamic-banner .islamic-text-arabic,
.islamic-banner .islamic-text-block .arabic-text {
    max-height: 9em;
    margin-left: auto;
    margin-right: auto;
}

.footer-ayah .islamic-text-arabic,
.footer-ayah .islamic-text-block .arabic-text {
    max-height: 7.5em;
    font-size: 1.15rem;
}

.islamic-lang-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0 0.65rem;
    padding: 0.2rem;
    background: rgba(15, 122, 61, 0.08);
    border-radius: 999px;
    max-width: 100%;
}

.islamic-banner .islamic-lang-tabs,
.islamic-content-box .islamic-lang-tabs {
    background: rgba(255, 255, 255, 0.14);
}

.islamic-lang-btn {
    border: none;
    background: transparent;
    color: var(--dark-green, #0A5A2C);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    line-height: 1.2;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.islamic-banner .islamic-lang-btn,
.islamic-content-box .islamic-lang-btn {
    color: rgba(255, 255, 255, 0.85);
}

.islamic-lang-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.islamic-lang-btn.active {
    background: var(--gold, #C9A227);
    color: #0A5A2C;
}

.islamic-translations {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.islamic-translation {
    display: none;
    margin: 0 0 0.5rem;
    line-height: 1.7;
    color: var(--text-muted, #5A6B5E);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 9em;
    scrollbar-width: thin;
}

.islamic-translation.is-active {
    display: block;
}

.islamic-translation.islamic-tr-ur {
    font-family: 'Amiri', 'Noto Nastaliq Urdu', serif;
    font-size: 1.05rem;
    line-height: 1.9;
}

.islamic-banner .islamic-translation,
.islamic-content-box .islamic-translation {
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    max-height: 7.5em;
}

.footer-ayah .islamic-translation {
    max-height: 6em;
    font-size: 0.88rem;
}

.islamic-text-block cite,
.islamic-reference {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ayah-box,
.islamic-banner {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.islamic-banner .arabic-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    direction: rtl;
    margin: 1rem auto;
    color: var(--gold);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.ayah-box {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light, #e8efe8);
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.65rem;
    direction: rtl;
    line-height: 1.9;
    color: var(--dark-green);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .dua-card .islamic-text-arabic,
    .dua-card .islamic-text-block .arabic-text,
    .islamic-content-box .islamic-text-arabic,
    .ayah-box .islamic-text-arabic {
        max-height: 9em;
        font-size: 1.2rem;
    }

    .islamic-banner .islamic-text-arabic,
    .islamic-banner .arabic-text {
        max-height: 8em;
        font-size: 1.25rem;
    }

    .islamic-translation {
        max-height: 8em;
        font-size: 0.92rem;
    }
}

.islamic-tr-ur {
    font-family: 'Amiri', serif;
    font-size: 1.05rem;
}
.islamic-banner .islamic-translation,
.islamic-content-box .islamic-translation {
    color: rgba(255, 255, 255, 0.9);
}
.islamic-reference,
.islamic-text-block cite {
    display: block;
    font-size: 0.85rem;
    color: var(--gold, #C9A227);
    font-style: normal;
    margin-top: 0.35rem;
}
.footer-ayah .islamic-lang-tabs {
    background: rgba(255, 255, 255, 0.1);
}
.footer-ayah .islamic-lang-btn {
    color: rgba(255, 255, 255, 0.85);
}
.footer-ayah .islamic-translation {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}
.dua-card .islamic-lang-tabs {
    margin-top: 0.5rem;
}

.islamic-crosslink {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem;
}

.islamic-crosslink .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.testimonial-text { font-style: italic; margin: 1rem 0; color: var(--text-dark, #333); }
.testimonial-author strong { display: block; color: var(--dark-green); }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted, #888); }
.blog-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E8F5EC;
    margin: 0;
    border-radius: 0;
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    margin: 0;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}
.blog-body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-cat {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.blog-body h3 { font-size: 1.15rem; margin: 0.5rem 0; line-height: 1.35; }
.blog-body h3 a { color: var(--dark-green); text-decoration: none; }
.blog-body h3 a:hover { color: var(--primary); }
.blog-body p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}
.read-more { color: var(--primary); font-weight: 700; text-decoration: none; }
.read-more:hover { color: var(--dark-green); }
.gallery-preview .gallery-thumb {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #E8F5EC;
    box-shadow: var(--shadow-sm);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}
.gallery-thumb:hover img {
    transform: scale(1.06);
}
.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(10, 90, 44, 0.88));
    color: #fff;
    padding: 2rem 1rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
}
.yit-accordion .accordion-item {
    border: 1px solid var(--border-light, #e8efe8);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.yit-accordion .accordion-button {
    gap: 0.75rem;
    align-items: center;
}
.yit-accordion .accordion-button:not(.collapsed) {
    background: rgba(15, 122, 61, 0.08);
    color: var(--dark-green);
    box-shadow: none;
}
.yit-accordion .curriculum-item-title {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0.5rem;
    text-align: start;
}
.yit-accordion .curriculum-duration {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0.35rem;
    background: #eef5ef;
    color: var(--dark-green, #0A5A2C);
    border: 1px solid rgba(15, 122, 61, 0.12);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    white-space: nowrap;
    line-height: 1.2;
}
.yit-accordion .accordion-button:not(.collapsed) .curriculum-duration {
    background: rgba(255, 255, 255, 0.75);
}
@media (max-width: 575.98px) {
    .yit-accordion .accordion-button {
        flex-wrap: wrap;
        padding-right: 2.75rem;
    }
    .yit-accordion .curriculum-duration {
        order: 3;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.25rem;
    }
}
.cta-section { padding: 0 0 4rem; }
.cta-box {
    background: linear-gradient(135deg, var(--dark-green), var(--primary));
    color: var(--white);
    border-radius: 24px;
    padding: 3.5rem 2rem;
}
.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.stars { color: var(--gold); }
.stars i { margin-right: 1px; }

/* =====================================================
   HERO SPLIT LAYOUT (half content + half image)
   ===================================================== */
.hero-split-section {
    position: relative;
    overflow: hidden;
    background: var(--dark-green, #0A5A2C);
}

.hero-split-section .carousel,
.hero-split-section .carousel-inner,
.hero-split-section .carousel-item {
    height: 100%;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(420px, 68vh, 620px);
}

.hero-split-content {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #074527 0%, #0A5A2C 45%, #0F7A3D 100%);
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 5rem);
    overflow: hidden;
}

.hero-split-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/patterns/geometric.svg');
    background-size: 120px;
    opacity: 0.07;
    pointer-events: none;
}

.hero-split-inner {
    position: relative;
    z-index: 2;
    max-width: 540px;
    color: #fff;
}

.hero-split-section .hero-eyebrow {
    display: inline-block;
    background: rgba(201, 162, 39, 0.18);
    color: #E8C84A;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    margin-bottom: 1.1rem;
}

.hero-split-section .hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    margin-bottom: 1rem;
}

.hero-split-section .hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 46ch;
}

.hero-split-section .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-split-media {
    position: relative;
    background: #0A5A2C;
    overflow: hidden;
}

.hero-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-height: clamp(420px, 68vh, 620px);
    transition: transform 6s ease;
}

.carousel-item.active .hero-split-img {
    transform: scale(1.04);
}

.hero-split-media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 90, 44, 0.35) 0%, transparent 35%);
    pointer-events: none;
}

.hero-split-section .carousel-control-prev,
.hero-split-section .carousel-control-next {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    backdrop-filter: blur(4px);
}

.hero-split-section .carousel-control-prev { left: 1rem; }
.hero-split-section .carousel-control-next { right: 1rem; }

.hero-split-indicators {
    bottom: 1.25rem;
    margin-bottom: 0;
    gap: 0.45rem;
    z-index: 5;
}

.hero-split-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    opacity: 1;
}

.hero-split-indicators .active {
    background: var(--gold, #C9A227);
    border-color: var(--gold, #C9A227);
    width: 28px;
}

@media (max-width: 991.98px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-split-content {
        order: 1;
        padding: 2.5rem 1.5rem 2rem;
    }

    .hero-split-media {
        order: 2;
        min-height: 280px;
    }

    .hero-split-img {
        min-height: 280px;
        max-height: 360px;
    }

    .hero-split-media-shade {
        background: linear-gradient(0deg, rgba(10, 90, 44, 0.25) 0%, transparent 40%);
    }

    .hero-split-section .carousel-control-prev,
    .hero-split-section .carousel-control-next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .hero-split-section .carousel-control-prev { left: calc(50% - 60px); }
    .hero-split-section .carousel-control-next { right: calc(50% - 60px); left: auto; }
}

/* =====================================================
   RTL / MOBILE — prevent left white-gap overflow
   ===================================================== */
html[dir="rtl"],
html[dir="rtl"] body {
    overflow-x: hidden;
    max-width: 100%;
}

html[dir="rtl"] .top-bar,
html[dir="rtl"] .main-navbar,
html[dir="rtl"] .islamic-marquee,
html[dir="rtl"] .hero-section,
html[dir="rtl"] .hero-slider,
html[dir="rtl"] main,
html[dir="rtl"] .section,
html[dir="rtl"] .site-footer {
    max-width: 100%;
    overflow-x: clip;
}

html[dir="rtl"] .container,
html[dir="rtl"] .container-fluid {
    max-width: 100%;
}

html[dir="rtl"] .row {
    max-width: 100%;
}

html[dir="rtl"] .row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

/* Soften leftover horizontal AOS transforms if any remain */
@media (max-width: 991.98px) {
    html[dir="rtl"] [data-aos="fade-left"],
    html[dir="rtl"] [data-aos="fade-right"],
    html[dir="ltr"] [data-aos="fade-left"],
    html[dir="ltr"] [data-aos="fade-right"] {
        transform: translate3d(0, 20px, 0) !important;
    }
    html[dir="rtl"] [data-aos="fade-left"].aos-animate,
    html[dir="rtl"] [data-aos="fade-right"].aos-animate,
    html[dir="ltr"] [data-aos="fade-left"].aos-animate,
    html[dir="ltr"] [data-aos="fade-right"].aos-animate {
        transform: translate3d(0, 0, 0) !important;
    }
}
