/*
==================================================
HERO SECTION
D-Tech AMP News Pro (PERFECT HEIGHT & RESPONSIVE FIX)
==================================================
*/

.hero-section{
    position: relative;
    margin: 30px 0 40px;
    direction: rtl;
}

.hero-section .container{
    width: 100%;
}

/*
==================================================
HERO GRID - GRID AREAS & BALANCED HEIGHTS
==================================================
*/

.hero-grid{
    display:grid;
    gap:20px;
    align-items:start !important;
}

/* ==========================
RTL
========================== */

html[dir="rtl"] .hero-grid{
    grid-template-areas:"main center left";
    grid-template-columns:minmax(0,1fr) 280px 320px;
}

/* ==========================
LTR
========================== */

html[dir="ltr"] .hero-grid{
    grid-template-areas:"left center main";
    grid-template-columns:320px 280px minmax(0,1fr);
}

.hero-right { 
    grid-area: main; 
    min-width: 0;
}

.hero-center { 
    grid-area: center; 
    min-width: 0;
}

.hero-left { 
    grid-area: left; 
    min-width: 0;
}

/*
==================================================
COMMON BOX
==================================================
*/

.hero-main,
.hero-videos{
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    box-sizing: border-box;
}

.hero-latest{
    display: flex;
    flex-direction: column;
    text-align: right;
    height: auto !important;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/*
==================================================
MAIN HERO (مین خبر - قید ختم)
==================================================
*/

.hero-main{
    display: flex;
    flex-direction: column;
}

.hero-post{
    margin: 0;
}

.hero-image,
.hero-image amp-img {
    display: block;
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden;
    background: #f5f5f5;
}

.hero-image img,
.hero-image amp-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform .35s ease;
}

.hero-main:hover .hero-image img{
    transform: scale(1.03);
}

.hero-content{
    padding: 18px;
    text-align: right;
}

.hero-title{
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.hero-title a{
    color: #111;
    text-decoration: none;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.hero-title a:hover{
    color: #d60000;
}

.hero-meta{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #777;
    justify-content: flex-start;
}

.hero-excerpt{
    font-size: 19px;
    line-height: 1.7;
    color: #444;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/*
==================================================
VIDEOS COLUMN (ویڈیوز ٹائٹل قید ختم)
==================================================
*/

.hero-videos{
    padding: 8px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px !important;
}

.video-card{
    margin-bottom: 5px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 5px;
}

.video-card:last-child{
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.video-thumb,
.video-thumb amp-img {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: #f5f5f5;
    width: 100% !important;
    height: 140px !important;
    aspect-ratio: unset !important;
}

.video-thumb img,
.video-thumb amp-img img{
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.video-icon{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(214,0,0,.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.video-content{
    padding-top: 6px;
}

.video-title{
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.video-title a{
    color: #111;
    text-decoration: none;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/*
==================================================
TAZA TAREEN (تازہ ترین ٹائٹل قید ختم)
==================================================
*/

.hero-latest-header{
    background: linear-gradient(to bottom,#d40000,#a30000);
    color: #fff;
    padding: 10px 14px;
    border-bottom: 3px solid #b30000;
}

.hero-latest-header h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.0;
}

.hero-latest-list{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.latest-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 1px solid #ececec;
    transition: .3s;
}

.latest-item:last-child{
    border-bottom: none;
}

.latest-thumb{
    flex: 0 0 65px !important;
    width: 65px !important;
    height: 48px !important;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.latest-thumb img,
.latest-thumb amp-img img {
    width: 65px !important;
    height: 48px !important;
    object-fit: cover !important;
    display: block !important;
}

.latest-content{
    flex: 1;
    min-width: 0;
    text-align: right;
}

.latest-title{
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.latest-title a{
    color: #111;
    text-decoration: none;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.latest-date{
    display: block;
    font-size: 10px;
    color: #777;
}

/*
==================================================
HERO HIGHLIGHTS (ہائی لائٹس ٹائٹل قید ختم)
==================================================
*/

.hero-highlights {
    margin-top: 25px;
    direction: rtl;
    width: 100%;
}

.hero-highlights-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 15px;
}

.highlight-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.highlight-thumb,
.highlight-thumb amp-img {
    display: block;
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden;
    background: #f5f5f5;
}

.highlight-thumb img,
.highlight-thumb amp-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.highlight-content {
    padding: 8px 10px;
    text-align: right;
}

.highlight-title {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.highlight-title a {
    color: #111;
    text-decoration: none;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.highlight-title a:hover {
    color: #d60000;
}

/*
==================================================
RESPONSIVE (موبائل اور ٹیبلیٹ)
==================================================
*/

@media (max-width: 1200px) {
    .hero-grid{
        grid-template-areas: "main center left";
        grid-template-columns: minmax(0, 1fr) 240px 280px;
        gap: 15px;
    }
    .hero-highlights-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .hero-grid{
        grid-template-areas: 
            "main"
            "center"
            "left";
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-main, .hero-videos, .hero-latest {
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero-highlights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .highlight-title {
        font-size: 13px;
    }

    .highlight-thumb,
    .highlight-thumb amp-img {
        aspect-ratio: 16 / 9 !important;
    }

    .video-thumb,
    .video-thumb amp-img {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .video-thumb img,
    .video-thumb amp-img img {
        height: 100% !important;
    }
}

@media (max-width: 480px) {
    .hero-highlights-grid {
        grid-template-columns: 1fr !important;
    }
}

/*====================================
LTR SUPPORT
====================================*/

html[dir="ltr"] .hero-section{
    direction:ltr;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .video-content,
html[dir="ltr"] .latest-content,
html[dir="ltr"] .highlight-content{
    text-align:left;
}

html[dir="ltr"] .hero-meta{
    justify-content:flex-start;
}

html[dir="ltr"] .latest-item{
    flex-direction:row;
}

html[dir="rtl"] .latest-item{
    flex-direction:row;
}
/* ======================================
MOBILE HERO FIX
====================================== */

@media (max-width:768px){

.hero-grid{
    display:block !important;
}

.hero-right,
.hero-center,
.hero-left{
    width:100% !important;
    max-width:100% !important;
    margin:0 0 20px 0 !important;
}

.hero-main{
    width:100% !important;
}

.hero-main .hero-image,
.hero-main .hero-image img{
    width:100% !important;
    height:auto !important;
}

.hero-videos{
    width:100% !important;
}

.hero-latest{
    width:100% !important;
}

}
