/*
Theme Name: Urdu News Premium
Version: 1.0
Author: Mubasher Khattak
*/

:root {
    --primary: #004b91;
    --secondary: #ba0000;
    --bg-gray: #f8f9fa;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-main);
    font-family: 'Noto Sans Urdu', sans-serif;
    line-height: 1.7;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo-urdu,
.premium-nav a,
.ticker-box {
    font-family: 'Noto Nastaliq Urdu', serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.magazine-full-width {
    max-width: 1340px;
}


.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-row {
    display: flex;
    align-items: center;
}

/* 1. Top Strip */
.top-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.urdu-date i {
    color: var(--primary);
    margin-right: 5px;
}

.btn-live {
    background: var(--secondary);
    color: #fff !important;
    padding: 4px 15px;
    border-radius: 20px;
    margin-right: 15px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* 1. Top Bar System */
.top-bar {
    background: #fdfdfd;
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-family: 'Noto Sans Urdu', sans-serif;
}

.top-bar i {
    color: var(--primary);
    margin-left: 8px;
    font-size: 1.1rem;
}

.top-date {
    display: inline-flex;
    align-items: center;
    margin-left: 30px;
}

.top-live a {
    color: #ba0000;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid #ba0000;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.top-live a:hover {
    background: #ba0000;
    color: #fff;
}

.top-socials a {
    color: #666;
    margin-right: 20px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.top-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* 2. Branding Header */
.branding-header {
    background: var(--white);
    padding: 30px 0;
}

.logo-urdu {
    font-size: 3.5rem;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    letter-spacing: -1px;
}

.search-form-premium {
    display: flex;
    background: #f1f3f5;
    border-radius: 30px;
    padding: 5px 5px 5px 20px;
    width: 350px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.search-form-premium:focus-within {
    border-color: var(--primary);
    background: #fff;
}

.search-field {
    border: none;
    background: transparent;
    flex-grow: 1;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.search-submit:hover {
    background: #003a70;
}

/* 3. Global Navigation (Image Match) */
.premium-nav {
    background: transparent; /* Full-width wrapper is now transparent */
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

/* 3. Global Navigation Fixes */
.nav-inner {
    background: #fff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 2px solid #3b42f3;
    border-bottom: 2px solid #3b42f3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    padding: 0 10px;
    direction: rtl;
}

.nav-menu-toggle {
    margin: 0 0 0 20px; /* Slight left margin so menu items don't touch it */
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    color: #000 !important; /* Forces icon to black */
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
}

.nav-menu-toggle:hover {
    color: #007bff;
}

.premium-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.premium-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #222;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    transition: 0.3s;
}

.premium-nav ul li a:hover {
    color: #007bff;
}

/* Specific Style: More (مزید) */
.premium-nav ul li.menu-item-has-children>a {
    background: #f4f6f8;
    /* Light gray box */
    padding: 8px 15px !important;
    margin: 7px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-nav ul li.menu-item-has-children>a::after {
    content: '\f0d7';
    /* Down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}

/* 4. Breaking News */
.breaking-ticker {
    background: #fff;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.ticker-box {
    background: var(--secondary);
    color: #fff;
    padding: 10px 30px;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.ticker-scroll {
    flex-grow: 1;
    padding: 0 20px;
}

.ticker-scroll a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.ticker-scroll .sep {
    color: var(--secondary);
    margin: 0 10px;
}

/* 5. Magazine Hero Grid (100% Match) */
.premium-hero-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-bottom: 35px;
    min-height: 520px;
    transition: all 0.3s ease;
}

.premium-hero-grid.full-center {
    grid-template-columns: 1fr;
}

.premium-hero-grid.no-right {
    grid-template-columns: 1fr 300px;
}

.premium-hero-grid.no-left {
    grid-template-columns: 300px 1fr;
}

.magazine-main-content {
    display: block;
}


.hero-column {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
}

.side-column {
    display: flex;
    flex-direction: column;
}

.side-hero-title {
    background: #f8f9fa;
    color: var(--primary);
    padding: 10px 15px;
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Noto Nastaliq Urdu', serif;
    border-bottom: 2px solid var(--primary);
    text-align: right;
    font-weight: bold;
}

.mini-card {
    display: flex;
    height: 20%;
    padding: 8px;
    gap: 10px;
    border-bottom: 1px solid #f9f9f9;
}

.mini-card:last-child {
    border: none;
}

.mini-card .thumb {
    position: relative;
    overflow: hidden;
}

.badge-big-news {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: #fff;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    font-family: 'Noto Nastaliq Urdu', serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-big-news.large {
    font-size: 1.1rem;
    padding: 5px 20px;
    top: 20px;
    right: 20px;
}

.mini-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card h4 {
    font-size: 0.85rem;
    color: #222;
    overflow: hidden;
    height: 35px;
}

.center-column {
    position: relative;
    border: none;
    border-radius: 8px;
}

.featured-rect {
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-rect:hover img {
    transform: scale(1.03);
}

.rect-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4), transparent);
    color: #fff;
}

.rect-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.25;
}

.rect-overlay p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* 6. Single Page Layout Refined */
.post-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    /* Content Right, Sidebar Left in RTL */
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.main-content-area {
    background: #fff;
    padding: 0;
    box-shadow: none;
}

.single-article .post-header {
    margin-bottom: 30px;
}

.media-badge {
    background: #000;
    color: #fff;
    padding: 2px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-right: 15px;
}

.post-meta-detailed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-top: 20px;
}

.meta-social-shares {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    text-decoration: none;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.twitter-x {
    background: #000;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.email {
    background: #6c757d;
}

.share-btn.generic-share {
    background: #7ccb11;
}

.share-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Comments Placeholder */
.comments-placeholder {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.comment-input-area textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.comment-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-sign-in {
    background: #c30000;
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Vuukle Reactions */
.vuukle-reactions-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
}

.vuukle-header {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    font-weight: 600;
}

.reaction-grid-modern {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reaction-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85px;
}

.reaction-col .emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.reaction-col .lbl {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.reaction-col .pct {
    font-size: 0.8rem;
    color: #ba0000;
    font-weight: bold;
}

.bar-bg {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #ba0000;
}

/* Recommended Grid */
.recommended-grid-section {
    margin-top: 50px;
}

.modern-sec-title {
    font-size: 1.5rem;
    border-bottom: 2px solid #ba0000;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
    color: #333;
}

.recommended-grid-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rec-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.rec-card:hover {
    box-shadow: var(--shadow-sm);
}

.rec-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.rec-data {
    padding: 15px;
}

.rec-data h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.rec-meta {
    font-size: 0.85rem;
    color: #999;
}

.rec-meta .read-more {
    float: left;
    color: var(--primary);
    font-weight: bold;
}

/* Related News Footer */
.related-news-footer {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.related-news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.rel-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.rel-thumb {
    width: 140px;
    flex-shrink: 0;
}

.rel-thumb img {
    border-radius: 6px;
    width: 100%;
}

.rel-title a {
    text-decoration: none;
    color: #222;
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.5;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.4rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
    position: relative;
}

.topic-list a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
    text-decoration: none;
    color: #444;
    font-weight: 500;
}

.mini-card-side {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.mini-card-side .thumb {
    width: 90px;
    flex-shrink: 0;
}

.mini-card-side .thumb img {
    border-radius: 4px;
    width: 100%;
}

.mini-card-side .text a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.4;
}


.post-featured-image {
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-content {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #222;
}

.post-content p {
    margin-bottom: 25px;
}

/* Recommended & Related */
.recommended-section,
.related-news-section {
    margin-top: 50px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    border-right: 5px solid var(--secondary);
    padding-right: 15px;
}

.recommended-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.recommended-card,
.related-card {
    display: flex;
    gap: 15px;
    background: #fafafa;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.recommended-card .thumb,
.related-card .thumb {
    width: 120px;
    flex-shrink: 0;
}

.recommended-card .thumb img,
.related-card .thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
}

.recommended-card h3,
.related-card h3 {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.4;
}

.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* 6. Sidebar Widgets */
.magazine-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 6. Page Content & Headers */
.page-content {
    margin-top: 40px;
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary);
}

.section-header h1 {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 30px;
    font-size: 1.8rem;
    font-family: 'Noto Nastaliq Urdu', serif;
}

/* 8. Archive Layouts (Tag Grid & Category List) */
.archive-layout-wrapper {
    margin-top: 40px;
}

.archive-header {
    border-bottom: 3px solid var(--primary);
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.archive-title {
    font-size: 2.2rem;
    color: #333;
}

.archive-content-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    /* Content Right, Sidebar Left in RTL */
    gap: 40px;
}

/* Tag Grid (Image 1 Mockup) */
.tag-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tag-grid-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.tag-grid-item:hover {
    box-shadow: var(--shadow-sm);
}

.tag-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.tag-data {
    padding: 10px;
    text-align: center;
}

.tag-data h3 {
    font-size: 0.95rem;
    font-weight: bold;
    color: #222;
    line-height: 1.4;
}

/* Category List (Image 2 Mockup) */
.category-list-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cat-list-item {
    display: grid;
    grid-template-columns: 1fr 320px;
    /* Text Left, Image Right in RTL */
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

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

.cat-list-data .entry-title {
    color: #0b5fb3;
    /* Specific Blue from Image 2 */
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: 0.3s;
}

.cat-list-data .entry-title:hover {
    color: var(--primary);
}

.cat-list-data .excerpt {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.meta-relative-time {
    color: #ba0000;
    font-size: 0.9rem;
    font-weight: 600;
}

.cat-list-thumb img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 4px;
}

.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    border-radius: 4px;
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 7. Single Page Layout (Missing in 3.0) */

.widget-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    position: relative;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.sidebar-news-list {
    list-style: none;
}

.sidebar-news-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-news-item a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}

.sidebar-news-item .dot {
    color: var(--secondary);
    font-size: 0.7rem;
    margin-top: 4px;
}


/* 7. Columnist Section (Refined) */
.columnists-bar {
    background: #fff;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.authors-slider {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    text-align: center;
}

.author-item .avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid #ddd;
}

.author-item .name {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary);
}

/* 8. Magazine Content Layout */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

.category-block-modern {
    background: #fff;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    border-top: 4px solid var(--primary);
}

.category-block-modern .block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}

.category-block-modern .block-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Noto Nastaliq Urdu', serif;
    position: relative;
}

.category-block-modern .block-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.category-block-modern .more-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.category-block-modern .more-link:hover {
    color: var(--primary);
}

.cat-featured img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.cat-featured h3 {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #111;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-bottom: 50px;
}

.cat-list-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    align-items: flex-start;
}

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

.cat-list-item .list-thumb {
    width: 100px;
    min-width: 100px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
}

.cat-list-item .list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-list-item .list-content {
    flex-grow: 1;
}

.cat-list-item .list-content a {
    text-decoration: none;
    color: #111;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    display: block;
}

.cat-list-item .list-content h4 {
    margin: 0;
    font-family: 'Noto Nastaliq Urdu', serif;
}

/* 10. Archive / Index Grid */
.news-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .thumb {
    height: 180px;
    overflow: hidden;
}

.news-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #000;
}

.news-card-content a {
    text-decoration: none;
    color: inherit;
}

.news-card-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}


/* 9. Dark Multimedia Blocks */
.category-block-dark {
    background: #000;
    padding: 30px;
    color: #fff;
    margin-bottom: 40px;
    border-radius: 4px;
    border-top: 3px solid var(--secondary);
}

.category-block-dark .block-title {
    color: #fff;
    border-right: 5px solid var(--secondary);
    padding-right: 15px;
    background: transparent;
}

.category-block-dark a {
    color: #fff;
}

.category-block-dark .cat-list-item {
    border-bottom: 1px solid #222;
}

/* Footer */
.footer-social-bar {
    background: #111;
    padding: 20px 0;
    border-bottom: 1px solid #222;
}

.social-bar-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-bar-inner a {
    color: #fff;
    font-size: 1.5rem;
}

/* Footer */
.main-footer {
    background: #0d121b;
    color: #a0aec0;
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.4rem;
    font-family: 'Noto Nastaliq Urdu', serif;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #a0aec0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: #718096;
}

.footer-social-box {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.footer-social-box a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.footer-social-box a:hover {
    background: var(--primary);
}

/* -------------------------------------
 * Archive Grid Layout (Desktop base)
 * ------------------------------------- */

.archive-layout-wrapper.no-sidebar {
    max-width: 100%; 
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.archive-grid-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.archive-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.archive-grid-item .archive-thumb {
    position: relative;
}

.archive-grid-item .archive-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.archive-grid-item .archive-text {
    padding: 15px;
}

.archive-grid-item .archive-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.archive-grid-item .archive-text a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.archive-grid-item .archive-text a:hover {
    color: var(--secondary);
}

/* -------------------------------------
 * Single Post Grid Layout (Desktop base)
 * ------------------------------------- */

.post-page-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* Because direction: rtl; the 1st column (content) is on the right, 2nd (sidebar) on left */
.main-content-area {
    min-width: 0;
}

.post-meta-detailed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.post-meta-detailed .post-date-time {
    color: #666;
    font-size: 0.9rem;
}

.meta-social-shares.flex-circles {
    display: flex;
    gap: 8px;
}

.meta-social-shares.flex-circles a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.meta-social-shares.flex-circles a:hover {
    transform: scale(1.1);
}

.meta-social-shares.flex-circles .whatsapp { background: #25D366; }
.meta-social-shares.flex-circles .facebook { background: #3b5998; }
.meta-social-shares.flex-circles .twitter-x { background: #000; }
.meta-social-shares.flex-circles .email { background: #777; }
.meta-social-shares.flex-circles .generic-share { background: #9bc62b; }

.single-post-summary-box {
    background: #f7f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-right: 4px solid var(--primary);
}

.single-post-summary-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}

.single-post-summary-box .summary-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@media (max-width: 991px) {
    .container {
        max-width: 95%;
        padding: 0 10px;
    }

    .premium-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }

    .magazine-grid {
        grid-template-columns: 1fr;
    }

    /* Hide sections not in the provided mobile screenshot */
    .columnists-bar, 
    .breaking-ticker {
        display: none !important;
    }

    .hero-column.side-column {
        background: transparent;
        border: none;
        display: block !important;
    }

    /* ONLY تازہ ترین is a slider on mobile */
    .slider-column .mini-cards-slider {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        gap: 15px;
        padding: 10px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .slider-column .mini-card {
        flex: 0 0 220px;
        display: flex;
        flex-direction: column !important;
        scroll-snap-align: start;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        padding: 0;
    }

    /* اہم خبریں stays as a vertical list on mobile */
    .hero-column.side-column:not(.slider-column) .mini-card {
        display: flex;
        flex-direction: row; 
        gap: 15px;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .footer-contact-info a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-contact-info a:hover {
        color: var(--secondary);
    }

    /* Restoring the Boxed Menu margin */
    .nav-inner {
        margin: 0 10px;
    }

    .hero-column.center-column .featured-rect {
        height: auto;
    }

    .hero-column.center-column .rect-overlay {
        position: relative;
        background: #fff;
        padding: 15px;
        color: #111;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #eee;
    }

    .hero-column.center-column .rect-overlay h2 {
        color: #111;
        font-size: 1.5rem;
    }

    .hero-column.center-column .rect-overlay p {
        color: #666;
        display: block; /* Show excerpt on mobile hero */
    }

    .cat-list-item, .mini-card {
        padding: 12px 0;
        gap: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .cat-featured h3 {
        font-size: 1.25rem;
        margin-top: 10px;
    }
    .tag-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .authors-slider {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
    }

    .authors-slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .author-item {
        flex: 0 0 100px; /* Fixed width for slider items */
        scroll-snap-align: start;
    }

    .author-item .avatar img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .tag-grid-layout {
        grid-template-columns: 1fr;
    }

    .cat-list-data .entry-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .branding-header .flex-between {
        gap: 25px;
    }

    .search-form-premium {
        width: 100%;
    }

    /* Removed duplicate .nav-menu-toggle causing blue box background */

    .nav-inner {
        border-top: 2px solid #000080; /* Subtle dark blue top line */
        border-bottom: 2px solid #000080;
        padding: 5px 15px;
        box-shadow: none; /* Make it flat like screenshot */
        border-radius: 0;
    }

    .premium-nav ul {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 8px 0;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
        align-items: center;
        scrollbar-width: none;
    }
    
    .premium-nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .premium-nav ul li a {
        font-size: 1.25rem;
        padding: 0;
        color: #000;
        font-weight: 700;
    }

    .archive-layout-wrapper.no-sidebar {
        max-width: 100%;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-page-layout {
        grid-template-columns: 1fr;
    }

    .main-content-area {
        padding: 15px;
    }

    .single-post-main-title {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
        text-align: center;
    }

    .post-meta-detailed {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .meta-social-shares.flex-circles {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mega Menu Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}
.drawer-overlay.active { 
    display: block; 
}

/* Universal Mega Menu (Popup Modal) */
.mega-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 850px;
    height: 90vh;
    max-height: 650px;
    background: #fff;
    z-index: 10000;
    display: none;
    flex-direction: column;
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', serif;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

.mega-menu.active {
    display: flex;
}


/* Mega Menu Header */
.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 2px solid #f5f5f5;
    background: #fff;
}

.mega-menu-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #333;
}

.mega-menu-logo .small-logo {
    font-size: 1.5rem;
}

.mega-menu-header .drawer-close {
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

/* Mega Menu Body */
.mega-menu-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar (Right) */
.mega-menu-sidebar {
    width: 250px;
    background: #fff;
    border-left: 1px solid #f0f0f0;
    padding: 20px 15px;
    overflow-y: auto;
}

.main-menu-list {
    list-style: none;
    padding: 0;
}

.menu-tab {
    transition: 0.3s;
    margin-bottom: 5px;
    border-radius: 6px;
    overflow: hidden;
}

.menu-tab a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #0066ff; /* Match Dunya Blue */
    font-weight: 500;
    font-size: 1.25rem;
    transition: 0.3s;
}

.menu-tab.active {
    background: #0066ff;
}

.menu-tab.active a {
    color: #fff;
}

/* Content Area (Left) */
.mega-menu-content {
    flex: 1;
    padding: 30px 40px;
    background: #fff;
    overflow-y: auto;
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
}

.panel-header {
    border-bottom: 1px solid #cc0000; /* Thin Red Line */
    margin-bottom: 25px;
    padding-bottom: 10px;
    text-align: center;
}

.panel-header h4 {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns like screenshot */
    gap: 20px 30px;
    text-align: center;
}

.grid-item a {
    text-decoration: none;
    color: #333;
    font-size: 1.15rem;
    font-weight: 500;
    transition: 0.2s;
}

.grid-item a:hover {
    color: #0066ff;
}

/* Mega Menu Footer */
.mega-menu-footer {
    padding: 15px 30px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    display: flex;
    justify-content: flex-end; /* Aligns to LEFT in RTL */
}

.btn-close-menu {
    background: #0066ff;
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}


/* Responsive Mega Menu */
@media (max-width: 991px) {
    .mega-menu-body {
        flex-direction: column-reverse; /* Sidebar on bottom or top? User reference shows sidebar right. On mobile we stack. */
    }
    
    .mega-menu-sidebar {
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
        border-left: none;
        border-top: 1px solid #eee;
    }
    
    .main-menu-list {
        display: flex;
    }
    
    .menu-tab a {
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .mega-menu-content {
        padding: 20px;
    }
    
    .panel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .grid-item a {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .authors-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-bar-inner {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .breaking-ticker .container {
        flex-direction: column;
        align-items: stretch;
    }

    .ticker-box {
        text-align: center;
        width: 100%;
    }

    .ticker-scroll {
        padding: 5px 0;
    }

    .top-strip .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-right-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .top-right-links a,
    .top-right-links span {
        margin: 0;
    }

    .top-left-social {
        justify-content: center;
        display: flex;
    }
}

.premium-nav ul::-webkit-scrollbar {
    display: none;
}

.premium-nav ul {
    -ms-overflow-style: none;
    scrollbar-width: none;
}