/* ===== NEWS SECTION - HERO SLIDER ===== */

/* News Section */
.news-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 63, 103, 0.1), transparent);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.view-all-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.view-all-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.view-all-link:hover::after {
    transform: translateX(5px);
}

/* Hero News Slider */
.news-hero-slider {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(26, 63, 103, 0.12);
    background: white;
    margin: 0 auto;
}

.news-hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}

/* Individual Slide */
.news-hero-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: stretch;
    background: white;
}

/* Image Section (Left) */
.news-hero-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5, #e1e8ed);
}

.news-hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.news-hero-slide:hover .news-hero-slide-image {
    transform: scale(1.05);
}

/* Image Placeholder */
.news-hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 4rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.news-hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.news-hero-image-placeholder-icon {
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

/* Content Section (Right) */
.news-hero-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    position: relative;
}

/* Content Header */
.news-hero-header {
    flex-shrink: 0;
}

.news-hero-category {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 63, 103, 0.1);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(26, 63, 103, 0.1);
    animation: badge-entrance 0.8s ease-out 0.2s backwards;
    transition: all 0.3s ease;
}

.news-hero-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 204, 0.3);
    transition: all 0.3s ease;
}

.news-hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.news-hero-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Footer */
.news-hero-footer {
    flex-shrink: 0;
}

.news-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9375rem;
}

.news-hero-date,
.news-hero-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-hero-date svg,
.news-hero-author svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.news-hero-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 63, 103, 0.2);
}

.news-hero-read-more:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 63, 103, 0.3);
}

.news-hero-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.news-hero-read-more:hover svg {
    transform: translateX(3px);
}

/* Slider Controls */
.news-hero-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.news-hero-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.news-hero-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 63, 103, 0.3);
}

.news-hero-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.news-hero-btn svg {
    width: 20px;
    height: 20px;
}

/* Dots Navigation */
.news-hero-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.news-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 63, 103, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.news-hero-dot:hover {
    background: rgba(26, 63, 103, 0.5);
    transform: scale(1.2);
}

.news-hero-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(26, 63, 103, 0.4);
}

/* Loading Skeleton */
.news-hero-skeleton {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.news-hero-skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.news-hero-skeleton-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-category {
    width: 120px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 14px;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
    width: 100%;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-title:nth-child(3) {
    width: 85%;
}

.skeleton-excerpt {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-excerpt:nth-child(5) {
    width: 90%;
}

.skeleton-excerpt:nth-child(6) {
    width: 75%;
}

.skeleton-meta {
    width: 60%;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-top: 1rem;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton Loader Styles for News Slider */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.skeleton-category {
    width: 120px;
    height: 24px;
    margin-bottom: 16px;
}

.skeleton-title {
    width: 80%;
    height: 28px;
    margin-bottom: 12px;
}

.skeleton-excerpt {
    width: 100%;
    height: 18px;
    margin-bottom: 8px;
}

.skeleton-meta {
    width: 60%;
    height: 16px;
}

.skeleton-link {
    width: 80px;
    height: 32px;
    margin-top: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-hero-slider {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .news-hero-slide {
        grid-template-columns: 350px 1fr;
    }
    
    .news-hero-skeleton {
        grid-template-columns: 350px 1fr;
    }
    
    .news-hero-content {
        padding: 2rem;
    }
    
    .news-hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .news-hero-slider {
        height: auto;
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .news-hero-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 1fr;
    }
    
    .news-hero-skeleton {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 1fr;
    }
    
    .news-hero-content {
        padding: 1.5rem;
    }
    
    .news-hero-title {
        font-size: 1.5rem;
    }
    
    .news-hero-excerpt {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .news-hero-controls {
        bottom: 1rem;
        right: 1rem;
        gap: 0.75rem;
    }
    
    .news-hero-btn {
        width: 40px;
        height: 40px;
    }
    
    .news-hero-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 0 0.5rem;
    }
    
    .news-hero-slider {
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .news-hero-slide {
        grid-template-rows: 200px 1fr;
    }
    
    .news-hero-skeleton {
        grid-template-rows: 200px 1fr;
    }
    
    .news-hero-content {
        padding: 1rem;
    }
    
    .news-hero-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .news-hero-excerpt {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .news-hero-meta {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .news-hero-controls {
        gap: 0.5rem;
    }
    
    .news-hero-btn {
        width: 36px;
        height: 36px;
    }
    
    .news-hero-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .news-hero-dot {
        width: 10px;
        height: 10px;
    }
}
