/* Culture & Entertainment - Tab Navigation Styles */

/* Tab Scroll Container */
.tabs-scroll-container {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 50px;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Tabs Wrapper */
.tabs-wrapper {
    position: relative;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 5;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tabs-wrapper .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-bottom: 0;
    align-items: center;
}

.nav-tabs.links .nav-link {
    padding: 5px 0;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.2s ease;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

/* Show enabled buttons on container hover */
.tabs-scroll-container:hover .scroll-btn:not(.disabled) {
    opacity: 1;
    pointer-events: auto;
}

/* Hover effect for scroll buttons */
.scroll-btn:hover {
    background-color: #f5f5f5;
}

/* Disabled buttons stay hidden */
.scroll-btn.disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Gradient fade effect near buttons */
.tabs-scroll-container::before,
.tabs-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tabs-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}

.tabs-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

/* Show gradient on hover when there are enabled buttons */
.tabs-scroll-container:hover:has(.scroll-left:not(.disabled))::before,
.tabs-scroll-container:hover:has(.scroll-right:not(.disabled))::after {
    opacity: 1;
}

/* Culture Section Styles */
.culture-section {
    background-color: transparent;
}

.culture-section .main-article {
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture-section .category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--primary-color, #3498db);
}

.culture-section .title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 15px;
}

.culture-section .title a {
    color: #333;
    transition: color 0.3s ease;
}

.culture-section .title a:hover {
    color: var(--primary-color, #3498db);
}

.culture-section .summary {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.culture-section .main-article-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 100%;
}

.culture-section .main-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
/*
.culture-section .main-article-img:hover img {
    transform: scale(1.05);
} */

/* Sub Articles */
.sub-article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sub-article .thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0px;
    height: 180px;
}

.sub-article .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* .sub-article:hover .thumb img {
    transform: scale(1.1);
} */

.sub-article .content {
    flex: 1;
}

.sub-article .category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--primary-color, #3498db);
}

.sub-article .title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}

.sub-article .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-article .title a:hover {
    color: var(--primary-color, #3498db);
}

/* Divider */
.divider {
    margin: 14px 0 9px;
    border: 0;
    border-top: 1px solid #111;
}

/* Loading State for Culture & Entertainment */
.culture-loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.culture-content-area {
    min-height: 400px;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .culture-section .title {
        font-size: 20px;
    }

    .culture-section .main-article {
        padding: 15px;
    }

    .sub-article .thumb {
        height: auto;
        aspect-ratio: 5/3;
    }

    .sub-article .title {
        font-size: 15px;
    }
}

