/* ===== Core ===== */
.sedestral.blog-container {
    display: flex;
    width: 100%
}

@media (max-width: 991px) {
    .sedestral.blog-container {
        display: block!important;
    }

    .sedestral.blog-menu {
        max-height: 230px;
        overflow-y: auto;
        width: 100%!important;
        margin-right: 0!important;
        margin-bottom: 15px;
    }
}

.sedestral.blog-menu {
    width: var(--sedestral-menu-width, 15%);
    margin-right: 20px;
}

.sedestral.blog-menu h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.sedestral.blog-menu ul {
    list-style-type: none;
    padding: 0;
}

.sedestral.blog-menu li {
    margin-bottom: 10px;
}

.sedestral.blog-menu li a {
    text-decoration: none;
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--sedestral-border, #ddd);
    border-radius: var(--sedestral-radius, 4px);
    background-color: var(--sedestral-bg-card, #fff);
    transition: all 0.2s ease;
}

.sedestral.blog-menu li a:hover,
.sedestral.blog-menu li a.active {
    background-color: var(--sedestral-primary, #3b82f6);
    border-color: var(--sedestral-primary, #3b82f6);
    color: #fff;
}

/* Horizontal menu (top position) */
.sedestral.blog-menu-horizontal {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 25px;
}

.sedestral.blog-menu-horizontal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sedestral.blog-menu-horizontal li {
    margin: 0;
}

.sedestral.blog-menu-horizontal li a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid var(--sedestral-border, #ddd);
    border-radius: var(--sedestral-radius, 4px);
    background-color: var(--sedestral-bg-card, #fff);
    transition: all 0.2s ease;
}

.sedestral.blog-menu-horizontal li a:hover {
    background-color: var(--sedestral-primary, #3b82f6);
    border-color: var(--sedestral-primary, #3b82f6);
    color: #fff;
}

.sedestral.blog-menu-horizontal li a.active {
    background-color: var(--sedestral-primary, #3b82f6);
    border-color: var(--sedestral-primary, #3b82f6);
    color: #fff;
}

.sedestral.blog-content {
    width: 85%;
}

.sedestral.blog-content > h1 + p {
    margin-top: 10px;
}

@media (max-width: 991px) {
    .sedestral.blog-content {
        width: 100%!important;
    }
}

.sedestral.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sedestral-cards-gap, 20px);
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
}

.sedestral.blog-list .blog-post {
    flex: 1 1 calc(var(--sedestral-card-width, 50%) - var(--sedestral-cards-gap, 20px));
    max-width: 600px;
    box-sizing: border-box;
    border: 1px solid var(--sedestral-border, #ddd);
    padding: 20px;
    background-color: var(--sedestral-bg-card, #fff);
    box-shadow: var(--sedestral-shadow, 0 4px 8px rgba(0, 0, 0, 0.1));
    border-radius: var(--sedestral-radius, 6px);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* Home page specific widths based on posts count */
.sedestral.blog-list-2 .blog-post {
    flex: 1 1 calc(50% - 20px);
    max-width: 600px;
}

.sedestral.blog-list-3 .blog-post {
    flex: 1 1 calc(33.333% - 20px);
    max-width: 400px;
}

.sedestral.blog-list-4 .blog-post {
    flex: 1 1 calc(25% - 20px);
    max-width: 300px;
}

.sedestral.blog-list-5 .blog-post {
    flex: 1 1 calc(20% - 20px);
    max-width: 240px;
}

/* List display mode - articles displayed in a single column with image on the left */
.sedestral.blog-list.blog-display-list {
    flex-direction: column;
    align-items: center;
}

.sedestral.blog-list.blog-display-list .blog-post {
    flex: 1 1 100%;
    max-width: 900px;
    width: 100%;
}

.sedestral.blog-list.blog-display-list .blog-post .blog-link {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    gap: 5px 20px;
    width: 100%;
    align-items: start;
}

.sedestral.blog-list.blog-display-list .blog-post .blog-img {
    grid-column: 1;
    grid-row: 1 / 3;
    max-width: 280px;
    min-width: 200px;
    margin-bottom: 0;
    aspect-ratio: 16/9;
}

.sedestral.blog-list.blog-display-list .blog-post h2 {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    margin-bottom: 0;
}

.sedestral.blog-list.blog-display-list .blog-post .snippet {
    grid-column: 2;
    grid-row: 2;
    margin-top: 5px;
    align-self: start;
}

/* List mode responsive */
@media (max-width: 768px) {
    .sedestral.blog-list.blog-display-list .blog-post .blog-link {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sedestral.blog-list.blog-display-list .blog-post .blog-img {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }
}

.sedestral.blog-list .blog-post h2, .sedestral.similar-article h2  {
    margin-bottom: 10px;
    margin-top: 15px;
    text-transform: none;
    color: var(--sedestral-title, #5c5c5c);
    font-size: var(--sedestral-title-size, 1.3rem);
}

.sedestral.blog-list .blog-post p, .sedestral.similar-article p {
    color: var(--sedestral-text, #333333);
}

.sedestral.blog-list .blog-post h2:hover, .sedestral.similar-article h2:hover {
    text-decoration: underline;
}

.sedestral.blog-list .blog-post img, .sedestral.similar-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sedestral.blog-list .blog-post .blog-img, .sedestral.similar-article .blog-img {
    cursor: pointer;
    background: rgba(207,207,219,.33);
    color: transparent;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 5px;
    overflow: hidden;
    aspect-ratio: var(--sedestral-image-ratio, 16/9);
}

.sedestral.blog-list .blog-post .snippet, .sedestral.similar-article .snippet {
    margin-top: 10px;
    font-size: 1em;
}

.sedestral.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.sedestral.blog-pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.sedestral.blog-pagination li {
    display: inline;
}

.sedestral.blog-pagination a, .sedestral.blog-pagination span {
    padding: 10px 15px;
    border-radius: var(--sedestral-radius, 4px);
}

/* Responsive styles */
@media (max-width: 991px) {
    .sedestral.blog-post {
        flex: 1 1 100%!important;
        max-width: none!important;
    }
}

.sedestral.single-post {
    width: 100%;
    display: grid;
    grid-template-columns: var(--sedestral-toc-width, 260px) 1fr;
    grid-template-areas:
        "header header"
        "toc    content";
    column-gap: 2rem;
}

.sedestral.single-post:not(:has(.blog-toc)) {
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "content";
}

.sedestral.single-post header {
    grid-area: header;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--sedestral-border, #eee);
}

.sedestral.single-post .blog-toc {
    align-self: start;
    grid-area: toc;
    position: sticky;
    top: 20px;
}

.sedestral.single-post .blog-toc .toc-title {
    margin-bottom: .5rem;
    font-size: 1.125rem;
}

.sedestral.single-post .blog-toc .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sedestral.single-post .blog-toc .toc-list li {
    position: relative;
    padding-left: 1.25rem;
    margin: 12px 0;
    line-height: 1.3;
}

.sedestral.single-post .blog-toc .toc-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: 600;
    font-size: .9em;
    line-height: 1;
    color: inherit;
}

.sedestral.single-post .blog-toc .toc-list li > a {
    color: unset;
}

.sedestral.single-post .blog-toc .toc-list li.active > a, .sedestral.single-post .blog-toc .toc-list li:hover > a {
    font-weight: 600;
}

.sedestral.single-post .content {
    border-left: 1px solid var(--sedestral-border, #eee);
    padding-left: 15px;
    grid-area: content;
    overflow-x: auto;
    max-width: 100%;
}

.sedestral.single-post:not(:has(.blog-toc)) .content {
    border-left: none;
    padding-left: 0;
}

@media (max-width: 767px) {
    .sedestral.single-post {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "toc"
            "content";
    }

    .sedestral.single-post .blog-toc {
        align-self: start;
        position: relative;
        top: auto;
        margin-bottom: 1.5rem;
    }
}

.sedestral.single-post h1, .sedestral.single-post h2, .sedestral.single-post h3 {
    text-transform: none;
}

.sedestral.single-post h1 {
    margin: 0;
}

.sedestral.single-post h2 {
    scroll-margin-top: 40px;
}

.sedestral.single-post a.button {
    border-top: 1px solid var(--sedestral-primary-dark, #2563eb);
    background: linear-gradient(90deg, var(--sedestral-primary, #3b82f6), var(--sedestral-primary-dark, #2563eb));
    color: #ffffff;
    border-radius: calc(var(--sedestral-radius, 6px) * 2);
    padding: 10px 16px;
    text-decoration: none !important;
    cursor: pointer;
    margin: 30px 0;
    position: relative;
    display: inline-block;
    height: fit-content;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
}

.sedestral.single-post a.button:hover {
    background: linear-gradient(90deg, var(--sedestral-primary-dark, #1d4ed8), var(--sedestral-primary-dark, #1e40af));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.sedestral.single-post p + h2 {
    margin-top: 25px;
}


.sedestral.single-post h3 {
    margin-top: 10px;
    margin-bottom: 15px;
}

.sedestral.single-post .author {
    margin-top: 12px;
}

.sedestral.single-post img {
    display: block;
    height: auto!important;
    max-width: 100%!important;
    border-radius: var(--sedestral-image-radius, 0);
}

.sedestral.single-post p:has(img) {
    padding: 10px;
}

.sedestral.single-post blockquote {
    border: 1px solid var(--sedestral-border, #e0e0e0);
    border-radius: calc(var(--sedestral-radius, 6px) * 2);
    box-shadow: var(--sedestral-shadow, 0 4px 8px rgba(0, 0, 0, 0.1));
    padding: 20px;
    position: relative;
    white-space: pre-line;
    margin-top: 20px!important;
    margin-bottom: 20px!important;
}

.sedestral.single-post ul, .sedestral.single-post ol {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0;
}

.sedestral.single-post ul li, .sedestral.single-post ol li {
    margin-bottom: 10px;
}

.sedestral.single-post ul ul {
    list-style-type: circle;
    margin-left: 20px;
}

.sedestral.single-post ul ul li {
    margin-bottom: 8px;
}

.sedestral.similar-articles {
    margin-top: 50px;
    margin-bottom: 20px;
}

.sedestral.similar-articles h2 {
    margin-bottom: 20px;
    text-align: center;
}

.sedestral.similar-articles .articles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.sedestral.similar-article {
    flex: 1 1 300px;
    max-width: 600px;
    box-sizing: border-box;
    border: 1px solid var(--sedestral-border, #ddd);
    padding: 20px;
    background-color: var(--sedestral-bg-card, #fff);
    box-shadow: var(--sedestral-shadow, 0 4px 8px rgba(0, 0, 0, 0.1));
    border-radius: var(--sedestral-radius, 6px);
    transition: transform 0.3s;
    cursor: pointer;
}

@media (max-width: 991px) {
    .sedestral.similar-article {
        flex: 1 1 100%;
        max-width: none;
    }
}

.sedestral.blog-container-home h2 {
    text-align: center;
}

.sedestral.blog-container-home {
    margin: 20px 0;
}

.sedestral.blog-next-button {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.sedestral.blog-next-button ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sedestral.blog-next-button a {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    border: 1px solid var(--sedestral-primary, #3b82f6);
    border-radius: var(--sedestral-radius, 4px);
    background-color: var(--sedestral-primary, #3b82f6);
    color: #fff;
    transition: all 0.2s ease;
}

.sedestral.blog-next-button a:hover {
    background-color: var(--sedestral-primary-dark, #1d4ed8);
    border-color: var(--sedestral-primary-dark, #1d4ed8);
    color: #fff;
}

.sedestral.sedestral-social-share {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.sedestral.sedestral-social-share img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.sedestral.sedestral-social-share ul {
    background-color: white;
    width: 200px;
    height: 60px;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.sedestral.sedestral-social-share ul li {
    display: inline-block;
}

.sedestral.sedestral-social-share ul li img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.sedestral.sedestral-social-share ul li img:hover {
    transform: scale(1.2);
}

/* AI Summary Bar - Discrete style */
.sedestral.ai-summary-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.85em;
}

.sedestral.ai-summary-label {
    color: #6c757d;
    white-space: nowrap;
    margin-right: 5px;
}

.sedestral.ai-summary-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #555;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sedestral.ai-summary-link:hover {
    opacity: 1;
    text-decoration: none;
    color: #333;
}

.sedestral.ai-summary-link img {
    width: 22px;
    height: 22px;
}

.sedestral.ai-summary-link span {
    font-size: 0.95em;
}

@media (max-width: 576px) {
    .sedestral.ai-summary-bar {
        justify-content: center;
    }

    .sedestral.ai-summary-label {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
        margin-right: 0;
    }
}

.sedestral.content p {
    line-height: 1.6;
    margin: 1rem 0;
}

.sedestral.content .faq {
    margin-top: 17px;
    padding: 25px 5px 0 5px;
    border-top: 1px solid var(--sedestral-border, #eee);
}

.sedestral.content .faq h2 {
    margin-bottom: 17px;
}

.sedestral.content .faq-item + .faq-item { margin-top: 1rem; }

.sedestral.content .faq-question {
    width: 100%;
    padding: 1.2rem 1.4rem;
    background: var(--sedestral-bg-card, #fff);
    border: none;
    border-radius: calc(var(--sedestral-radius, 6px) * 0.8);
    box-shadow: 0 0 0 1px var(--sedestral-border, #e2e2e2);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s, box-shadow .2s;
}

.sedestral.content .faq-question:hover,
.sedestral.content .faq-question:focus-visible {
    background: var(--sedestral-border, #f7f7f7);
    box-shadow: 0 0 0 2px var(--sedestral-border, #ddd);
    outline: none;
}

.sedestral.content .faq-toggle {
    flex: 0 0 1.2rem;
    height: 1.2rem;
    position: relative;
}

.sedestral.content .faq-toggle::before,
.sedestral.content .faq-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #222;
    transform: translateY(-50%);
    transition: transform .2s;
}

.sedestral.content .faq-toggle::after {
    transform: translateY(-50%) rotate(90deg);
}

.sedestral.content .faq-item.open .faq-toggle::after {
    transform: translateY(-50%) rotate(0deg);
}

.sedestral.content .faq-answer-wrapper {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease, padding .3s ease;
}

.sedestral.content .faq-item.open .faq-answer-wrapper {
    padding: 1rem 5px 5px;
    max-height: 1000px;
}

.sedestral.content .faq-answer p { margin: .6rem 0; line-height: 1.5; }

.sedestral.blog-no-articles {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    background-color: var(--sedestral-bg-card, #f9f9f9);
    border-radius: var(--sedestral-radius, 8px);
    border: 1px solid var(--sedestral-border, #e0e0e0);
}

.sedestral.blog-no-articles p {
    font-size: 1.2em;
    color: #666;
    margin: 0;
    font-style: italic;
}

.sedestral.backlink {
    text-align: center;
    padding: 20px 0 20px;

    a {
        font-size: 12px;
        color: #999;
        text-decoration: none;
        font-weight: 400;
    }
}

.sedestral.post-products {
    margin: 40px 0;
    padding: 30px 0 0;
    border-top: 1px solid var(--sedestral-border, #eee);
}

.sedestral.post-products.post-products-inline {
    padding: 0;
    border-top: none;
}

.sedestral.products-title {
    margin-bottom: 20px;
    color: #232323;
}

.sedestral.products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sedestral.carousel-prev,
.sedestral.carousel-next {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid;
    opacity: 0.3;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.sedestral.carousel-prev:hover,
.sedestral.carousel-next:hover {
    opacity: 0.6;
}

.sedestral.carousel-prev:disabled,
.sedestral.carousel-next:disabled {
    cursor: not-allowed;
    opacity: 0.15;
}

.sedestral.carousel-prev svg,
.sedestral.carousel-next svg {
    fill: currentColor;
}

.sedestral.products-wrapper {
    flex: 1;
    overflow: hidden;
}

.sedestral.products-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.sedestral.product-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 200px;
}

@media (max-width: 1200px) {
    .sedestral.product-item {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 991px) {
    .sedestral.product-item {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 575px) {
    .sedestral.product-item {
        flex: 0 0 100%;
    }

    .sedestral.carousel-prev,
    .sedestral.carousel-next {
        width: 32px;
        height: 32px;
    }
}

.sedestral.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--sedestral-border, #eee);
    border-radius: var(--sedestral-radius, 8px);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sedestral.product-link:hover {
    box-shadow: var(--sedestral-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
}

.sedestral.product-image {
    position: relative;
    aspect-ratio: 1;
}

.sedestral.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sedestral.product-badge {
    position: absolute;
    top: 10px;
    right: 0;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.sedestral.badge-sale {
    background: var(--sedestral-badge, #e74c3c);
    color: #fff;
}

.sedestral.product-info {
    padding: 15px;
}

.sedestral.product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sedestral.product-price {
    margin-bottom: 10px;
}

.sedestral.price-from {
    font-size: 0.85em;
    opacity: 0.6;
    margin-right: 4px;
}

.sedestral.price {
    font-weight: 700;
}

.sedestral.regular-price {
    font-size: 0.85em;
    opacity: 0.5;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Category description collapse / See more - See less */
/* Compatible PS 1.6.1 to 9.x */
.sedestral.see-more-wrapper {
    position: relative;
}

.sedestral.see-more-content {
    overflow: hidden;
    -webkit-transition: max-height 0.4s ease-out;
    -moz-transition: max-height 0.4s ease-out;
    -o-transition: max-height 0.4s ease-out;
    transition: max-height 0.4s ease-out;
}

.sedestral.see-more-content.collapsed {
    position: relative;
}

.sedestral.see-more-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    /* Gradient with fallback and prefixes for old browsers */
    background: #fff;
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    background: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.sedestral.see-more-toggle {
    background: none;
    border: none;
    outline: none;
    padding: 0.25rem 0;
    margin-top: 0.5rem;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    -webkit-transition: opacity 0.2s ease;
    -moz-transition: opacity 0.2s ease;
    -o-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.sedestral.see-more-toggle:hover {
    opacity: 0.7;
}

/* Hide toggle when not needed */
.sedestral.see-more-toggle.hidden {
    display: none;
}



/* =========================================================
   HIBO News Category Hierarchy - v1.0.116
   Root category -> "Tất cả" + direct children tabs
   ========================================================= */

.sedestral.news-category-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 28px;
}

.sedestral.news-category-header {
    margin-bottom: 18px;
}

.sedestral.news-category-header h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    color: #111827;
}

.sedestral.news-category-description {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

.sedestral.news-category-tabs {
    width: 100%;
    margin: 0 0 28px;
    border-bottom: 1px solid #e5e7eb;
}

.sedestral.news-category-tabs-scroll {
    display: flex;
    align-items: center;
    gap: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.sedestral.news-category-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 14px 0 13px;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s ease;
}

.sedestral.news-category-tab:hover,
.sedestral.news-category-tab.active {
    color: #e64a2e;
}

.sedestral.news-category-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #e64a2e;
}

.sedestral.news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.sedestral.news-card-grid > .blog-no-articles {
    grid-column: 1 / -1;
    width: 100%;
}

.sedestral.news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    box-shadow: 0 3px 16px rgba(17, 24, 39, .06);
}

.sedestral.news-card-image-wrap {
    position: relative;
    margin: 16px 16px 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.sedestral.news-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sedestral.news-card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.sedestral.news-card:hover .news-card-image-wrap img {
    transform: scale(1.025);
}

.sedestral.news-card-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: calc(100% - 20px);
    padding: 6px 18px 6px 10px;
    background: #ef4b2f;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.sedestral.news-card-body {
    padding: 16px 16px 18px;
}

.sedestral.news-card-body h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: none;
}

.sedestral.news-card-body h2 a {
    color: #111827;
    text-decoration: none !important;
}

.sedestral.news-card-body h2 a:hover {
    color: #e64a2e;
}

.sedestral.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.sedestral.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sedestral.news-card-snippet {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #737373;
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
    .sedestral.news-category-page {
        padding-left: 0;
        padding-right: 0;
    }

    .sedestral.news-category-header h1 {
        font-size: 28px;
    }

    .sedestral.news-category-tabs {
        margin-bottom: 20px;
    }

    .sedestral.news-category-tabs-scroll {
        gap: 24px;
    }

    .sedestral.news-category-tab {
        padding-top: 11px;
        padding-bottom: 11px;
        font-size: 15px;
    }

    .sedestral.news-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sedestral.news-card-image-wrap {
        margin: 12px 12px 0;
    }

    .sedestral.news-card-body {
        padding: 14px 12px 16px;
    }

    .sedestral.news-card-body h2 {
        font-size: 19px;
    }
}


/* ===== News tabs ===== */
/* =========================================================
   HIBO News Category Hierarchy - v1.0.117
   Root category -> "Tất cả" + direct children tabs
   ========================================================= */

.sedestral.news-category-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 28px;
}

.sedestral.news-category-header {
    margin-bottom: 18px;
}

.sedestral.news-category-header h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    color: #111827;
}

.sedestral.news-category-description {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

.sedestral.news-category-tabs {
    width: 100%;
    margin: 0 0 28px;
    border-bottom: 1px solid #e5e7eb;
}

.sedestral.news-category-tabs-scroll {
    display: flex;
    align-items: center;
    gap: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.sedestral.news-category-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 14px 0 13px;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s ease;
}

.sedestral.news-category-tab:hover,
.sedestral.news-category-tab.active {
    color: #e64a2e;
}

.sedestral.news-category-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #e64a2e;
}

.sedestral.news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.sedestral.news-card-grid > .blog-no-articles {
    grid-column: 1 / -1;
    width: 100%;
}

.sedestral.news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    box-shadow: 0 3px 16px rgba(17, 24, 39, .06);
}

.sedestral.news-card-image-wrap {
    position: relative;
    margin: 16px 16px 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.sedestral.news-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sedestral.news-card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.sedestral.news-card:hover .news-card-image-wrap img {
    transform: scale(1.025);
}

.sedestral.news-card-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: calc(100% - 20px);
    padding: 6px 18px 6px 10px;
    background: #ef4b2f;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.sedestral.news-card-body {
    padding: 16px 16px 18px;
}

.sedestral.news-card-body h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: none;
}

.sedestral.news-card-body h2 a {
    color: #111827;
    text-decoration: none !important;
}

.sedestral.news-card-body h2 a:hover {
    color: #e64a2e;
}

.sedestral.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.sedestral.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sedestral.news-card-snippet {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #737373;
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
    .sedestral.news-category-page {
        padding-left: 0;
        padding-right: 0;
    }

    .sedestral.news-category-header h1 {
        font-size: 28px;
    }

    .sedestral.news-category-tabs {
        margin-bottom: 20px;
    }

    .sedestral.news-category-tabs-scroll {
        gap: 24px;
    }

    .sedestral.news-category-tab {
        padding-top: 11px;
        padding-bottom: 11px;
        font-size: 15px;
    }

    .sedestral.news-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sedestral.news-card-image-wrap {
        margin: 12px 12px 0;
    }

    .sedestral.news-card-body {
        padding: 14px 12px 16px;
    }

    .sedestral.news-card-body h2 {
        font-size: 19px;
    }
}


/* ===== Gallery adaptive 3-up ===== */
.sedestral.event-gallery{
  margin:34px 0 28px;
  padding-top:26px;
  border-top:1px solid rgba(0,0,0,.1)
}
.sedestral.event-gallery__heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px
}
.sedestral.event-gallery__title{
  margin:0!important;
  font-size:clamp(1.35rem,2vw,1.75rem)
}
.sedestral.event-gallery__count{
  flex:0 0 auto;
  color:#667085;
  font-size:.92rem
}

/* One compact row instead of a many-row masonry/grid. */
.sedestral.event-gallery__slider{
  position:relative
}
.sedestral.event-gallery__viewport{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  border-radius:8px
}
.sedestral.event-gallery__viewport::-webkit-scrollbar{
  display:none
}
.sedestral.event-gallery__viewport:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px
}
.sedestral.event-gallery__track{
  display:flex;
  gap:12px;
  min-width:100%
}

/* Uniform frame: source aspect ratio no longer changes layout. */
.sedestral.event-gallery__item{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 calc((100% - 24px)/3);
  overflow:hidden;
  aspect-ratio:4/3;
  border-radius:8px;
  background:#eef0f2;
  text-decoration:none!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  isolation:isolate
}

/*
 * Do not crop portrait or unusual aspect ratios.
 * A softly blurred copy fills the fixed frame while the real image remains
 * fully visible with object-fit: contain.
 */
.sedestral.event-gallery__item::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:-10%;
  background-image:var(--sedestral-gallery-bg,none);
  background-position:center;
  background-size:cover;
  filter:blur(18px);
  opacity:.42;
  transform:scale(1.12)
}
.sedestral.event-gallery__item::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:rgba(255,255,255,.14)
}
.sedestral.event-gallery__item img{
  position:relative;
  z-index:1;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transition:none!important
}
.sedestral.event-gallery__item:hover img,
.sedestral.event-gallery__item:focus-visible img{
  transform:none!important
}
.sedestral.event-gallery__zoom{
  position:absolute;
  z-index:2;
  right:9px;
  bottom:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:31px;
  height:31px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:20px;
  line-height:1;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .18s ease,transform .18s ease
}
.sedestral.event-gallery__item:hover .event-gallery__zoom,
.sedestral.event-gallery__item:focus-visible .event-gallery__zoom{
  opacity:1;
  transform:translateY(0)
}

/* Slider arrows float on top of the row. */
.sedestral.event-gallery__nav{
  position:absolute;
  z-index:3;
  top:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  margin-top:-21px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.68);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 18px rgba(0,0,0,.16);
  transition:opacity .18s ease,background .18s ease,transform .18s ease
}
.sedestral.event-gallery__nav:hover{
  background:rgba(0,0,0,.82);
  transform:scale(1.04)
}
.sedestral.event-gallery__nav:disabled{
  opacity:.24;
  cursor:default;
  transform:none
}
.sedestral.event-gallery__nav--prev{left:10px}
.sedestral.event-gallery__nav--next{right:10px}

/* Small status bar; avoids 30 pagination dots. */
.sedestral.event-gallery__status{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:10px;
  color:#667085;
  font-size:.84rem
}
.sedestral.event-gallery__range{
  flex:0 0 auto;
  min-width:68px
}
.sedestral.event-gallery__progress{
  position:relative;
  display:block;
  width:100%;
  height:3px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(0,0,0,.10)
}
.sedestral.event-gallery__progress-bar{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:currentColor;
  transition:width .2s ease
}

/* Lightbox remains unchanged and shows the full image without cropping. */
.sedestral.gallery-lightbox[hidden]{display:none!important}
.sedestral.gallery-lightbox{
  position:fixed;
  z-index:10050;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px
}
.sedestral.gallery-lightbox__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(0,0,0,.88);
  cursor:zoom-out
}
.sedestral.gallery-lightbox__dialog{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(1180px,100%);
  height:min(88vh,900px)
}
.sedestral.gallery-lightbox__figure{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0
}
.sedestral.gallery-lightbox__image{
  display:block;
  max-width:100%;
  max-height:calc(88vh - 70px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:4px;
  box-shadow:0 12px 48px rgba(0,0,0,.36)
}
.sedestral.gallery-lightbox__caption{
  display:flex;
  justify-content:center;
  gap:14px;
  max-width:min(900px,90vw);
  margin-top:10px;
  color:#fff;
  text-align:center;
  font-size:.95rem
}
.sedestral.gallery-lightbox__counter{
  color:rgba(255,255,255,.72);
  white-space:nowrap
}
.sedestral.gallery-lightbox__close,
.sedestral.gallery-lightbox__nav{
  position:absolute;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  cursor:pointer;
  backdrop-filter:blur(4px)
}
.sedestral.gallery-lightbox__close:hover,
.sedestral.gallery-lightbox__nav:hover{
  background:rgba(255,255,255,.24)
}
.sedestral.gallery-lightbox__close{
  top:0;
  right:0;
  width:42px;
  height:42px;
  font-size:32px;
  line-height:1
}
.sedestral.gallery-lightbox__nav{
  top:50%;
  width:46px;
  height:46px;
  margin-top:-23px;
  font-size:38px;
  line-height:1
}
.sedestral.gallery-lightbox__nav--prev{left:0}
.sedestral.gallery-lightbox__nav--next{right:0}
body.sedestral-gallery-open{overflow:hidden!important}

@media(max-width:991.98px){
  .sedestral.event-gallery__item{
    flex-basis:calc((100% - 12px)/2)
  }
  .sedestral.gallery-lightbox{padding:16px}
}

@media(max-width:575.98px){
  .sedestral.event-gallery{
    margin-top:26px;
    padding-top:20px
  }
  .sedestral.event-gallery__track{gap:8px}
  .sedestral.event-gallery__item{
    flex-basis:calc((100% - 8px)/2);
    border-radius:6px
  }
  .sedestral.event-gallery__zoom{display:none}
  .sedestral.event-gallery__nav{
    width:36px;
    height:36px;
    margin-top:-18px;
    font-size:27px
  }
  .sedestral.event-gallery__nav--prev{left:6px}
  .sedestral.event-gallery__nav--next{right:6px}
  .sedestral.event-gallery__status{margin-top:8px}
  .sedestral.gallery-lightbox{padding:8px}
  .sedestral.gallery-lightbox__dialog{height:94vh}
  .sedestral.gallery-lightbox__image{max-height:calc(94vh - 78px)}
  .sedestral.gallery-lightbox__close{top:6px;right:6px}
  .sedestral.gallery-lightbox__nav{top:auto;bottom:10px}
  .sedestral.gallery-lightbox__nav--prev{left:10px}
  .sedestral.gallery-lightbox__nav--next{right:10px}
  .sedestral.gallery-lightbox__caption{
    padding:0 56px;
    font-size:.86rem
  }
}

@media(prefers-reduced-motion:reduce){
  .sedestral.event-gallery__viewport{scroll-behavior:auto}
  .sedestral.event-gallery__item img,
  .sedestral.event-gallery__nav,
  .sedestral.event-gallery__progress-bar{transition:none}
}



/* HIBO/Adler cleanup utilities */
.sedestral.blog-content{width:100%}
