.qx-animation-slide-left-medium {
height: 100%;
}
#t4-top-bar.header1 {
    background-color: #dfc43f;
}


/* Giữ top navigation dropdown trên trên nội dung và plugin overlays */
#t4-header {
    position: relative;
    z-index: 3000;
}

#t4-header .t4-navbar nav.navbar #t4-megamenu-mainmenu ul.navbar-nav > li.dropdown > .dropdown-menu {
    z-index: 3100;
}

/* Fallback: giữ hover dropdown trên desktop ngay cả khi JS dropdown bị chặn */
@media (min-width: 1200px) {
    #t4-header.header1 .t4-navbar nav.navbar #t4-megamenu-mainmenu ul.navbar-nav > li.dropdown > .dropdown-menu {
        top: 100%;
        margin-top: 0;
    }

    #t4-header .t4-navbar #t4-megamenu-mainmenu .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}
/* ===== RESET JOOMLA GRID ===== */
.items-row {
    display: flex !important;
    flex-wrap: wrap;
}

.items-row > div {
    width: 33.333% !important;
    padding: 15px;
    box-sizing: border-box;
}

[class*="span"] {
    width: 100% !important;
    float: none !important;
}


/* ===== ITEM CARD ===== */
.horizontal-item {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    height: 100%;
    transition: 0.2s ease;
}

/* hover nhẹ */
.horizontal-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}


/* ===== IMAGE ===== */
.horizontal-item .item-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}


/* ===== CONTENT ===== */
.horizontal-item .item-content {
    flex: 1;
  width: 100%;
}

.horizontal-item h2 {
    font-size: 15px;
    margin: 0 0 6px;
    line-height: 1.4;
}

/* truncate 2 dòng */
.horizontal-item h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* intro */
.horizontal-item .introtext {
    font-size: 12px;
    color: #666;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.body{
  font-family: Playfair Display;
  }

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

/* Tablet */
@media (max-width: 992px) {
    .items-row > div {
        width: 50% !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .items-row > div {
        width: 100% !important;
    }

    .horizontal-item {
        flex-direction: column;
    }

    .horizontal-item .item-image img {
        width: 100%;
        height: auto;
    }
}
.article-subtitle {
    font-style: italic !important;
    font-weight: bold !important;
  margin-bottom:10px;
}
.vertical-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    /*margin-bottom: 30px;*/
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vertical-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.fields-container{
  color: black;
  font-style: italic !important;
    font-weight: bold !important;
  font-family: 'Playfair Display';
}
.subheading-category{
padding-left: 35px;
}
.indent-first-line {
    text-indent: 40px;
}

.qx-slider-pro-v2 .slider-pro-item>img {
    /* width: 100%; */
    height: auto;
    object-fit: cover;
    padding-left: 50px;
}
.qx-btn-danger {
 background-color: rgb(18 72 116);
  border-color: rgb(18 72 116);}
.home-section2{
  padding-top:0px;
}
.qx-card-columns {
  column-count: 4;}
@media (max-width: 1024px) {
  .qx-card-columns {
    column-count: 2;
  }
}

/* Mobile ngang */
@media (max-width: 768px) {
  .qx-card-columns {
    column-count: 2;
  }
}

/* Mobile dọc */
@media (max-width: 480px) {
  .qx-card-columns {
    column-count: 1;
  }
}
/* GRID */
#qx-joomla-articles-3122 .qx-columns {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* CARD */
#qx-joomla-articles-3122 .qx-card {
    display: flex;
    flex-direction: column !important;

    height: 100%;
    padding: 16px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #fff;
    transition: all 0.3s ease;
}

/* Hover */
#qx-joomla-articles-3122 .qx-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* KHUNG ẢNH */
#qx-joomla-articles-3122 .qx-card-img-top {
    width: 100%;
    height: 320px; /* chiều cao cố định */

    overflow: hidden;
    border-radius: 8px;

    margin-bottom: 16px !important;
}

/* ẢNH */
#qx-joomla-articles-3122 .qx-card-img-top img {
    width: 100%;
    height: 100%;

    object-fit: contain; /* hiện full bìa */

    background: #fff;

    transition: transform 0.3s ease;
}

/* Hover image */
#qx-joomla-articles-3122 .qx-card:hover img {
    transform: scale(1.03);
}

/* BODY */
#qx-joomla-articles-3122 .qx-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 !important;
}

/* TITLE */
#qx-joomla-articles-3122 .qx-card-title {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 12px !important;
    min-height: 60px;
}

/* DATE */
#qx-joomla-articles-3122 .qx-post-meta {
    margin-top: auto;
    font-size: 14px;
    color: #777;
}

/* TABLET */
@media (max-width: 991px) {
    #qx-joomla-articles-3122 .qx-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 767px) {
    #qx-joomla-articles-3122 .qx-columns {
        grid-template-columns: 1fr;
    }

    #qx-joomla-articles-3122 .qx-card-img-top {
        height: 260px;
    }
}
.menu-ktt .qx-btn span {
    white-space: nowrap;
    overflow: hidden;

    font-size: clamp(10px, 1vw, 18px);
}
#qx-column-836 .qx-element-wrap+.qx-element-wrap {
    margin-top: 10px !important;
}
.search{padding-left: 5%;
}
.qx-element-blurb__title {
    text-align: center !important;
}

/* Article cover image: fixed book-cover frame */
.com_content.view-article .item-page figure.item-image {
    width: 50%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    margin: 0 32px 24px 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.com_content.view-article .item-page figure.item-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .com_content.view-article .item-page figure.item-image {
        width: 100%;
        max-width: none;
        margin: 0 0 24px;
        float: none !important;
    }
}