.event-page-main {
    padding-bottom: 64px;
}

/* --- Section Header --- */
.event-section {
    margin-bottom: 48px;
}

.event-section__header {
    margin-bottom: 32px;
}

.event-section__title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    position: relative;
}

.event-section__title-wrap::before,
.event-section__title-wrap::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #E5E5E5;
    position: relative;
    top: 12px;
}

.event-section__title-content {
    text-align: center;
    position: relative;
}

.event-section__title-content::before {
    content: "";
    display: block;
    width: 80px;
    height:4px;
    background-color: var(--text-red, #ED1D26);
    margin: 0 auto 8px;
}

.event-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin: 0;

}

/* --- Event Grid --- */
.event-grid {
    display: grid;
    gap: 48px;
}

.event-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.event-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Event Card --- */
.event-card {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    background-color: #FFFFFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card__image .image-container img {
    border-radius: 4px 4px 0 0;
}

.event-card__image {
    width: 100%;
}

.event-card__content {
    flex: 1;
    padding: 24px;
    background-color: #F7F2F3;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.event-card__date {
    font-size: 17px;
    font-weight: 400;
    color: #222222;
    margin-bottom: 8px;
}

.event-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 12px;
    line-height: 1.4;

}

.event-card__title a {
    transition: color 0.3s ease;
}

.event-card__title a:hover {
    color: var(--text-red, #ED1D26);
}

.event-card__desc {
    font-size: 17px;
    color: #4E4E4E;
    margin-bottom: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card__footer {
    margin-top: auto;
    text-align: center;
}

.event-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background-color:#C4161C;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
    height: 40px;
}

.event-card__btn:hover {
    background-color: #d9292f;
    color: #FFFFFF;
}
/* --- Pagination Override if needed --- */
.event-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

/* --- Responsive --- */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .event-grid {
        gap: 32px;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .event-card__content {
        padding: 20px;
    }
    .category-page-header__title {
        font-size: 32px;
    }
    .event-grid.event-grid--3col {
        gap: 32px;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767.98px) {
    .event-card {
        margin: 0 -16px;
        border-radius: 0;
    }
    .event-card__image .image-container img {
        border-radius: 0;
    }
    .event-card__desc {
        -webkit-line-clamp: 5;
    }
    .event-card__content {
        padding: 20px 16px 32px;
    }
    .event-grid--3col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .event-section__title-wrap::before, .event-section__title-wrap::after {
        display: none;
    }
    .event-section__title-content::before {
        margin: 0 0 8px;
    }
    .event-section__title-content {
        text-align: left;
    }
    .event-section__title-wrap {
        justify-content: flex-start;
    }
    .event-section__header {
        margin-bottom: 12px;
    }
}

/* ============================================================
   EVENT DETAIL PAGE STYLES
   ============================================================ */
@media (min-width:1200px) {
    .event-detail-page .container {
        max-width: 1199px;
    }
}
.event-detail-page {
    padding: 24px 0;
}

.event-detail__layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 48px;
    align-items: flex-start;
}

/* --- Sidebar --- */
.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 80px;
}
.event-sidebar__button {
    margin-top: 24px;
}
.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding:0 16px;
    background-color:#C4161C;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    height: 48px;
    text-align: center;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}
.event-sidebar__button--end .btn-register {
    background: #F5F5F5;
    pointer-events: none;
    color: #909090;
}
.btn-register:hover {
    background-color: #ED1D26;
    color: #FFFFFF;
}

.event-sidebar__section-title {
    font-size: 18px;
    color: #7A7A7A;
    margin-bottom: 12px;
    font-weight: 400;
}

.countdown {
    display: flex;
    gap: 20px;
}

.countdown__item {
    flex: 1;
    background-color: rgba(237, 29, 38, 0.15);
    padding: 12px;
    text-align: center;
    border-radius: 4px;
}

.countdown__number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #ED1D26;
    margin-bottom: 4px;
    font-family: "VNE2";
}

.countdown__label {
    font-size:18px;
    color: #ED1D26;
    font-weight: 400;
}

.event-links__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding:10px 16px;
    background-color: #F6F9FF;
    border-radius: 20px;
    color: #1981FF;
    font-size: 18px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}
.event-links__item .text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-links__item:hover {
    background-color: #e6f0ff;
    color: #1981FF;
}

/* --- Main Content --- */
.event-main-content {
    min-width: 0;
}
.event-detail-page .title-section {
    font-size: 24px;
        padding-top: 12px;
}
.event-detail-page .title-site-border {
    margin-bottom: 16px;
}
.event-title {
    font-size: 32px;
    font-weight: 700;
    color: #222222;
    line-height: 1.3;
}
.event-content__header {
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 24px;
    padding-bottom: 32px;
}
.event-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 32px;
    padding-bottom: 32px;
}

.event-info-item {
    display: flex;
    gap: 12px;
}

.event-info-item__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-info-item__content {
    flex: 1;
}

.event-info-item__label {
    display: block;
    font-size: 17px;
    color: #7A7A7A;
    margin-bottom: 4px;
}

.event-info-item__text {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    line-height: 1.3;
}

.content-section {
    margin-bottom: 40px;
}

.content-section__title {
    position: relative;
    padding-top: 16px;
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 24px;
}

.content-section__title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ED1D26;
}

.content-section__text {
     font-size: 20px;
    line-height: 1.6;
    color: #222222;
    margin-bottom: 24px;
}
.event-main-content .article-detail-section__main {
    max-width: 100%;
    padding: 0;
    border-radius: 0;
}
@media (max-width:767.98px) {
    .event-title {
    font-size: 26px;
}
}
/* --- Guest List --- */
.guest-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guest-item {
    display: flex;
    gap: 24px;
    align-items: center;
}

.guest-item__avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.guest-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.guest-item__info {
    flex: 1;
}

.guest-item__name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 4px;
}

.guest-item__title {
    display: block;
    font-size: 17px;
    color: #646464;
    line-height: 1.3;
}

/* --- Responsive --- */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .event-detail__layout {
        grid-template-columns: 300px 1fr;
        gap:24px;
    }
    .countdown {
        gap: 12px;
    }
}
@media (max-width: 991.98px) {
    .event-detail__layout {
        display: flex;
        flex-direction: column;
        gap:24px;
    }
    .event-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        gap: 24px;
    }
    main.event-main-content {
        min-width: auto;
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    .event-detail-page {
        padding-top: 0;
    }
    .event-sidebar__poster .image-container {
        margin-left: -16px;
        width: calc(100% + 32px);
    }
    .event-sidebar__poster .image-container img {
        border-radius: 0;
    }
    .countdown {
        gap: 16px;
    }
    .event-main-content {
        display: flex;
        flex-direction: column;
    }
    .event-content__header { order: 1; margin-bottom: 16px; padding-bottom: 16px; }
    .event-info-list { order: 2; margin-bottom: 24px; padding-bottom: 16px; }
    .content-section--organizer { order: 3; }
    .content-section--guests { order: 4; }
    .content-section--related-news { order: 5; }
    .content-section--intro { order: 6; }
    .content-section--schedule { order: 7; }
    .content-section--sponsors { order: 8; }
    .content-section--video { order: 9; }
    .content-section--gallery { order: 10; }
    .content-section__text.article-editor {
    margin: 0;
}
    .event-sidebar__block--link {
        display: none;
    }
    .guest-item__name {
        font-size: 22px;
    }
    .guest-item__avatar {
        width: 100px;
        height: 100px;
    }
}



/* --- Schedule --- */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.schedule-item__time {
    display: block;
    color: #ED1D26;
    font-size: 20px;
    font-weight: 700;
    margin-bottom:4px;
}

.schedule-item__desc {
    font-size: 20px;
    line-height: 1.5;
    color: #222222;
}

.schedule-item__desc strong {
    font-weight: 700;
}

/* --- Sponsors --- */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}



/* --- Organizer List --- */
.organizer-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}
.organizer-item {
    text-align: center;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .organizer-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
@media (max-width: 767.98px) {
    .organizer-list {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575.98px) {
    .organizer-list {
        grid-template-columns: 1fr;
    }
    .organizer-item {
        text-align: left;
    }
}
/* --- Related News --- */
.related-news-slider {
    overflow: hidden;
}
.related-news-slider .swiper-slide {
    position: relative;
}
.related-news-slider .swiper-slide::after {
    content: "";
    position: absolute;
    right: -24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #EDEDED;
}
.related-news-slider .swiper-slide:last-child::after {
    display: none;
}
.news-item__thumb {
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}
.news-item__thumb img {
    width: 100%;
}
.news-item__title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}
.news-item__title a {
    color: #222222;
    transition: color 0.3s;
}
.news-item__title a:hover {
    color: #ED1D26;
}

.title-site-border--nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.title-section__nav {
    display: flex;
    gap: 12px;
}
.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #4E4E4E;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.nav-btn:hover {
    border-color: #ED1D26;
}

/* --- Gallery Slider --- */
.gallery-main .image-container {
    background: #F4F4F4;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.gallery-figure {
    position: relative;
    margin: 0;
}
.gallery-caption {
    text-align: center;
    font-size: 18px;
    color: #4E4E4E;
    margin-top: 12px; 
    margin-bottom: 24px;
    font-weight: 400;
}
.gallery-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 12px;
    z-index: 5;
}
.gallery-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}
.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}
.gallery-btn img {
    width: 18px;
    filter: brightness(0) invert(1);
}

.gallery-thumbs-gallery {
    margin-bottom: 24px;
}
.gallery-thumbs-gallery .swiper-slide {
    cursor: pointer;
    width: auto !important;
    transition: all .3s;
}

.gallery-thumbs-gallery .image-container {

    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
    height: 96px;
    padding-top: 0;
}
.gallery-thumbs-gallery .swiper-slide-thumb-active .image-container img {
    border-color: #EF8282;
}
.gallery-main .js-gallery-img {
    object-fit: contain;
}
.gallery-thumbs-gallery .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    transition: all .3s;
    border: 2px solid transparent;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 300px;
    margin: 0 auto;
}
.gallery-controls .ct-nav-slide {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
}
.gallery-controls .ct-pagination {
    width: auto;
    bottom: auto;
    height: auto;
    display: flex;
    align-items: center;
    flex: 1;
}
@media (max-width:767px) {
    .gallery-main {
        margin: 0 -16px;
    }
    .gallery-main .image-container img {
        border-radius: 0;
    }
    .gallery-main .image-container {
        border-radius: 0;
    }
    .gallery-main .gallery-caption {
        padding: 0 16px;
    }
    .gallery-thumbs-gallery {
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }
}
/* --- Video Slider --- */
.video-slider {
    position: relative;
    padding-bottom: 24px;
}
.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}
.video-play-btn img {
    width: 60px;
    height: 60px;
}
.video-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 300px;
    margin: 24px auto 0 auto;
}
.video-slider__controls .ct-nav-slide {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
}
.video-slider__controls .ct-pagination {
    width: auto;
    bottom: auto;
    height: auto;
    display: flex;
    align-items: center;
    flex: 1;
}
@media (max-width: 767.98px) {
    .news-item__title {
        font-size: 18px;
    }
    .title-site-border--nav {
        align-items: center;
    }
    .related-news-slider .new-item_vertical {
        padding-bottom: 0;
        margin-bottom: 0;
        border: none;
    }
    .content-section--related-news .title-section__nav {
        display: none;
    }
    .related-news-slider {
        padding:0 16px;
        margin:0 -16px;
    }
    .video-play-btn img {
        width: 48px;
        height: 48px;
    }
    .video-slider__controls {
        gap: 16px;
    }
    .video-slider {
        margin: 0 -16px;
        padding: 0 16px;
    }
}
