/* Latest News Section - Dark Premium Theme */
.news-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a3c6d 0%, #0f2b50 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

/* Abstract Background Shapes */
.news-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.news-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.news-section .section-title {
    color: white !important;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.news-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.news-image {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.15);
}

/* Date Badge - Floating */
.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    /* RTL aware: actually Left side might be better for contrast in RTL context? Standard is usually corner */
    right: auto;
    background: #00A8E8;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 168, 232, 0.3);
    z-index: 2;
    text-align: center;
    line-height: 1.2;
    min-width: 50px;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-size: 0.75rem;
    color: #1a3c6d;
    background: rgba(26, 60, 109, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 700;
    align-self: flex-start;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #00A8E8;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-link {
    color: #1a3c6d;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding: 8px 0;
}

.news-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    color: inherit;
}

.news-link:hover {
    color: #00A8E8;
    gap: 12px;
}

.news-link:hover i {
    transform: translateX(-5px);
    background: transparent;
    color: inherit;
}

/* Button style update in home.blade.php container */
.news-section .btn-outline-primary {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.news-section .btn-outline-primary:hover {
    background: white;
    color: #1a3c6d;
    border-color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-title {
        font-size: 1.2rem;
    }
}