/*
Theme Name: Aradhana Rural School Theme
Theme URI: https://aradhananatyaschool.org
Author: Premium WordPress Theme UI/UX Architect
Author URI: https://aradhananatyaschool.org
Description: A premium, highly responsive, and beautifully animated theme for rural schools incorporating classical arts and formal education. Built for Aradhana Natya Mandal.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: aradhana-school
*/

/* ==========================================================================
   1. DESIGN SYSTEM & ROOT VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-warm: #FDFBF7;       /* Warm Ivory */
    --color-bg-white: #FFFFFF;      /* Clean White Panels */
    --color-text-dark: #222222;     /* Deep Charcoal */
    --color-text-muted: #555555;    /* Muted Slate */
    --color-accent-gold: #E5A93C;   /* Elegant Marigold */
    --color-accent-gold-hover: #C58F2E;
    --color-accent-rosewood: #4A2E2B; /* Deep Rosewood */
    --color-accent-rosewood-light: #6E4540;
    --color-border: #E8E2D9;        /* Warm Border Grey */
    --color-shadow: rgba(74, 46, 43, 0.08); /* Soft Rosewood Shadow */

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. GENERAL RESETS & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-warm);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-accent-rosewood);
    font-weight: 700;
    line-height: 1.25;
}

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

a {
    color: var(--color-accent-rosewood);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   3. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent-rosewood);
    color: var(--color-bg-warm);
    box-shadow: 0 4px 12px rgba(74, 46, 43, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-accent-rosewood-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 46, 43, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-rosewood);
    border-color: var(--color-accent-rosewood);
}

.btn-secondary:hover {
    background-color: var(--color-accent-rosewood);
    color: var(--color-bg-warm);
    transform: translateY(-3px);
}

.btn-icon-play {
    gap: 8px;
}

.icon-play {
    transition: var(--transition-bounce);
}

.btn-secondary:hover .icon-play {
    transform: scale(1.1);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(229, 169, 60, 0.15);
    color: var(--color-accent-rosewood);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(229, 169, 60, 0.3);
}

.accent-serif {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-accent-gold);
    font-weight: 400;
}

/* Temple Border SVGs & Dividers */
.temple-border-divider {
    width: 100%;
    height: 24px;
    color: var(--color-accent-gold);
    overflow: hidden;
    line-height: 0;
}

.temple-border-divider.invert {
    transform: rotate(180deg);
}

.temple-border-svg {
    width: 100%;
    height: 24px;
}

/* ==========================================================================
   4. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px var(--color-shadow);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent-rosewood);
    line-height: 1.1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-navigation {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

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

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

.nav-link:hover {
    color: var(--color-accent-rosewood);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-support {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-rosewood);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Mobile Menu Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--color-bg-warm);
    z-index: 999;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    border-top: 1px solid var(--color-border);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent-rosewood);
}

.mobile-btn {
    margin-top: 20px;
    width: 100%;
    max-width: 280px;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 80px 0 0 0;
    background: linear-gradient(180deg, rgba(253,251,247,0.5) 0%, rgba(253,251,247,1) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 36px;
    color: var(--color-text-muted);
}

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

/* Hero Image Mask & Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-mask {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(74, 46, 43, 0.12);
    /* Morphing Organic Border Radius */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphAnimation 10s ease-in-out infinite alternate;
    border: 4px solid var(--color-bg-white);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: var(--transition-smooth);
}

.hero-image-mask:hover .hero-img {
    transform: scale(1.12);
}

@keyframes morphAnimation {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 40% 60% 50% 50% / 50% 60% 40% 50%;
    }
    100% {
        border-radius: 50% 50% 70% 30% / 40% 40% 60% 60%;
    }
}

/* Decorative Ornaments */
.deco-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px dashed rgba(229, 169, 60, 0.4);
    border-radius: 50%;
    z-index: -1;
    top: -20px;
    right: -20px;
    animation: spinSlow 30s linear infinite;
}

.deco-dots {
    position: absolute;
    width: 100px;
    height: 120px;
    background-image: radial-gradient(var(--color-accent-gold) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    z-index: -1;
    bottom: -30px;
    left: -10px;
    opacity: 0.5;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   6. ABOUT SECTION & COMMUNITY GRID
   ========================================================================== */
.about-section {
    padding-bottom:100px;
    background-color: var(--color-bg-white);
    position: relative;
    overflow: hidden;
}

.veena-background-deco {
    position: absolute;
    right: 2%;
    top: 5%;
    width: 350px;
    height: 700px;
    pointer-events: none;
    color: var(--color-accent-gold);
    z-index: 1;
}

.section-header {
    max-width: 750px;
    margin: 0 auto 60px auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    padding-top: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-gold);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

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

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.grid-card {
    background-color: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent-rosewood);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: left;
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--color-shadow);
    border-color: transparent;
}

.grid-card:hover::before {
    transform: scaleX(1);
    background-color: var(--color-accent-gold);
}

.card-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-rosewood);
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(74, 46, 43, 0.05);
    transition: var(--transition-bounce);
}

.grid-card:hover .card-icon-wrapper {
    background-color: var(--color-accent-rosewood);
    color: var(--color-bg-warm);
    transform: rotate(10deg) scale(1.05);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

/* Background visual decoration in card */
.card-image-tint {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 90px;
    height: 90px;
    opacity: 0.05;
    border-radius: 50%;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-card:hover .card-image-tint {
    opacity: 0.12;
    transform: scale(1.3);
}

/* ==========================================================================
   7. INTERACTIVE IMPACT DONATION WIDGET
   ========================================================================== */
.impact-widget-section {
    padding: 0 0 var(--section-padding) 0;
    background-color: var(--color-bg-warm);
}

.donation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background-color: var(--color-bg-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px var(--color-shadow);
    border: 1px solid var(--color-border);
}

.donation-tiers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tier-card {
    display: flex;
    align-items: center;
    padding: 22px 28px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    background-color: var(--color-bg-warm);
    transition: var(--transition-smooth);
    position: relative;
}

.tier-card:hover {
    border-color: var(--color-accent-gold);
    background-color: var(--color-bg-white);
}

.tier-card.active {
    border-color: var(--color-accent-rosewood);
    background-color: var(--color-bg-white);
    box-shadow: 0 6px 15px rgba(74, 46, 43, 0.04);
}

.tier-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-gold);
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.tier-card.active .tier-checkbox {
    border-color: var(--color-accent-rosewood);
    background-color: var(--color-accent-rosewood);
}

.tier-card.active .tier-checkbox::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-bg-warm);
    border-radius: 50%;
}

.tier-info {
    display: flex;
    flex-direction: column;
}

.tier-amount {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent-rosewood);
    line-height: 1.1;
}

.tier-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Custom amount input styling */
.custom-donation {
    margin-top: 15px;
    padding: 20px;
    background-color: rgba(229, 169, 60, 0.05);
    border: 1px dashed var(--color-accent-gold);
    border-radius: var(--border-radius-md);
}

.custom-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-accent-rosewood);
}

.custom-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent-rosewood);
}

#custom-amount-input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent-rosewood);
    outline: none;
    transition: var(--transition-smooth);
}

#custom-amount-input:focus {
    border-color: var(--color-accent-rosewood);
    box-shadow: 0 0 0 3px rgba(74, 46, 43, 0.1);
}

/* Donation Impact Right Panel */
.donation-impact-panel {
    background-color: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-between;
}

.panel-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--color-accent-gold);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.panel-heading {
    font-size: 1.6rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.impact-dynamic-wrapper {
    position: relative;
    min-height: 240px;
}

.impact-detail {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.impact-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.impact-graphic {
    color: var(--color-accent-gold);
    margin-bottom: 20px;
}

.impact-graphic-svg {
    width: 60px;
    height: 60px;
}

.impact-headline {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-accent-rosewood);
}

.impact-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.panel-action {
    margin-top: 30px;
}

.btn-panel-donate {
    width: 100%;
    padding: 16px;
}

/* ==========================================================================
   8. STORY VIDEO SECTION
   ========================================================================== */
.story-video-section {
    padding-top:100px;
    background-color: var(--color-bg-white);
}

.story-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px var(--color-shadow);
    border: 1px solid var(--color-border);
}

.story-image-panel {
    position: relative;
    height: 100%;
    min-height: 350px;
    cursor: pointer;
    overflow: hidden;
}

.story-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.play-trigger-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    color: var(--color-accent-rosewood);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: var(--transition-bounce);
    z-index: 2;
}

.play-arrow {
    margin-left: 5px;
    transition: var(--transition-bounce);
}

.story-image-panel:hover .play-trigger-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-accent-rosewood);
    color: var(--color-bg-warm);
}

.story-image-panel:hover .story-bg-img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0,0,0,0.6);
    color: var(--color-bg-warm);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    z-index: 2;
}

.story-text-panel {
    background-color: var(--color-bg-warm);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-heading {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.story-text-content {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   9. FOOTER SECTION & TRUST BADGES
   ========================================================================== */
.site-footer {
    background-color: var(--color-accent-rosewood);
    color: #ECE7E1;
    padding-top: 50px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(232, 226, 217, 0.1);
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.widget-title {
    color: var(--color-accent-gold);
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
}

.ngo-desc {
    color: #D3C9BE;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Trust block styling */
.trust-details {
    background-color: rgba(253, 251, 247, 0.05);
    border: 1px solid rgba(253, 251, 247, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.trust-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(253, 251, 247, 0.05);
}

.trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trust-item:first-child {
    padding-top: 0;
}

.trust-label {
    font-weight: 600;
    color: var(--color-accent-gold);
}

.trust-val {
    color: var(--color-bg-warm);
    font-family: var(--font-body);
}

.footer-link {
    color: #D3C9BE;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: #c6ac90;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu a {
    color: #D3C9BE;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--color-accent-gold);
    padding-left: 4px;
}

.contact-text {
    color: #D3C9BE;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-bottom {
    background-color: #382220; /* Slightly darker rosewood */
    padding: 30px 0;
    font-size: 0.85rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    color: #A09387;
    margin-bottom: 0;
}

.tax-disclaimer {
    display: block;
    font-size: 0.75rem;
    color: var(--color-accent-gold);
    margin-top: 5px;
}

.dev-credits {
    color: #A09387;
    font-style: italic;
    margin-bottom: 0;
}

/* ==========================================================================
   10. SCROLL ENTRANCE ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

/* Activated Animation Classes */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delays */
.scroll-reveal[style*="--card-delay"] {
    transition-delay: var(--card-delay);
}

/* ==========================================================================
   10.1 CAMPUS GALLERY SECTION
   ========================================================================== */
.gallery-section {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    cursor: pointer;
    background-color: #222222;
}

.gallery-item-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 46, 43, 0.75); /* Translucent Rosewood */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-zoom-icon,
.gallery-play-icon {
    font-size: 2.2rem;
    color: var(--color-bg-warm);
    transform: scale(0.8);
    transition: var(--transition-bounce);
}

.video-item::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent-gold);
}

.video-duration-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(34, 34, 34, 0.85);
    color: #ECE7E1;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Hover States */
.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.08);
}

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

.gallery-item:hover .gallery-zoom-icon,
.gallery-item:hover .gallery-play-icon {
    transform: scale(1);
}

.gallery-actions {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.gallery-item.gallery-item-hidden {
    display: none;
}

/* ==========================================================================
   10.2 LIGHTBOX SYSTEM
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 18, 16, 0.97); /* Very dark dimming with Rosewood tint */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-media-container {
    max-width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
    background-color: #000;
}

#lightbox-media-container img,
#lightbox-media-container video {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

#lightbox-caption {
    color: #ECE7E1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: none;
    color: rgba(236, 231, 225, 0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-accent-gold);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 40px;
    font-size: 3rem;
    width: 50px;
    height: 50px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
}

/* Prevent page scrolling when lightbox is active */
body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
    :root {
        --section-padding: 70px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions-row {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-image-mask {
        max-width: 380px;
    }
    
    .donation-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .donation-impact-panel {
        padding: 30px;
    }
    
    .story-wrapper {
        grid-template-columns: 1fr;
    }
    
    .story-image-panel {
        min-height: 300px;
    }
    
    .story-text-panel {
        padding: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .widget-ngo-info {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    /* Header toggling mobile layout */
    .site-navigation {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .widget-ngo-info {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}
