
/* =========================================
   News & Updates Page Styles
   ========================================= */

/* Hero Section */
.news-hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
}

.news-hero h1 {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
}

/* Filter Buttons */
.news-filters .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.news-filters .btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.news-filters .btn-light {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.news-filters .btn-light:hover {
    background-color: #e2e8f0;
    color: #334155;
}

.news-filters .btn-light.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Featured Stories */
.featured-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: white;
    cursor: pointer;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.featured-card h3, .featured-card h4, .featured-card p {
    transition: color 0.3s ease;
}

.featured-card:hover h3, .featured-card:hover h4, .featured-card:hover p {
    color: inherit !important; /* Prevent color change on hover */
}

.featured-img-wrapper {
    height: 300px;
    overflow: hidden;
}

.featured-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-img-wrapper img {
    transform: scale(1.08);
}

.featured-content {
    padding: 1.5rem;
}

/* News Tags */
.news-tag {
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 1rem;
}

.news-date {
    font-size: 0.85rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 0.5rem;
    color: #2563eb;
}

/* Regular News Grid */
.news-card {
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: white;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

.news-card-img {
    overflow: hidden;
    height: 240px;
    margin-bottom: 0; /* Remove margin as it's now inside the card */
}

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

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

.news-card h5, .news-card h6, .news-card p {
    transition: color 0.3s ease;
}

.news-card:hover h5, .news-card:hover h6, .news-card:hover p {
    color: inherit !important;
}

.news-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Newsletter CTA */
.newsletter-card {
    background-color: #0f172a;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.newsletter-card h2 {
    color: white;
}

.newsletter-input {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: white;
    box-shadow: none;
}

.btn-subscribe {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background-color: #e69500;
    transform: translateY(-2px);
    color: white;
}
