/* ========================================
   NEWS - Featured + Carousel Layout
   ======================================== */

/* Featured News (Big Card) */
.news-featured {
    margin-bottom: 40px;
}

.news-featured-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.news-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 60px rgba(77, 168, 255, 0.3);
}

.news-featured-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.95) 0%, rgba(10, 15, 30, 0.7) 50%, rgba(10, 15, 30, 0.3) 100%);
}

.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    z-index: 2;
    color: #fff;
}

.news-featured-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8c9e0;
    font-size: 0.95rem;
}

.news-featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.news-featured-excerpt {
    font-size: 1.1rem;
    color: #d0d7e5;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 800px;
}

.news-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.news-featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8c9e0;
    font-size: 0.95rem;
}

.news-featured-btn {
    padding: 12px 30px !important;
    font-size: 1rem !important;
    font-weight: 600;
    white-space: nowrap;
}

/* Carousel Wrapper */
.news-carousel-wrapper {
    position: relative;
    margin-top: 30px;
}

/* Carousel Container */
.news-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 168, 255, 0.3) rgba(255, 255, 255, 0.1);
    padding: 10px 0 30px 0;
}

.news-carousel::-webkit-scrollbar {
    height: 8px;
}

.news-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.news-carousel::-webkit-scrollbar-thumb {
    background: rgba(77, 168, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.news-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 168, 255, 0.5);
}

/* Carousel Cards */
.news-carousel-card {
    min-width: 300px;
    width: 300px;
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(100, 180, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.news-carousel-card:hover {
    transform: translateY(-8px);
    border-color: rgba(77, 168, 255, 0.5);
    box-shadow: 0 10px 30px rgba(77, 168, 255, 0.2);
}

.news-carousel-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-carousel-content {
    padding: 20px;
}

.news-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.news-carousel-date {
    color: #b8c9e0;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-carousel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 50px;
}

.news-carousel-excerpt {
    font-size: 0.9rem;
    color: #b8c9e0;
    line-height: 1.5;
    min-height: 60px;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(15, 25, 45, 0.9);
    border: 2px solid rgba(77, 168, 255, 0.3);
    border-radius: 50%;
    color: #4da8ff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover:not(:disabled) {
    background: rgba(77, 168, 255, 0.2);
    border-color: #4da8ff;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

/* News Badges */
.news-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-badge.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.news-badge.new {
    background: linear-gradient(135deg, #4da8ff, #667eea);
    color: #fff;
    box-shadow: 0 4px 15px rgba(77, 168, 255, 0.4);
}

.news-badge.update {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.news-badge.event {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.news-badge-small {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-badge-small.hot { background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: #fff; }
.news-badge-small.new { background: linear-gradient(135deg, #4da8ff, #667eea); color: #fff; }
.news-badge-small.update { background: linear-gradient(135deg, #00d2ff, #3a7bd5); color: #fff; }
.news-badge-small.event { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; }

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
}

@media (max-width: 768px) {
    .news-featured-card {
        height: 400px;
    }
    
    .news-featured-content {
        padding: 30px;
    }
    
    .news-featured-title {
        font-size: 1.8rem;
    }
    
    .news-featured-excerpt {
        font-size: 1rem;
    }
    
    .news-featured-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carousel-prev { left: 5px; }
    .carousel-next { right: 5px; }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .news-featured-card {
        height: 350px;
    }
    
    .news-featured-content {
        padding: 20px;
    }
    
    .news-featured-title {
        font-size: 1.5rem;
    }
    
    .news-carousel-card {
        min-width: 260px;
        width: 260px;
    }
}



