/* =============================================
   F96 News - Shared Styles v2.0
   GeneratePress Child Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@400;600;700&display=swap');

:root {
    --red: #CC0000;
    --red-d: #990000;
    --red-l: #fff0f0;
    --dark: #1a1a1a;
    --gray: #444;
    --mid: #777;
    --light: #f4f4f4;
    --border: #e2e2e2;
    --fn: 'Noto Sans Devanagari', sans-serif;
    --fs: 'Noto Serif Devanagari', serif;
}

/* ── GeneratePress Layout Override ── */
/* GP ke sidebar ko hamaare pages par force-hide karo */
.f96-site.page-template-default #sidebar,
.f96-site.single #sidebar,
.f96-site.category #sidebar,
.f96-site.home #sidebar,
.f96-site .widget-area,
.f96-site.home .widget-area,
.f96-site.category .widget-area,
.f96-site.single .widget-area {
    display: none !important;
}

/* GP content area full-width lo */
.f96-site.home .content-area,
.f96-site.category .content-area,
.f96-site.single .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* GP inner container */
.f96-site .site-content,
.f96-site #content {
    padding: 0 !important;
}

/* ── Global Reset ── */
body { background: #f0f0f0 !important; overflow-x: hidden !important; }
.f96 * { box-sizing: border-box; }
.f96 a { text-decoration: none; color: inherit; }
.f96 img { display: block; max-width: 100%; height: auto; }

/* ── Main Wrapper ── */
.f96-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px 48px;
    font-family: var(--fn);
    width: 100%;
}

/* ── Section Header ── */
.f96-sec-hdr {
    display: flex; align-items: center;
    justify-content: space-between;
    margin: 24px 0 14px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 9px;
}
.f96-sec-title {
    font-family: var(--fs); font-size: 19px; font-weight: 700;
    color: var(--dark); display: flex; align-items: center; gap: 8px;
}
.f96-sec-title::before {
    content: ''; width: 4px; height: 20px;
    background: var(--red); border-radius: 2px; display: inline-block;
}
.f96-sec-more {
    font-size: 12px; color: var(--red);
    border: 1px solid var(--red); padding: 4px 12px;
    border-radius: 20px; transition: all .2s;
}
.f96-sec-more:hover { background: var(--red); color: #fff; }

/* ── News Card ── */
.f96-card {
    background: #fff; border-radius: 10px;
    overflow: hidden; border: 1px solid var(--border);
    transition: box-shadow .2s, transform .2s;
    display: block; color: inherit;
}
.f96-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.f96-card-img { position: relative; overflow: hidden; }
.f96-card-img img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s; }
.f96-card:hover .f96-card-img img { transform: scale(1.05); }
.f96-card-badge {
    position: absolute; top: 9px; left: 9px;
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 3px;
}
.f96-card-body { padding: 12px; }
.f96-card-ttl {
    font-family: var(--fs); font-size: 14px; font-weight: 600;
    line-height: 1.5; color: var(--dark); margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.f96-card:hover .f96-card-ttl { color: var(--red); }
.f96-card-exc {
    font-size: 12px; color: var(--mid); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px;
}
.f96-card-meta {
    display: flex; justify-content: space-between;
    font-size: 10px; color: var(--mid);
    border-top: 1px solid var(--light); padding-top: 7px;
}

/* ── Grids ── */
.f96-feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 13px; }
.f96-grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.f96-grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

/* ── Small horizontal card ── */
.f96-scard {
    display: flex; background: #fff; border-radius: 8px;
    overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s;
}
.f96-scard:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.f96-scard img { width: 90px; height: 68px; object-fit: cover; flex-shrink: 0; }
.f96-scard-info { padding: 8px 10px; }
.f96-scard-cat { font-size: 10px; color: var(--red); font-weight: 700; margin-bottom: 3px; }
.f96-scard-ttl {
    font-size: 12px; font-weight: 600; color: var(--dark); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.f96-scard:hover .f96-scard-ttl { color: var(--red); }
.f96-scard-time { font-size: 10px; color: var(--mid); margin-top: 3px; }

/* ── Sidebar layout ── */
.f96-sidebar-wrap { display: grid; grid-template-columns: 1fr 290px; gap: 20px; align-items: start; }
.f96-widget { background: #fff; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden; }
.f96-widget-title {
    background: var(--dark); color: #fff;
    padding: 10px 14px; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 5px;
}
.f96-widget-title em { color: var(--red); font-style: normal; }
.f96-widget-body { padding: 11px 14px; }
.f96-wlist a { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--light); align-items: flex-start; }
.f96-wlist a:last-child { border-bottom: none; }
.f96-wlist img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.f96-wlist .wl-cat { font-size: 10px; color: var(--red); font-weight: 700; margin-bottom: 1px; }
.f96-wlist .wl-ttl { font-size: 12px; font-weight: 600; color: var(--dark); line-height: 1.4; transition: color .2s; }
.f96-wlist a:hover .wl-ttl { color: var(--red); }
.f96-wlist .wl-time { font-size: 10px; color: var(--mid); margin-top: 1px; }
.f96-catlist { list-style: none; margin: 0; padding: 0; }
.f96-catlist li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--light); font-size: 13px; }
.f96-catlist li:last-child { border-bottom: none; }
.f96-catlist a { color: var(--dark); font-weight: 500; display: flex; align-items: center; gap: 4px; transition: color .15s; }
.f96-catlist a::before { content: '›'; color: var(--red); }
.f96-catlist a:hover, .f96-catlist .f96-cur a { color: var(--red); }
.f96-catlist .f96-cur { font-weight: 700; }
.f96-cnt { background: var(--red-l); color: var(--red); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

/* ── Ad placeholder ── */
.f96-ad {
    background: #fafafa; border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 11px; border-radius: 6px; margin: 14px 0;
}

/* ── Breadcrumb ── */
.f96-bc { font-size: 12px; color: var(--mid); display: flex; flex-wrap: wrap; gap: 2px; align-items: center; margin-bottom: 14px; }
.f96-bc a { color: var(--mid); }
.f96-bc a:hover { color: var(--red); }
.f96-bc span { margin: 0 4px; color: #bbb; }

/* ── Pagination ── */
.f96-pages { display: flex; justify-content: center; gap: 5px; margin: 22px 0 6px; flex-wrap: wrap; }
.f96-pages .page-numbers {
    min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--border); background: #fff; color: var(--gray); transition: all .2s;
}
.f96-pages .page-numbers:hover,
.f96-pages .page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
.f96-pages .page-numbers.dots { border: none; background: transparent; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .f96-sidebar-wrap { grid-template-columns: 1fr; }
    .f96-feat-row { grid-template-columns: 1fr; }
    .f96-grid-3 { grid-template-columns: 1fr 1fr; }
    .f96-hero { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .f96-wrap { padding: 10px 12px 32px; }
    .f96-grid-3, .f96-grid-2 { grid-template-columns: 1fr; }
    .f96-feat-row { grid-template-columns: 1fr; }
    .f96-sec-title { font-size: 16px; }
    .f96-card-img img { height: 160px; }
    body { font-size: 14px; }
}
