/* ========================================
   ZENRIN DataCom - News Page Styles
   ======================================== */

/* News Hero Section */
.news-hero {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    border-radius: 0 0 50px 50px;
    padding: 150px 0 100px;
    margin-top: -100px;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.png') no-repeat center right/cover;
    opacity: 0.2;
}

/* News Filter Section */
.news-filter {
    background: #fff;
    padding: 50px 0;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: #f3f9fb;
    border: 2px solid #f3f9fb;
    color: #94b3cb;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #207fdd;
    color: #fff;
}

/* News Grid Section */
.news-grid-section {
    background: #fff;
    padding: 50px 0 100px;
}

.news-item {
    transition: opacity 0.3s ease;
    border-bottom: 1px solid #abacac;
    margin-top: 3rem;
    padding-bottom: 1.5rem;
}

.news-grid-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    position: relative;
}

.news-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.news-grid-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.news-grid-card .card-body {
    padding: 25px;
}

.news-grid-tag {
    color: #333;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #333;
    border-radius: 999px;
    background: transparent;
    display: inline-block;
}

.news-grid-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 55px;
}

.news-grid-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
}

.news-grid-next {
    font-size: 13px;
    color: #207fdd;
    margin-bottom: 0;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .news-hero {
        padding: 150px 0 80px;
        border-radius: 0 0 50px 50px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .news-grid-section {
        padding: 30px 0 60px;
    }
}

@media (max-width: 480px) {

    .news-hero {
        padding: 120px 0 60px;
    }
}