/* Other Events Section Styles */

@font-face {
    font-family: 'Inria Serif';
    src: url('../../assets/fonts/Inria_Serif/InriaSerif-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Inria Serif';
    src: url('../../assets/fonts/Inria_Serif/InriaSerif-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'New Rocker';
    src: url('../../assets/fonts/New_Rocker/NewRocker-Regular.ttf') format('truetype');
}

.other-events {
    width: 100%;
    padding: 0 2rem 4r 2rem;
    background-color: #f5f1e8;
}

.other-events__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.other-events__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.other-events__comet-left,
.other-events__comet-right {
    width: 160px;
    height: auto;
}

.other-events__comet-left {
    transform: rotate(-90deg);
}

.other-events__comet-right {
    transform: rotate(90deg);
}

.other-events__title {
    font-family: 'Inria Serif', serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 0;
    text-align: center;
    letter-spacing: 3px;
    white-space: nowrap;
}

.other-events__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.other-events__card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.other-events__card-frame {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e8e4d9;
}

.other-events__card-border-left,
.other-events__card-border-right {
    position: absolute;
    height: auto;
    width: 40%;
    z-index: 2;
}

.other-events__card-border-left {
    top: -4%;
    left: -5%;
}

.other-events__card-border-right {
    bottom: 35.5%;
    right: -5%;
    transform: rotate(180deg);
}

.other-events__image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #d4cfc0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-events__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.other-events__card-title {
    font-family: 'Inria Serif', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.other-events__card-text {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2c2c2c;
    text-align: justify;
    margin: 0;
    background-color: #E4D1BF;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Featured Section Styles */
.other-events__featured {
    margin-top: 4rem;
}

.other-events__featured-image {
    position: relative;
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
    width: 40%;
}

.other-events__border-left,
.other-events__border-right {
    position: absolute;
    height: auto;
    width: 60%;
    z-index: 2;
}

.other-events__border-left {
    top: -10%;
    left: -7.5%;
}

.other-events__border-right {
    bottom: -10%;
    right: -7.5%;
    transform: rotate(180deg);
}

.other-events__featured-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #d4cfc0;
    border: 2px solid #1a3a52;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-events__featured-image-content {
    width: 100%;
    height: 100%;
    border: 2px solid #1a3a52;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.other-events__featured-content {
    display: block;
}

.other-events__featured-title {
    font-family: 'Inria Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.other-events__featured-drop-cap {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.other-events__featured-text {
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c2c2c;
    text-align: justify;
    margin: 0;
}

/* ========================= */
/* FINAL SECTION             */
/* ========================= */

.other-events__final-section {
    margin-top: 4rem;
}

.other-events__final-content {
    display: block;
}

/* FLOAT IMAGE to the right */
.other-events__final-image {
    float: right;
    width: 42%;
    margin-left: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.other-events__final-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
}

.other-events__final-new-border-left,
.other-events__final-new-border-right {
    position: absolute;
    height: auto;
    width: 60%;
    z-index: 2;
}

.other-events__final-new-border-left {
    top: -11%;
    left: -8%;
}

.other-events__final-new-border-right {
    bottom: -11%;
    right: -8%;
    transform: rotate(180deg);
}

.other-events__final-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #d4cfc0;
    border: 2px solid #1a3a52;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-events__final-image-content {
    width: 100%;
    height: 100%;
    border: 2px solid #1a3a52;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.other-events__final-image-title {
    font-family: 'Inria Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 1rem 0 0 0;
    text-align: left;
    line-height: 1.2;
}

/* Title and text flow around the floated image */
.other-events__final-title {
    font-family: 'Inria Serif', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    text-align: center;
}

.other-events__final-subtitle {
    font-family: 'Inria Serif', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1a3a52;
    margin: 0 0 1rem 0;
    text-align: center;
}

.other-events__final-text {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2c2c2c;
    text-align: justify;
    margin: 0 0 1rem 0;
}

/* Clear float */
.other-events__final-section::after {
    content: "";
    display: block;
    clear: both;
}

/* ========================= */
/* Responsive Design         */
/* ========================= */

@media (max-width: 1024px) {
    .other-events__title {
        font-size: 2.8rem;
    }

    .other-events__content {
        gap: 2rem;
    }

    .other-events__featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .other-events {
        padding: 0 1.5rem 2.5rem 1.5rem;
    }

    .other-events__container {
        padding: 0 1.5rem;
    }

    .other-events__header {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .other-events__title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .other-events__comet-left,
    .other-events__comet-right {
        width: 80px;
    }

    .other-events__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .other-events__card-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .other-events__featured-title {
        font-size: 1.3rem;
    }

    .other-events__featured-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .other-events__featured-image {
        float: none;
        width: 100%;
        margin: 0 0 1.5rem 0;
    }

    /* Final section responsive */
    .other-events__final-image {
        float: none;
        width: 100%;
        margin: 0 0 1.5rem 0;
    }

    .other-events__final-title {
        font-size: 2rem;
        text-align: center;
    }

    .other-events__final-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .other-events__final-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .other-events__final-image-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .other-events {
        padding: 1.5rem 1rem;
    }

    .other-events__container {
        padding: 0 1rem;
    }

    .other-events__header {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .other-events__title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .other-events__comet-left,
    .other-events__comet-right {
        width: 30px;
        height: 40px;
    }

    .other-events__card-frame {
        margin-bottom: 1rem;
    }

    .other-events__card-border-right {
        bottom: 60.5% !important;
    }

    .other-events__card-title {
        font-size: 1rem;
    }

    .other-events__card-text {
        font-size: 0.85rem;
    }
}