/* ==========================================================================
   AL-MUSTAFA CHARITABLE TRUST - PREMIUM STYLESHEET
   Colors: Forest Green & Rich Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    --primary: #0B4D27;
    --primary-light: #166B3B;
    --primary-dark: #07351A;
    --accent: #D4AF37;
    --accent-light: #E5C354;
    --accent-dark: #B59328;
    
    --bg-light: #F4F8F5;
    --bg-white: #FFFFFF;
    --bg-dark: #0D1E13;
    
    --text-dark: #1E2E24;
    --text-light: #EAF2EC;
    --text-muted: #627267;
    --border-color: #E2EBE5;
    
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(11, 77, 39, 0.08);
    --shadow-lg: 0 10px 30px rgba(11, 77, 39, 0.12);
    --shadow-accent: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;
    --radius-full: 9999px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--bg-white);
}

/* --- Container & Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- Header Ticker --- */
.top-ticker {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ticker-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ticker-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-info i {
    color: var(--accent);
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-container marquee {
    color: var(--accent-light);
    font-weight: 500;
}

/* --- Navigation Header --- */
.header-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent);
    background-color: var(--bg-white);
}

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

.logo-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--accent-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

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

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-pulse {
    animation: donate-pulse 2s infinite;
}

@keyframes donate-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 100px 30px 40px;
    transition: var(--transition);
    border-left: 5px solid var(--accent);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-link:hover, .mobile-link.active {
    color: var(--primary);
    padding-left: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(4px);
}

.overlay.active {
    display: block;
}

/* --- Hero Slider --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 77, 39, 0.8) 0%, rgba(13, 30, 19, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--bg-white);
    max-width: 700px;
    padding: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-tagline {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.slide-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--bg-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-control:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent);
    width: 30px;
}

/* --- Stats Grid --- */
.stats-section {
    padding: 40px 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 5;
    margin-top: -40px;
    border-radius: var(--radius-md);
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px 10px;
    border-right: 1px solid var(--border-color);
}

.stat-card:last-child {
    border-right: none;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-num span {
    color: var(--accent);
}

.stat-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* --- Objective / Services Section --- */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.obj-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.obj-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent);
}

.obj-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(11, 77, 39, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.obj-card:hover .obj-icon {
    background-color: var(--primary);
    color: var(--bg-white);
}

.obj-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.obj-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Home About Section --- */
.home-about-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.home-about-img-box {
    position: relative;
}

.home-about-img-box img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--bg-white);
}

.home-about-img-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background-color: var(--accent);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.3;
}

.about-content-right {
    padding-left: 10px;
}

.about-tag {
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.about-h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.25;
}

.about-p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-bullets {
    margin-bottom: 30px;
}

.about-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.about-bullets i {
    color: var(--accent-dark);
    font-size: 1.1rem;
    margin-top: 3px;
}

/* --- Gallery & eBooks Grid --- */
.books-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

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

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.book-img-box {
    position: relative;
    width: 100%;
    padding-top: 130%; /* eBook Portrait aspect ratio */
    overflow: hidden;
    background-color: var(--bg-light);
}

.book-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-img-box img {
    transform: scale(1.05);
}

.book-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    z-index: 5;
    text-transform: uppercase;
}

.book-info {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.book-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.book-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.book-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 30, 19, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    display: flex;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

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

.lightbox-img-pane {
    flex: 1;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-pane img {
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
}

.lightbox-info-pane {
    width: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-white);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.lightbox-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* --- Donation Call to Action Banner --- */
.donation-banner-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--accent);
}

.donation-banner-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
}

.db-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.db-h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.db-p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.7;
}

.db-actions {
    text-align: right;
}

/* --- Contact & Enquiry Forms --- */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-card {
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.ci-h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--accent);
}

.ci-desc {
    opacity: 0.85;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.ci-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.ci-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ci-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--bg-white);
}

.ci-text span {
    opacity: 0.85;
}

.form-box {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 45px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(11, 77, 39, 0.15);
}

textarea.form-control {
    resize: vertical;
}

/* Alert Boxes */
.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 500;
    display: none;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* --- Donation Page Components --- */
.donation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
}

.amount-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 5px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.qr-code-pane {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 2px dashed var(--accent);
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.qr-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.qr-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.qr-frame {
    width: 220px;
    height: 220px;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upi-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    opacity: 0.85;
}

.upi-logos img {
    height: 20px;
}

/* --- Premium Footer --- */
.footer-wrap {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 5px solid var(--accent);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent);
}

.footer-logo-title {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
}

.footer-logo-sub {
    font-size: 0.75rem;
    color: var(--bg-white);
    font-weight: 500;
}

.footer-vision {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-action-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-links-list a {
    font-size: 0.9rem;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-contact-icon {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-contact-text strong {
    display: block;
    color: var(--bg-white);
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Legal content pages styling */
.legal-content {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.6rem;
    margin: 30px 0 15px;
}

.legal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .home-about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 25px 10px;
    }
    .stat-card:nth-child(even) {
        border-left: 1px solid var(--border-color);
    }
    .stat-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .contact-split, .donation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .db-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .db-actions {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .header-nav {
        height: 70px;
    }
    .nav-container {
        height: 70px;
    }
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .slide-title {
        font-size: 2.2rem;
    }
    .slide-desc {
        font-size: 0.95rem;
    }
    .hero-slider-container {
        height: 500px;
    }
    .slider-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .slider-prev {
        left: 15px;
    }
    .slider-next {
        right: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .lightbox-content {
        flex-direction: column;
    }
    .lightbox-info-pane {
        width: 100%;
        padding: 20px;
    }
    .legal-content {
        padding: 30px 20px;
    }
    .form-box {
        padding: 25px;
    }
    .amount-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        border-left: none !important;
        border-right: none !important;
    }
    .slide-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
