/* ==============================================
   MODERN NEWS STYLES - BERITA TERBARU
   ============================================== */

/* ===== MODERN GRID LAYOUT ===== */
.modern-news-grid {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.modern-news-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="news-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23news-grid)"/></svg>');
    pointer-events: none;
}

.news-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-grid-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.news-grid-title {
    font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.news-grid-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #7c3aed 100%);
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.98);
}

.news-card:hover .news-card-image::after {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.news-card:hover .news-card-category {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.news-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
    margin: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 20px 20px;
}

.news-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
}

.news-card-author i {
    color: #3b82f6;
}

.news-card-date {
    color: #94a3b8;
    font-size: 0.85rem;
}

.news-card-read-more {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

/* ===== MAGAZINE LAYOUT ===== */
.magazine-news-layout {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.magazine-news-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.magazine-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.magazine-header {
    text-align: center;
    margin-bottom: 4rem;
}

.magazine-title {
    font-size: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.magazine-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.featured-article {
    grid-row: span 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.featured-image {
    height: 350px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 2rem;
}

.featured-category {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: inline-block;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-article {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.side-article:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.side-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.side-article-meta {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ===== TIMELINE LAYOUT ===== */
.timeline-news-layout {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.timeline-news-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="timeline-grid" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23timeline-grid)"/></svg>');
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-title {
    font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 50%, #7c3aed 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    border: 4px solid #1e293b;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-date {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-category {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    margin-left: 0.5rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.timeline-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== CAROUSEL LAYOUT ===== */
.carousel-news-layout {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.carousel-news-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.carousel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.carousel-title {
    font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.carousel-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.modern-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slide {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.carousel-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .news-card-image {
        height: 220px;
    }
    
    .featured-image {
        height: 300px;
    }
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .news-card-image {
        height: 240px;
    }
    
    .featured-image {
        height: 320px;
    }
    
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-article {
        grid-row: span 1;
    }
    
    .carousel-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        margin-bottom: 0;
        border-radius: 16px;
    }
    
    .news-card-image {
        height: 200px;
        border-radius: 16px 16px 0 0;
    }
    
    .news-card-content {
        padding: 1.5rem;
        border-radius: 0 0 16px 16px;
    }
    
    .featured-image {
        height: 250px;
        border-radius: 16px 16px 0 0;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .timeline-item::before {
        left: -2.5rem;
    }
    
    .carousel-card {
        flex: 0 0 280px;
        border-radius: 16px;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .news-grid-container,
    .magazine-container,
    .timeline-container,
    .carousel-container {
        padding: 0 1rem;
    }
    
    .news-card {
        border-radius: 12px;
    }
    
    .news-card-image {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }
    
    .news-card-content {
        padding: 1.25rem;
        border-radius: 0 0 12px 12px;
    }
    
    .news-card-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .news-card-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .featured-content {
        padding: 1.25rem;
        border-radius: 0 0 16px 16px;
    }
    
    .featured-image {
        height: 200px;
        border-radius: 16px 16px 0 0;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }
    
    .timeline-item {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .carousel-card {
        flex: 0 0 250px;
        border-radius: 12px;
    }
    
    .modern-news-grid,
    .magazine-news-layout,
    .timeline-news-layout,
    .carousel-news-layout {
        padding: 3rem 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.news-card {
    animation: slideInUp 0.6s ease-out;
}

.featured-article {
    animation: fadeInScale 0.8s ease-out;
}

.timeline-item {
    animation: slideInUp 0.6s ease-out;
}

/* ===== FEATURED BY CATEGORY SECTION ===== */
.featured-category-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.featured-category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="category-grid" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M 25 0 L 0 0 0 25" fill="none" stroke="rgba(59,130,246,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23category-grid)"/></svg>');
    pointer-events: none;
}

.featured-category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
}

.featured-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    z-index: 1;
}

.featured-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.featured-category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.featured-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.featured-category-card:hover .featured-category-image img {
    transform: scale(1.1);
}

.featured-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.featured-category-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.featured-category-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
}

.featured-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-category-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.featured-category-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
}

.featured-category-author i {
    color: #f59e0b;
}

.featured-category-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

.featured-category-read-more {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.featured-category-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive design for featured category section */
@media (max-width: 768px) {
    .featured-category-content {
        padding: 1.25rem;
    }
    
    .featured-category-title {
        font-size: 1.1rem;
    }
    
    .featured-category-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .featured-category-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .featured-category-content {
        padding: 1rem;
    }
    
    .featured-category-title {
        font-size: 1rem;
    }
    
    .featured-category-read-more {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .featured-category-image {
        height: 160px;
    }
}

/* ===== ENHANCED UTILITY CLASSES ===== */
.text-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ===== ADDITIONAL NEWS ENHANCEMENTS ===== */
.news-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.news-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.news-card:hover .news-card-overlay {
    transform: translateY(0);
}

.news-card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.news-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 400px) {
    .news-card-image {
        height: 160px;
    }
    
    .featured-image {
        height: 180px;
    }
    
    .news-grid-container,
    .magazine-container,
    .timeline-container,
    .carousel-container {
        padding: 0 0.75rem;
    }
    
    .modern-news-grid,
    .magazine-news-layout,
    .timeline-news-layout,
    .carousel-news-layout {
        padding: 2.5rem 0;
    }
}

/* ===== MOBILE MEDIA INFORMASI SECTION ENHANCEMENTS ===== */
@media (max-width: 768px) {
    /* Collection area mobile optimizations */
    .collection-area {
        padding: 3rem 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    }
    
    .collection-area::before {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots-mobile" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="1" fill="rgba(102,126,234,0.08)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots-mobile)"/></svg>');
    }
    
    /* Collection items mobile grid with right alignment */
    .collection__items-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
        justify-content: flex-end !important;
        justify-items: end !important;
        max-width: 70% !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        padding: 0 1rem !important;
    }
    
    /* Collection items mobile styling */
    .collection__item {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .collection__item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* Mobile collection thumbnails */
    .collection__item-thumb {
        height: 160px;
        overflow: hidden;
        position: relative;
        border-radius: 16px 16px 0 0;
    }
    
    .collection__item-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .collection__item:hover .collection__item-thumb img {
        transform: scale(1.05);
    }
    
    /* Mobile collection content */
    .collection__item-content {
        padding: 1.25rem 1rem;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .collection__item-content .name {
        margin-bottom: 0.75rem;
    }
    
    .collection__item-content .name a {
        color: #2d3748;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.3s ease;
    }
    
    .collection__item-content .name a:hover {
        color: #667eea;
    }
    
    .collection__item-content .author {
        color: #718096;
        font-size: 0.85rem;
        font-weight: 500;
        line-height: 1.4;
    }
    
    .collection__item-content .author a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }
    
    .collection__item-content .author a:hover {
        color: #764ba2;
        text-decoration: underline;
    }
}

@media (max-width: 576px) {
    /* Extra compact mobile styles */
    .collection-area {
        padding: 2.5rem 0;
    }
    
    .collection__items-list {
        gap: 1rem !important;
        justify-content: flex-end !important;
        justify-items: end !important;
        max-width: 70% !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        padding: 0 0.75rem !important;
    }
    
    .collection__item {
        border-radius: 12px;
    }
    
    .collection__item-thumb {
        height: 140px;
        border-radius: 12px 12px 0 0;
    }
    
    .collection__item-content {
        padding: 1rem 0.75rem;
        border-radius: 0 0 12px 12px;
    }
    
    .collection__item-content .name a {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .collection__item-content .author {
        font-size: 0.8rem;
    }
    
    /* Touch-friendly interactions */
    .collection__item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 400px) {
    /* Single column for very small screens with right alignment */
    .collection__items-list {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        justify-content: flex-end !important;
        justify-items: end !important;
        max-width: 70% !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        padding: 0 0.5rem !important;
    }
    
    .collection__item-thumb {
        height: 160px;
    }
    
    .collection__item-content {
        padding: 1rem;
    }
    
    .collection__item-content .name a {
        font-size: 1rem;
    }
    
    .collection__item-content .author {
        font-size: 0.85rem;
    }
}