/* Event Card: stack text and image vertically */
.event-competition {
    width: 75%;
}

.event-card {
    display: grid;
    /* two equal columns */
    grid-template-columns: 75% 25%;
    /* two rows */
    grid-template-rows: auto auto;
    /* optional spacing */
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    margin: 25px auto;
    width: 100%;
}

.event-info {
    grid-column: 1 / 2;
    padding-right: 20px;

    margin-bottom: 10px;
}

.details {
    font-size: 1rem;
    background: #e6e941;
    padding: 8px 12px;
    border-radius: 10px;
    display: inline-block;
}



.event-image {
    grid-column: 2 / 3;
    padding-right: 20px;
}

.event-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.winners {
    grid-column: 1 / -1;
    /* span across both columns */
    padding-right: 20px;
}

.winners h2 {
    font-size: 2rem;
    color: #0F4D0F;
}

.winners-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2%;
    background-color: orange;
    border-radius: 18px;
    padding: 25px;
    margin: 25px auto;
    width: 85%;
}


.winners-details .title {
    flex: 0 0 49%;
}

.winners-image,
.winners-image-left {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    /* height: 400px; */
    border-radius: 16px;
    overflow: hidden;
}

.winners-image-left {
    flex: 0 0 17%;
}

.winners-image img,
.winners-image-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title h2 {
    font-size: 1.5rem;
    color: #4d0f14;
    text-align: center;
}

.title-text {
    font-size: 1rem;
    color: #333;
    text-align: center;
}

.title-text .name {
    font-weight: 700;
    font-size: 1.2rem;
}


/* football */
#football_first_left {
    flex: 0 0 25%;

    object-fit: contain;
}

#football_first_title {
    flex: 0 0 34%;
}

#football_first {
    flex: 0 0 38%;
}

#football_second_left {
    flex: 0 0 25%;

    object-fit: contain;
}

#football_second_title {
    flex: 0 0 34%;
}

#football_second {
    flex: 0 0 38%;
}

#football_third_left {
    flex: 0 0 25%;

    object-fit: contain;
}

#football_third_title {
    flex: 0 0 34%;
}

#football_third {
    flex: 0 0 38%;
}



/* photography */
#photography_first_left {
    flex: 0 0 25%;

    object-fit: contain;
}

#photography_first_title {
    flex: 0 0 46%;
}

#photography_first {
    flex: 0 0 25%;
}


#photography_second_left {
    flex: 0 0 19%;

    object-fit: contain;
}

#photography_second_title {
    flex: 0 0 52%;
}

#photography_second {
    flex: 0 0 25%;
}


#photography_third_left {
    flex: 0 0 13%;

    object-fit: contain;
}

#photography_third_title {
    flex: 0 0 58%;
}

#photography_third {
    flex: 0 0 25%;
}

/* news reading */
/* #news_reading_first_left {
    flex: 0 0 25%;
    object-fit: contain;} */

#news_reading_first_title {
    flex: 0 0 71%;
}

#news_reading_first {
    flex: 0 0 25%;
}


/* #news_reading_second_left {
    flex: 0 0 19%;

    object-fit: contain;} */

#news_reading_second_title {
    flex: 0 0 71%;
}

#news_reading_second {
    flex: 0 0 25%;
}


#news_reading_third_left {
    flex: 0 0 13%;

    object-fit: contain;
}

#news_reading_third_title {
    flex: 0 0 58%;
}

#news_reading_third {
    flex: 0 0 25%;
}



/* dance_competition */
#dance_competition_first_left {
    flex: 0 0 34%;
    object-fit: contain;
}

#dance_competition_first_title {
    flex: 0 0 37%;
}

#dance_competition_first {
    flex: 0 0 25%;
}


#dance_competition_second_left {
    flex: 0 0 35%;

    object-fit: contain;
}

#dance_competition_second_title {
    flex: 0 0 36%;
}

#dance_competition_second {
    flex: 0 0 25%;
}

/* quiz */
#quiz_first_left {
    flex: 0 0 0%;

    object-fit: contain;
}

#quiz_first_title {
    flex: 0 0 96%;
}

#quiz_first {
    flex: 0 0 0%;
}

#quiz_second_left {
    flex: 0 0 0%;

    object-fit: contain;
}

#quiz_second_title {
    flex: 0 0 96%;
}

#quiz_second {
    flex: 0 0 0%;
}

#quiz_third_left {
    flex: 0 0 0%;

    object-fit: contain;
}

#quiz_third_title {
    flex: 0 0 96%;
}

#quiz_third {
    flex: 0 0 0%;
}

/* ========= Mobile (max-width: 600px) ========= */
@media (max-width: 600px) {


    .event-card,
    .winners-details {
        display: flex;
        flex-direction: column;
        width: 88%;
        margin: auto;
    }

    .details {
        font-size: 12px;
    }

    .winners-image,
    .winners-image-left {
        height: 10px;
    }

    .winners-image img,
    .winners-image-left img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}