/* ============================================
   LYNK NEWS SECTION - Bubbles Design
   ============================================ */

/* Font được load qua functions.php để tránh block rendering */

.news-section-wrapper {
    max-width: 1400px;
    margin: 100px auto 20px;
    padding: 20px;
    font-family: 'Quicksand', sans-serif;
    position: relative;
    min-height: 600px;
    height: calc(100vh - 250px);
    max-height: 900px;
    overflow: hidden;
    transition: opacity 0.15s ease-out, filter 0.15s ease-out, transform 0.15s ease-out;
    transition-delay: 0s;
}

.news-section-wrapper.news-section-hidden,
#lynk-news-section.news-section-hidden {
    opacity: 0.2;
    filter: blur(4px) brightness(0.3);
    transform: scale(0.98);
    pointer-events: none;
    z-index: 1;
}

/* Portal Navigation */
.news-portal-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 100;
}

.news-portal-link {
    text-decoration: none !important;
    color: rgba(0, 255, 180, 0.4);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
    transition: 0.4s;
    position: relative;
}

.news-portal-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background: #00ffb4;
    transition: 0.4s;
}

.news-portal-link:hover {
    color: #00ffb4 !important;
    text-shadow: 0 0 10px #00ffb4;
}

.news-portal-link:hover::after {
    width: 100%;
}

/* Các tầng */
.news-tier {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s,
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-tier.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Tầng 1: Bubbles Container */
.news-tier-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
}

.news-tier-1.active {
    transform: scale(1);
}

.news-bubbles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
}

.bubbles-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.bubbles-row-top {
    margin-bottom: 0;
}

.bubbles-row-bottom {
    margin-top: 0;
    justify-content: center;
    padding-left: 150px;
    /* Offset để căn giữa với hàng trên (300px/2 + 30px/2 = 150px) */
}

/* Connection lines đã được bỏ */

/* News Category Card - Hình chữ nhật */
.news-category-card {
    position: relative;
    width: 300px;
    height: 240px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

/* Hàng trên - 3 khung: trượt từ các phía */
.bubbles-row-top .news-category-card:nth-child(1) {
    transform: translateX(-150px);
}

.bubbles-row-top .news-category-card:nth-child(2) {
    transform: translateY(-100px);
}

.bubbles-row-top .news-category-card:nth-child(3) {
    transform: translateX(150px);
}

/* Hàng dưới - 2 khung: trượt từ 2 bên */
.bubbles-row-bottom .news-category-card:nth-child(1) {
    transform: translateX(-150px);
}

.bubbles-row-bottom .news-category-card:nth-child(2) {
    transform: translateX(150px);
}

/* Animation khi trigger */
.news-category-card.n-animate-in {
    opacity: 1;
    transform: translateX(0) translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered delay cho từng khung */
.bubbles-row-top .news-category-card.n-animate-in:nth-child(1) {
    transition-delay: 0.1s;
}

.bubbles-row-top .news-category-card.n-animate-in:nth-child(2) {
    transition-delay: 0.2s;
}

.bubbles-row-top .news-category-card.n-animate-in:nth-child(3) {
    transition-delay: 0.3s;
}

.bubbles-row-bottom .news-category-card.n-animate-in:nth-child(1) {
    transition-delay: 0.4s;
}

.bubbles-row-bottom .news-category-card.n-animate-in:nth-child(2) {
    transition-delay: 0.5s;
}

.category-card-glass {
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.3);
    border: 3px solid #C5A059;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(162, 255, 179, 0.15),
        0 0 20px rgba(197, 160, 89, 0.4);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Đom đóm vàng trang trí */
.category-card-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(197, 160, 89, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 45% 35%, rgba(197, 160, 89, 0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 75% 15%, rgba(197, 160, 89, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 25% 60%, rgba(197, 160, 89, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(197, 160, 89, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 85% 55%, rgba(197, 160, 89, 0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 30% 85%, rgba(197, 160, 89, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 70% 90%, rgba(197, 160, 89, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 10% 75%, rgba(197, 160, 89, 0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 30%, rgba(197, 160, 89, 0.4) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 50px 50px, 70px 70px, 65px 65px, 55px 55px, 75px 75px, 60px 60px, 70px 70px, 65px 65px;
    background-position: 0 0, 20px 20px, 40px 10px, 10px 30px, 30px 50px, 50px 25px, 15px 60px, 45px 70px, 5px 45px, 55px 15px;
    opacity: 0.8;
    animation: fireflyTwinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes fireflyTwinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.category-card-title {
    color: #00F2AD;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 242, 173, 0.6);
    line-height: 1.2;
    border-bottom: 2px solid rgba(0, 242, 173, 0.3);
    padding-bottom: 8px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.category-card-posts {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: relative;
    z-index: 1;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
}

.category-post-thumb {
    flex: 1;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.category-post-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 242, 173, 0.4);
}

.category-post-thumb:hover img {
    transform: scale(1.1);
}

.category-no-posts {
    text-align: center;
    color: rgba(247, 231, 206, 0.5);
    font-size: 0.9rem;
    padding: 20px;
    font-style: italic;
}

.news-category-card:hover .category-card-glass {
    background: rgba(18, 18, 18, 0.4);
    border-color: #C5A059;
    box-shadow:
        0 15px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 100px rgba(162, 255, 179, 0.25),
        0 0 30px rgba(197, 160, 89, 0.6);
    transform: translateY(-5px);
}

.news-category-card:hover .category-card-glass::before {
    opacity: 1;
    animation-duration: 2s;
}

/* Tầng 2: Danh sách bài viết */
.news-tier-2 {
    background: rgba(0, 242, 173, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 242, 173, 0.25);
    border-radius: 28px;
    box-shadow:
        0 10px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(0, 242, 173, 0.08);
    transform: translateY(100%);
    padding: 20px;
    max-height: calc(100vh - 320px);
    max-width: 66.67%;
    width: 66.67%;
    margin: 0 auto;
    position: relative;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
}

.news-tier-2.active {
    transform: translateY(0);
}

.news-posts-wrapper {
    width: 100%;
    flex: 1;
    overflow: visible;
    padding-right: 10px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.news-posts-wrapper .news-back-button,
.news-posts-wrapper .news-tier-title {
    flex-shrink: 0;
}

.news-tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.news-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 173, 0.5) rgba(0, 0, 0, 0.2);
}

.news-posts-grid::-webkit-scrollbar {
    width: 8px;
}

.news-posts-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.news-posts-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 173, 0.5);
    border-radius: 10px;
}

.news-back-button {
    background: transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 242, 173, 0.4);
    color: #00F2AD;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.news-back-button:hover {
    background: transparent !important;
    border-color: #00F2AD;
    transform: translateX(-8px);
    box-shadow: 0 5px 25px rgba(0, 242, 173, 0.4);
}

.news-back-button:active,
.news-back-button:focus,
.news-back-button:focus-visible {
    background: transparent !important;
    outline: none;
}

.news-back-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.news-tier-title {
    color: #00F2AD;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 25px rgba(0, 242, 173, 0.5);
    flex-shrink: 0;
    flex: 1;
    text-align: center;
    width: 100%;
}


.news-post-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    animation: postCardFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    min-height: 90px;
}

@keyframes postCardFadeIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.news-post-card:hover {
    background: rgba(0, 242, 173, 0.15);
    border-color: rgba(0, 242, 173, 0.5);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 50px rgba(0, 242, 173, 0.4);
}

.post-card-thumbnail {
    width: 100px;
    min-width: 100px;
    height: 70px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 10px;
    flex-shrink: 0;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 10px;
}

.post-card-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 173, 0.1);
    border: 2px dashed rgba(0, 242, 173, 0.3);
    border-radius: 12px;
}

.no-thumb-icon {
    font-size: 48px;
    opacity: 0.5;
}

.news-post-card:hover .post-card-thumbnail img {
    transform: scale(1.1);
}

.post-card-body {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.post-card-date {
    display: block;
    color: #C5A059;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
    order: 2;
}

.post-card-title {
    color: #F7E7CE;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    order: 1;
}

.news-post-card:hover .post-card-title {
    color: #00F2AD;
    text-shadow: 0 0 10px rgba(0, 242, 173, 0.4);
}

/* Tầng 3: Lightbox */
.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-lightbox.news-lightbox-open {
    opacity: 1;
    pointer-events: auto;
}

.news-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            rgba(0, 180, 140, 0.85) 0%,
            rgba(0, 150, 120, 0.9) 40%,
            rgba(0, 100, 85, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-lightbox-overlay.news-overlay-visible {
    opacity: 1;
}

.news-lightbox-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    gap: 20px;
    z-index: 1;
}

/* Khung trái: Nội dung bài viết */
.news-lightbox-content-wrapper {
    flex: 2;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(0, 242, 173, 0.5);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 20px 80px rgba(0, 242, 173, 0.3),
        inset 0 0 100px rgba(0, 242, 173, 0.15);
}

.news-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #F7E7CE;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s;
    z-index: 100;
}

.news-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00F2AD;
    color: #00F2AD;
    transform: rotate(90deg) scale(1.1);
}


.news-lightbox-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 50px 50px;
    box-sizing: border-box;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-lightbox-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Article Content trong Lightbox */
.news-article-header {
    margin-bottom: 40px;
}

.news-article-meta {
    text-align: center;
}

.news-article-date {
    display: block;
    color: #C5A059;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.9;
}

.news-article-title {
    color: #00F2AD;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 0 30px rgba(0, 242, 173, 0.5);
}

.news-article-content {
    color: #F7E7CE;
    font-size: 1.1rem;
    line-height: 2;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4,
.news-article-content h5,
.news-article-content h6 {
    color: #00F2AD;
    margin-top: 40px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 242, 173, 0.4);
}

.news-article-content p {
    margin-bottom: 25px;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 35px auto;
    display: block;
    border: 2px solid rgba(0, 242, 173, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.news-article-content figure {
    margin: 35px auto;
    text-align: center;
}

.news-article-content figure img {
    margin: 0 auto;
}

.news-article-content figcaption,
.news-article-content .wp-caption-text,
.news-article-content .caption {
    color: #F7E7CE;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
    line-height: 1.6;
}

.news-article-content a {
    color: #00F2AD;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 242, 173, 0.4);
    transition: all 0.3s;
}

.news-article-content a:hover {
    color: #C5A059;
    border-bottom-color: #C5A059;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.news-article-content ul,
.news-article-content ol {
    margin: 25px 0;
    padding-left: 40px;
}

.news-article-content li {
    margin-bottom: 15px;
}

/* Khung phải: Tin tức mới nhất */
.news-lightbox-sidebar {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(0, 242, 173, 0.5);
    border-radius: 30px;
    padding: 25px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 20px 80px rgba(0, 242, 173, 0.3),
        inset 0 0 100px rgba(0, 242, 173, 0.15);
}

.news-lightbox-sidebar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-lightbox-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}


.news-latest-title {
    color: #00F2AD;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 0 20px rgba(0, 242, 173, 0.5);
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 242, 173, 0.3);
}

.news-latest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-latest-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-latest-item:hover {
    background: rgba(0, 242, 173, 0.1);
    border-color: rgba(0, 242, 173, 0.4);
    transform: translateX(5px);
}

.news-latest-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.news-latest-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-latest-item:hover .news-latest-thumbnail img {
    transform: scale(1.1);
}

.news-latest-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 173, 0.1);
    border: 2px dashed rgba(0, 242, 173, 0.3);
}

.news-latest-info {
    padding: 15px;
}

.news-latest-item-title {
    color: #F7E7CE;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.news-latest-item:hover .news-latest-item-title {
    color: #00F2AD;
}

.news-latest-item-date {
    display: block;
    color: #C5A059;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Loading và Error states */
.news-loading,
.news-empty,
.news-error,
.news-empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #F7E7CE;
    font-size: 1.1rem;
}

.news-error {
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-bubbles-container {
        gap: 40px;
    }

    .news-bubble {
        width: 160px;
        height: 160px;
    }

    .bubble-icon {
        font-size: 45px;
    }

    .bubble-text {
        font-size: 12px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .news-section-wrapper {
        margin: 60px auto 20px;
        padding: 15px;
        min-height: calc(100vh - 150px);
        height: auto;
        max-height: none;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .news-tier {
        position: relative;
        height: auto;
        min-height: 0;
        width: 100%;
    }

    .news-tier-1 {
        position: relative;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .news-bubbles-container {
        gap: 14px;
        padding: 10px 0;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 90vw;
    }

    .bubbles-row {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .bubbles-row-top {
        margin-bottom: 15px;
    }

    .bubbles-row-bottom {
        padding-left: 0;
        justify-content: center;
    }

    .news-category-card {
        width: clamp(200px, 28vw, 260px);
        min-width: 200px;
        max-width: 260px;
        height: 170px;
    }

    .category-card-title {
        font-size: 1.1rem;
    }

    .news-tier-2 {
        max-width: 90%;
        width: 90%;
        padding: 20px;
        max-height: calc(100vh - 250px);
        overflow-y: auto;
    }

    .news-lightbox-wrapper {
        width: 98%;
        max-width: 98%;
        flex-direction: column;
        height: auto;
        max-height: 95vh;
    }

    .news-lightbox-content-wrapper {
        flex: 1;
        max-height: calc(100vh - 170px);
        width: 100%;
    }

    .news-lightbox-sidebar {
        display: none !important;
    }

    .news-lightbox-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile - VERTICAL SLIDER */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {

    /* Section container - VERTICAL SLIDER */
    #news {
        position: relative !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
    }

    .news-section-wrapper {
        margin: 0 auto;
        padding: 70px 15px 20px 15px;
        min-height: auto;
        height: 100% !important;
        max-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .news-portal-nav {
        display: none !important;
    }

    .news-portal-link {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .news-lightbox {
        align-items: stretch;
        justify-content: stretch;
    }

    .news-tier-1 {
        height: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .news-bubbles-container {
        gap: 12px;
        padding: 0;
        flex: 0 0 auto !important;
        overflow: visible;
        max-height: none;
        margin: 0;
        width: 100%;
        max-width: 80vw;
        justify-content: center !important;
        align-items: stretch !important;
    }

    .bubbles-row {
        gap: 12px;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center !important;
        align-items: stretch !important;
        width: 100%;
    }

    .bubbles-row-top {
        margin-bottom: 12px;
    }

    .bubbles-row-bottom {
        padding-left: 0;
        justify-content: center;
    }

    .news-category-card {
        width: 80%;
        min-width: 0;
        max-width: 100%;
        height: 80px;
        margin: 0 auto;
    }

    .category-card-glass {
        padding: 14px 16px;
        border-radius: 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .category-card-title {
        flex: 0 0 42%;
        font-size: 1.3rem;
        margin: 0;
        padding: 0;
        text-align: center;
        line-height: 1.2;
        border-bottom: none !important;
        border-right: none !important;
    }

    .category-card-posts {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .category-post-thumb {
        width: 48px;
        min-width: 48px;
        height: 48px;
        border-radius: 6px;
    }

    .category-post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .category-post-thumb {
        border-radius: 8px;
    }

    .news-tier-2 {
        max-width: 95%;
        width: 95%;
        padding: 20px 15px;
        max-height: calc(100vh - 270px);
        margin-top: 60px !important;
        position: relative;
    }

    .news-tier-title {
        font-size: 1.5rem;
    }

    .news-back-button {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .news-posts-grid {
        gap: 12px;
    }

    .news-post-card {
        padding: 10px;
        min-height: 80px;
    }

    .post-card-thumbnail {
        width: 80px;
        min-width: 80px;
        height: 60px;
    }

    .post-card-title {
        font-size: 1rem;
    }

    .post-card-date {
        font-size: 0.8rem;
    }

    .news-lightbox-wrapper {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        flex-direction: column;
        gap: 0;
        position: fixed;
        inset: 0;
        transform: none !important;
    }

    .news-lightbox-content-wrapper {
        flex: 1;
        height: 100%;
        max-height: 100%;
        width: 100%;
        border-radius: 0;
    }

    .news-lightbox-sidebar {
        display: none !important;
    }

    .news-lightbox-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .news-lightbox-content {
        padding: 60px 20px 20px;
    }

    .news-article-title {
        font-size: 1.8rem;
    }

    .news-article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .news-latest-title {
        font-size: 1.2rem;
    }

    .news-latest-thumbnail {
        height: 120px;
    }

    .news-latest-item-title {
        font-size: 0.85rem;
    }
}

/* Small Mobile - VERTICAL SLIDER */
@media (max-width: 480px) {
    #news {
        height: 100vh !important;
    }

    .news-section-wrapper {
        margin: 0 auto;
        padding: 20px 10px 95px 10px;
        height: calc(100dvh - 50px) !important;
        max-height: calc(100dvh - 50px) !important;
        justify-content: center !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .news-portal-nav {
        display: none !important;
    }

    .news-tier-1 {
        padding-top: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .news-bubbles-container {
        max-height: 100%;
        gap: 6px;
        padding: 0;
        margin-bottom: 0;
        justify-content: center !important;
        align-items: center !important;
        overflow: visible;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .bubbles-row {
        gap: 8px;
        justify-content: center !important;
        width: 100%;
    }

    .news-category-card {
        width: 80%;
        max-width: 100%;
        height: 76px;
        margin: 0 auto;
    }

    .category-card-glass {
        padding: 10px;
        border-width: 2px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .category-card-title {
        flex: 0 0 44%;
        font-size: 1.15rem;
        margin: 0;
        padding: 0;
        text-align: center;
        border-bottom: none !important;
        border-right: none !important;
    }

    .category-card-posts {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .category-post-thumb {
        width: 42px;
        min-width: 42px;
        height: 42px;
        border-radius: 6px;
    }

    .category-post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .category-post-thumb {
        border-radius: 6px;
    }

    .news-tier-2 {
        max-width: 98%;
        width: 98%;
        padding: 15px 12px;
        max-height: calc(100vh - 200px);
        border-radius: 20px;
        margin-top: 60px !important;
        position: relative;
    }

    .news-tier-title {
        font-size: 1.3rem;
    }

    .news-back-button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .news-posts-grid {
        gap: 10px;
    }

    .news-post-card {
        padding: 8px;
        min-height: 70px;
        flex-direction: row;
    }

    .post-card-thumbnail {
        width: 70px;
        min-width: 70px;
        height: 50px;
    }

    .post-card-body {
        gap: 6px;
    }

    .post-card-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .post-card-date {
        font-size: 0.75rem;
    }

    .news-lightbox-content-wrapper {
        flex: 1;
        height: 100%;
        max-height: 100%;
        width: 100%;
        border-radius: 0;
    }

    .news-lightbox-sidebar {
        display: none !important;
    }

    .news-lightbox-wrapper {
        width: 100%;
        max-width: 100%;
        position: fixed;
        inset: 0;
        height: 100vh;
        max-height: 100vh;
        transform: none !important;
    }

    .news-lightbox-content {
        padding: 50px 15px 15px;
        min-height: 0;
    }

    .news-article-title {
        font-size: 1.5rem;
    }

    .news-article-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .news-article-content h1,
    .news-article-content h2,
    .news-article-content h3 {
        font-size: 1.3rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .news-latest-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .news-latest-list {
        gap: 12px;
    }

    .news-latest-thumbnail {
        height: 100px;
    }

    .news-latest-info {
        padding: 12px;
    }

    .news-latest-item-title {
        font-size: 0.8rem;
    }

    .news-latest-item-date {
        font-size: 0.7rem;
    }
}
