/* Berita Tab Styling - Clean & Organized */
.berita-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Latest News Grid */
.latest-news {
    grid-column: 1;
    grid-row: 1;
}

.latest-news h2 {
    font-size: 2rem;
    color: var(--navy);
    margin: 0 0 30px 0;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    width: 100%;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    width: 100%;
}

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

.news-card:hover .card-img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.news-content h3 {
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.8;
}

.news-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.read-more {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 2px solid var(--navy);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(11, 47, 100, 0.3);
}

/* Popular News Sidebar */
.popular-news {
    grid-column: 2;
    grid-row: 1;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.popular-news h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.popular-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-news-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.popular-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-news-number {
    background: var(--navy);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-news-content h4 {
    margin: 0;
    line-height: 1.4;
}

.popular-news-link {
    color: var(--navy);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
}

.popular-news-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .berita-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .popular-news {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }
    
    .latest-news {
        grid-column: 1;
        grid-row: auto;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .berita-content {
        padding: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .read-more {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* CSS Variables */
:root {
    --navy: #0b2f64;
    --gold: #FFD700;
    --text-dark: #1f2937;
    --soft: #f1f5f9;
}
