:root {
    --islamic-green: #1B4D3E;
    --forest-green: #2C5F2D;
    --sage-green: #3A7D44;
    --gold-accent: #D4AF37;
    --cream-bg: #FAF8F3;
    --white: #FFFFFF;
    --charcoal: #2C2C2C;
    --primary: var(--islamic-green);
    --secondary: var(--forest-green);
    --accent: var(--gold-accent);
    --text-primary: var(--charcoal);
    --text-light: #666666;
    --bg-light: var(--cream-bg);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3.5rem;
    --font-arabic: 'Amiri', serif;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --hero-bg: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/hero-bg.webp);
    --section-bg: var(--cream-bg);
    --card-bg: var(--white);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --toast-success: #28a745;
    --toast-error: #dc3545
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8f5f0 !important
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-accent), var(--primary), var(--sage-green));
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5)
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: #f8f5f0;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1)
}

.image-zoom-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative
}

.image-zoom-wrapper img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1)
}

.image-zoom-wrapper:hover img {
    transform: scale(1.1)
}

/* Enhanced Link Hover Effects */
a:not(.btn):not(.nav-menu a):not(.footer-links a) {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal)
}

a:not(.btn):not(.nav-menu a):not(.footer-links a)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-accent), var(--primary));
    transition: width 0.3s cubic-bezier(0.23, 1, 0.320, 1)
}

a:not(.btn):not(.nav-menu a):not(.footer-links a):hover::after {
    width: 100%
}

a:not(.btn):not(.nav-menu a):not(.footer-links a):hover {
    color: var(--primary)
}

ul {
    list-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm)
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary)
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--secondary)
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--sage-green)
}

h4 {
    font-size: 1.5rem
}

h5 {
    font-size: 1.25rem
}

h6 {
    font-size: 1.125rem
}

p {
    margin-bottom: var(--spacing-sm)
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8
}

/* Page Container Structure */
#page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
    padding: 0;
    margin: 0
}

#et-main-area {
    flex: 1 0 auto;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm)
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1000px
}

/* Full Width Sections */
.full-width-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all var(--transition-normal)
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12)
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem; /* Increased vertical padding to prevent logo clipping */
    display: flex;
    justify-content: space-between;
    align-items: center
}

.nav-logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.logo-arabic {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--gold-accent);
    font-weight: 700
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.25rem
}

.logo-img {
    height: 55px; /* Slightly reduced height for better fit */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    opacity: 1;
    visibility: visible;
    max-height: 55px; /* Prevent stretching */
    object-fit: contain
}

.logo-img:hover {
    transform: scale(1.05)
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem
}

.footer-logo-img {
    height: 70px;
    /* increased from 80px was too large */
    width: auto;
    filter: none;
    /* removed brightness filter */
    transition: transform 0.3s ease;
    display: block;
    opacity: 1;
    visibility: visible;
    object-fit: contain
}

.footer-logo-img:hover {
    transform: scale(1.05)
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important
}

.nav-menu li {
    position: relative;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0
}

.nav-menu li::before {
    content: none !important;
    display: none !important
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
    display: block;
    position: relative
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: var(--transition-normal)
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%
}

.nav-menu a:hover {
    color: var(--primary)
}

.dropdown {
    position: relative
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: var(--transition-fast)
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg)
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    list-style: none !important;
    margin: 0 !important
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.dropdown-menu li {
    padding: 0;
    list-style: none !important
}

.dropdown-menu li::before {
    content: none !important;
    display: none !important
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--text-primary)
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary)
}

.dropdown-menu a::after {
    display: none
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px
}

.nav-donate-btn {
    background: var(--gold-accent);
    color: var(--white) !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    opacity: 1
}

.nav-donate-btn:hover {
    background: #C4A030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5)
}

.nav-donate-btn::after {
    display: none
}

/* Hero Section - True 100vw breakout matching header */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--forest-green) 50%, var(--sage-green) 100%);
    overflow: hidden;
    padding-top: 130px;
    padding-bottom: var(--spacing-xl);
    padding-left: 0;
    padding-right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%)
}

/* Compact hero for inner/sub-pages (donate, about, campus, etc.) */
.hero.hero-inner {
    min-height: 40vh;
    padding-top: 100px;
    padding-bottom: var(--spacing-lg)
}

.hero.hero-inner .hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 0.5rem
}

.hero.hero-inner .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95); /* More solid white for better contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow for legibility */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(58, 125, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg)
    }

    33% {
        transform: translateY(-30px) translateX(20px) rotate(5deg)
    }

    66% {
        transform: translateY(20px) translateX(-20px) rotate(-5deg)
    }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .03) 35px, rgba(255, 255, 255, .03) 70px), repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 255, 255, .03) 35px, rgba(255, 255, 255, .03) 70px);
    background-size: 70px 70px;
    background-position: 0 0;
    opacity: 0.5;
    pointer-events: none
}

@keyframes patternMove {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 70px 70px
    }
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
    position: relative
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.bismillah {
    font-family: var(--font-arabic);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-accent);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3)
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3)
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.6s both
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    animation: fadeInUp 1s ease 0.8s both
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    animation: fadeInUp 1s ease 1s both
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1.2s both;
    position: relative;
    z-index: 15
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    animation: fadeIn 1s ease 1.5s both;
    cursor: pointer;
    transition: all 0.3s ease
}

.hero-scroll:hover {
    color: var(--gold-accent);
    transform: translateX(-50%) translateY(-5px)
}

.scroll-indicator {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3)
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, var(--gold-accent), rgba(212, 175, 55, 0.5));
    animation: scrollDown 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px var(--gold-accent)
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%)
    }

    100% {
        transform: translateY(300%)
    }
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    opacity: 1;
    /* always visible */
    visibility: visible;
    /* always visible */
    position: relative;
    z-index: 10
        /* ensure above other elements */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--forest-green));
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    visibility: visible
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(27, 77, 62, 0.3)
}

.btn-primary:hover::before {
    left: 100%
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3)
}

.btn-secondary:hover::before {
    width: 300px;
    width: 300px;
    height: 300px
}

/* Fix visibility/contrast of secondary buttons on light backgrounds (like program cards) */
.program-card .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.program-card .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-tertiary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    opacity: 1;
    visibility: visible
}

.btn-tertiary:hover {
    background: var(--primary);
    color: var(--white)
}

/* Ensure program card buttons are visible */
.program-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    /* push to bottom */
    padding-top: 1rem;
    opacity: 1;
    visibility: visible;
    z-index: 15
}

.program-buttons .btn {
    width: 100%;
    opacity: 1;
    visibility: visible
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem
}

.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #27ae60;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2)
    }
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    margin: 1.5rem auto 1.5rem; /* Increased margin for better spacing */
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite
}

@keyframes underlineGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3)
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4)
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg)
}

.section-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--cream-bg) 25%, transparent 25%, transparent 75%, var(--cream-bg) 75%), linear-gradient(45deg, var(--cream-bg) 25%, transparent 25%, transparent 75%, var(--cream-bg) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
    border-radius: 50%
}

.welcome {
    background: var(--bg-light);
    position: relative
}

.welcome-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: start
}

.welcome-text {
    animation: fadeIn 1s ease
}

.hadith-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border-left: 4px solid var(--gold-accent);
    animation: slideInRight 1s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease
}

.hadith-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease
}

.hadith-box:hover::before {
    left: 100%
}

.hadith-box:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
    border-left-width: 6px
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.hadith-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hadith-icon svg {
    width: 40px;
    height: 40px;
    color: var(--gold-accent);
}

.hadith-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.8
}

.hadith-source {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: right
}

.programs {
    background: var(--white)
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    perspective: 1000px
}

.program-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: box-shadow 0.6s cubic-bezier(0.23, 1, 0.320, 1),
        border-color 0.6s cubic-bezier(0.23, 1, 0.320, 1),
        transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    transform-style: preserve-3d;
    min-height: 520px;
    display: flex;
    flex-direction: column
}

.program-card-inner {
    position: relative;
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d
}

.program-card.flipped .program-card-inner {
    transform: rotateY(180deg)
}

.program-card-front,
.program-card-back {
    grid-area: 1/1;
    width: 100%;
    min-height: 520px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.program-card-front {
    position: relative;
    z-index: 2;
}

.program-card-back {
    position: relative;
    transform: rotateY(180deg);
}

.program-card-front {
    background: transparent;
    justify-content: space-between
        /* spread content evenly */
}

.program-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--forest-green) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem
        /* more padding for back */
}

.program-card-back h4 {
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem
}

.program-card-back p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem
}

.flip-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(27, 77, 62, 0.2);
    /* Increased breadth/contrast */
    border: 1.5px solid rgba(27, 77, 62, 0.4);
    /* Increased contrast */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s ease;
    z-index: 10;
    padding: 0;
    opacity: 1;
    /* Explicitly visible */
    visibility: visible;
}

/* SVG arrow-cycle icon أ¢â‚¬â€‌ site-colored, no emoji */
.flip-icon::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6'/%3E%3Cpath d='M1 20v-6h6'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6'/%3E%3Cpath d='M1 20v-6h6'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: background-color 0.3s ease, transform 0.5s ease
}

.flip-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1)
}

.flip-icon:hover::before {
    background-color: var(--white);
    transform: rotate(180deg)
}

/* Back face flip button is gold */
.program-card-back .flip-icon {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4)
}

.program-card-back .flip-icon::before {
    background-color: var(--gold-accent)
}

.program-card-back .flip-icon:hover {
    background: var(--gold-accent);
    border-color: var(--gold-accent)
}

.program-card-back .flip-icon:hover::before {
    background-color: var(--white)
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), var(--primary), var(--gold-accent));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: opacity var(--transition-normal)
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(27, 77, 62, 0.1));
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1
}



.program-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 60px rgba(27, 77, 62, 0.2), 0 0 0 1px rgba(212, 175, 55, 0.3)
}

.program-card:hover::before {
    opacity: 1
}

.program-card:hover::after {
    opacity: 1
}

.program-card.featured {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(212, 175, 55, 0.05))
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--gold-accent), #F4D03F);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    animation: badgePulse 2s ease-in-out infinite
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4)
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6)
    }
}

.program-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--forest-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1)
}

.program-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease
}

.program-card:hover .program-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.3)
}

.program-card:hover .program-icon::before {
    animation: shimmer 1.5s infinite
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg)
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg)
    }
}

.program-icon svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1
}

.program-title {
    color: var(--primary);
    margin-bottom: 0.5rem
}

.program-title-arabic {
    font-family: var(--font-arabic);
    color: var(--gold-accent);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm)
}

.program-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7
}

.program-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md)
}

.feature-tag {
    background: rgba(27, 77, 62, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(27, 77, 62, 0.2);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    display: inline-block
}

.feature-tag:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-accent);
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3)
}

.program-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap
}

.program-buttons .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1.25rem; /* Increased padding */
    font-size: 0.9rem; /* Slightly larger text */
    font-weight: 600;
}

.btn-outline {
    border: 2px solid var(--primary); /* Maintain consistency with primary color */
    color: var(--primary);
    background: rgba(27, 77, 62, 0.05); /* Very subtle background for better contrast */
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.stats {
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden
}

.stats .section-title {
    color: var(--white) !important;
}

.stats-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .05) 35px, rgba(255, 255, 255, .05) 70px);
    opacity: 0.5
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 10
}

/* Standardized Info Cards for Statistics and Logistics */
.stats-grid .card {
    display: grid !important;
    grid-template-rows: auto 1fr auto;
    gap: 1.25rem;
    height: 100%;
    min-height: fit-content;
    padding: var(--spacing-lg);
    background: rgba(30, 61, 48, 0.4);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-grid .card h3,
.stats-grid .card p,
.stats-grid .card li {
    color: var(--white) !important;
}

.stats-grid .card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-accent);
    background: rgba(30, 61, 48, 0.6);
    box-shadow: var(--shadow-lg);
}

.stat-item {
    text-align: center
}


.stat-item:nth-child(4) {
    animation-delay: 0.4s
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-accent), #F4D03F, var(--gold-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    animation: gradientShift 3s ease infinite;
    transition: all 0.4s ease
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5)
}

.stat-number::after {
    content: '+';
    font-size: 0.6em;
    margin-left: 0.1em
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9)
}

.testimonials {
    background: var(--bg-light);
    position: relative;
    overflow: hidden
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    perspective: 1000px;
    position: relative
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    gap: var(--spacing-md)
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem
}

.slider-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1)
}

.slider-btn:hover {
    background: var(--gold-accent);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3)
}

.slider-btn:active {
    transform: scale(0.95)
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(27, 77, 62, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease
}

.slider-dot.active {
    background: var(--gold-accent);
    width: 30px;
    border-radius: 5px
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0)
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0)
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0)
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1)
}

/* Staggered animations */
.stagger-delay-1 {
    transition-delay: 0.1s
}

.stagger-delay-2 {
    transition-delay: 0.2s
}

.stagger-delay-3 {
    transition-delay: 0.3s
}

.stagger-delay-4 {
    transition-delay: 0.4s
}

.stagger-delay-5 {
    transition-delay: 0.5s
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(27, 77, 62, 0.05));
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s
}

.testimonial-card:hover {
    transform: translateY(-10px) rotateY(5deg) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(27, 77, 62, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.2)
}

.testimonial-card:hover::before {
    opacity: 1
}

.quote-icon {
    font-size: 3rem;
    color: var(--gold-accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
    transition: all 0.4s ease
}

.testimonial-card:hover .quote-icon {
    opacity: 0.6;
    transform: scale(1.1) rotate(-5deg)
}

.testimonial-text {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--bg-light)
}

.testimonial-author strong {
    color: var(--primary)
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-light)
}

.cta {
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%23ffffff' fill-opacity='0.05'%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");
    opacity: 0.3;
    animation: patternSlide 20s linear infinite
}

@keyframes patternSlide {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(60px, 60px)
    }
}

.cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: rotateGradient 15s linear infinite
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm)
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10
}

.cta-buttons .btn-secondary {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.3);
    opacity: 1
}

/* Footer - True 100vw breakout matching header */
#main-footer,
.footer {
    display: block;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #f8f5f0;
    color: var(--text-primary);
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    flex-shrink: 0
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold-accent), var(--primary))
}

.footer a {
    color: #4a5568;
    transition: color 0.3s ease
}

.footer a:hover {
    color: var(--gold-accent)
}

.footer-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #6b7280
}

.footer-brand p {
    color: #4a5568 !important
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg)
}



.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
    list-style: none !important
}

.footer-links li::before,
.footer-contact li::before {
    content: none !important;
    display: none !important
}

.footer-links li {
    margin-bottom: 0.85rem; /* Increased link spacing */
}

.footer-links a {
    color: #4a5568;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-accent);
    padding-left: 5px; /* Subtle hover slide */
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: width var(--transition-fast)
}

.footer-links a:hover::before {
    width: 8px
}

.footer-contact li {
    color: #4a5568
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold-accent);
    padding-left: 5px
}

.social-links {
    display: flex;
    gap: 1rem
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(27, 77, 62, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal)
}

.social-link svg {
    width: 20px;
    height: 20px
}

.social-link:hover {
    background: var(--gold-accent);
    color: var(--white);
    transform: translateY(-3px)
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
    align-items: stretch
        /* ensure equal height */
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    /* increased padding for better proportion */
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-primary);
    min-width: 0
        /* allow flex shrink */
}

.newsletter-form button {
    padding: 0.875rem 1.75rem;
    /* increased padding to match input height */
    font-size: 0.875rem;
    white-space: nowrap;
    /* prevent text wrapping */
    flex-shrink: 0
        /* don't let button shrink */
}

.footer-newsletter-text {
    color: #4a5568;
    font-size: 0.9rem
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem
}

.footer-bottom-links a {
    color: #4a5568;
    font-size: 0.9rem
}

.footer-bottom-links a:hover {
    color: var(--gold-accent)
}

.footer-tagline {
    color: #6b7280;
    margin-top: 1rem;
    font-size: 0.9rem
}

/* Value Cards */
.value-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold-accent);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(27, 77, 62, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease
}

.value-card:hover {
    transform: translateX(15px) translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 50px rgba(27, 77, 62, 0.2);
    border-left-color: var(--primary);
    border-left-width: 6px
}

.value-card:hover::before {
    opacity: 1
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm)
}

.value-title {
    color: var(--primary);
    margin-bottom: 0.5rem
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0)
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0)
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0)
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1)
}

.stagger-children>*:nth-child(1) {
    transition-delay: 0.05s
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.1s
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.15s
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.2s
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.25s
}

.stagger-children>*:nth-child(6) {
    transition-delay: 0.3s
}

.stagger-children>*:nth-child(7) {
    transition-delay: 0.35s
}

.stagger-children>*:nth-child(8) {
    transition-delay: 0.4s
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center
}

.about-image {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md)
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md)
}

.faculty-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal)
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md)
}

.faculty-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--forest-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 5rem
}

.faculty-info {
    padding: var(--spacing-md)
}

.faculty-name {
    color: var(--primary);
    margin-bottom: 0.5rem
}

.faculty-title {
    color: var(--gold-accent);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600
}

.timeline {
    position: relative;
    padding: var(--spacing-md) 0
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gold-accent)
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    position: relative
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm)
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-accent);
    font-family: var(--font-display)
}

.campus-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm)
}

.campus-feature {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition-normal)
}

.campus-feature:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm)
}

.campus-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg)
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md)
}

.form-group {
    margin-bottom: var(--spacing-md)
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary)
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-normal)
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary)
}

.form-group textarea {
    min-height: 150px;
    resize: vertical
}

.contact-info-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md)
}

.contact-info-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm)
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.map-container {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center
}

/* FAQ Section */
.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: var(--gold-accent)
}

.faq-question {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.faq-answer {
    color: var(--text-primary);
    line-height: 1.8;
    display: none
}

.faq-item.active .faq-answer {
    display: block
}

.faq-toggle {
    color: var(--gold-accent);
    font-size: 1.5rem;
    font-weight: bold
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    border-top: 5px solid var(--primary);
    height: 100%;
    position: relative;
    overflow: hidden
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(27, 77, 62, 0.15);
    border-top-width: 8px
}

.service-card:hover::before {
    opacity: 1
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gold-accent);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.4))
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md)
}

/* Sitemap */
.sitemap-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1)
}

.sitemap-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-accent)
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem
}

.sitemap-links a {
    color: var(--text-primary);
    padding: 0.5rem 0;
    transition: all 0.3s;
    display: block
}

.sitemap-links a:hover {
    color: var(--primary);
    padding-left: 10px
}

.sitemap-links a::before {
    content: 'أ¢â€ â€™ ';
    color: var(--gold-accent);
    font-weight: bold
}

/* Legal Content */
.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary)
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    color: var(--text-color)
}

.legal-content ul {
    padding-left: 2rem
}

/* Icon Styles */
html {
    scroll-padding-top: 80px
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    vertical-align: middle;
    line-height: 1
}

.icon svg {
    width: 1em;
    height: 1em
}

.value-icon .icon,
.service-icon .icon,
.campus-feature-icon .icon,
.hadith-icon .icon,
.contact-icon .icon {
    color: var(--gold-accent)
}

.value-icon .icon svg {
    width: 2.5rem;
    height: 2.5rem
}

.service-icon .icon svg {
    width: 3rem;
    height: 3rem
}

.campus-feature-icon .icon svg {
    width: 2rem;
    height: 2rem
}

.contact-icon .icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary)
}

.faculty-image .icon svg {
    width: 5rem;
    height: 5rem;
    color: var(--white);
    opacity: 0.8
}

.about-image .icon svg {
    width: 4rem;
    height: 4rem;
    color: var(--primary)
}

[style*="font-size:3rem"] .icon svg,
[style*="font-size:3.5rem"] .icon svg {
    width: 3rem;
    height: 3rem
}

/* Layout Performance */
.et_pb_section {
    content-visibility: auto;
    contain-intrinsic-size: 1000px
}

.et_pb_section:first-child,
.et_pb_section:nth-child(2) {
    content-visibility: visible;
    contain-intrinsic-size: auto
}

/* Utility Classes */
.text-center {
    text-align: center
}

.text-light {
    color: var(--text-light)
}

.mb-sm {
    margin-bottom: var(--spacing-sm)
}

.mb-md {
    margin-bottom: var(--spacing-md)
}

.mb-lg {
    margin-bottom: var(--spacing-lg)
}

.mt-sm {
    margin-top: var(--spacing-sm)
}

.mt-md {
    margin-top: var(--spacing-md)
}

.mt-lg {
    margin-top: var(--spacing-lg)
}

.w-full {
    width: 100%
}

.mb-2 {
    margin-bottom: 10px
}

.mt-4 {
    margin-top: 1rem
}

.mx-auto {
    margin-left: auto;
    margin-right: auto
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--forest-green));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.35);
    overflow: hidden
}

/* SVG up-arrow icon */
.back-to-top::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.3s ease
}

/* Ripple Effect for Buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0
    }
}

.btn,
.slider-btn,
.fab-donate,
.back-to-top {
    position: relative;
    overflow: hidden
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 30px rgba(27, 77, 62, 0.45)
}

.back-to-top:hover::after {
    transform: translateY(-2px)
}

.back-to-top:active {
    transform: translateY(-3px) scale(1.05)
}

/* Floating Action Button */
.fab-donate {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--gold-accent), #C9A227);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fabPulse 2.5s ease-in-out infinite;
    overflow: visible
}

/* SVG heart icon */
.fab-donate::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-color: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.3s ease
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45), 0 0 0 0 rgba(212, 175, 55, 0.4)
    }

    50% {
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45), 0 0 0 12px rgba(212, 175, 55, 0)
    }
}

.fab-donate:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6)
}

.fab-donate:hover::before {
    transform: scale(1.15)
}

.fab-donate:active {
    transform: translateY(-2px) scale(1.05)
}

.fab-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%) translateX(5px);
    background: rgba(27, 77, 62, 0.95);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2)
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(27, 77, 62, 0.95)
}

.fab-donate:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0)
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 90px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(27, 77, 62, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 997;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease
}

/* Moon icon (default أ¢â‚¬â€‌ light mode) */
.dark-mode-toggle::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: -webkit-mask-image 0.3s, mask-image 0.3s, background-color 0.3s, transform 0.4s ease
}

body.dark-mode .dark-mode-toggle {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(212, 175, 55, 0.3)
}

/* Sun icon (dark mode) */
body.dark-mode .dark-mode-toggle::after {
    background-color: var(--gold-accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E")
}

.dark-mode-toggle:hover {
    transform: scale(1.12) rotate(15deg);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    border-color: var(--primary)
}

body.dark-mode .dark-mode-toggle:hover {
    border-color: var(--gold-accent)
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0
}

body.dark-mode .navbar {
    background: rgba(30, 30, 30, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1)
}

body.dark-mode .program-card,
body.dark-mode .testimonial-card,
body.dark-mode .service-card,
body.dark-mode .value-card {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0
}

body.dark-mode .footer {
    background: #1a1a1a;
    color: #e0e0e0
}

body.dark-mode .section-title,
body.dark-mode .program-title,
body.dark-mode .testimonial-text,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: #e0e0e0
}

body.dark-mode .welcome {
    background: #1a1a1a
}

/* Responsive Design */
@media (max-width:1024px) {
    .welcome-content {
        grid-template-columns: 1fr
    }
}

@media (max-width:768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        /* Fallback */
        height: 100dvh;
        /* Mobile viewport height */
        text-align: center;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-lg);
        padding: 100px 2rem 120px;
        /* Added bottom padding for scroll space */
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    .nav-menu.active {
        left: 0
    }

    .nav-menu li {
        padding: 0.75rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05)
    }

    .nav-menu li:last-child {
        border-bottom: none
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.05rem
    }

    .nav-toggle {
        display: flex;
        z-index: 1001
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px)
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px)
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-light);
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        display: none
    }

    .dropdown.active .dropdown-menu {
        display: block
    }

    .dropdown>a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem
    }

    .dropdown-arrow {
        transition: transform 0.3s ease
    }

    .dropdown.active>a .dropdown-arrow {
        transform: rotate(180deg)
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem
    }

    .newsletter-form button {
        width: 100%;
        padding: 0.875rem
    }

    .hero {
        padding-top: 100px;
        padding-left: 0;
        padding-right: 0
    }

    .hero-content {
        padding: 0 1.5rem
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch
    }

    .btn {
        width: 100%
    }

    .programs-grid {
        grid-template-columns: 1fr
    }

    .program-card {
        min-height: 480px
    }

    .program-card-inner,
    .program-card-front,
    .program-card-back {
        min-height: 480px
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md)
    }

    .testimonials-grid {
        grid-template-columns: 1fr
    }

    .cta-buttons {
        flex-direction: column
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center
    }

    .about-content {
        grid-template-columns: 1fr
    }

    .timeline::before {
        left: 20px
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    /* Mobile adjustments for new UI elements */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem
    }

    .fab-donate {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem
    }

    .fab-tooltip {
        display: none
    }

    .dark-mode-toggle {
        top: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem
    }

    .slider-controls {
        gap: 0.5rem
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem
    }

    .program-card {
        min-height: 350px
    }
}

@media (max-width:480px) {
    :root {
        font-size: 14px
    }

    .hero {
        padding-top: 90px;
        padding-left: 0;
        padding-right: 0
    }

    .hero-content {
        padding: 0 1rem
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .newsletter-form {
        flex-direction: column
    }




}

/* All the ST utility classes from the original file */
.st-1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto
}

.st-2 {
    max-width: 900px;
    margin: 0 auto;
    text-align: center
}

.st-3 {
    color: var(--primary);
    margin-bottom: 1rem
}

.st-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem
}

.st-5 {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--primary)
}

.st-6 {
    font-size: 3rem;
    margin-bottom: 1rem
}

.st-7 {
    color: var(--primary)
}

.st-8 {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--forest-green)
}

.st-9 {
    color: var(--forest-green)
}

.st-10 {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--sage-green)
}

.st-11 {
    color: var(--sage-green)
}

.st-12 {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--gold-accent)
}

/* Continue with all remaining ST classes... (I'll include a few more key ones) */

.st-88 {
    background: var(--primary);
    color: white
}

.st-89 {
    color: white
}

.st-90 {
    color: rgba(255, 255, 255, 0.9)
}

.st-91 {
    background: white;
    color: var(--primary)
}

.st-97 {
    background: linear-gradient(135deg, #e74c3c, #c0392b)
}

.st-98 {
    background: linear-gradient(135deg, #3498db, #2980b9)
}

.st-99 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad)
}

.st-132 {
    background: var(--forest-green)
}

.st-133 {
    background: var(--sage-green)
}

.st-156 {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--forest-green));
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center
}

.st-157 {
    color: white;
    margin-bottom: 1rem
}

.st-158 {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.125rem
}

.st-32 {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    align-items: center;
}

.st-159 {
    background: var(--gold-accent) !important;
    border-color: var(--gold-accent) !important;
    color: var(--white) !important;
}

.st-156 .btn-secondary {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

.st-156 .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--white) !important;
    transform: translateY(-3px);
}

.st-178 {
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    text-align: center
}

.st-189 {
    background: linear-gradient(135deg, var(--primary), var(--forest-green));
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem
}

.st-192 {
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem
}

.st-216 {
    background: var(--primary)
}

/* ============================================
   MISSING LAYOUT RULES FOR SUBPAGES
   ============================================ */

/* About page - Story section layout */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-top: var(--spacing-md);
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.value-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold-accent);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}

.value-icon {
    margin-bottom: var(--spacing-sm);
    color: var(--gold-accent);
}

.value-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Faculty grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.faculty-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faculty-image {
    background: linear-gradient(135deg, var(--primary), var(--forest-green));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 120px;
}

.faculty-info {
    padding: 1.5rem;
}

.faculty-name {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.faculty-title {
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Campus features grid */
.campus-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.campus-feature {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.campus-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-accent);
}

.campus-feature-icon {
    margin-bottom: 0.75rem;
    color: var(--gold-accent);
}

.campus-feature strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.05rem;
}

.campus-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Section spacing improvements */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section .section-title {
    margin-bottom: var(--spacing-sm);
}

.section .section-subtitle {
    margin-bottom: var(--spacing-lg);
}

/* Footer tagline spacing */
.footer-tagline {
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Contact form layout */
.contact-form {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-normal);
    background: var(--white);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Service cards */
.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    margin-bottom: var(--spacing-sm);
    color: var(--gold-accent);
}

/* Responsive fixes for new elements */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .campus-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .campus-features {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* Additional utility classes */
.list-disc-styled {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-primary)
}

.list-none-styled {
    list-style: none;
    padding: 0;
    color: var(--text-primary)
}

.bg-light {
    background: var(--bg-light)
}

.program-icon.primary-bg {
    background: var(--primary)
}

.section-title.left-align {
    text-align: left;
    margin-left: 0
}

.hadith-box.border-secondary {
    border-left-color: var(--secondary)
}

.hadith-box.border-gold {
    border-left-color: var(--gold-accent)
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    min-width: 300px;
    max-width: 90vw
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: all
}

.toast.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1)
}

.toast.toast-hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.95)
}

.toast-success {
    border-left: 4px solid #27ae60
}

.toast-error {
    border-left: 4px solid #e74c3c
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0
}

.toast-message {
    flex: 1;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--charcoal)
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--charcoal)
}

/* ============================================
   FORM FIELD ERROR STATE
   ============================================ */
.field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    animation: shakeField 0.4s ease
}

@keyframes shakeField {

    0%,
    100% {
        transform: translateX(0)
    }

    20% {
        transform: translateX(-6px)
    }

    40% {
        transform: translateX(6px)
    }

    60% {
        transform: translateX(-4px)
    }

    80% {
        transform: translateX(4px)
    }
}

/* ============================================
   DARK MODE أ¢â‚¬â€‌ ENHANCED
   ============================================ */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0
}

body.dark-mode .navbar {
    background: rgba(20, 20, 20, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08)
}

body.dark-mode .nav-menu a {
    color: #d0d0d0
}

body.dark-mode .dropdown-menu {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08)
}

body.dark-mode .welcome,
body.dark-mode .programs,
body.dark-mode .testimonials {
    background: #1a1a1a
}

body.dark-mode .program-card,
body.dark-mode .testimonial-card,
body.dark-mode .service-card,
body.dark-mode .value-card,
body.dark-mode .hadith-box,
body.dark-mode .contact-form {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0
}

body.dark-mode .program-card:hover,
body.dark-mode .testimonial-card:hover {
    background: rgba(40, 40, 40, 0.95)
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f0f0f0
}

body.dark-mode .text-light,
body.dark-mode .section-subtitle,
body.dark-mode .program-description,
body.dark-mode .testimonial-text {
    color: #aaa
}

body.dark-mode .footer {
    background: #0d0d0d
}

body.dark-mode .footer-links a,
body.dark-mode .footer-contact li,
body.dark-mode .footer-contact a,
body.dark-mode .footer-bottom p,
body.dark-mode .footer-bottom-links a {
    color: #999
}

/* Global spacing utilities */
.section-py {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
    .section-py {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
}

.timeline-item {
    padding-bottom: var(--spacing-md);
    border-left: 2px solid var(--gold-accent);
    padding-left: 20px;
    margin-left: 10px;
    position: relative;
}

.timeline-item h4 {
    color: var(--gold-accent);
    margin-bottom: 0.25rem;
    white-space: nowrap; /* Prevent date wrapping on mobile */
    font-size: 1.1rem;
}

.curriculum-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

body.dark-mode .newsletter-form input {
    background: #222;
    border-color: rgba(255, 255, 255, 0.15);
    color: #e0e0e0
}

body.dark-mode .toast {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.1)
}

body.dark-mode .toast-message {
    color: #e0e0e0
}

/* Dark mode: smooth global transition */
body,
body * {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease
}

/* Don't override explicitly animated properties */
body.dark-mode .program-card,
body.dark-mode .testimonial-card {
    transition: background-color 0.3s ease, border-color 0.3s ease,
        color 0.3s ease, transform 0.6s cubic-bezier(0.23, 1, 0.320, 1),
        box-shadow 0.6s cubic-bezier(0.23, 1, 0.320, 1)
}

@media (max-width: 480px) {
    #toast-container {
        bottom: 20px;
        min-width: 0;
        width: 90vw;
        left: 5vw;
        transform: none
    }
}

/* =============================================================================
   TESTIMONIAL SLIDER CSS (Added by Antigravity)
   ============================================================================= */
.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 1rem;
    /* Padding for shadow clearance */
}

/* Masking container to hide off-canvas slides */
.testimonials-slider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vw;
    right: 100%;
    background: var(--bg-light);
    /* Match section bg */
    z-index: 2;
}

.testimonials-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    right: -100vw;
    background: var(--bg-light);
    /* Match section bg */
    z-index: 2;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0 10px;
    /* Gutter */
    display: flex;
    justify-content: center;
}

.testimonial-slide .testimonial-card {
    width: 100%;
    max-width: 800px;
    /* Optimal reading width */
    margin: 0 auto;
    /* Ensure card height fits */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    /* Let clicks pass through to card */
    z-index: 10;
    padding: 0 10px;
}

.slider-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .slider-controls {
        display: none;
        /* Hide arrows on mobile, rely on swipe or dots */
    }

    .slider-dots {
        margin-top: 1.5rem;
    }

    .program-card {
        min-height: 650px;
        /* Even taller on mobile if needed */
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    min-width: 300px;
    max-width: 90vw;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: all;
}

.toast.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.toast-hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.toast-success {
    border-left: 4px solid #27ae60;
}

.toast-error {
    border-left: 4px solid #e74c3c;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--charcoal);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--charcoal);
}

@media (max-width: 480px) {
    #toast-container {
        bottom: 20px;
        min-width: 0;
        width: 90vw;
        left: 5vw;
        transform: none;
    }
}

/* ============================================
   CONTACT PAGE STYLES (Contact Info Icons) 
   ============================================ */

.contact-info-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    stroke-width: 2;
    fill: none;
    transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
    background: var(--accent);
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.contact-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--accent);
}

/* ============================================
   DONATION PAGE STYLES (st-80 to st-96) 
   ============================================ */

.welcome-content.st-82 {
    display: block;
    width: 100%;
}

.welcome-text.st-83 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.programs-grid.st-85 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    width: 100%;
    margin-top: var(--spacing-md);
    text-align: left;
}

.st-86, .st-88, .st-85 .program-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px; /* Reduced from 480px to prevent excessive stretching */
}

.st-87 {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    text-align: center;
}

/* Bank Details Readability Fixes */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.st-92 {
    background: rgba(255, 255, 255, 0.05); /* Very subtle overlay */
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    color: var(--white); /* Force all child text to white */
}

.st-93 {
    list-style: none !important;
    padding: 0 !important;
}

.st-94, .st-95 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.15rem;
}

.st-94 strong, .st-95 strong {
    color: var(--accent) !important;
    font-weight: 600;
}

.st-94 span, .st-95 span {
    color: var(--white) !important;
}

.st-96 {
    margin-top: var(--spacing-md);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    text-align: center;
}

.st-96 p {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.st-96 .st-7 {
    color: var(--accent) !important;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Responsive Grid for Donation Cards */
@media (max-width: 1200px) {
    .programs-grid.st-85 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .programs-grid.st-85 {
        grid-template-columns: 1fr;
    }
    
    .st-94, .st-95 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Global Image & Icon Visual Standardizations */
.navbar .nav-container {
    padding: 1.25rem 2rem;
    height: auto;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* Footer Social Links Fix - Prevents oversized icons */
.footer .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer .social-link svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block !important;
    margin: 0 !important;
}

/* Feature Icon Standardization (Mission, Facilities, Values) */
.value-icon, 
.campus-feature-icon,
.faculty-image,
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(27, 77, 62, 0.08);
    border: 1px solid rgba(27, 77, 62, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.value-icon svg,
.campus-feature-icon svg,
.faculty-image svg,
.stat-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5px;
}

.value-card:hover .value-icon,
.campus-feature:hover .campus-feature-icon {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--white);
    transform: rotate(10deg);
}


/* FINAL ATOMIC OVERRIDES FOR VISUAL STABILITY */
.footer .social-link {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
}

.footer .social-link svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Ensure nav-menu always uses flex layout on larger viewports */
@media screen and (min-width: 993px) {
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
    }
    
    .nav-toggle {
        display: none !important;
    }
}

@media screen and (max-width: 992px) {
    .nav-toggle {
        display: flex !important;
    }
    
    .logo-img {
        height: 45px !important;
    }
}
