/* Container for the whole section */
.main-body3{
    background: #111A2C;
}

.events-section {
    position: relative;
    width: 100vw;
    min-height: calc(100vh - 80px); /* Adjusts for header */
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Background Planet */
.purple-planet {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, #3b0086, #1a0033);
    border-radius: 50%;
    top: 15%;
    left: 25%;
    opacity: 0.8;
    filter: blur(4px);
    z-index: 0;
}

/* Title */
.page-main-title {
    position: absolute;
    justify-content: center;
    top: 4vh; 
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Barlow', sans-serif;
    font-size: 4rem;
    font-weight: 500;
    color: #ffffff;
    z-index: 10;
}

/* Carousel Track */
.carousel-container {
    position: relative; /* <-- Add this line! */
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

.carousel-pane {
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10vw;
}

.pane-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* Text Styling */
.text-column {
    flex: 1;
    max-width: 500px;
    color: white;
}

.event-category {
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.event-title {
    font-family: 'Barlow', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 25px;
}

.event-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* The Frosted Gradient Image Box */
.image-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.event-image {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 16 / 10;
    object-fit: cover; 
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    padding: 20px;
}

.carousel-arrow:hover {
    color: white;
}

.left-arrow { left: 2vw; }
.right-arrow { right: 2vw; }

/* Pagination Dots */
.carousel-dots {
    position: absolute;
    bottom: 10%;
    left: 10vw; /* Aligns with the text column /*/ 
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* Mobile Responsiveness */
@media (max-width: 800px) {
    .pane-content {
        flex-direction: column;
        text-align: center;
        
        margin-top: 100px; 
        
        transform: translateY(0); 
        
        padding-bottom: 60px; 
        gap: 15px; 
    }

    .event-category {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        letter-spacing: 0.2em; 
    }

    .event-title {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        font-size: 3.5rem; 
    }

    .text-column {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;
    }
    
    .text-column {
        width: 100%;      
        max-width: 100%; 
        display: flex;
        flex-direction: column;
        align-items: center; 
        padding: 0 30px;    
        margin: 0 auto;    
    }

    .event-desc {
        text-align: center;
        width: 100%;
    }

    .carousel-arrow {
        font-size: 2rem;
        padding: 15px;
    }
    .left-arrow { left: 0; }
    .right-arrow { right: 0; }
    
    .carousel-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 5%;
    }
    
    .image-placeholder {
        margin-top: 30px;
    }
    
    .carousel-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px; 
    }

    .page-main-title {
        font-size: 3rem;
        top: 2vh; 
    }
}
