   /* === ARTICLE SECTION === */
        .article-section {
            background: var(--bg-light);
            padding: 5rem 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-header h1 {
            font-weight: 800;
            font-size: clamp(2rem, 3vw, 2.5rem);
            color: var(--primary-color);
        }

        .section-header p {
            color: var(--text-light);
            max-width: 680px;
            margin: 0.5rem auto 0;
            font-size: 1.1rem;
        }

        /* === ARTICLES GRID === */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
        }

        /* === ARTICLE CARD === */
        .card-article {
            background: #fff;
            border: none;
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            transition: all 0.4s ease;
            display: flex;
            flex-direction: column;
        }

        .card-article:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-md);
        }

        .card-img {
            position: relative;
            height: 140px;
            /* smaller, more proportional for wide images */
            overflow: hidden;
            background: var(--bg-light);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            /* focuses on top portion, avoids awkward crops */
            filter: brightness(0.9);
            transition: transform .6s ease, filter .3s ease;
        }

        .card-article:hover img {
            transform: scale(1.05);
            filter: brightness(1);
        }

        .card-img::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.4));
            opacity: 0.3;
            transition: opacity .3s ease;
        }

        .card-article:hover .card-img::after {
            opacity: 0.5;
        }


        /* --- Category badge --- */
        .card-badge {
            position: absolute;
            bottom: 1rem;
            left: 1rem;
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary-color);
            padding: 0.35rem 0.9rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            backdrop-filter: blur(4px);
        }

        /* --- Card Body --- */
        .card-body {
            padding: 1.5rem 1.8rem;
            flex: 1;
        }

        .card-body h5 {
            font-size: 1.1rem;
            font-weight: 700;
            line-height: 1.5;
            margin-bottom: 0.75rem;
        }

        .card-body h5 a {
            color: var(--text-dark);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .card-body h5 a:hover {
            color: var(--primary-color);
        }

        .card-body p {
            color: var(--text-light);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* --- Footer --- */
        .card-footer {
            border-top: 1px solid #eee;
            padding: 1rem 1.8rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-light);
        }

        .read-more {
            color: var(--primary-color);
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .read-more:hover {
            text-decoration: underline;
            gap: 0.5rem;
        }

        /* === PAGINATION === */
        .pagination {
            justify-content: center;
            margin-top: 3rem;
            gap: 0.4rem;
        }

        .page-item .page-link {
            border: none;
            border-radius: 8px;
            color: var(--primary-color);
            background: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .page-item.active .page-link {
            background: var(--gradient-primary);
            color: #fff;
        }

        .page-link:hover {
            transform: translateY(-2px);
        }

        /* === RESPONSIVE === */
        @media (max-width: 992px) {
           

            .articles-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
          

            .articles-grid {
                grid-template-columns: 1fr;
            }

            .section-header h1 {
                font-size: 1.8rem;
            }
        }