/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --primary-green: #2e5a31;
    --primary-green-dark: #1a3c1d;
    --accent-gold: #c5a059;
    --accent-gold-light: #e6c58d;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* --- Header & Slider (Updated for 4 slides) --- */
header {
    background: #133a1e;
    padding: 2rem 2rem 6rem;
    text-align: center;
    color: var(--text-light);
    border-bottom: 15px solid #1a3c1d;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    /* 4 slides, 20s total loop */
    animation: sliderFade 20s infinite;
}

.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }

@keyframes sliderFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(19, 58, 30, 0.8) 0%, rgba(26, 60, 29, 0.6) 100%);
    z-index: 1;
}

.main-nav {
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.8;
}

.main-nav a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.btn-nav-donate {
    background: var(--accent-gold);
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700 !important;
    opacity: 1 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-nav-donate:hover {
    background: white !important;
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.2rem;
    font-weight: 900;
}

header p {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 5px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-donate {
    display: inline-block;
    padding: 0.8rem 3rem;
    background: #ffffff;
    color: #1a3c1d;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.85rem;
    text-transform: italic;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-donate:hover {
    transform: translateY(-2px);
    background: var(--accent-gold);
    color: white;
}

/* --- Intro Section --- */
.section-intro {
    padding: 8rem 10%;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                url('assets/awards_event.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
}

.section-intro .section-title {
    color: var(--primary-green);
}

.intro-flex-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

@media (max-width: 992px) {
    .intro-flex-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
}

.intro-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.intro-image-container::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 0;
}

.intro-image-container img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    z-index: 1;
    outline: 2px solid var(--accent-gold);
    outline-offset: 10px;
}

.intro-content {
    flex: 1.5;
}

.intro-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    text-transform: none;
    letter-spacing: 0;
}

.intro-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

/* --- Mission & Vision --- */
.section-mission {
    padding: 5rem 10%;
    background-color: white;
    text-align: center;
}

.section-mission h2 {
    color: var(--accent-gold);
    margin-bottom: 3rem;
}

.mission-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-card {
    flex: 1;
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    color: white;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    text-align: center;
    z-index: 1;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

#mission-card::before {
    background-image: linear-gradient(135deg, rgba(46, 90, 49, 0.75) 0%, rgba(26, 60, 29, 0.65) 100%), 
                      url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
}

#vision-card::before {
    background-image: linear-gradient(135deg, rgba(197, 160, 89, 0.75) 0%, rgba(166, 131, 64, 0.65) 100%), 
                      url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
}

.mission-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.mission-card:hover::before {
    transform: scale(1.15);
}

.mission-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.mission-card:hover .mission-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-gold);
    opacity: 1;
}

.mission-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.mission-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.mission-card p {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 90%;
}

/* --- Founder Section --- */
.section-founder {
    padding: 5rem 10%;
    background: white;
    text-align: center;
}

.founder-text {
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    font-style: italic;
    position: relative;
}

.founder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
}

.founder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.founder-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.founder-image {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--card-shadow);
}

.founder-quote {
    text-align: center;
}

.founder-quote h4 {
    margin-top: 1.5rem;
    color: var(--primary-green);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.founder-role {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccc;
    padding: 10px;
    background: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- Trustees & Executives --- */
.section-management {
    padding: 5rem 10%;
    background: white;
    text-align: center;
}

.management-list {
    margin-bottom: 5rem;
}

.management-list h2 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.management-list h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.name-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.name-grid p {
    font-weight: 600;
    color: #444;
}

/* --- Bank Details --- */
.section-bank {
    padding: 5rem 10%;
    background: #fdfdfd;
    text-align: center;
}

.bank-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent-gold);
}

.bank-card h3 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.bank-info {
    text-align: left;
}

.bank-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding-bottom: 0.5rem;
}

.bank-info strong {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- Contact Us --- */
.section-contact {
    padding: 5rem 10%;
    background: white;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    padding: 2rem;
    transition: var(--transition);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.contact-item p {
    color: #666;
    font-size: 0.95rem;
}

.footer-contact-info p, 
.footer-contact-info i {
    color: #3498db;
}

/* --- Footer --- */
footer {
    background-color: #1a3c1d;
    color: white;
    padding: 5rem 10% 3rem;
    border-top: 10px solid #2e5a31;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.footer-col h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: white;
}

.footer-col p, .footer-col li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-bank-details p {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.footer-bank-details strong {
    color: white;
    font-weight: 600;
}

.footer-contact-info i {
    color: var(--accent-gold);
    margin-right: 10px;
    width: 20px;
}

.footer-map {
    margin: 0;
    max-width: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-map iframe {
    width: 100%;
    height: 180px;
    border: 0;
    display: block;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-socials {
    margin-bottom: 2rem;
}

.footer-socials a {
    color: white;
    font-size: 1.1rem;
    margin: 0 8px;
    background: rgba(255,255,255,0.1);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent-gold);
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.bank-details-box {
    background: #fdf8ef;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-gold);
}

.bank-details-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.bank-details-box p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.bank-details-box span {
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--accent-gold);
}

/* --- Activities --- */
.section-activities {
    padding: 5rem 10%;
    background: white;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.event-card.reverse {
    flex-direction: row-reverse;
}

.event-image {
    flex: 1;
}

.event-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.event-info {
    flex: 1.2;
}

.event-date {
    display: block;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.event-info p {
    margin-bottom: 2rem;
    color: #555;
}

.btn-text {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--accent-gold);
    margin-left: 5px;
}

/* --- Gallery Page --- */
.section-gallery-page {
    padding: 5rem 10%;
    background: white;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: #f0f4f1;
    color: var(--primary-green-dark);
    border: 2px solid transparent;
    padding: 0.6rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 90, 49, 0.15);
}

.filter-btn.active {
    background: var(--accent-gold);
    color: white;
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
}

.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    transition: all 0.4s ease;
}

.gallery-grid-full .gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.gallery-grid-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 90, 49, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
    text-align: center;
    padding: 0 1rem;
}

.gallery-grid-full .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-grid-full .gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-grid-full .gallery-item:hover img {
    transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 12, 0.96);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 4px solid white;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    user-select: none;
    z-index: 2010;
}

.lightbox-nav:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* --- PHF Vidhya Peeth --- */
.section-vidhya-peeth {
    padding: 6rem 10%;
    background-color: #ffffff;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: #666;
}

.timeline-title {
    text-align: center;
    color: var(--accent-gold);
    margin-bottom: 4rem;
    font-size: 1.8rem;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #eee;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.timeline-date {
    width: 45%;
    font-size: 2.5rem;
    font-weight: 900;
    color: #f0f0f0;
    text-align: right;
    font-family: 'Playfair Display', serif;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--accent-gold);
    transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--accent-gold);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.vidhya-peeth-footer {
    margin-top: 6rem;
    text-align: center;
    background: linear-gradient(135deg, #fdf8ef 0%, #fff 100%);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid #f1e4d1;
}

.vidhya-peeth-footer h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.vidhya-peeth-footer p {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-style: italic;
}

/* Responsive Grid Base System */
@media (max-width: 1200px) {
    .gallery-grid-full { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .section-intro { flex-direction: column; text-align: center; padding: 4rem 5%; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .event-card, .event-card.reverse { flex-direction: column; text-align: center; gap: 2rem; }
    .gallery-grid-full { grid-template-columns: repeat(3, 1fr); }
    .timeline::before { left: 40px; }
    .timeline-dot { left: 40px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; align-items: flex-start; }
    .timeline-date, .timeline-content { width: 100%; padding-left: 80px; text-align: left !important; }
    .timeline-date { font-size: 2rem; margin-bottom: 1rem; }
}

@media (max-width: 768px) {
    /* ==========================================================================
       ULTIMATE MOBILE SLIDES FULL ASPECT RATIO REPAIR LOGIC
       ========================================================================== */
    header { 
        min-height: 350px !important; /* Fixed base container box dimensions */
        padding-top: 100px !important; 
        padding-bottom: 2rem !important;
    }
    
    .hero-slider {
        height: 100% !important;
    }

    /* Force background logic to render FULL responsive bounds without horizontal crops */
    .slide {
        background-size: 100% 100% !important; /* Stretches and maps exactly to container borders */
        background-position: center center !important;
    }
    
    .hero-content {
        padding-top: 1rem !important;
    }
    header h1 { 
        font-size: 1.6rem !important; 
    }
    header p { 
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 1.5rem !important;
    }
    .btn-donate {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .mission-grid { flex-direction: column; }
    .team-grid { grid-template-columns: 1fr; }
    .gallery-grid-full { grid-template-columns: repeat(2, 1fr); }
    .founder-grid { grid-template-columns: 1fr; gap: 2rem; }
    .founder-info { padding: 2rem 1.5rem; }
    .founder-image { width: 180px; height: 180px; margin: 0 auto 1.5rem; }
    .founder-quote { text-align: center; }
}

@media (max-width: 480px) {
    .gallery-grid-full { grid-template-columns: 1fr; }
    header {
        min-height: 280px !important; /* Micro mobile screens optimization scale */
    }
    .slide {
        background-size: 100% 100% !important;
    }
}

/* Structural layout spacer to preserve top section dimensions */
header {
    padding-top: 100px !important;
}

.main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, rgba(26, 60, 29, 0.96) 0%, rgba(19, 58, 30, 0.96) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
    padding: 18px 0 !important;
    margin-bottom: 0 !important;
}

/* Navigation System Mobile Hamburger Trigger Button Overlay */
.mobile-menu-toggle {
    display: none;
    background: #1a3c1d !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 1.3rem !important;
    color: #fff !important;
    cursor: pointer !important;
    padding: 10px 14px !important;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 100000 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important; /* Forces toggle view button visible only on mobile screens */
    }

    /* Side drawer dynamic layout panel configuration rules */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Hidden outside view canvas context boundary layers */
        left: auto !important;
        width: 100% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #133a1e 0%, #1a3c1d 100%) !important;
        padding-top: 80px !important;
        transition: right 0.4s ease-in-out !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5) !important;
        overflow-y: auto !important;
    }

    /* Navigation slide presentation visual hook class target rule */
    .main-nav.active {
        right: 0 !important; /* Brings menu slider panel cleanly back onto interface center */
    }

    .main-nav ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 5px !important;
    }

    .main-nav ul li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .main-nav ul li:last-child {
        border-bottom: none !important;
    }

    .main-nav ul li a {
        padding: 15px 10px !important;
        width: 100% !important;
        display: block !important;
        font-size: 0.95rem !important;
        opacity: 1 !important;
    }

    .main-nav ul li a.btn-nav-donate {
        margin: 15px 10px !important;
        text-align: center !important;
        border-radius: 50px !important;
        width: calc(100% - 20px) !important;
        background: var(--accent-gold) !important;
    }

    /* Screen layout view overlay masks prevent inner frame dynamic scroll leaks */
    body.menu-open {
        overflow: hidden !important;
    }

    body.menu-open::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
    }
}