@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

/* Basic Styles */
body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background-color: #f4f1e9; /* Light Beige */
    color: #3d3d3d;
    line-height: 1.6;
}

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

/* Hero Section */
.hero {
    background-image: url('assets/webp/hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0;
}

.hero p {
    font-size: 1.6rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

/* Sections */
section {
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
}

h2 {
    text-align: center;
    color: #224B0C; /* Forest Green */
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-family: 'Caveat', cursive;
    color: #556B2F; /* Dark Olive Green */
    font-size: 2.8rem;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0dccc;
    text-align: center;
    margin-bottom: 2rem;
}

/* Program Section */
.day {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.day + .day {
    border-top: 1px solid #eee;
    margin-top: 2rem;
    padding-top: 2rem;
}

.day-1-media img,
.day-1-media .slider-container {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 5px;
    width: 100%;
}

.event {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.event img, .event video {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.video-event {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 15px 5px rgba(34, 75, 12, 0.4);
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


.event-description p, .details-item p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.free-time {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0;
    color: #556B2F;
    text-decoration: underline;
}

/* Details Section */
#details .day {
    background-color: #faf8f1;
    border: 2px solid #e0dccc;
    box-shadow: none;
}

#details .details-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

#details .details-item img {
    max-width: 100%;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.contact-card {
    background: #fff;
    border: 2px solid #e0dccc;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.contact-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Pricing Section */
#pricing {
    background-color: #224B0C; /* Forest Green */
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

#pricing h2 {
    color: white;
}

#pricing .price {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

/* Contacts Section */
#contacts {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #3d3d3d;
    color: #f4f1e9;
}

.video-event-container {
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px 8px rgba(255, 215, 0, 0.4);
    text-align: center;
    margin: 2rem auto;
    background: linear-gradient(145deg, #2E5E1C, #224B0C);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.video-event-container video {
    width: 100%;
    border-radius: 5px;
    margin: 1rem 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.video-title {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    line-height: 1.3;
    margin: 0;
    color: #FFF8E1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.video-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0.5rem 0 1rem 0;
    opacity: 0.9;
    color: #faf8f1;
}

.temple-history {
    border: 1px solid #e0dccc;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    background: #faf8f1;
}

.temple-history p {
    text-align: justify;
    margin-bottom: 1rem;
}

.temple-history p:last-child {
    margin-bottom: 0;
}

/* Mobile First - Media Queries */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .event {
        flex-direction: row;
        align-items: center;
    }

    .event:nth-child(odd) .event-description {
        order: 2;
    }
     .event:nth-child(odd) img, .event:nth-child(odd) video {
        order: 1;
    }


    .event-description, .event img, .event video, .slider-container {
        flex: 1;
    }

    .event img, .event video, .slider-container, .day-1 img {
        height: 350px;
    }
    
    .day-1 .day-content {
        display: grid;
        grid-template-columns: minmax(auto, 450px) 1fr;
        gap: 2rem;
        align-items: start;
    }

    .day-1 .day-content img {
        width: 100%;
    }

    .day-1-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .details-flex-container {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
    }

    .details-flex-container .details-item {
        flex: 1;
    }

    .video-event-container {
        max-width: 600px;
        margin: 2rem auto;
    }
}
