﻿.event-section {
    padding-bottom: 42px;
}
.event-section-main {
}
.event-section-main-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 46px;
}

.event-section-main-content {
    display: flex;
    gap: 22px;
    height: fit-content;
}

.event-section-main-content-left {
    position: relative;
    flex: 55;
    border-radius: 10px;
    overflow: hidden;
    height: fit-content;
}
.event-section-main-content-left-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.event-section-main-content-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s ease;
}
.event-section-main-content-left:hover .event-section-main-content-left-img img {
    scale: 1.2;
}

.event-section-main-content-left-info {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: var(--white-color);
    padding-left: 16px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgb(217, 217, 217, 0), rgb(113, 113, 113, 0.58), rgb(115, 115, 115, 0.9));
}
.event-section-main-content-left-info h6 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}
.event-section-main-content-left-info p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-left: 8px;
}
.event-section-main-content-left-info p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}
.event-section-main-content-left-status {
    position: absolute;
    right: 6px;
    bottom: 6px;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
}

.status-ongoing {
    background: linear-gradient(to left, #28a745, #218838, #1e7e34); /* Đang diễn ra (Xanh) */
}

.status-upcoming {
    background: linear-gradient(to left, #dc3545, #c82333, #bd2130); /* Sắp diễn ra (Đỏ) */
}

.status-ended {
    background: linear-gradient(to left, #17a2b8, #138496, #117a8b); /* Đã kết thúc (Màu info - Xanh lam) */
}


.event-section-main-content-right {
    flex: 45;
}
.event-section-main-content-right-lst {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 12px;
}
.event-section-main-content-right-item {
    display: flex;
    gap: 16px;
}
.event-section-main-content-right-item-info {
    display: flex;
    align-items: center;
    min-height: 100%;
    box-shadow: inset 7px 0 7px -9px #0a203e;
    transition: box-shadow 0.3s ease;
}
.event-section-main-content-right-item-info p {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding-left: 20px;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.event-section-main-content-right-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-wrap: nowrap;
    padding: 0 36px;
    border-radius: 6px;
    border: 1px solid transparent;
    width: 84px;
    transition: 0.3s ease;
}
.event-section-main-content-right-time h6 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2px 0;
}
.event-section-main-content-right-time p {
    font-size: 15px;
    font-weight: 500;
    color: #7a7a7a;
    margin: 0;
}
.event-section-main-content-right-time p:last-child {
    font-size: 13px;
}

.event-section-main-content-right-item:hover .event-section-main-content-right-time {
    border: 1px solid #18ab5d;
    box-shadow: -2px -2px 8px 4px rgba(169, 229, 197, 0.8), 2px 2px 8px 4px rgba(169, 229, 197, 0.8);
}

.event-section-main-content-right-item:hover .event-section-main-content-right-item-info {
    box-shadow: none;
}

@media (max-width: 768px) {
    .event-section {
        padding-bottom: 32px;
    }
    .event-section-main-content {
        flex-direction: column;
        gap: 24px;
    }
    .event-section-main-content-left-info p {
        font-size: 12px;
    }
    .event-section-main-content-left-status {
        font-size: 11px;
    }

    .event-section-main-content-right-item {
        gap: 10px;
    }
    .event-section-main-content-right-item-info p {
        font-size: 15px;
    }
}
