﻿/* =========================================
   EVENT DETAILS WIDGET
   ========================================= */

.event-widget {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    color: #10263B;
    box-sizing: border-box;
}

.event-widget *,
.event-widget *::before,
.event-widget *::after {
    box-sizing: border-box;
}


/* =========================================
   MAIN SECTION
   8:4 desktop layout
   ========================================= */

.event-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}


/* =========================================
   EVENT IMAGE
   ========================================= */

.event-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #d9e0e5;
    background: #f3f5f7;
}

.event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================
   EVENT INFORMATION
   One unified card
   ========================================= */

.event-info {
    width: 100%;
    padding: 22px;

    background: #ffffff;
    border: 1px solid #d9e0e5;

    box-shadow: 0 3px 12px rgba(16, 38, 59, 0.08);

    display: flex;
    flex-direction: column;
    gap: 0;
}


/* Individual information rows */

.event-info-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    align-items: start;

    padding: 15px 0;

    border-bottom: 1px solid #e4e8eb;
}

.event-info-item:first-child {
    padding-top: 0;
}

.event-info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}


/* =========================================
   ICON
   ========================================= */

.event-info-icon {
    width: 32px;
    min-height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
}


/* =========================================
   INFORMATION TEXT
   ========================================= */

.event-info-content {
    min-width: 0;
}

.event-info-label {
    margin-bottom: 4px;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    color: #687580;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-info-value {
    font-size: 16px;
    line-height: 1.5;
    color: #10263B;
}


/* =========================================
   SECONDARY SECTION
   1:1 desktop layout
   ========================================= */

.event-secondary {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;

    margin-top: 32px;
}


/* Registration and cancellation card */

.event-secondary-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    align-items: center;

    min-height: 120px;
    padding: 20px;

    background: #f6f8fa;
    border: 1px solid #dfe5e9;
}


/* =========================================
   QR CODE
   ========================================= */

.event-secondary-item.event-register {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-register img {
    display: block;

    width: 110px;
    height: 110px;

    object-fit: contain;

    background: #ffffff;
    padding: 6px;

    border: 1px solid #d9e0e5;
}


/* =========================================
   EVENT DESCRIPTION
   ========================================= */

.event-description {
    margin-top: 40px;
    padding-top: 30px;

    border-top: 3px solid #10263B;
}

.event-description h2 {
    margin: 0 0 20px;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;

    color: #10263B;
}

.event-description p {
    margin: 0 0 18px;

    font-size: 17px;
    line-height: 1.7;

    color: #333;
}

.event-description p:last-child {
    margin-bottom: 0;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .event-main {
        grid-template-columns: 3fr 2fr;
        gap: 24px;
    }

    .event-info {
        padding: 18px;
    }

    .event-info-item {
        grid-template-columns: 28px 1fr;
        column-gap: 10px;
        padding: 13px 0;
    }

    .event-info-icon {
        width: 28px;
        font-size: 16px;
    }

    .event-info-value {
        font-size: 15px;
    }

    .event-secondary {
        gap: 24px;
    }

    .event-secondary-item {
        grid-template-columns: 28px 1fr;
        column-gap: 10px;
        padding: 16px;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    /* Main section */

    .event-main {
        display: flex;
        flex-direction: column;
        gap: 20px;

        align-items: stretch;
    }


    /* Banner */

    .event-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }


    /* Information card */

    .event-info {
        width: 100%;
        padding: 20px;
    }

    .event-info-item {
        padding: 14px 0;
    }

    .event-info-label {
        font-size: 13px;
    }

    .event-info-value {
        font-size: 16px;
    }


    /* Secondary section */

    .event-secondary {
        display: flex;
        flex-direction: column;
        gap: 10px;

        margin-top: 10px;
    }


    /* Registration / cancellation */

    .event-secondary-item {
        min-height: auto;
        padding: 18px;
    }


    /* QR code becomes full-width */

    .event-secondary-item.event-register {
        width: 100%;
        min-height: 0;
        padding: 20px;
    }

    .event-register img {
        width: 100%;
        height: auto;
        max-width: 260px;
        aspect-ratio: 1 / 1;
    }


    /* Description */

    .event-description {
        margin-top: 20px;
        padding-top: 25px;
    }

    .event-description h2 {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .event-description p {
        font-size: 16px;
        line-height: 1.7;
    }

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 400px) {

    .event-info {
        padding: 16px;
    }

    .event-info-value {
        font-size: 15px;
    }

    .event-description h2 {
        font-size: 24px;
    }

    .event-description p {
        font-size: 15px;
    }

    .event-secondary-item {
        padding: 16px;
    }

}