/* Custom Saffron and White Palette */
:root {
    --color-saffron: #FF9933; /* A bright, traditional saffron/orange */
    --color-white: #FFFFFF;
    --color-dark: #333333;
    --color-light-bg: #FFF8F0; /* A very light off-white/cream for backgrounds */
    --color-hover: #CC7A26; /* Darker saffron for hover effects */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-light-bg);
}

.bg-saffron {
    background-color: var(--color-saffron);
}

.text-white {
    color: var(--color-white) !important;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: var(--color-saffron);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-saffron);
    margin: 10px auto 0;
}

/* 1. Header & Navigation */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    border-radius: 50%;
    margin-right: 10px;
    /* Animation for logo spin on hover */
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: rotate(10deg);
}

.logo h1 {
    font-size: 1.5em;
    color: var(--color-saffron);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    /* Hover/Animation effect */
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-saffron);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-saffron);
    /* Animation for underline */
    transition: width 0.3s ease-in-out;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-donate {
    background-color: var(--color-saffron);
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    /* Animation and Hover */
    transition: background-color 0.3s, transform 0.3s;
}

.btn-donate:hover {
    background-color: var(--color-hover);
    transform: scale(1.05); /* Slight lift effect */
}


/* 2. Hero Section (Slider) */
.hero {
    height: 80vh; /* Takes up 80% of the viewport height */
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-caption {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    font-size: 3em;
    padding: 20px 40px;
    border-radius: 5px;
    text-align: center;
    /* Animation: scale up on entry */
    animation-name: caption-load;
    animation-duration: 1s;
}

/* Fade animation for slide transition */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes caption-load {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Slider Dots */
.dots-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--color-saffron);
}

/* 3. About Us */
.about-content {
    text-align: center;
    max-width: 800px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* 4. Our Activity */
.activity-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Hover/Animation effect */
    transition: transform 0.3s, box-shadow 0.3s;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.activity-item.reversed {
    flex-direction: row-reverse; /* For alternating layout */
}

.activity-video {
    flex: 1;
    min-width: 40%;
    margin: 0 20px;
    /* Responsive aspect ratio for iframe */
    position: relative;
    padding-bottom: 28.125%; /* 16:9 aspect ratio (50% of 56.25%) */
    height: 0;
    overflow: hidden;
}

.activity-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; /* Make the frame larger to fit 16:9 within 50% flex width */
    transform: translateY(-25%); /* Center the video vertically */
}

.activity-text {
    flex: 1;
    padding: 0 20px;
}

.activity-text h3 {
    color: var(--color-saffron);
    margin-bottom: 10px;
    font-size: 1.8em;
}

/* 5. Upcoming Event */
.upcoming-event {
    text-align: center;
    animation: pulse 2s infinite; /* Attention-grabbing animation */
}

.event-details {
    color: var(--color-white);
    padding: 20px;
}

.event-date {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.event-name {
    font-size: 2em;
    margin-bottom: 20px;
}

.event-location {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn-rsvp {
    background-color: var(--color-white);
    color: var(--color-saffron);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--color-white);
    transition: background-color 0.3s, color 0.3s;
}

.btn-rsvp:hover {
    background-color: var(--color-hover);
    color: var(--color-white);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 153, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0); }
}

/* 6. Contact Us */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info, .social-media {
    padding: 20px;
    border-left: 5px solid var(--color-saffron);
}

.contact-info h3, .social-media h3 {
    color: var(--color-saffron);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info a {
    color: var(--color-saffron);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--color-hover);
}

.social-icon {
    display: block;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--color-white);
    font-weight: bold;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon i {
    margin-right: 10px;
}

/* Individual Social Media Colors */
.instagram { background: #E1306C; }
.facebook { background: #3b5998; }
.youtube { background: #FF0000; }

.social-icon:hover {
    transform: translateX(5px); /* Slide effect on hover */
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}


/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .activity-item {
        flex-direction: column;
    }
    .activity-item.reversed {
        flex-direction: column;
    }
    .activity-video {
        width: 100%;
        margin: 0 0 20px 0;
    }
    .activity-video iframe {
        position: relative; /* Revert position for better mobile layout */
        transform: none;
        height: 300px; /* Fixed height for mobile */
    }
    .activity-text {
        text-align: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    .nav-menu {
        margin: 15px 0;
    }
    .nav-menu li {
        margin: 0 10px;
    }
    .btn-donate {
        width: 100%;
        text-align: center;
    }
    .logo h1 {
        font-size: 1.2em;
    }
    .section-title {
        font-size: 2em;
    }
}