/* =========================
   CONTAINER
========================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 14px;
}

/* =========================
   CATEGORY HEADING
========================= */
.category-heading {
    font-size: 20px;
    font-weight: bold;
    color: #ecb639;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid gold;
    text-align: center;
}

/* =========================
   NEWS GRID
========================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

/* =========================
   NEWS CARD
========================= */
.news-item-cat {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 3px solid transparent; /* prevents hover shift */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.news-item-cat:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: gold;
}

/* =========================
   TOP ROW (IMAGE + URDU)
========================= */
.top-row {
    display: flex;
    gap: 6px;
}



/* Thumbnail */
.thumb-wrap-cat {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-left: 5px;
    padding-top: 5px;
}

.news-thumb-cat {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Urdu content */
.urdu-content {
    flex: 2;
    display: flex;
    flex-direction: column;
}



/* =========================
   ENGLISH CONTENT
========================= */
.eng-content {
    width: 100%;
    padding: 5px 7px 9px;
    
}

/* =========================
   TEXT CONTENT
========================= */

/* Publish date */
.publish-date {
    font-size: 12px;
    color: #777;
}

/* Urdu */
.title-urdu-cat {
    font-size: 15px;
    font-weight: bold;
    direction: rtl;
    text-align: right;
    margin-bottom: 5px;
    padding-right: 3px;
    color: #5621d1;
}

.urdu-cat {
    direction: rtl;
    text-align: right;
    font-size: 12px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 5px;
    padding: 5px;
}

/* English */
.title-english-cat {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #5621d1;
}

.english-cat {
    font-size: 12px;
    line-height: 1.6;
    color: #444;
}

/* =========================
   PAGINATION
========================= */
.pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* =========================
   MOBILE RESPONSIVE ≤768px
========================= */
@media (max-width: 768px) {
    
    * {
        box-sizing: border-box;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .top-row {
        flex-direction: column;
        gap: 0;
        padding: 0;   /* REMOVE SIDE PADDING */
    }

    .thumb-wrap-cat {
        padding: 0;   /* REMOVE IMAGE PADDING */
    }

    .news-thumb-cat {
        width: 100%;
        border-radius: 8px 8px 0 0;
        display: block;
    }

    /* Apply padding ONLY to text sections */
    .urdu-content {
        padding: 0 15px;
    }

    .eng-content {
        padding: 0 15px 20px;
    }

    .news-item-cat {
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        border: none;
        border-radius: 12px;
    }

    .news-item-cat:hover {
        border: none;
        transform: none;
    }

   .publish-date {
       padding-top: 8px;
   }
    
    .title-urdu-cat, .title-english-cat {
        font-size: 18px;
    }
    .urdu-cat, .english-cat {
        font-size: 18px;
    }
    
}