:root {
    --primary-color: #1e5f4b; /* Deep Islamic green */
    --secondary-color: #d4af37; /* Gold */
    --accent-color: #1e5f4b; /* Deep Islamic green */
    --light-color: #f5f5f5; /* Off-white */
    --dark-color: #0c2b22; /* Dark green */
    --text-color: #333333; /* Dark gray for text */
    --text-light: #5d6d63; /* Muted green-gray */
    --white: #ffffff; /* Pure white */
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --gold-light: #f0d9a0; /* Light gold for accents */
    --green-light: #e8f3ee; /* Light green for backgrounds */

    /* Typography tokens */
    --font-sans: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Merriweather', 'Playfair Display', 'Lateef', 'Amiri', serif;
    --font-arabic: 'Amiri', 'Lateef', 'Scheherazade New', 'Noto Naskh Arabic';
    --base-font-size: 16px;
} 

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.75;
    font-size: var(--base-font-size);
    color: var(--text-color);
    background-color: var(--green-light);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} 

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings & Display */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.2px;
} 

h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
} 

h2 {
    font-size: 2.0rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
} 

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
}

h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 0.9rem;
} 

p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
    font-family: var(--font-sans);
    font-weight: 400;
} 

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--white);
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    margin: 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: var(--transition);
} 

.logo h1:hover {
    color: var(--secondary-color);
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.02rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
} 

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    background: var(--dark-color); /* fallback color */
}

/* Slides container sits under content */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
    filter: saturate(1.02) contrast(1.02);
}

.hero-slide.active { opacity: 1; }

/* Lighter overlay so images are more visible but text remains legible */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.25));
    z-index: 1;
}

/* Ensure hero content sits above slides */
.hero-content { position: relative; z-index: 2; }

/* Indicators */
.hero-indicators {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1.2rem;
    padding-left: 0;
}

.hero-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-indicators .indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Hero controls (prev/next + play/pause) */
.hero-controls {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero-control.prev { left: 18px; }
.hero-control.next { right: 18px; }

.hero-playpause {
    position: relative;
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-control:focus, .hero-playpause:focus, .hero-indicators .indicator:focus {
    outline: 3px solid rgba(212,175,55,0.25);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .hero { height: 75vh; padding-top: 70px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-control { width: 40px; height: 40px; font-size: 20px; }
    .hero-control.prev { left: 8px; }
    .hero-control.next { right: 8px; }
}


@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.2px;
}  

.hero-content p {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.8;
} 

.hero-content p {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--light-color);
    line-height: 1.8;
} 

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.0rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
} 

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.8;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 1rem 0 0.6rem;
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.program-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.program-card:hover .program-icon {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--accent-color);
    color: var(--white);
}

/* Gallery Section */
.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--light-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    margin: 5px;
    font-family: var(--font-sans);
}

.tab-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img,
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-video {
    background: #000;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button i {
    color: var(--primary-color);
    font-size: 24px;
    margin-left: 4px;
}

.gallery-item:hover .play-button {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.gallery-item:hover .play-button i {
    color: white;
}

/* Video specific styles */
.video-item .gallery-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.video-item.playing .gallery-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-item.playing .gallery-video {
    pointer-events: auto;
}

.gallery-overlay h3 {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* reCAPTCHA badge styling */
.grecaptcha-badge { 
    visibility: hidden; /* Hide the badge as it's not needed with v3 */
}

/* Form status messages */
.form-status {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: none;
}

.form-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    display: block;
}

.form-status.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    display: block;
}

/* Send Message Button */
.btn {
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 150px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn .btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn .btn-loading {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.btn[disabled] {
    background-color: #cccccc;
    cursor: not-allowed;
}

.btn[disabled] .btn-text {
    visibility: hidden;
}

.btn[disabled] .btn-loading {
    display: inline-block;
}

/* Honeypot field */
.honeypot {
    position: absolute;
    left: -5000px;
}

/* Contact Section */
.contact {
    background-color: #f9f9f9;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
        color: var(--dark-color);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    min-width: 30px;
    margin-top: 0.3rem;
}

.contact-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-about {
    padding-right: 2rem;
}

.footer-about h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-about h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
        text-align: justify;
        text-justify: inter-word;
        text-align-last: left;
        align-items: center;
        margin-bottom: 0.8rem;
        color: rgba(255, 255, 255, 0.9);
    }

    footer .contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 4px;
}

.footer-newsletter button {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.footer-newsletter button:hover {
    background: #e6c74f;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-stats,
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    transform: translateY(-50%);
    z-index: 1001;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

..lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Toggle (maximize/restore) button for video lightbox */
.lightbox-toggle-size {
    position: absolute;
    top: 20px;
    right: 80px;
    z-index: 1002;
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-toggle-size:hover {
    background: rgba(255,255,255,0.5);
}

/* Maximized state for lightbox content */
.lightbox-content.maximized {
    max-width: 100%;
    max-height: 100%;
}

.lightbox-content.maximized img,
.lightbox-content.maximized video {
    max-width: 98%;
    max-height: calc(100vh - 80px);
    border-radius: 6px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 8px 8px;
}