/* ============================================================
   APNA NEWS 1.0.0 - main stylesheet
   Original code. Light editorial news-magazine layout.
   Brand: white surfaces, red #d92323, blue #1e40af accents.
   ============================================================ */

:root {
    --apna-red: #d92323;
    --apna-red-dark: #b31b1b;
    --apna-blue: #1e40af;
    --apna-navy: #17233f;
    --apna-ink: #1a1a1a;
    --apna-gray: #6b7280;
    --apna-line: #e5e7eb;
    --apna-bg: #ffffff;
    --apna-soft: #f6f7f9;
    --apna-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--apna-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--apna-ink);
    background: var(--apna-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--apna-blue); text-decoration: none; }
a:hover { color: var(--apna-red); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--apna-ink); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Top utility bar ---------- */
.topbar {
    background: var(--apna-soft);
    border-bottom: 1px solid var(--apna-line);
    font-size: 13px;
    color: var(--apna-gray);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.topbar-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-social { display: flex; gap: 4px; align-items: center; }
.topbar-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; color: var(--apna-gray); border-radius: 4px;
}
.topbar-social a:hover { color: #fff; background: var(--apna-red); }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Header: logo + ad ---------- */
.site-header { background: var(--apna-navy); }
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 18px 0;
}
.site-logo { line-height: 1; flex-shrink: 0; }
.site-logo a { text-decoration: none; display: block; }
.logo-img { height: 60px; width: auto; max-width: 120px; display: block; object-fit: contain; }
.wordmark {
    font-size: 38px; font-weight: 800; letter-spacing: -1px; color: #fff;
}
.wordmark span { color: var(--apna-red); }
.site-tagline {
    display: block; margin-top: 4px; font-size: 12px; letter-spacing: 2px;
    text-transform: uppercase; color: #94a3b8;
}
.header-ad { flex: 0 0 auto; }
.ad-slot a { display: block; width: 100%; height: 100%; }
.ad-slot a img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.ad-slot {
    display: flex; align-items: center; justify-content: center;
    background: var(--apna-soft); border: 1px dashed #cbd5e1; color: #94a3b8;
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.ad-728x90 { width: 728px; height: 90px; max-width: 100%; overflow: hidden !important; }
.ad-728x90 .apna-ad-slot,
.ad-728x90 .apna-v14-shared-ad,
.ad-728x90 .apna-v14-shared-ad__media { width: 100% !important; height: 100% !important; max-height: 90px !important; overflow: hidden !important; }
.ad-728x90 img { width: 100% !important; height: 90px !important; max-height: 90px !important; object-fit: cover !important; object-position: center bottom !important; display: block !important; }
.ad-300x250 { width: 300px; height: 250px; margin: 0 auto 24px; overflow: hidden; }
.ad-300x250 img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.in-article-ad { margin: 24px auto; max-width: 100%; overflow: hidden; text-align: center; }
.in-article-ad img { max-width: 100%; height: auto; display: inline-block; }

/* ---------- Sticky main nav ---------- */
.main-nav {
    background: var(--apna-navy);
    border-top: 3px solid var(--apna-red);
    position: sticky; top: 0; z-index: 100;
}
.main-nav .container { display: flex; align-items: center; }
.nav-logo { display: none; align-items: center; padding: 6px 4px 6px 0; }
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-menu > li > a {
    display: block; padding: 14px 18px; color: #fff; font-size: 14px;
    font-weight: 700; letter-spacing: .4px; text-transform: uppercase; text-decoration: none;
    border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a {
    color: #fff; border-bottom-color: var(--apna-red); background: rgba(255,255,255,.06);
}
.nav-menu .sub-menu {
    display: none; position: absolute; background: #fff; list-style: none;
    margin: 0; padding: 6px 0; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-top: 3px solid var(--apna-red);
}
.nav-menu li { position: relative; }
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a {
    display: block; padding: 10px 16px; color: var(--apna-ink); font-size: 14px;
    text-transform: none; font-weight: 400; text-decoration: none;
}
.nav-menu .sub-menu a:hover { color: var(--apna-red); background: var(--apna-soft); }
.nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search button {
    background: none; border: 0; color: #fff; cursor: pointer; padding: 12px;
    display: inline-flex;
}
.nav-search button:hover { color: var(--apna-red); }
.nav-search svg { width: 18px; height: 18px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 12px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.search-drop {
    display: none; background: #fff; border-bottom: 1px solid var(--apna-line);
    padding: 12px 0;
}
.search-drop.open { display: block; }
.search-drop form { display: flex; gap: 8px; }
.search-drop input[type="search"] {
    flex: 1; padding: 10px 12px; border: 1px solid var(--apna-line); border-radius: 4px; font-size: 15px;
}
.search-drop button[type="submit"] {
    background: var(--apna-red); color: #fff; border: 0; border-radius: 4px;
    padding: 10px 20px; font-weight: 700; cursor: pointer;
}
.search-drop button[type="submit"]:hover { background: var(--apna-red-dark); }

/* ---------- Trending ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--apna-line); }
.ticker .container { display: flex; align-items: stretch; min-height: 44px; }
.ticker-label {
    background: var(--apna-red); color: #fff; font-size: 12px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center;
    padding: 0 14px; flex: 0 0 auto;
}
.ticker-view { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker-item {
    position: absolute; left: 16px; right: 16px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; opacity: 0; transition: opacity .4s; font-size: 14px;
}
.ticker-item.active { opacity: 1; position: relative; left: auto; right: auto; }
.ticker-item a { color: var(--apna-ink); font-weight: 600; text-decoration: none; }
.ticker-item a:hover { color: var(--apna-red); }
.ticker-nav { display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.ticker-nav button {
    background: none; border: 1px solid var(--apna-line); border-radius: 3px;
    color: var(--apna-gray); cursor: pointer; width: 26px; height: 26px; line-height: 1;
}
.ticker-nav button:hover { color: var(--apna-red); border-color: var(--apna-red); }

/* ---------- Layout: content + sidebar ---------- */
.site-main { padding: 28px 0 40px; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.layout-full { max-width: 1140px; }

/* ---------- Hero grid ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-bottom: 32px; min-height: 420px; }
.hero-card { position: relative; overflow: hidden; border-radius: 4px; background: var(--apna-navy); display: block; }
.hero-card:first-child { grid-row: 1 / 3; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-overlay {
    position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
    background: linear-gradient(transparent, rgba(10,15,30,.88)); color: #fff;
}
.hero-card:first-child .hero-overlay { padding: 60px 22px 20px; }
.cat-tag {
    display: inline-block; background: var(--apna-red); color: #fff; font-size: 11px;
    font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 3px 8px;
    border-radius: 2px; margin-bottom: 8px; text-decoration: none;
}
a.cat-tag:hover { color: #fff; background: var(--apna-red-dark); }
.hero-title { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.hero-card:first-child .hero-title { font-size: 30px; }
.hero-title a { color: #fff; text-decoration: none; }
.hero-title a:hover { color: #ffd9d9; }
.hero-meta { font-size: 12px; color: rgba(255,255,255,.75); }
.hero-fallback { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 180px; color: rgba(255,255,255,.4); font-size: 13px; }

/* ---------- Category blocks ---------- */
.cat-block { margin-bottom: 36px; }
.cat-block-head {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--apna-ink); margin-bottom: 18px; padding-bottom: 8px;
}
.cat-block-head h2 {
    margin: 0; font-size: 20px; text-transform: uppercase; letter-spacing: .5px;
    border-left: 4px solid var(--apna-red); padding-left: 10px;
}
.cat-block-head h2 a { color: var(--apna-ink); text-decoration: none; }
.view-all { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post-card { background: #fff; }
.post-card .thumb { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16/9; background: var(--apna-navy); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .3s; }
.post-card .thumb:hover img { transform: scale(1.04); }
.post-card h3 { font-size: 16px; margin: 10px 0 6px; line-height: 1.35; }
.post-card h3 a { color: var(--apna-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--apna-red); }
.post-meta { font-size: 12px; color: var(--apna-gray); }
.post-meta .cat-tag { margin: 10px 0 0; }

/* ---------- Sidebar ---------- */
.sidebar .widget { margin-bottom: 28px; background: #fff; }
.widget-title {
    font-size: 15px; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 2px solid var(--apna-ink);
}
.widget-title span { border-left: 4px solid var(--apna-red); padding-left: 10px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget_search form { display: flex; }
.widget_search input[type="search"] { flex: 1; padding: 9px 10px; border: 1px solid var(--apna-line); border-radius: 4px 0 0 4px; font-size: 14px; }
.widget_search button { background: var(--apna-navy); color: #fff; border: 0; border-radius: 0 4px 4px 0; padding: 0 14px; cursor: pointer; font-weight: 700; }
.widget_search button:hover { background: var(--apna-red); }
.recent-posts li { display: flex; gap: 10px; margin-bottom: 12px; }
.recent-posts .rp-thumb { flex: 0 0 72px; width: 72px; height: 54px; overflow: hidden; border-radius: 3px; background: var(--apna-soft); }
.recent-posts .rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-posts a.rp-title { font-size: 14px; font-weight: 600; color: var(--apna-ink); line-height: 1.35; text-decoration: none; }
.recent-posts a.rp-title:hover { color: var(--apna-red); }
.recent-posts .rp-date { font-size: 12px; color: var(--apna-gray); }
.social-follow { display: flex; gap: 8px; }
.social-follow a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 4px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700;
    text-decoration: none;
}
.social-follow svg { width: 16px; height: 16px; fill: currentColor; }
.sf-facebook { background: #1877f2; } .sf-x { background: #14171a; }
.sf-instagram { background: #c13584; } .sf-youtube { background: #ff0000; }
.social-follow a:hover { opacity: .85; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--apna-navy); color: #cbd5e1; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 32px; }
.footer-top h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.footer-top h3 span { border-left: 4px solid var(--apna-red); padding-left: 10px; }
.footer-top p { font-size: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 8px; }
.footer-top a { color: #cbd5e1; font-size: 14px; text-decoration: none; }
.footer-top a:hover { color: #fff; }
.footer-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 14px; }
.footer-logo-img { height: 48px; width: auto; display: block; }
.footer-logo-text { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.footer-logo-text span { color: var(--apna-red); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff; text-decoration: none;
}
.footer-social a:hover { background: var(--apna-red); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom a { color: #cbd5e1; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Single post ---------- */
.breadcrumb { font-size: 13px; color: var(--apna-gray); margin-bottom: 12px; }
.breadcrumb a { color: var(--apna-gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--apna-red); }
.single .entry-title { font-size: 34px; margin: 10px 0 12px; }
.byline { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--apna-gray); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--apna-line); }
.byline .author { font-weight: 700; color: var(--apna-ink); }
.single .featured { margin: 0 0 22px; }
.single .featured img { border-radius: 4px; width: 100%; }
.single .featured figcaption { font-size: 13px; color: var(--apna-gray); margin-top: 8px; }
.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: 4px; }
.entry-content a { text-decoration: underline; }
.post-tags { margin: 24px 0; font-size: 13px; }
.post-tags a {
    display: inline-block; background: var(--apna-soft); border: 1px solid var(--apna-line);
    border-radius: 20px; padding: 4px 12px; margin: 0 6px 6px 0; color: var(--apna-gray); text-decoration: none;
}
.post-tags a:hover { color: var(--apna-red); border-color: var(--apna-red); }
.apna-share-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:22px 0;padding:14px 16px;background:#f7f9fc;border:1px solid #e2e8f0;border-radius:12px}
.apna-share-label{font-size:14px;font-weight:700;color:#16202f;letter-spacing:.02em;margin-right:4px}
.apna-share-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid #dbe2ec;cursor:pointer;text-decoration:none;transition:transform .12s ease,box-shadow .12s ease;padding:0}
.apna-share-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(23,32,51,.14)}
.apna-share-btn svg{width:20px;height:20px;fill:currentColor}
.apna-share-facebook{color:#1877F2}
.apna-share-x{color:#111}
.apna-share-whatsapp{color:#25D366}
.apna-share-telegram{color:#229ED9}
.apna-share-copy{width:auto;height:40px;border-radius:20px;padding:0 16px;gap:8px;background:#e0312d;border-color:#e0312d;color:#fff;font-size:14px;font-weight:700}
.apna-share-copy:hover{background:#b8251f}
.apna-share-copy svg{width:16px;height:16px}
.apna-share-copy-text{white-space:nowrap}

.author-box {
    display: flex; gap: 16px; background: var(--apna-soft); border-radius: 6px;
    padding: 20px; margin: 28px 0;
}
.author-box .avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box .author-logo { background: var(--apna-navy); padding: 8px; object-fit: contain; }
.author-box h4 { margin: 0 0 6px; font-size: 16px; }
.author-box p { margin: 0; font-size: 14px; color: var(--apna-gray); }
.related { margin: 32px 0; }
.related h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .5px; border-left: 4px solid var(--apna-red); padding-left: 10px; margin-bottom: 16px; }
.related .card-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Archive ---------- */
.archive-head { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--apna-ink); }
.archive-head h1 { font-size: 28px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .5px; border-left: 4px solid var(--apna-red); padding-left: 12px; }
.archive-head p { color: var(--apna-gray); margin: 8px 0 0 16px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pagination { margin: 32px 0 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--apna-line);
    border-radius: 4px; color: var(--apna-ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--apna-red); border-color: var(--apna-red); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--apna-red); color: var(--apna-red); }

/* ---------- Page template ---------- */
.page .entry-title { font-size: 32px; margin-bottom: 16px; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 36px; }
.comments-area h3 { font-size: 18px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list li { border-bottom: 1px solid var(--apna-line); padding: 16px 0; }
.comment-meta { font-size: 13px; color: var(--apna-gray); margin-bottom: 6px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
    width: 100%; padding: 10px; border: 1px solid var(--apna-line); border-radius: 4px; font-size: 15px; font-family: inherit;
}
.comment-form input[type="submit"] {
    background: var(--apna-red); color: #fff; border: 0; border-radius: 4px;
    padding: 12px 28px; font-weight: 700; cursor: pointer; margin-top: 12px;
}
.comment-form input[type="submit"]:hover { background: var(--apna-red-dark); }

/* ---------- 404 / search ---------- */
.not-found { text-align: center; padding: 60px 0; }
.not-found h1 { font-size: 72px; color: var(--apna-red); margin: 0; }
.search-results-head { margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .ad-728x90 { width: 100%; max-width: 728px; }
    .hero { min-height: 360px; }
}
@media (max-width: 900px) {
    .site-header .site-logo { display: none; }
    .header-row { justify-content: center; padding: 12px 0; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { margin-top: 8px; }
    .nav-toggle { display: inline-flex; }
    .nav-logo { display: inline-flex; }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--apna-navy); flex-direction: column; z-index: 200;
        box-shadow: 0 12px 24px rgba(0,0,0,.2);
    }
    .main-nav .container { position: relative; flex-wrap: wrap; }
    .main-nav.open .nav-menu { display: flex; }
    .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,.08); margin: 0; }
    .nav-menu .sub-menu { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.05); }
    .nav-menu .sub-menu a { color: #fff; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .related .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .header-row { flex-direction: column; text-align: center; padding: 16px 0; }
    .site-logo a { justify-content: center; }
    .logo-img { height: 52px; }
    .wordmark { font-size: 30px; }
    .hero { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; min-height: 0; }
    .hero-card:first-child { grid-column: 1 / 3; grid-row: 1; }
    .hero-card:first-child .hero-title { font-size: 20px; }
    .hero-title { font-size: 13px; }
    .hero-overlay { padding: 28px 10px 10px; }
    .single .entry-title { font-size: 26px; }
    .card-grid, .archive-grid, .related .card-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom .container { justify-content: center; text-align: center; }
    .topbar-date { font-size: 12px; }
    .author-box { flex-direction: column; }
}

/* WordPress core alignments */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--apna-gray); }
