/* 
   Latest News Split Layout (Featured + List)
   Target: #news section
*/

.news-split-container {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 3rem;
    margin-top: 3rem;
    min-height: 500px;
}

/* LTR/RTL Handling */
[dir="rtl"] .news-split-container {
    flex-direction: row-reverse;
}

/* List Side (Left in LTR) */
.news-list-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) transparent;
}

[dir="rtl"] .news-list-side {
    padding-right: 0;
    padding-left: 1rem;
}

.news-list-side::-webkit-scrollbar {
    width: 4px;
}

.news-list-side::-webkit-scrollbar-thumb {
    background: var(--brand-gradient);
    border-radius: 10px;
}

.news-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-list-item:hover {
    border-color: var(--brand-primary);
    transform: translateX(5px);
}

[dir="rtl"] .news-list-item:hover {
    transform: translateX(-5px);
}

.news-list-item.active {
    border-color: var(--brand-primary);
    background: rgba(249, 168, 37, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.news-list-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-gradient);
}

[dir="rtl"] .news-list-item.active::before {
    left: auto;
    right: 0;
}

.news-item-thumb {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.news-list-item:hover .news-item-thumb img {
    transform: scale(1.1);
}

.news-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-title-small {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-date-small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Featured Side (Right in LTR) */
.news-featured-side {
    position: relative;
}

.news-featured-card {
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.news-featured-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 15, 26, 0.8) 100%);
}

.news-featured-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-featured-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-featured-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-featured-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-primary);
    font-weight: 700;
}

/* Animations */
.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .news-split-container {
        gap: 1.5rem;
    }

    .news-list-side {
        flex: 0 0 40%;
    }
}

@media (max-width: 992px) {
    .news-split-container {
        flex-direction: column-reverse !important;
        height: auto;
    }

    .news-list-side {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 1rem;
        max-height: none;
    }

    .news-list-item {
        flex: 0 0 300px;
    }

    .news-featured-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .news-featured-title {
        font-size: 1.5rem;
    }

    .news-list-item {
        flex: 0 0 85%;
    }
}