        /* ===== SUB CATEGORY SECTION ===== */

        .subcategory-section {
            padding: 40px 0;
        }

        /* Heading */
        .subcategory-heading h2 {
            text-align: center;
            margin-bottom: 20px;
        }

        .subcategory-heading {
            border-bottom: 1px solid #ddd;
            margin-bottom: 25px;
        }

        /* Layout */
        .subcategory-container {
            display: grid;
            grid-template-columns: 1.6fr 1fr;
            gap: 30px;
            align-items: start;
        }

        /* ===== LEFT FEATURED ===== */

        .subcategory-featured {
            position: relative;
        }

        .subcategory-featured-img img {
            width: 100%;
            height: 420px;
            object-fit: cover;
            display: block;
        }

        /* Overlay */
        .subcategory-featured-overlay {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
        }

        .subcategory-featured-title {
            text-decoration: none;
            color: #fff;
        }

        .subcategory-featured-title h3 {
            margin: 0;
        }

        .subcategory-featured-title:hover h3 {
            text-decoration: underline;
        }

        .subcategory-featured-author {
            display: inline-block;
            margin-top: 6px;
            text-decoration: none;
        }


        /* ===== RIGHT LIST ===== */

        .subcategory-list {
            padding-left: 25px;
            border-left: 1px solid #e0e0e0;
        }

        .subcategory-list-item {
            display: flex;
            gap: 14px;
            align-items: flex-start;
        }

        .subcategory-list-img img {
            width: 140px;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .subcategory-list-title {
            text-decoration: none;
            color: #111;
        }

        .subcategory-list-title h4 {
            margin: 0;
        }

        .subcategory-list-title:hover h4 {
            text-decoration: underline;
        }

        .subcategory-list-author {
            display: block;
            text-decoration: none;
        }

        /* Divider */
        .subcategory-divider {
            border-bottom: 1px solid #ddd;
            margin: 18px 0;
        }


        /* ===== RESPONSIVE ===== */

        /* Tablet */
        @media (max-width: 900px) {
            .subcategory-container {
                grid-template-columns: 1fr;
            }

            .subcategory-list {
                border-left: none;
                padding-left: 0;
                margin-top: 25px;
            }

            .subcategory-featured-img img {
                height: 340px;
            }
        }

        /* Mobile */
        @media (max-width: 600px) {
            .subcategory-featured-img img {
                height: 260px;
            }

            .subcategory-list-item {
                align-items: center;
            }
        }

        /* ===== IMAGE CARD GRID SECTION ===== */
        /* ===== UPDATES HEADER ROW ===== */

        .updates-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .updates-header h2 {
            margin-top: -1rem;

        }

        .updates-header span {
            color: #000000;
        }



        /* Mobile */
        @media (max-width: 600px) {
            .updates-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }

        }

        .post-grid-section {
            padding: 40px 0;
        }

        .post-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
        }

        /* Card */
        .post-card {
            text-decoration: none;
            color: #111;
            display: block;
        }

        .post-card-img img {
            width: 100%;
            height: 170px;
            object-fit: cover;
            display: block;
        }

        /* Title */
        .post-card h4 {
            margin-top: 8px;
        }

        /* Hover */
        .post-card:hover h4 {
            text-decoration: underline;
        }

        /* ===== RESPONSIVE ===== */

        /* Tablet */
        @media (max-width: 1024px) {
            .post-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Mobile */
        @media (max-width: 600px) {
            .post-grid {
                grid-template-columns: 1fr;
            }

            .post-card-img img {
                height: 200px;
            }
        }

        /* === UPDATES GRID LAYOUT === */
        .updates-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            /* 2 cards per row on desktop */
            gap: 25px;
        }

        /* Card styling */
        .updates-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
        }

        .updates-card h5 {
            margin: 12px 0 6px;
        }

        .updates-card p {
            margin: 0;
            margin-top: 4px;
        }

        /* === Divider using nth-child === */
        /* Desktop → 2 columns → 5 rows → first 10 items get border */
        .updates-card:nth-child(-n+10) {
            border-bottom: 1px solid #ddd;
            padding-bottom: 18px;
            margin-bottom: 18px;
        }

        /* === RIGHT AD === */
        .updates-ad {
            position: sticky;
            top: 90px;
            background: #000;
            color: #fff;
            height: 260px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* === TABLET VIEW === */
        @media (max-width: 992px) {
            .updates-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            /* Tablet → 2 columns → 4 rows → first 8 items */
            .updates-card:nth-child(-n+8) {
                border-bottom: 1px solid #ddd;
            }

            .updates-ad {
                position: static;
                margin-top: 30px;
            }
        }

        /* === MOBILE VIEW === */
        @media (max-width: 576px) {
            .updates-grid {
                grid-template-columns: 1fr;
                /* 1 card per row */
            }

            /* Mobile → first 5 items */
            .updates-card:nth-child(-n+5) {
                border-bottom: 1px solid #ddd;
            }
        }