/* Hero */
.resources-hero {
    background: linear-gradient(135deg, #4c64cc 20%, #8d89ba 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
    justify-content: center; /* căn giữa ngang */
    align-items: center; /* căn giữa dọc */
    text-align: center;
}

.resources-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../../assets/images/dots-pattern.jpg');
    opacity: 0.1;
    z-index: 1;
}

.resources-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;

}
.resources-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    /*margin-bottom: 20px;*/
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Paytone One', sans-serif;
}

.resources-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* News Grid */
.news-grid {
    padding: 60px 0 80px 0;
    background: #f9f9f9;
}

.news-item {
    display: flex;
    margin: 0 0 30px 0;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    width: auto;             /* bỏ chiếm hết ngang */
    max-width: fit-content;
    white-space: nowrap;
}

/* Màu đa dạng */
.cat-blue {
    background: #eef4ff;
    color: #2563eb; /* xanh dương */
}

.cat-purple {
    background: #f3e8ff;
    color: #9333ea; /* tím */
}

.cat-green {
    background: #ecfdf5;
    color: #059669; /* xanh lá */
}

.cat-red {
    background: #fef2f2;
    color: #dc2626; /* đỏ */
}

.cat-orange {
    background: #fff7ed;
    color: #ea580c; /* cam */
}


.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 10px 0;
    color: #333;
}

.news-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 3rem;
    }

    .news-card img {
        height: 180px;
    }
}

.load-more-btn {
    background: transparent;
    border: 2px solid #4c64cc;
    color: #4c64cc;
    padding: 10px 25px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #4c64cc;
    color: white;
}

@media (max-width: 992px) {
    .resources-hero {
        padding: 100px 0 0;
    }

    .resources-hero-content {
        padding: 60px 20px;
    }

    .resources-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 3rem;
    }

    .resources-hero p {
        font-size: 1rem;
    }

    .news-grid {
        padding: 40px 20px;
    }
}

footer {
    margin-top: 0 !important;
}