/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #000;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #D4AF37;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(212, 175, 55, 0.3));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.0;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #D4AF37;
    color: #000;
    border-color: #D4AF37;
}

.btn-primary:hover {
    background: transparent;
    color: #D4AF37;
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #D4AF37;
    border-color: #D4AF37;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #D4AF37;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: white;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.mission-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.mission-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-item i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mission-image img,
.mission-image video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Video Card */
.video-card {
    position: relative;
    display: block;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    isolation: isolate;
}

.video-card .video-poster {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.video-card .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    transition: background 0.2s ease;
    cursor: pointer;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.video-card .video-play {
    all: unset;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: #D4AF37;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    outline: none;
}

.video-card .video-play i {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {

    .video-card,
    .mission-image img,
    .mission-image video {
        height: 320px;
    }
}

@media (max-width: 768px) {

    .video-card,
    .mission-image img,
    .mission-image video {
        height: 260px;
    }
}

@media (max-width: 480px) {

    .video-card,
    .mission-image img,
    .mission-image video {
        height: 220px;
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.video-modal.open {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.video-modal-dialog {
    position: relative;
    width: min(900px, 92vw);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-content,
.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #D4AF37;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.video-card .video-play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {

    .video-card,
    .mission-image img,
    .mission-image video {
        height: 320px;
    }
}

@media (max-width: 768px) {

    .video-card,
    .mission-image img,
    .mission-image video {
        height: 260px;
    }
}

@media (max-width: 480px) {

    .video-card,
    .mission-image img,
    .mission-image video {
        height: 220px;
    }
}

/* Events Section */
.events {
    padding: 100px 0;
    background: #f8f9fa;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-image {
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-date {
    color: #2c5aa0;
    font-weight: 500;
    margin-bottom: 1rem;
}

.event-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 90, 160, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-actions {
    text-align: center;
    margin-top: 3rem;
}

.gallery-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Gallery Page Styles */
.gallery-hero {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.gallery-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #D4AF37;
}

.gallery-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.gallery-page {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-event {
    margin-bottom: 4rem;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-header {
    text-align: center;
    margin-bottom: 3rem;
}

.event-header h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.event-date {
    font-size: 1.1rem;
    color: #D4AF37;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-5px);
}

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

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

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

/* Generic Dark Section Utility (apply class="dark" on any section) */
.dark {
    background: #000 !important;
    color: #fff;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: #D4AF37;
}

.dark p,
.dark li,
.dark blockquote,
.dark .section-header p {
    color: #ddd;
}

.dark a {
    color: #D4AF37;
}

.dark .btn-primary {
    background: #D4AF37;
    color: #000;
    border-color: #D4AF37;
}

.dark .btn-primary:hover {
    background: transparent;
    color: #D4AF37;
}

/* Dark overrides for common components */
/* Programs cards */
.dark .program-card {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
}

.dark .program-card p {
    color: #bbb;
}

.dark .program-card:hover {
    border-color: #2a2a2a;
}

/* Impact timeline cards */
.dark .timeline-content {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.dark .timeline-content p {
    color: #bbb;
}

.dark .timeline-content h3 {
    color: #D4AF37;
}

/* Gallery */
.dark.gallery {
    background: #000;
}

.dark .gallery-overlay {
    background: rgba(212, 175, 55, 0.25);
}

/* Founder */
.dark .founder-text p {
    color: #ddd;
}

.dark .founder-image img {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

/* Contact Dark Mode (black & gold) */
.contact.dark {
    background: #000;
    color: #fff;
}

.contact.dark .contact-info h2 {
    color: #D4AF37;
}

.contact.dark .contact-info p,
.contact.dark .contact-item h4,
.contact.dark .contact-item p {
    color: #ddd;
}

.contact.dark .contact-item i {
    color: #D4AF37;
}

.contact.dark .contact-form {
    background: #0d0d0d;
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid #1e1e1e;
}

.contact.dark .form-group input,
.contact.dark .form-group textarea {
    background: #111;
    border-color: #2a2a2a;
    color: #fff;
}

.contact.dark .form-group input::placeholder,
.contact.dark .form-group textarea::placeholder {
    color: #9a9a9a;
}

.contact.dark .form-group input:focus,
.contact.dark .form-group textarea:focus {
    border-color: #D4AF37;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: #2c5aa0;
    width: 30px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

/* Footer Dark Variant */
.footer.dark {
    background: #000;
    color: #fff;
}

.footer.dark .footer-content {
    border-color: #1e1e1e;
}

.footer.dark .footer-section h3,
.footer.dark .footer-section h4 {
    color: #D4AF37;
}

.footer.dark .footer-section p {
    color: #ccc;
}

.footer.dark .footer-section ul li a {
    color: #bbb;
}

.footer.dark .footer-section ul li a:hover {
    color: #D4AF37;
}

.footer.dark .social-links a {
    background: #111;
}

.footer.dark .social-links a:hover {
    background: #D4AF37;
    color: #000;
}

.footer.dark .footer-bottom {
    border-top: 1px solid #1e1e1e;
    color: #aaa;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2c5aa0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .mission-content,
    .contact-content,
    .founder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .impact-timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-date {
        left: 20px;
        transform: translateX(-50%);
    }

    .founder-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .founder-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .mission-values {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .founder-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .founder-image {
        order: -1;
        text-align: center;
    }

    .founder-image img {
        max-width: 400px;
        height: 400px;
        object-fit: cover;
    }

    .impact-timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-date {
        left: 30px;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {

    /* Mobile-specific styles for founder and impact sections */
    .founder {
        padding: 50px 0;
    }

    .founder-content {
        display: block !important;
        grid-template-columns: none !important;
        text-align: left;
    }

    .founder-image {
        width: 100%;
        margin-bottom: 2rem;
        display: block;
    }

    .founder-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        display: block;
    }

    /* Ensure founder text spans full width and is left-aligned */
    .founder-text {
        width: 100%;
        display: block;
    }

    .founder-text p,
    .founder-text h2,
    .founder-text h3,
    .founder-quote {
        text-align: left;
    }

    .impact {
        padding: 50px 0;
    }

    .impact-timeline {
        width: 100%;
    }

    .impact-timeline::before {
        display: none;
    }

    .timeline-item {
        margin-bottom: 2rem;
        display: block !important;
        flex-direction: column !important;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.5rem;
        text-align: left;
        width: 100% !important;
    }

    .timeline-date {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
        width: 100%;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .timeline-image {
        margin-top: 1rem;
    }

    .timeline-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    /* Hide collage on mobile for clarity */
    .timeline-collage {
        display: none;
    }

    /* Gallery Page Mobile */
    .gallery-hero-content h1 {
        font-size: 2.5rem;
    }

    .gallery-hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .gallery-event {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .event-header h2 {
        font-size: 2rem;
    }

    .event-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Additional small mobile adjustments */
    .timeline-date {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-image img {
        height: 150px;
    }

    .founder-text h2 {
        font-size: 1.8rem;
    }

    .founder-text h3 {
        font-size: 1.1rem;
    }

    .founder-quote {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    /* Programs Mobile */
    .program-card {
        padding: 1.5rem;
    }

    .program-icon {
        width: 60px;
        height: 60px;
    }

    .program-icon i {
        font-size: 1.5rem;
    }

    .program-card h3 {
        font-size: 1.1rem;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Founder Quote Styles */
.founder-quote {
    background: #f8f9fa;
    border-left: 4px solid #D4AF37;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
}

.founder-quote cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #000;
    font-style: normal;
}

/* Dark overrides for About section elements */
.dark .founder-quote {
    background: #0d0d0d;
    border-left-color: #D4AF37;
    color: #ddd;
}

.dark .founder-quote cite {
    color: #fff;
}

.dark .about-stats .stat-item {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.dark .about-stats .stat-item p {
    color: #bbb;
}

.dark .about-stats .stat-item:hover {
    transform: translateY(-5px);
    border-color: #2a2a2a;
}

/* Programs Section */
.programs {
    padding: 100px 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.program-icon i {
    font-size: 2rem;
    color: #000;
}

.program-card h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.program-card p {
    color: #666;
    line-height: 1.6;
}

/* Impact Timeline */
.impact {
    padding: 100px 0;
    background: #f8f9fa;
}

.impact-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.impact-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #D4AF37;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 2rem;
    text-align: left;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #D4AF37;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-image {
    margin-top: 1rem;
}

.timeline-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Timeline Opposite-side Collage */
.timeline-collage {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48%;
    pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-collage {
    left: 55%;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-collage {
    right: 55%;
    text-align: right;
}

.timeline-collage .collage-img {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    border: 4px solid #fff;
}

.timeline-collage .collage-a {
    top: -40px;
    left: 6%;
    transform: rotate(-6deg);
}

.timeline-collage .collage-b {
    top: 10px;
    left: 36%;
    transform: rotate(4deg);
}

.timeline-collage .collage-c {
    top: 130px;
    left: 18%;
    transform: rotate(-2deg);
}

/* Founder Section */
.founder {
    padding: 100px 0;
    background: white;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.founder-image {
    text-align: center;
}

.founder-image img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.founder-text h2 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.founder-text h3 {
    color: #D4AF37;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.founder-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Mission Statement Styles */
.mission-statement,
.vision-statement,
.slogan {
    margin-bottom: 2rem;
}

.mission-statement h3,
.vision-statement h3,
.slogan h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.slogan-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #D4AF37;
    font-style: italic;
}

/* Get Involved Section */
.get-involved {
    margin-top: 2rem;
}

.get-involved h3 {
    color: #000;
    margin-bottom: 1rem;
}

.get-involved ul {
    list-style: none;
    padding: 0;
}

.get-involved li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.get-involved strong {
    color: #D4AF37;
}

/* Update remaining color references */
.mission-text h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1.5rem;
}

.event-content h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-date {
    color: #D4AF37;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #D4AF37;
    width: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #D4AF37;
}

.footer-section ul li a:hover {
    color: #D4AF37;
}

.social-links a:hover {
    background: #D4AF37;
    transform: translateY(-2px);
}

.scroll-to-top {
    background: #D4AF37;
    color: #000;
}

.scroll-to-top:hover {
    background: #B8941F;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
    }

    .btn-secondary {
        border-color: #fff;
        color: #fff;
    }
}

/* Print styles */
@media print {

    .navbar,
    .hero-video,
    .scroll-indicator,
    .contact-form,
    .footer {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
        background: #f8f9fa;
        color: #333;
    }

    .hero-overlay {
        display: none;
    }
}