﻿@media (min-width: 1024px) {
    .home-news-section {
        margin-top: 8rem !important;
    }
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.25s ease;
    height: 100%;
}

    .news-card:hover {
        transform: translateY(-4px);
        border-color: #dcdcff;
    }

.news-image {
    height: 180px;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-body {
    padding: 16px 18px 18px;
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 14px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

    .news-meta i {
        margin-left: 4px;
    }

.news-btn {
    position: relative;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #5b5be0;
    background: rgba(91, 91, 224, 0.08);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .news-btn i {
        transition: transform 0.3s ease;
    }

    .news-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, #5b5be0, #7c3aed );
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .news-btn:hover {
        color: #fff;
        box-shadow: 0 6px 20px rgba(91, 91, 224, 0.35);
    }

        .news-btn:hover::before {
            opacity: 1;
        }

        .news-btn:hover i {
            transform: translateX(-4px);
        }

.news-hero {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.news-hero-box {
    position: relative;
    background: linear-gradient(135deg, #f6f7fb, #ffffff);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e6e8f0;
}

    .news-hero-box::before {
        content: "";
        position: absolute;
        top: -40%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(110, 66, 193, 0.15), transparent 70%);
    }

.news-hero-content {
    z-index: 2;
}

.news-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(110, 66, 193, 0.1);
    color: #6f42c1;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.news-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 1rem;
}

.news-hero-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}

.news-hero-icon {
    font-size: 5rem;
    color: rgba(110, 66, 193, 0.15);
    z-index: 1;
}

@media (max-width: 768px) {
    .news-hero-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .news-hero-icon {
        margin-top: 1.5rem;
        font-size: 4rem;
    }
}