/* ==================== AAJTAK - Final style.css ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== HEADER ==================== */
.site-header {
    background: linear-gradient(135deg, #c8102e 0%, #a00c24 100%);
    color: white;
    padding: 12px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 70px;
}

/* Golden Stripe - Top */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffd700, #ffec8b, #ffd700, #ffcc00, #ffd700);
    box-shadow: 0 0 12px #ffd700, 0 0 20px #ffcc00;
    z-index: 2;
}

/* Golden Stripe - Bottom */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffd700, #ffec8b, #ffd700, #ffcc00, #ffd700);
    box-shadow: 0 0 12px #ffd700, 0 0 20px #ffcc00;
    z-index: 2;
}

/* Logo */
.site-logo {
    height: clamp(42px, 9vw, 62px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Navigation */
.main-nav { margin-left: auto; }
.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
}

/* ==================== TAG / CATEGORY STRIPE ==================== */
.tag-stripe {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    margin-bottom: 25px;
    overflow-x: auto;
    white-space: nowrap;
}
.tag-link {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 18px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.96rem;
    transition: all 0.3s;
}
.tag-link:hover, .tag-link.active {
    background: #c8102e;
    color: white;
}

/* ==================== HOMEPAGE CARDS ==================== */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    display: flex;
    flex-direction: row;
    height: 200px;
}
.card:hover { transform: translateY(-5px); }
.thumb {
    width: 200px;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
}
.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.category {
    display: inline-block;
    background: #c8102e;
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
}
.card-title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 8px 0;
}
.card-title a { color: #222; text-decoration: none; }
.desc {
    color: #555;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.meta { color: #777; font-size: 0.85rem; }

/* ==================== WEB STORIES - RECTANGULAR CARD (Updated) ==================== */
.web-stories {
    margin: 30px 0 40px;
}
.section-title {
    font-size: 1.55rem;
    margin-bottom: 18px;
    color: #c8102e;
    padding-left: 5px;
    font-weight: 600;
}
.stories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
}
.story-card-small {
    min-width: 160px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    background: #111;                    /* Black Background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.story-card-small:hover {
    transform: translateY(-5px);
}
.story-card-small img {
    width: 100%;
    height: 200px;
    object-fit: contain;                 /* Full Fit without cropping */
    object-position: center;
    background: #000;                    /* Black background for image area */
    padding: 8px;                        /* Optional padding for better look */
}
.story-label {
    display: block;
    padding: 12px 12px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: white;                        /* White text for better contrast on black */
    line-height: 1.4;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .story-card-small {
        min-width: 148px;
    }
    .story-card-small img {
        height: 185px;
    }
}

/* ==================== SINGLE POST (CONTENT PAGE) - MOBILE FRIENDLY ==================== */
.detail {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 15px 0 30px;
}

.detail-title {
    font-size: 1.65rem;
    line-height: 1.35;
    margin-bottom: 15px;
    color: #222;
}

.meta.big {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.detail-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #1f1f1f;
}

.detail-body h2 {
    font-size: 1.55rem;
    margin: 35px 0 15px;
    color: #c8102e;
}

.detail-body h3 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
    color: #222;
}

.detail-body p {
    margin-bottom: 20px;
}

/* ==================== COVER IMAGE - FULL FIT (NO CROP) ==================== */
.cover-image-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    padding-top: 56.25%;           /* 16:9 Ratio */
}

.cover-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;           /* ← Full image without cropping */
    object-position: center;
    background: #111;
}

/* Mobile Friendly Adjustments */
@media (max-width: 768px) {
    .detail {
        padding: 18px 12px;
    }
    
    .detail-title {
        font-size: 1.45rem;
    }
    
    .cover-image-container {
        padding-top: 65%;           /* Thoda taller on mobile */
        border-radius: 10px;
    }
}
/* ==================== RELATED ARTICLES (Desktop + Mobile Stacked) ==================== */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-card:hover { 
    transform: translateY(-5px); 
}

.related-card img {
    width: 100%;
    height: 190px;           /* Desktop ke liye achhi height */
    object-fit: contain;     /* Full image without cropping */
    object-position: center;
    background: #f8f9fa;
    padding: 10px;
}

.related-card h3 {
    padding: 14px 16px 18px;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #222;
    font-weight: 500;
    flex: 1;
}

/* Mobile remains unchanged as per your request */
@media (max-width: 768px) {
    .related-articles {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
   
    .related-card img {
        height: 130px;
        object-fit: cover;     /* Mobile pe cover rakha hai jaise pehle tha */
    }
   
    .related-card h3 {
        font-size: 0.95rem;
        padding: 10px 12px 14px;
    }
}
/* ==================== iPHONE + SAFARI + CHROME FIX ==================== */
html {
    -webkit-text-size-adjust: 100%;
}
body {
    -webkit-overflow-scrolling: touch;
}
.search input {
    font-size: 16px !important;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
@supports (padding: max(0px)) {
    .site-header {
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card { flex-direction: column; height: auto; }
    .thumb { width: 100%; height: 220px; }
    .detail { padding: 18px 12px; }
    .detail-title { font-size: 1.45rem; }
}
@media (max-width: 480px) {
    .site-logo { height: clamp(38px, 10vw, 48px); }
}

/* ==================== FOOTER (Header Style with Golden Stripes) ==================== */
.site-footer {
    background: linear-gradient(135deg, #c8102e 0%, #a00c24 100%);
    color: white;
    text-align: center;
    padding: 40px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}
/* Golden Stripe - Top */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffd700, #ffec8b, #ffd700, #ffcc00, #ffd700);
    box-shadow: 0 0 12px #ffd700, 0 0 20px #ffcc00;
    z-index: 2;
}
/* Golden Stripe - Bottom */
.site-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffd700, #ffec8b, #ffd700, #ffcc00, #ffd700);
    box-shadow: 0 0 12px #ffd700, 0 0 20px #ffcc00;
    z-index: 2;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.footer-content div {
    font-size: 1.05rem;
    margin-bottom: 15px;
}
.footer-nav {
    margin-top: 10px;
}
.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.98rem;
    font-weight: 500;
}
.footer-nav a:hover {
    color: #ffeb99;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-nav a {
        margin: 0 8px;
        font-size: 0.95rem;
    }
}


/* Utility */
.btn { padding: 10px 18px; border-radius: 8px; text-decoration: none; display: inline-block; font-weight: 500; }
.btn.ghost { background: transparent; border: 1px solid #ccc; color: #333; }
.muted { color: #888; text-align: center; }