/*
Theme Name: Desh Journal
Theme URI: https://deshjournal.com
Author: Rafi
Description: A polished magazine and news WordPress theme with editorial layout, serif logo, and three-column hero.
Version: 3.9.7
License: GNU General Public License v2 or later
Text Domain: desh-journal
Tags: news, magazine, blog, grid-layout, custom-menu, featured-images
*/

/* Fonts loaded via wp_enqueue_style in functions.php */

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a1a1a; text-decoration: none; transition: color .15s ease; }
a:hover { color: #b8060d; }
h1, h2, h3, h4 { font-family: 'Inter', 'Noto Sans Malayalam', sans-serif; font-weight: 700; margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.3px; }
ul { padding: 0; margin: 0; list-style: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 30px; }

:root {
    --brand: #b8060d;
    --brand-dark: #8c0409;
    --ink: #111;
    --muted: #8a8a8a;
    --line: #e8e8e8;
    --soft-bg: #f4f4f3;
}

/* ============================================
   HEADER (matches reference exactly)
   ============================================ */
.site-header-bar {
    background: #fff;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.site-header-bar .header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* Left: MENU + Search */
.header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}
.header-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--ink);
}
.header-btn .icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
}
.header-btn.menu-btn .icon {
    flex-direction: column; justify-content: center; gap: 3px;
}
.header-btn.menu-btn .icon span {
    display: block; width: 16px; height: 2px; background: var(--brand); border-radius: 1px;
}
.header-btn.menu-btn .icon span:nth-child(2) { width: 12px; }
.header-btn:hover { color: var(--brand); }

/* Center: Big red serif logo */
.site-logo {
    font-family: 'Playfair Display', 'Manjari', Georgia, serif;
    font-style: italic;
    font-size: 64px;
    font-weight: 900;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -1px;
    display: inline-block;
    position: relative;
}
.site-logo .pro-badge {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ink);
    position: absolute;
    top: 4px; right: -28px;
}

/* Right: My account + Subscribe */
.header-right {
    display: flex; align-items: center; justify-content: flex-end; gap: 24px;
}
.search-btn-right { display: none; }
.account-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500; color: var(--ink);
}
.account-link .icon {
    width: 22px; height: 22px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px;
}
.account-link .icon::before {
    content: ''; width: 7px; height: 7px;
    border: 1.5px solid var(--ink); border-radius: 50%;
    margin-bottom: -2px;
}
.subscribe-btn {
    background: var(--brand); color: #fff;
    padding: 12px 26px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    border: 0; border-radius: 2px;
    cursor: pointer;
    transition: background .2s;
}
.subscribe-btn:hover { background: var(--brand-dark); color: #fff; }

/* ============================================
   NAV (gray bar below header)
   ============================================ */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.main-nav ul {
    display: flex; justify-content: center; align-items: stretch;
    flex-wrap: wrap; gap: 8px;
    padding: 0;
}
.main-nav ul li a {
    display: block;
    padding: 24px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.main-nav ul li a:hover { color: var(--brand); }
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a { color: var(--brand); }

/* ============================================
   TOP STORY STRIP (carousel with working arrows)
   ============================================ */
.top-strip-wrap {
    background: var(--soft-bg);
    padding: 30px 0;
    position: relative;
}
/* Row: [arrow] [scrolling track] [arrow] */
.top-strip-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-strip {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.top-strip::-webkit-scrollbar { display: none; }
.top-strip-item {
    flex: 0 0 calc((100% - 120px) / 4);
    scroll-snap-align: start;
}
.top-strip-item h4 {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
}
.top-strip-item:hover h4 { color: var(--brand); }
.top-strip-item .date {
    font-size: 13px; color: var(--muted);
}
.top-strip-item .excl-badge {
    display: inline-block;
    background: var(--brand); color: #fff;
    padding: 3px 8px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-right: 6px;
    vertical-align: middle;
    position: relative; top: -2px;
}
.strip-arrow {
    flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 50%;
    background: #d6d6d4; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 0; padding: 0;
    transition: background .2s, opacity .2s;
}
.strip-arrow:hover:not(:disabled) { background: var(--brand); }
.strip-arrow:disabled { opacity: .35; cursor: default; }

/* ============================================
   HERO SECTION (3-column: Fresh / Big hero / Popular)
   ============================================ */
.hero-section {
    background: var(--soft-bg);
    padding: 0 0 50px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 30px;
    align-items: start;
}
.hero-grid .ad-col {
    position: sticky;
    top: 20px;
}

/* LEFT: Fresh stories */
.fresh-col h2.col-title {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 30px; font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -.5px;
}
.fresh-col .col-sub {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--ink); line-height: 1.5;
    margin-bottom: 24px;
    max-width: 230px;
}
.fresh-list .fresh-item {
    padding: 16px 0;
    border-bottom: 1px solid #d6d6d4;
}
.fresh-list .fresh-item:last-child { border-bottom: 0; }
.fresh-list .fresh-item h3 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 15px; font-weight: 700;
    line-height: 1.35; margin: 0 0 10px;
    letter-spacing: -.2px;
}
.fresh-list .fresh-item .meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px;
}
.fresh-list .fresh-item .cat-tag {
    color: var(--brand); font-weight: 700;
    text-transform: uppercase; font-size: 11px;
    letter-spacing: 1px;
}
.fresh-list .fresh-item .date { color: var(--muted); font-size: 12px; }
.fresh-list .fresh-item .excl-badge {
    background: var(--brand); color: #fff;
    padding: 3px 7px; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-right: 4px;
    display: inline-block;
}
.fresh-arrows { display: flex; gap: 8px; padding-top: 14px; }
.fresh-arrow {
    width: 32px; height: 32px; border-radius: 50%;
    background: transparent; border: 1px solid #c0c0bf;
    color: var(--ink); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.fresh-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* CENTER: Two-column inner (big hero + 2 stacked) */
.hero-center {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.hero-big {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #ddd;
}
.hero-big img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-big .overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 60%, transparent 100%);
    color: #fff;
}
.hero-big .cat-tag {
    display: inline-block; background: var(--brand); color: #fff;
    font-size: 12px; font-weight: 700; padding: 5px 12px;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.hero-big h1 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -.8px;
}
.hero-big .standfirst {
    font-size: 15px; line-height: 1.55; color: #f0f0f0;
    max-width: 95%;
}

.hero-side { display: flex; flex-direction: column; gap: 24px; }
.hero-side-card .thumb {
    aspect-ratio: 4/3; background: #ddd; overflow: hidden; margin-bottom: 12px;
}
.hero-side-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-card .cat-tag {
    color: var(--brand); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 6px; display: block;
}
.hero-side-card h3 {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 18px; line-height: 1.25; font-weight: 700;
    margin: 0;
}

/* RIGHT: Popular */
.popular-col h2.col-title {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 30px; font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -.5px;
}
.popular-list {
    background: #fff; padding: 20px;
}
.popular-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.popular-item:first-child { padding-top: 0; }
.popular-item:last-child { border-bottom: 0; padding-bottom: 0; }
.popular-item .cat-tag {
    color: var(--brand); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 4px; display: inline-block;
}
.popular-item .excl-badge {
    background: var(--brand); color: #fff;
    padding: 2px 6px; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; margin-right: 4px; vertical-align: middle;
    position: relative; top: -1px;
}
.popular-item h3 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 14px; line-height: 1.35; font-weight: 700;
    margin: 4px 0 6px;
    letter-spacing: -.2px;
}
.popular-item .date {
    font-size: 12px; color: var(--muted);
}

/* ============================================
   LATER SECTIONS (keeping from earlier versions)
   ============================================ */
.section-title {
    margin: 50px 0 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: baseline;
}
.section-title h2 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 28px; font-weight: 800;
    margin: 0;
    letter-spacing: -.5px;
}
.section-title .view-all {
    font-size: 11px; color: var(--muted); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.section-title .view-all:hover { color: var(--brand); }

.row { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

.card { display: block; }
.card .thumb { aspect-ratio: 4/3; background: #eaeaea; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .cat-tag {
    color: var(--brand); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin: 14px 0 6px; display: block;
}
.card h3 {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 18px; line-height: 1.25; font-weight: 700;
    margin: 0 0 8px;
}
.card .meta { font-size: 12px; color: var(--muted); }

/* Newsletter banner */
.newsletter-banner {
    background: linear-gradient(135deg, #3C3489 0%, #7F77DD 100%);
    color: #fff; padding: 50px 30px; border-radius: 2px;
    text-align: center; margin: 50px 0;
}
.newsletter-banner h3 { color: #fff; font-family: 'Playfair Display', 'Manjari', serif; font-size: 30px; margin-bottom: 8px; }
.newsletter-banner p { color: rgba(255,255,255,.85); font-size: 13px; margin: 0 0 20px; }
.newsletter-banner form { display: flex; max-width: 480px; margin: 0 auto; }
.newsletter-banner input { flex: 1; min-width: 0; padding: 14px 16px; border: 0; font-size: 14px; outline: none; }
.newsletter-banner button {
    background: var(--brand); color: #fff; border: 0; padding: 14px 26px;
    font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    font-size: 13px; cursor: pointer;
}

/* Footer */
.site-footer { background: #1a1a1a; color: #aaa; padding: 60px 0 0; margin-top: 60px; font-size: 13px; }
.site-footer .footer-logo { font-family: 'Playfair Display', 'Manjari', serif; font-style: italic; font-size: 38px; color: var(--brand); margin-bottom: 18px; font-weight: 900; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #2a2a2a; }
.site-footer .footer-cols li { margin-bottom: 10px; line-height: 1.5; }
.site-footer .footer-cols input { width: 100%; padding: 10px; border: 0; background: #2a2a2a; color: #fff; margin-bottom: 8px; }
.site-footer .footer-cols button { width: 100%; background: var(--brand); color: #fff; border: 0; padding: 10px; font-weight: 700; letter-spacing: 1.5px; cursor: pointer; text-transform: uppercase; }
.site-footer .bottom-bar { text-align: center; padding: 24px 0; font-size: 11px; color: #555; letter-spacing: 1.5px; }

/* ============================================
   MEGA MENU (hover dropdown under nav)
   ============================================ */
.main-nav { position: relative; }
.main-nav ul li { position: static; }

.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
    padding: 20px 0 14px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    text-align: left;
}
/* Wider than the standard container so cards use more of the screen */
.mega-panel .container {
    max-width: 100%;
    padding: 0 12px;
}
.main-nav ul li:hover > .mega-panel,
.main-nav ul li:focus-within > .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.mega-track::-webkit-scrollbar { display: none; }

.mega-card {
    flex: 0 0 calc((100% - 40px) / 5);
    max-width: calc((100% - 40px) / 5);
    scroll-snap-align: start;
    text-align: center;
}
.mega-card .thumb {
    width: 100%;
    aspect-ratio: 16/11;
    background: #eee;
    overflow: hidden;
    margin-bottom: 10px;
}
.mega-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.mega-card:hover .thumb img { transform: scale(1.05); }
.mega-card h4 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--ink);
}
.mega-card:hover h4 { color: var(--brand); }
.mega-card .date {
    font-size: 13px;
    color: var(--muted);
}
.mega-card .excl-badge {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.mega-arrows {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-top: 10px;
}
.mega-arrow {
    background: none;
    border: 0;
    padding: 4px;
    cursor: pointer;
    color: var(--ink);
    line-height: 0;
    transition: color .2s;
}
.mega-arrow:hover { color: var(--brand); }

@media (max-width: 1100px) {
    .mega-card { flex: 0 0 calc((100% - 20px) / 3); max-width: calc((100% - 20px) / 3); }
}
@media (max-width: 900px) {
    .mega-panel { display: none; }
}

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.archive-head {
    background: var(--soft-bg);
    padding: 40px 0 30px;
    text-align: center;
}
.archive-title {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -.5px;
}
.archive-subnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}
.archive-subnav .subnav-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--ink);
}
.archive-subnav .subnav-link:hover,
.archive-subnav .subnav-link.active { color: var(--brand); }

/* Featured strip: 4 image cards with overlay */
.archive-featured {
    background: var(--soft-bg);
    padding: 0 0 40px;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.featured-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ddd;
}
.featured-card .thumb { aspect-ratio: 4/5; }
.featured-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.featured-card:hover .thumb img { transform: scale(1.05); }
.featured-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
    color: #fff;
}
.featured-overlay .cat-badge {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.featured-overlay h3 {
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
    margin: 0;
    font-weight: 700;
}

/* Body: list + sidebar */
.archive-body { padding: 50px 0; }
.archive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 50px;
}

/* List rows */
.list-row {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 45px;
    align-items: start;
}
.list-row .list-thumb {
    display: block;
    background: #eee;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.list-row .list-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.list-row:hover .list-thumb img { transform: scale(1.04); }
.list-row .list-title {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 12px;
    font-weight: 700;
}
.list-row .list-title a { color: var(--ink); }
.list-row .list-title a:hover { color: var(--brand); }
.list-row .list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}
.list-row .meta-cat {
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 11px;
}
.list-row .meta-avatar img { border-radius: 50%; width: 20px; height: 20px; }
.list-row .meta-author { color: var(--ink); font-weight: 500; }
.list-row .list-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Archive pagination */
.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 10px;
}
.archive-pagination .nav-links,
.archive-pagination .pagination { margin: 0; justify-content: flex-start; }
.archive-pagination .screen-reader-text { display: none; }
.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px; height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}
.archive-pagination .page-numbers.current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.archive-pagination .page-numbers:hover:not(.current) {
    border-color: var(--brand);
    color: var(--brand);
}
.archive-pagination .page-count {
    font-size: 13px;
    color: var(--muted);
}

/* Archive sidebar */
.archive-sidebar .sidebar-widget { margin-bottom: 30px; }
.archive-sidebar .sidebar-widget h4 {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
}
.popular-hero {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ddd;
}
.popular-hero .popular-label {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    background: var(--brand);
    color: #fff;
    font-family: 'Playfair Display', 'Manjari', serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 700;
    padding: 6px 18px;
}
.popular-hero .thumb { aspect-ratio: 3/4; }
.popular-hero .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.popular-hero:hover .thumb img { transform: scale(1.05); }
.popular-hero .popular-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
    color: #fff;
}
.popular-hero .popular-overlay h3 {
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 6px;
    font-weight: 700;
}
.popular-hero .popular-overlay .meta {
    font-size: 12px;
    color: #ddd;
}

/* Archive responsive */
@media (max-width: 1100px) {
    .archive-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-sidebar { max-width: 500px; }
}
@media (max-width: 760px) {
    .list-row { grid-template-columns: 1fr; gap: 16px; }
    .list-row .list-title { font-size: 21px; }
    .archive-title { font-size: 26px; }
    .archive-subnav { gap: 14px; }
}
@media (max-width: 520px) {
    .featured-grid { grid-template-columns: 1fr; }
    .archive-pagination { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ============================================
   MALAYALAM LANGUAGE SUPPORT
   Malayalam glyphs are taller and need more
   line-height and slightly larger size to read well.
   ============================================ */
html[lang^="ml"] body,
body.malayalam,
.malayalam {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0;
}
html[lang^="ml"] h1, html[lang^="ml"] h2,
html[lang^="ml"] h3, html[lang^="ml"] h4,
body.malayalam h1, body.malayalam h2,
body.malayalam h3, body.malayalam h4 {
    line-height: 1.45;
    letter-spacing: 0;
}
html[lang^="ml"] .post-content,
body.malayalam .post-content,
.post-content .malayalam {
    font-size: 18px;
    line-height: 2;
}
html[lang^="ml"] .post-hero-title,
body.malayalam .post-hero-title {
    line-height: 1.4;
    font-size: 36px;
}
html[lang^="ml"] .hero-big h1,
body.malayalam .hero-big h1 {
    line-height: 1.4;
}
/* Malayalam text never gets cramped letter-spacing */
html[lang^="ml"] .card h3,
html[lang^="ml"] .fresh-list .fresh-item h3,
html[lang^="ml"] .popular-item h3,
body.malayalam .card h3,
body.malayalam .fresh-list .fresh-item h3,
body.malayalam .popular-item h3 {
    line-height: 1.55;
    letter-spacing: 0;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */

/* Hero image with overlay */
.post-hero {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    background: #222;
}
.post-hero img,
.post-hero .post-hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}
.post-hero-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 70%, transparent 100%);
    color: #fff;
    text-align: center;
}
.post-hero-cat {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.post-hero-title {
    font-family: 'Playfair Display', 'Manjari', serif;
    color: #fff;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: -.5px;
}

/* Byline centered below hero */
.post-byline {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.post-byline .byline-label { color: var(--muted); }
.post-byline .byline-author { color: var(--ink); font-weight: 700; }
.post-byline .byline-date { color: var(--ink); }
.post-byline .byline-sep { color: var(--muted); margin: 0 10px; }

/* Two-column post layout */
.post-wrap { padding: 40px 0; }
.post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 50px;
}

/* Main content */
.post-main .post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
}
.post-main .post-content p { margin: 0 0 1.4em; }
.post-main .post-content h2 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 22px;
    color: var(--brand);
    font-style: italic;
    text-align: center;
    margin: 1.6em 0 1em;
    font-weight: 700;
}
.post-main .post-content blockquote {
    color: var(--brand);
    font-style: italic;
    font-size: 22px;
    text-align: center;
    margin: 1.6em 0;
    border: 0;
    padding: 0 30px;
}
.post-main .post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.4em 0;
}

/* Tags */
.post-tags {
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.post-tags .tags-label {
    background: var(--ink);
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.post-tags .tag-chip {
    background: #f0f0f0;
    color: #333;
    padding: 5px 12px;
    font-size: 12px;
}
.post-tags .tag-chip:hover { background: var(--brand); color: #fff; }

/* Prev / Next nav */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    margin: 30px 0;
}
.post-nav-item .post-nav-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.post-nav-item .post-nav-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.3;
}
.post-nav-item.next { text-align: right; }
.post-nav-item:hover .post-nav-title { color: var(--brand); }

/* Author bio card */
.post-author-card {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}
.post-author-card .author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}
.post-author-card .author-name { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
.post-author-card .author-url { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.post-author-card .author-url a { color: var(--muted); }
.post-author-card .author-desc { font-size: 14px; color: #555; line-height: 1.6; margin: 0 0 10px; }
.post-author-card .author-social a {
    display: inline-block;
    width: 26px; height: 26px; line-height: 26px;
    text-align: center; background: #f0f0f0; color: #555;
    margin-right: 4px; font-size: 12px; border-radius: 2px;
}
.post-author-card .author-social a:hover { background: var(--brand); color: #fff; }

/* Comments form */
.post-comment-form { margin-top: 40px; }
.post-comment-form .comment-form-title {
    background: var(--ink); color: #fff;
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.post-comment-form textarea,
.post-comment-form input[type=text],
.post-comment-form input[type=email],
.post-comment-form input[type=url] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}
.post-comment-form input[type=submit] {
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 12px 28px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 13px;
    text-transform: uppercase;
}

/* SIDEBAR */
.post-sidebar .sidebar-widget { margin-bottom: 30px; }
.post-sidebar .sidebar-widget h4 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 14px;
    text-transform: uppercase;
}

/* Share */
.share-widget .share-icons { display: flex; gap: 6px; }
.share-widget .share-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 36px;
    color: #fff; font-size: 14px; font-weight: 700;
}
.share-widget .share-fb { background: #1877f2; }
.share-widget .share-tw { background: #000; }
.share-widget .share-pn { background: #e60023; }
.share-widget .share-wa { background: #25d366; }

/* Sidebar Subscribe */
.subscribe-widget-side h4 { font-weight: 700; }
.subscribe-widget-side form { display: block; }
.subscribe-widget-side input[type=email] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    font-size: 13px;
    box-sizing: border-box;
}
.subscribe-widget-side button {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    font-size: 13px;
}
.subscribe-widget-side label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5;
}
.subscribe-widget-side label a { color: var(--brand); }

/* Promo box */
.promo-box {
    background: linear-gradient(135deg, #3a2370 0%, #6b4ea0 100%);
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.promo-box .promo-label {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: .8;
    margin-bottom: 8px;
}
.promo-box .promo-title {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 20px;
    margin-bottom: 18px;
}
.promo-box .promo-cta {
    display: inline-block;
    background: #4a8bff;
    color: #fff;
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Popular widget */
.popular-widget .sidebar-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.popular-widget .sidebar-post-item:last-child { border-bottom: 0; }
.popular-widget .sidebar-post-item .thumb {
    flex: 0 0 80px;
    aspect-ratio: 4/3;
    background: #eee;
    overflow: hidden;
}
.popular-widget .sidebar-post-item .thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.popular-widget .sidebar-post-item .cat-tag-small {
    color: var(--brand);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}
.popular-widget .sidebar-post-item h5 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

/* More like this */
.more-like-this { padding: 40px 0 50px; border-top: 1px solid var(--line); }
.more-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.more-divider .line { flex: 1; height: 1px; background: var(--line); }
.more-divider h3 {
    font-family: 'Playfair Display', 'Manjari', serif;
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}
.more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.more-card .thumb {
    aspect-ratio: 4/3;
    background: #eee;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}
.more-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.more-card:hover .thumb img { transform: scale(1.04); }
.more-card .info { padding: 0 4px; }
.more-card .excl-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 1px;
}
.more-card h4 {
    font-family: 'Inter', 'Noto Sans Malayalam', sans-serif;
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 6px;
    font-weight: 700;
}
.more-card .meta {
    font-size: 11px;
    color: var(--muted);
}
.more-card .meta .author { color: var(--brand); font-weight: 700; }

/* Responsive single post */
@media (max-width: 980px) {
    .post-grid { grid-template-columns: 1fr; }
    .more-grid { grid-template-columns: repeat(2, 1fr); }
    .post-hero img, .post-hero .post-hero-img { height: 400px; }
    .post-hero-title { font-size: 28px; }
}
@media (max-width: 600px) {
    .post-hero img, .post-hero .post-hero-img { height: 300px; }
    .post-hero-title { font-size: 22px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.next { text-align: left; }
    .more-grid { grid-template-columns: 1fr; }
    .post-author-card { flex-direction: column; text-align: center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 240px 1fr 240px; gap: 20px; }
    .hero-big h1 { font-size: 30px; }
    .top-strip { gap: 24px; }
    .top-strip-item { flex: 0 0 calc((100% - 72px) / 4); }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-center { grid-template-columns: 1fr; }
    .top-strip { gap: 24px; }
    .top-strip-item { flex: 0 0 calc((100% - 24px) / 2); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .site-footer .footer-cols { grid-template-columns: 1fr 1fr; }
    .site-logo { font-size: 44px; }
    .site-logo .pro-badge { right: -22px; font-size: 9px; }
    .main-nav ul li a { padding: 16px 14px; font-size: 13px; }
}
@media (max-width: 640px) {
    /* Tighter side padding on mobile */
    .container { padding: 0 14px; }

    /* One row: menu icon left · logo center · search icon right */
    .site-header-bar { padding: 14px 0; }
    .site-header-bar .header-grid {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .header-left {
        display: flex;
        align-items: center;
        order: 1;
        flex: 0 0 auto;
    }
    .header-left .search-btn { display: none; } /* single menu icon on the left */
    .search-btn-right { display: inline-flex !important; }
    .site-logo {
        order: 2;
        flex: 1 1 auto;
        font-size: 26px;
        text-align: center;
        white-space: nowrap;
        margin: 0;
    }
    .site-logo .pro-badge { display: none; }
    .header-right {
        order: 3;
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
    }
    /* Move a search icon into the right slot */
    .header-right::before {
        content: "";
        display: none;
    }

    /* Icons only — hide text labels */
    .header-btn span:not(.icon) { display: none; }
    .header-btn { gap: 0; padding: 0; }
    .header-btn .icon { width: 24px; height: 24px; }

    .top-strip { gap: 20px; }
    .top-strip-item { flex: 0 0 85%; }
    .strip-arrow { display: none; }
    .hero-big h1 { font-size: 22px; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .site-footer .footer-cols { grid-template-columns: 1fr; }
}

/* Very narrow phones — shrink logo further */
@media (max-width: 380px) {
    .site-logo { font-size: 22px; }
}

/* ============================================
   MOBILE MENU DRAWER + SEARCH OVERLAY
   ============================================ */
.mobile-menu,
.mobile-menu-overlay,
.search-overlay { display: none; }

@media (max-width: 900px) {
    /* Hide the desktop nav bar on mobile — mobile drawer replaces it */
    .main-nav { display: none; }

    /* Slide-in drawer */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 300px;
        max-width: 84vw;
        background: #fff;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform .28s ease;
        overflow-y: auto;
        box-shadow: 2px 0 24px rgba(0,0,0,.18);
        -webkit-overflow-scrolling: touch;
    }
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity .28s ease, visibility .28s;
    }
    body.menu-open .mobile-menu { transform: translateX(0); }
    body.menu-open .mobile-menu-overlay { opacity: 1; visibility: visible; }
    body.menu-open { overflow: hidden; }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 22px;
        border-bottom: 1px solid var(--line);
    }
    .mobile-menu-title {
        font-family: 'Roboto Condensed','Inter',sans-serif;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--brand);
    }
    .mobile-menu-close {
        background: none;
        border: 0;
        font-size: 30px;
        line-height: 1;
        color: var(--ink);
        cursor: pointer;
        padding: 0 4px;
    }
    .mobile-menu-list { list-style: none; margin: 0; padding: 8px 0; }
    .mobile-menu-list li { border-bottom: 1px solid #f2f2f2; }
    .mobile-menu-list li a {
        display: block;
        padding: 15px 22px;
        font-size: 16px;
        font-weight: 600;
        color: var(--ink);
    }
    .mobile-menu-list li a:hover,
    .mobile-menu-list li.current-menu-item > a { color: var(--brand); }
    /* Hide any mega-panels that come along inside the mobile list */
    .mobile-menu-list .mega-panel { display: none !important; }
    .mobile-menu-list .sub-menu { padding-left: 16px; }
}

/* Search overlay — all screen sizes */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.98);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
}
body.search-open .search-overlay {
    display: flex;
    opacity: 1;
    visibility: visible;
}
.search-overlay-close {
    position: absolute;
    top: 26px; right: 34px;
    background: none;
    border: 0;
    font-size: 44px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}
.search-overlay-form {
    display: flex;
    align-items: center;
    width: min(680px, 88vw);
    border-bottom: 3px solid var(--ink);
}
.search-overlay-form input[type="search"] {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-family: 'Playfair Display','Manjari',serif;
    font-size: 34px;
    padding: 12px 6px;
    color: var(--ink);
}
.search-overlay-form button {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink);
    padding: 8px;
}
.search-overlay-form button:hover { color: var(--brand); }

@media (max-width: 600px) {
    .search-overlay-form input[type="search"] { font-size: 22px; }
    .search-overlay-close { font-size: 34px; top: 18px; right: 20px; }
}

/* ============================================
   SIDEBAR AD / PROMO (WhatsApp CTA)
   ============================================ */
.desh-ad {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}
.desh-ad .ad-flag {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
}
.desh-ad-inner { display: block; color: inherit; }
.desh-ad-img { width: 100%; aspect-ratio: 9/16; background: #eee; overflow: hidden; }
.desh-ad-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.desh-ad-inner:hover .desh-ad-img img { transform: scale(1.04); }
.desh-ad-body { padding: 16px 16px 18px; text-align: center; }
.desh-ad-title {
    font-family: 'Inter','Noto Sans Malayalam',sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--ink);
}
.desh-ad-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 14px;
}
.desh-ad-btn {
    display: block;
    text-align: center;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 4px;
}
.desh-ad-inner:hover .desh-ad-btn { background: #1eb955; }

/* Newsletter banner — mobile: stack input above button, tighter padding */
@media (max-width: 640px) {
    .newsletter-banner { padding: 34px 18px; }
    .newsletter-banner form { flex-direction: column; gap: 10px; max-width: 100%; }
    .newsletter-banner input { width: 100%; text-align: center; }
    .newsletter-banner button { width: 100%; padding: 14px; }
    .newsletter-banner h3 { font-size: 24px; }
}

/* ============================================
   POPULAR BAND (full-width, below hero)
   ============================================ */
.popular-band { padding: 10px 0 10px; }
.popular-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 30px;
}
.popular-band-grid .popular-item {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.popular-band-grid .popular-item .cat-tag {
    color: var(--brand); font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    display: inline-block; margin-bottom: 4px;
}
.popular-band-grid .popular-item .excl-badge {
    background: var(--brand); color: #fff;
    padding: 2px 6px; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; margin-right: 4px;
    vertical-align: middle; position: relative; top: -1px;
}
.popular-band-grid .popular-item h3 {
    font-family: 'Inter','Noto Sans Malayalam',sans-serif;
    font-size: 15px; line-height: 1.35; font-weight: 700;
    margin: 2px 0 6px; color: var(--ink);
}
.popular-band-grid .popular-item:hover h3 { color: var(--brand); }
.popular-band-grid .popular-item .date { font-size: 12px; color: var(--muted); }

.ad-col:empty { display: none; }

@media (max-width: 900px) {
    .popular-band-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid .ad-col { position: static; }
}
@media (max-width: 560px) {
    .popular-band-grid { grid-template-columns: 1fr; }
}
