/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Single Event Container */
.single-event {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

/* Event Content */
.event-content {
    flex: 2;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.event-title {
    color: #333333;
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 900;
    text-transform: capitalize;
    line-height: 1.2em;
    margin: 20px 0;
}

.event-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.event-description {
    text-align: left;
    color: #383838;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* Event Details Sidebar */
.event-details {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.details-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.details-box ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
    color: #555;
}

.details-box ul li {
    font-family: "Poppins", sans-serif;
    margin-bottom: 10px;
}

.details-box ul li strong {
    color: #333333;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
}

.details-box ul li i {
    margin-right: 10px;
    font-size: 18px;
    color: #FFA026;
}

.map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 12px;
}

/* Call to Action */
.call-to-action {
    flex: 1 100%;
    background: #ffd88a;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

.call-to-action h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.call-to-action p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

/* Register Button */
.register-button {
    display: inline-block;
    padding: 16px 22px;
    background-color: orange;
    /* background-color: #FFA026; */
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.2em;
    margin-left: 10px;
    margin-right: 20px;
    transition: background-color 0.3s;
}

.register-button:hover {
    background: #FF8F00FC;
}

/* Embed Section */
.event-embeds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* Individual embed items */
.event-embed {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Embed content */
.custom-embed {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Gallery Section */
.gallery-section {
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-heading {
    font-size: 55px;
    font-family: "Playfair Display", serif;
    font-weight: 900;
    color: #333333;
    text-align: center;
}

/* Enhanced Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    /* max-width: 800px; */
    margin: 20px auto;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    /* Removed box-shadow */
    overflow: hidden;
}

/* Carousel Icons */
.carousel-icons {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.carousel-icons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.carousel-icons li {
    margin: 0;
}

.carousel-icons button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.carousel-icons button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

/* Carousel Slides */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: fit-content;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #ddd; /* Added border */
    border-radius: 12px; /* Rounded corners */
    background-color: #fff; /* Background color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Added box shadow */
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: contain; /* Ensure the image covers the container while maintaining aspect ratio */
    border-radius: 12px; /* Match border-radius with slide */
    transition: transform 0.3s ease-in-out; /* Smooth transition effect */
}

/* Add hover effect for better appearance */
.carousel-slide:hover img {
    transform: scale(1.05); /* Slightly zoom in on hover */
    object-fit: contain;
}

/* Navigation Arrows */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Dot Navigation */
.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots button {
    border: none;
    background: #ddd;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-dots .active {
    background: #333;
}

/* Thumbnails */
.carousel-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    overflow-x: auto;
}

.carousel-thumbnails .thumbnail {
    border: 2px solid transparent;
    margin: 0 5px;
    padding: 2px;
    cursor: pointer;
}

.carousel-thumbnails .thumbnail img {
    width: 80px;
    height: auto;
}

.carousel-thumbnails .thumbnail.active {
    border-color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-event {
        flex-direction: column;
        padding: 10px;
    }

    .event-content,
    .event-details {
        width: 100%;
        margin-bottom: 20px;
    }

    .call-to-action {
        width: 100%;
        margin-top: 10px;
    }

    .carousel-container {
        max-width: 100%;
        padding: 5px;
    }

    .carousel-slide {
        height: 350px; /* Adjust height for medium screens */
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 28px;
    }

    .details-box h2 {
        font-size: 20px;
    }

    .call-to-action h2 {
        font-size: 20px;
    }

    .carousel-slide {
        height: 300px; /* Adjust height for smaller screens */
    }

    .carousel-icons button {
        font-size: 18px;
        padding: 8px;
    }
}

@media (max-width: 425px) {
    .event-title {
        font-size: 24px;
    }

    .details-box h2 {
        font-size: 18px;
    }

    .call-to-action h2 {
        font-size: 18px;
    }

    .carousel-slide {
        height: 250px; /* Adjust height for very small screens */
    }

    .carousel-icons button {
        font-size: 16px;
        padding: 6px;
    }

    .carousel-thumbnails .thumbnail img {
        width: 60px;
    }
}

@media (max-width: 375px) {
    .event-title {
        font-size: 20px;
    }

    .details-box h2 {
        font-size: 16px;
    }

    .call-to-action h2 {
        font-size: 16px;
    }

    .carousel-slide {
        height: 200px; /* Further adjust height for extra small screens */
    }

    .carousel-icons button {
        font-size: 14px;
        padding: 4px;
    }

    .carousel-thumbnails .thumbnail img {
        width: 50px;
    }
}

@media (max-width: 320px) {
    .event-title {
        font-size: 18px;
    }

    .details-box h2 {
        font-size: 14px;
    }

    .call-to-action h2 {
        font-size: 14px;
    }

    .carousel-slide {
        height: 180px; /* Minimal height for the smallest screens */
    }

    .carousel-icons button {
        font-size: 12px;
        padding: 2px;
    }

    .carousel-thumbnails .thumbnail img {
        width: 40px;
    }
}
