:root {
    --primary-blue: #1a2c4e;
    --accent-gold: #f4c430;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --transition: all 0.4s ease;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0;
    background: rgba(26, 44, 78, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px; /* Reduced slightly to fit both buttons */
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after, 
.nav-links a:not(.btn-primary).active::after {
    width: 100%;
}

/* CONTACT US & VOLUNTEER NAV BUTTONS */
.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-blue) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.8);
    background: #ffe55c; 
    color: var(--primary-blue) !important;
}
.btn-primary::after { display: none; }

/* Page Routing */
.page-section {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.6s ease-in-out;
    padding-bottom: 80px; 
}

#home {
    padding-bottom: 0;
}

.page-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.padding-top { padding-top: 120px; padding-bottom: 80px; }

/* Home Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* HERO SLIDER */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden; 
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 6s linear;
}

.hero-slider img.active {
    opacity: 1;
    transform: scale(1.15); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 44, 78, 0.7), rgba(26, 44, 78, 0.4));
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gold-text { color: var(--accent-gold); }

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; 
}

/* --- SIMPLE GLOW BUTTON STYLES --- */
.btn-solid, .btn-outline, .btn-large {
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    display: inline-block;
}

/* Solid Button (Volunteer) */
.btn-solid {
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 rgba(244, 196, 48, 0);
}
.btn-solid:hover {
    background: #ffe55c; /* Lighter gold */
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.7); /* Nice Glow */
    transform: translateY(-2px);
    color: var(--primary-blue);
    border-color: #ffe55c;
}

/* Outline Button (Events, Programs) */
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.5); /* Glow */
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* --- HOME INTRO TEXT --- */
.intro-text-section, .content-block-centered {
    text-align: center;
    padding: 20px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.intro-text-section h2, .content-block-centered h2, .content-block-centered h3 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.content-block-centered h3 { font-size: 1.8rem; }

.divider-gold {
    height: 4px;
    width: 80px;
    background: var(--accent-gold);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.intro-text-section p, .content-block-centered p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- VALUES SECTION --- */
.values-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.value-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.value-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.value-card:hover i {
    animation: iconDance 0.6s ease;
}

@keyframes iconDance {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.value-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.value-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ALIGNMENT UTILITIES */
.center-text { text-align: center; }
.left-align { text-align: left; }

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 50px;
}

/* Gallery Specifics (Home Page Preview) */
.featured-gallery {
    margin-top: 40px; 
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1s ease; 
    opacity: 1;
    cursor: pointer;
    z-index: 1;
    position: relative;
}

.gallery-grid img:hover {
    transform: scale(1.15) translateY(-5px); 
    filter: brightness(1.15) contrast(1.1);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
    z-index: 100; 
}

.gallery-grid img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

/* --- VOLUNTEER BANNER --- */
.volunteer-banner {
    background: linear-gradient(rgba(26, 44, 78, 0.9), rgba(26, 44, 78, 0.9)), url('images/1 (8).jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 20px;
    margin-top: 50px;
    text-align: center;
    color: white;
}

.volunteer-content h2 {
    color: var(--accent-gold);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.volunteer-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* --- RICH MASONRY GRID (Fixed Shape, Varied Sizes) --- */
.masonry-wrapper {
    margin-top: 40px;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid rgba(244, 196, 48, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    opacity: 0;
    animation: masonryFadeIn 0.8s forwards;
    cursor: pointer;
    background: #f0f0f0;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ESSENTIAL to keep shapes fixed */
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease, opacity 1s ease;
}

/* Classes for shape definition */
.span-2-row { grid-row: span 2; }
.span-2-col { grid-column: span 2; }

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border-color: var(--accent-gold);
    z-index: 5;
}

.masonry-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.masonry-item img.fade-out {
    opacity: 0;
}

@keyframes masonryFadeIn {
    to { opacity: 1; }
}

.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.2s; }
.masonry-item:nth-child(3) { animation-delay: 0.3s; }
.masonry-item:nth-child(4) { animation-delay: 0.4s; }
.masonry-item:nth-child(5) { animation-delay: 0.5s; }
.masonry-item:nth-child(6) { animation-delay: 0.6s; }
.masonry-item:nth-child(7) { animation-delay: 0.7s; }
.masonry-item:nth-child(8) { animation-delay: 0.8s; }
.masonry-item:nth-child(9) { animation-delay: 0.9s; }
.masonry-item:nth-child(10) { animation-delay: 1.0s; }
.masonry-item:nth-child(11) { animation-delay: 1.1s; }


/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.cards-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.card-image { position: relative; height: 200px; overflow: hidden; }
.card-image img { 
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-image img { transform: scale(1.1); }

.tag {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-content { padding: 25px; }
.card-content h3 { color: var(--primary-blue); margin-bottom: 10px; }

.card-content p { 
    color: #666; 
    font-size: 0.9rem; 
    margin-bottom: 15px; 
    text-align: justify; 
}

.card-content ul li { color: #555; font-size: 0.85rem; margin-bottom: 5px; }

.card-content ul li i { 
    color: var(--accent-gold); 
    width: 30px; 
    text-align: center; 
    display: inline-block;
}

/* DETAILED TEXT SECTIONS */
.detail-section {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.detail-row.reverse {
    flex-direction: row-reverse;
}

.detail-image {
    flex: 1;
    height: 350px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.detail-image img:hover {
    transform: scale(1.02);
}

.detail-text {
    flex: 1;
}

.detail-text h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.detail-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.detail-text p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify; 
}

/* What We Do */
.split-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.text-content { flex: 1; }

.text-content h3 { 
    color: #8c7300; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.9rem; 
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
    background: #fff8dc; 
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 700;
}

.text-content p { 
    margin-bottom: 20px; 
    color: #555; 
    text-align: justify; 
}

.stat-box {
    display: flex;
    gap: 60px;
    margin: 30px 0;
}

.stat { display: flex; flex-direction: column; }
.stat .number { font-size: 3rem; font-weight: 700; color: var(--primary-blue); line-height: 1; }
.stat .label { font-size: 0.9rem; color: #777; margin-top: 5px; }

.highlight-box {
    background: #eef2f6;
    padding: 20px;
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 5px 5px 0;
}
.highlight-box h4 { color: var(--primary-blue); margin-bottom: 10px; }

.image-collage {
    flex: 1;
    position: relative;
    height: 400px;
}

.collage-main, .collage-sub {
    transition: transform 0.5s ease;
}

.collage-main:hover, .collage-sub:hover {
    transform: scale(1.05);
}

.collage-main {
    width: 80%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.collage-sub {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 50%;
    height: 60%;
    object-fit: cover;
    border-radius: 10px;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 5px;
}

.form-header-volunteer {
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}
.form-header-volunteer h3 { color: var(--primary-blue); margin-bottom: 5px; }
.form-header-volunteer p { color: #666; font-size: 0.9rem; }

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fdfdfd;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* --- PULSING ANIMATION FOR SELECT BOX --- */
select#subject {
    animation: goldPulse 2.5s infinite;
    border: 2px solid var(--accent-gold);
    color: var(--primary-blue);
    font-weight: 600;
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 196, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); }
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-status.success { color: green; }
.form-status.error { color: red; }

.social-links { margin-top: 30px; display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--primary-blue);
    color: white;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.social-links a:hover { background: var(--accent-gold); transform: rotate(360deg); }


/* --- NEW VOLUNTEER SECTION STYLES --- */
.volunteer-bg-section {
    position: relative;
    /* Ensure the split layout works cleanly on top */
}

/* Faint background overlay */
.volunteer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/1 (15).jpg') center/cover no-repeat;
    opacity: 0.08; /* 5-10% opacity as requested */
    z-index: 1;
    pointer-events: none;
}

/* Ensure content sits above background */
.volunteer-bg-section .container {
    position: relative;
    z-index: 5;
}

.image-container-volunteer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.volunteer-main-img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.form-container-volunteer {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}


/* Footer */
footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.small { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 10px; }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.footer-socials a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-gold);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    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: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 4px solid var(--accent-gold);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(244, 196, 48, 0.4);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    background: transparent;
    border: none;
}

.lightbox-close { top: 20px; right: 30px; font-size: 3rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout { flex-direction: column; }
    .split-layout.reverse-mobile { flex-direction: column-reverse; } /* Added for volunteer page */
    .split-layout.reverse-mobile .image-container-volunteer { margin-bottom: 30px; } /* Added for volunteer page */
    
    .image-collage { width: 100%; height: 300px; margin-top: 30px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .text-content, .text-content h3, .section-title { text-align: left; }
    .featured-gallery { margin-top: 60px; }
    .values-section { margin-top: 30px; }
    .detail-row, .detail-row.reverse { flex-direction: column; gap: 30px; }
    .detail-image { width: 100%; height: 250px; }
    
    .masonry-gallery { grid-template-columns: repeat(2, 1fr); }
    .masonry-item:nth-child(1), .masonry-item:nth-child(7) { grid-column: span 1; grid-row: span 1; }
    .masonry-item:nth-child(5), .masonry-item:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger span { display: block; width: 25px; height: 3px; background: white; margin: 5px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .card-image { height: 180px; }
    
    .masonry-gallery { grid-template-columns: 1fr; }
    .masonry-item { grid-column: span 1 !important; grid-row: span 1 !important; height: 250px; }
    .lightbox-prev, .lightbox-next { font-size: 1.5rem; }
    
    .nav-links.mobile-active .btn-primary { 
        width: 100%; 
        text-align: center; 
        margin-top: 5px;
    }
}