/* News Page Specific Styles */

/* Featured Article Styles */
.featured-article {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid rgba(132, 204, 22, 0.2);
    transition: all 0.5s ease;
}

.featured-article:hover {
    border-color: rgba(132, 204, 22, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(132, 204, 22, 0.2);
}

.featured-article-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    padding: 3rem;
}

.featured-badge {
    display: inline-block;
    background: #84cc16;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* News Card Styles */
.news-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(132, 204, 22, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: rgba(132, 204, 22, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(132, 204, 22, 0.15);
}

.news-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #000;
}

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

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

.news-card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #84cc16;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(132, 204, 22, 0.3);
}

.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(132, 204, 22, 0.1);
}

.read-more-btn {
    color: #84cc16;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.news-card:hover .read-more-btn i {
    transform: translateX(5px);
}

/* Image Loading Skeleton */
.image-skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-article-image {
        height: 300px;
    }
    
    .featured-article-overlay {
        padding: 1.5rem;
    }
    
    .news-card-image {
        height: 200px;
    }
    
    .news-card-title {
        font-size: 1.25rem;
    }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger Animation for Grid Items */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* Category Badge */
.category-badge {
    display: inline-block;
    background: rgba(132, 204, 22, 0.1);
    color: #84cc16;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(132, 204, 22, 0.3);
}
