/**
 * News Page Styles - GREEN THEME
 * Framework: Laravel 12
 * Template: Metronic 8.5
 * Theme: Medical/Hospital GREEN
 */

/* ===== HERO SECTION - GREEN THEME ===== */
.hero-news {
    background: linear-gradient(135deg, #90EE90 0%, #228B22 50%, #4169E1 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px);
    opacity: 0.5;
}

/* Animated Shapes */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(144, 238, 144, 0.15);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    right: 5%;
}

.shape-2 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 40%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Stats Card */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* Breadcrumb */
.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

/* ===== FILTER SECTION ===== */
.filter-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

/* ===== NEWS CARDS ===== */
.news-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 139, 34, 0.2);
}

.news-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: block;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(34, 139, 34, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 2;
}

.badge-news {
    background: rgba(52, 152, 219, 0.9);
    color: #fff;
}

.badge-article {
    background: rgba(155, 89, 182, 0.9);
    color: #fff;
}

.badge-promotion {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(241, 196, 15, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 2;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #228B22;
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: #228B22;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: #1a6b1a;
    transform: translateX(5px);
}

/* ===== PAGINATION ===== */
.pagination {
    gap: 0.5rem;
}

.page-item .page-link {
    border-radius: 0.5rem;
    border: none;
    color: #228B22;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: #228B22;
    color: #fff;
}

.page-item .page-link:hover {
    background: #90EE90;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== EMPTY STATE ===== */
.empty-state-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* ===== ACTIVE FILTERS ===== */
.active-filters .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-news {
        min-height: auto;
    }

    .shape {
        display: none;
    }

    .news-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-news {
        padding: 4rem 0;
    }

    .news-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .news-title a {
        font-size: 1.1rem;
    }

    .news-content {
        padding: 1rem;
    }

    .btn-read-more {
        font-size: 0.875rem;
    }
}
