/* css/about.css */

/* About Hero Section */
.about-hero-section {
    height: 50vh;
    min-height: 400px;
    position: relative;
}

.people-bg {
    background: url('../images/backgrounds/people.jpg') no-repeat center center/cover;
}

.landscape-bg {
    background: url('../images/backgrounds/landscape_1.jpg') no-repeat center center/cover;
}

/* About Content Grid */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.about-content-grid.reverse .about-text {
    order: 1;
}

.about-content-grid.reverse .award-image {
    order: 2;
}

/* Judge Carousel */
.judge-carousel-container {
    text-align: center;
    color: var(--text-light);
}

.judge-carousel {
    position: relative;
    margin-bottom: 2rem;
    height: 250px; /* Added to prevent collapse with absolute positioning */
}

.judge-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute; /* To prevent layout shifts */
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.judge-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* To take up space in the layout */
}

.judge-slide img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    margin-bottom: 1rem;
}

.judge-slide h4 {
    font-size: 1.2rem;
    color: var(--text-light);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

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

.dot.active {
    background-color: var(--accent-gold);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Judge & Jury Section */
.judge-jury-section {
    padding: 4rem 0;
    background-color: white;
}

.award-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Panels Section */
.panels-section {
    padding: 4rem 0;
}

.tan-bg {
    background-color: #F5E6D3;
}

.audience-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Organizations Section */
.organizations-section {
    padding: 4rem 0;
    background-color: white;
    text-align: center;
}

.organizations-section h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Final Description Section */
.final-description-section {
    padding: 4rem 0;
    background-color: white;
}

.divider-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* About Text Styling */
.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Responsive Design for About Page */
@media (max-width: 1024px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content-grid.reverse .about-text {
        order: 2;
    }

    .about-content-grid.reverse .award-image {
        order: 1;
    }

    .judge-slide img {
        width: 150px;
        height: 150px;
    }

    .organizations-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        height: 40vh;
        min-height: 300px;
    }

    .container {
        padding: 2rem 0;
    }

    .judge-slide img {
        width: 120px;
        height: 120px;
    }

    .organizations-section h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .about-content-grid {
        gap: 1.5rem;
    }

    .judge-slide img {
        width: 100px;
        height: 100px;
    }

    .organizations-section h2 {
        font-size: 1rem;
    }
}