/*==================================================
        NIH UPCOMING EVENTS SECTION
==================================================*/

.conference-home {
    padding: 120px 0;
    background: #f8fbf9;
    position: relative;
    overflow: hidden;
}

.conference-home::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(15, 107, 75, 0.05);
    top: -180px;
    right: -180px;
}

.conference-home::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 216, 107, 0.08);
    bottom: -160px;
    left: -120px;
}

.conference-home .container {
    position: relative;
    z-index: 2;
}


/*==================================================
        EVENTS GRID
==================================================*/

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    margin-top: 60px;
}


/*==================================================
        EVENT CARD
==================================================*/

.event-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.09);
    border: 1px solid rgba(15, 107, 75, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.14);
}


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

.event-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.03) 60%
    );
    pointer-events: none;
}


/*==================================================
        DATE BADGE
==================================================*/

.event-badge {
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 22px;
    min-width: 82px;
    padding: 12px 13px;
    border-radius: 16px;
    background: #ffffff;
    color: #0f6b4b;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.event-badge span {
    display: block;
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
}

.event-badge small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1px;
}


/*==================================================
        EVENT CONTENT
==================================================*/

.event-content {
    padding: 34px;
}

.event-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f6b4b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-label i {
    font-size: 15px;
}

.event-content h3 {
    margin: 13px 0 14px;
    color: #17352b;
    font-family: "Playfair Display", serif;
    font-size: 29px;
    line-height: 1.25;
    font-weight: 700;
}

.event-description {
    margin: 0;
    color: #5d6864;
    font-size: 15px;
    line-height: 1.8;
}


/*==================================================
        EVENT INFORMATION
==================================================*/

.event-info {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #e7eeeb;
}

.event-info > div {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.event-info > div:last-child {
    margin-bottom: 0;
}

.event-info i {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eaf8f1;
    color: #0f6b4b;
    font-size: 16px;
}

.event-info span {
    display: flex;
    flex-direction: column;
    color: #414b47;
    font-size: 14px;
    line-height: 1.5;
}

.event-info strong {
    color: #17352b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}


/*==================================================
        BUTTONS
==================================================*/

.event-buttons {
    margin-top: 25px;
}

.event-buttons .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 25px;
}


/*==================================================
        EVENT COUNTDOWN
==================================================*/

.event-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 27px;
}

.event-time-box {
    min-height: 74px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0f6b4b;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 107, 75, 0.18);
    transition: 0.3s ease;
}

.event-time-box:hover {
    transform: translateY(-4px);
    background: #ffd86b;
    color: #0f6b4b;
}

.event-time-box span {
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
}

.event-time-box small {
    margin-top: 7px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.event-started .event-time-box {
    background: #17352b;
}


/*==================================================
        RESPONSIVE
==================================================*/

@media (max-width: 991px) {

    .events-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

}


@media (max-width: 768px) {

    .conference-home {
        padding: 80px 0;
    }

    .events-grid {
        margin-top: 40px;
        gap: 25px;
    }

    .event-image {
        height: 250px;
    }

    .event-content {
        padding: 27px 24px;
    }

    .event-content h3 {
        font-size: 25px;
    }

}


@media (max-width: 480px) {

    .event-image {
        height: 220px;
    }

    .event-badge {
        top: 16px;
        left: 16px;
        min-width: 70px;
        padding: 10px;
    }

    .event-badge span {
        font-size: 20px;
    }

    .event-content {
        padding: 23px 19px;
    }

    .event-content h3 {
        font-size: 23px;
    }

    .event-countdown {
        gap: 7px;
    }

    .event-time-box {
        min-height: 68px;
        border-radius: 11px;
    }

    .event-time-box span {
        font-size: 21px;
    }

    .event-time-box small {
        font-size: 9px;
    }

}
