
.events-section {
    padding: 60px 0 80px;
}

.section-subtitle {
    text-transform: uppercase;
    color: #333333;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.events-title {
    color: #1f305a;
    font-size: 40px;
    font-weight: 800;
    display: block;
    line-height: 50px;
}

.events-list {
    margin-top: 30px;
}

.after-effet1 {
    position: relative;
    width: 200px;
    margin: 0 auto;
    height: 16px;
}

    .after-effet1:before {
        background: url(../images/style1.png) no-repeat;
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        top: 0%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .after-effet1:after {
        background: #ececec;
        height: 1px;
        width: 100%;
        position: absolute;
        z-index: 999;
        top: 50%;
        content: "";
        left: 0;
        right: 0;
    }

.event-item-wrapper {
    margin-bottom: 40px;
    position: relative;
    padding: 0;
}

.event-date-container {
    position: absolute;
    top: 41%;
    left: 7%;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    width: 4em;
    height: 4em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

    .event-date-container .event-month {
        font-size: .85em;
        margin: 0;
        padding: 0;
        line-height: 1;
        display: block;
        margin-bottom: 2px;
    }

    .event-date-container .event-day {
        font-size: 1.3em;
        color: var(--accent-color);
        font-weight: 700;
        margin: 0;
        padding: 0;
        line-height: 1;
        display: block;
        margin-top: 2px;
    }

    .event-date-container:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

.event-content {
    padding: 20px;
    padding-top: 10px;
}

.events-category {
    margin-bottom: 15px;
}

    .events-category a {
        font-size: 17px;
        font-weight: 500;
        color: #333333;
        text-transform: uppercase;
        letter-spacing: 0px;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        text-overflow: ellipsis;
        overflow: hidden;
        line-height: 21px;
    }

        .events-category a:hover {
            color: #1f305a;
        }

.event-thumbnail-link {
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.event-thumbnail-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 20px;
}

.event-item:hover .event-thumbnail-img {
    transform: scale(1.08);
}

.event-thumbnail-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: all 900ms ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.event-thumbnail-link:hover::after {
    left: 50%;
    right: 50%;
    opacity: 1;
}

.event-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px 0;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #808080;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-full-date {
    background: var(--primary-color);
    font-size: 15px;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    text-align: center;
}

.event-organizers {
    margin-top: 15px;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.organizer-link {
    display: inline-block;
}

.organizer-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    transition: transform 0.3s ease;
    object-fit: contain;
    flex-shrink: 0;
}

.organizer-link:hover .organizer-logo {
    transform: scale(1.15);
}

/* Hiệu ứng animation cho sự kiện */
.event-item-wrapper:nth-child(1) .event-item {
    animation: fadeIn 0.5s ease-out 0.1s forwards;
}

.event-item-wrapper:nth-child(2) .event-item {
    animation: fadeIn 0.5s ease-out 0.2s forwards;
}

.event-item-wrapper:nth-child(3) .event-item {
    animation: fadeIn 0.5s ease-out 0.3s forwards;
}

.event-item-wrapper:nth-child(4) .event-item {
    animation: fadeIn 0.5s ease-out 0.4s forwards;
}

/* Responsive Styles cho phần sự kiện */
/* Desktop lớn */
@media (min-width: 1400px) {
    .event-thumbnail-img {
        height: 210px;
        transition: transform 0.3s ease;
        transform-origin: center center;
    }

    .event-item {
        margin: 0 15px;
    }

    .event-item-wrapper {
        margin-bottom: 45px;
    }
}

/* Desktop trung bình */
@media (max-width: 1199px) {
    .event-thumbnail-img {
        height: 200px;
        transition: transform 0.3s ease;
        transform-origin: center center;
    }

    .event-item {
        margin: 0 8px;
    }

    .event-item-wrapper {
        margin-bottom: 35px;
    }

    .event-date-container {
        top: 42%;
        left: 8%;
    }

    .event-content {
        padding: 12px;
        padding-top: 8px;
    }

    .events-category a {
        font-size: 16px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .events-section {
        padding: 50px 0 70px;
    }

    .event-content {
        padding: 6px;
    }

    .events-list {
        margin-top: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .event-full-date {
        font-size: 13px;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .reverse-event {
        flex-direction: column-reverse;
    }

        .reverse-event .news-content-right{
            margin-top: 0;
        }

        .event-organizers {
            margin-top: 12px;
            gap: 5px;
        }

    .organizer-logo {
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .events-category a {
        font-size: 15px;
    }

    .event-item {
        flex-direction: column;
        margin: 0 0 20px 0;
    }

    .events-title {
        line-height: unset;
    }
}

/* Mobile nhỏ */
@media (max-width: 575px) {

    .event-full-date {
        font-size: 12px;
    }

    .organizer-logo {
        width: 22px;
        height: 22px;
        object-fit: contain;
        flex-shrink: 0;
    }
}

/* Mobile rất nhỏ */
@media (max-width: 480px) {


    .event-thumbnail-link,
    .event-content {
        width: 100%;
        overflow: hidden;
    }


    .event-date-container {
        display: none;
    }


    .event-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
        max-height: 3em;
    }

    .events-list {
        margin-top: 10px;
    }
}

/* Mobile cực nhỏ */
@media (max-width: 360px) {
    .event-thumbnail-img {
        height: 140px;
        transition: transform 0.3s ease;
        transform-origin: center center;
    }

    .event-date-container {
        width: 2.5em;
        height: 2.5em;
    }

        .event-date-container .event-month {
            font-size: .65em;
        }

        .event-date-container .event-day {
            font-size: 1.1em;
        }

    .event-content {
        padding: 10px;
    }
}
