/* =========================================================
   DANH MỤC SỰ KIỆN - BÀI VIẾT MẶC ĐỊNH WORDPRESS
========================================================= */

.pq-event-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: #08285f;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.pq-event-hero h1 {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 40px;
    line-height: 1.15;
    text-transform: uppercase;
}

.pq-event-category {
    padding: 24px 0 70px;
    background: #fff;
}

.pq-event-category__intro {
    margin-bottom: 24px;
    color: #444;
    line-height: 1.7;
}

/* Mỗi danh mục cấp 2 l một section riêng. */
.pq-event-group {
    padding: 0 0 34px;
  
    scroll-margin-top: 120px;
}

.pq-event-group:last-child {
    margin-bottom: 0;
}

.pq-event-group__heading {
    margin-bottom: 12px;
}

.pq-event-group__heading h2 {
    margin: 0;
    color: #d71920;
    font-size: 29px;
    line-height: 1.25;
    text-transform: uppercase;
}

/* Tab danh mục cấp 3 nm ngay dưới tiêu đề cp 2. */
.pq-event-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.pq-event-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #173f87;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.pq-event-tabs a:hover,
.pq-event-tabs a.is-active {
    border-color: #173f87;
    background: #173f87;
    color: #fff;
}

.pq-event-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: stretch;
}

.pq-event-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pq-event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .16);
}

.pq-event-card__image {
    display: block;
    overflow: hidden;
    background: #eef2f5;
}

.pq-event-card--featured .pq-event-card__image {
    aspect-ratio: 16 / 9.7;
}

.pq-event-card--small .pq-event-card__image {
    aspect-ratio: 16 / 7.8;
}

.pq-event-card__image img,
.pq-event-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pq-event-card__placeholder {
    background: linear-gradient(135deg, #dfe8ef, #f5f7f9);
}

.pq-event-card__content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 28px;
}

.pq-event-card__content time {
    margin-bottom: 7px;
    color: #8a8f96;
    font-size: 11px;
}

.pq-event-card__content h3 {
    margin: 0 0 10px;
    color: #d71920;
    line-height: 1.35;
}

.pq-event-card--featured h3 {
    font-size: 21px;
}

.pq-event-card--small h3 {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
   font-size: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pq-event-card__content h3 a {
    color: inherit;
    text-decoration: none;
}

.pq-event-card__content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pq-event-card__more {
    position: absolute;
    right: 12px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #d71920;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

/* Phân trang riêng của từng danh mục cấp 2. */
.pq-event-pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 30px;
}

.pq-event-pagination > a,
.pq-event-pagination > span {
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    margin: 0 !important;
    padding: 0 5px;
    border: 0;
    border-radius: 0;
    background: #696969;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.pq-event-pagination > span.current,
.pq-event-pagination > a:hover {
    background: #d71920;
    color: #fff;
}

.pq-event-pagination > a.prev,
.pq-event-pagination > a.next {
    width: auto;
    min-width: 16px;
    padding-inline: 3px;
    background: transparent;
    color: #555;
    font-size: 14px;
}

.pq-event-pagination > span.dots {
    width: auto;
    min-width: 14px;
    background: transparent;
    color: #555;
}

.pq-event-empty {
    margin: 0;
    color: #777;
}

.pq-default-category {
    padding: 55px 0 70px;
}

.pq-default-category__heading {
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .pq-event-featured-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pq-event-hero {
        min-height: 210px;
    }

    .pq-event-category {
        padding-top: 18px;
    }

    .pq-event-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .pq-event-tabs a {
        flex: 0 0 auto;
    }

    .pq-event-side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pq-event-card--small .pq-event-card__content {
        padding: 10px 10px 24px;
    }

    .pq-event-card--small h3 {
        min-height: 0;
        font-size: 12px;
    }

    .pq-event-card--small .pq-event-card__content p {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .pq-event-side-grid {
        grid-template-columns: 1fr;
    }
}



/* Căn giữa phân trang mục Sự kiện */
.pq-event-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    flex-wrap: wrap;
    width: 100%;
    margin: 22px auto 0;
    padding: 0;
    gap: 4px;
    clear: both;
}

.pq-event-pagination .page-numbers {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}