/* Magazine-Style Latest News Section */
.latest-news {
    padding: 5rem 0;
}

/* Modern Section Header */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-view-all:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-view-all svg {
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}

/* Magazine Layout */
.news-magazine-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

/* Hero Post */
.news-hero {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-hero:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.news-hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-hero-media {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.news-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-hero:hover .news-hero-img {
    transform: scale(1.08);
}

.news-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-hero-placeholder i {
    font-size: 5rem;
    color: white;
    opacity: 0.4;
}

.news-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.news-hero-content {
    padding: 2rem;
}

.news-hero-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.news-hero-title {
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.news-hero:hover .news-hero-title {
    color: var(--primary-color);
}

.news-hero-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.news-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.news-hero-meta {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 500;
}

.meta-item svg {
    color: var(--primary-color);
}

.news-hero-arrow {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.news-hero:hover .news-hero-arrow {
    transform: translateX(8px);
}

/* Compact Grid Posts */
.news-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-compact-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.news-compact-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.news-compact-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1.25rem;
}

.news-compact-media {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-compact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-compact-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-compact-placeholder i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.4;
}

.news-compact-body {
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-compact-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-compact-card:hover .news-compact-title {
    color: var(--primary-color);
}

.news-compact-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-compact-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-magazine-layout {
        grid-template-columns: 1fr;
    }
    
    .news-hero-media {
        height: 380px;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .latest-news {
        padding: 3rem 0;
    }
    
    .section-header-modern {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .section-title-modern {
        font-size: 1.5rem;
    }
    
    .btn-view-all {
        font-size: 0.875rem;
        padding: 0.6rem 1rem;
        white-space: nowrap;
    }
    
    .news-hero-media {
        height: 300px;
    }
    
    .news-hero-content {
        padding: 2rem;
    }
    
    .news-hero-title {
        font-size: 1.5rem;
    }
    
    .news-hero-excerpt {
        font-size: 1rem;
    }
    
    .news-compact-card {
        flex-direction: column;
    }
    
    .news-compact-link {
        flex-direction: column;
    }
    
    .news-compact-media {
        width: 100%;
        height: 200px;
    }
    
    .news-compact-body {
        padding: 1.25rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .section-title-modern {
        font-size: 1.5rem;
    }
    
    .btn-view-all {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .news-hero-media {
        height: 240px;
    }
    
    .news-hero-content {
        padding: 1.5rem;
    }
    
    .news-hero-tag {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
        margin-bottom: 1rem;
    }
    
    .news-hero-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .news-hero-excerpt {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .news-hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .news-hero-meta {
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.875rem;
    }
    
    .news-compact-media {
        height: 180px;
    }
    
    .news-compact-body {
        padding: 1rem;
    }
    
    .news-compact-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .news-compact-excerpt {
        font-size: 0.875rem;
        display: block;
    }
    
    .news-compact-meta {
        margin-top: 0.75rem;
    }
}
