/* =========================
INDEX HERO SECTION
========================= */
.index-hero {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    animation: fadeIn 0.8s ease-in-out;
}

.feature-main,
.feature-middle,
.feature-right {
    background: #fff;
    border-bottom: 4px solid #e0e0e0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-main:hover,
.feature-middle:hover,
.feature-right:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.feature-main img,
.feature-middle img,
.feature-right img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-main:hover img,
.feature-middle:hover img,
.feature-right:hover img {
    transform: scale(1.08);
}

.news-content-index {
    padding: 13px;
}

.meta {
    margin-bottom: 8px;
    font-size: 13px;
}

.date {
    color: #777;
}

.news-content-index h2 {
    color: #5621d1;
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.3;
}

.news-content-index p {
    margin: 0;
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

.urdu-cont {
    direction: rtl;
    text-align: right;
}

/* =========================
NEWS CARDS GRID
========================= */
.news-cards-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch; 
}

 /* Make each card equal height */
.card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.image-thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.image-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


.card-text {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    justify-content: space-between;
}

.card-text h3 {
    margin: 6px 0;
    font-size: 15px;
}

.card-text h4 {
    direction: rtl;
    font-size: 14px;
    margin: 0;
    color: #5621d1;
}

.card-text .date {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}




/* =========================
MOBILE LAYOUT
========================= */

@media (max-width: 768px) {

    .index-hero {
        grid-template-columns: 1fr;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .mobile-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-list .news-item {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    /* Hero items keep divider */
    .mobile-list .hero-item {
        border-bottom: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    
    .mobile-list .card-item {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    
    
    
    .card-text h3,
    .card-text h4 {
        font-size: 20px;
    }

    .card-text .date {
        font-size: 15px;
        margin-bottom: 12px;
    }
}

/* =========================
ANIMATION
========================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}