/*
Theme Name: OKhabar Child
Theme URI: https://okhabar.com
Description: Custom child theme for OKhabar Nepali news publication. Built on GeneratePress.
Author: OKhabar Development Team
Author URI: https://okhabar.com
Template: generatepress
Version: 1.0.0
Text Domain: okhabar
*/

/* CRITICAL: @import MUST be the first rule after the theme comment.
   Placing it after :root or any other rule causes browsers to silently ignore it. */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700&display=swap');

/* ==========================================================================
   CSS VARIABLES — DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Colors — Matching onlinekhabar blue/red palette */
    --ok-primary: #1a5276;
    --ok-primary-dark: #0e3a56;
    --ok-primary-light: #2980b9;
    --ok-accent: #e74c3c;
    --ok-accent-dark: #c0392b;
    --ok-accent-hover: #d63031;
    --ok-text: #1a1a1a;
    --ok-text-body: #333333;
    --ok-text-meta: #666666;
    --ok-text-light: #999999;
    --ok-bg: #ffffff;
    --ok-bg-body: #f5f5f5;
    --ok-bg-footer: #eef2f5;
    --ok-bg-card: #ffffff;
    --ok-border: #e0e0e0;
    --ok-border-light: #f0f0f0;
    --ok-nav-bg: #1a5276;
    --ok-nav-text: #ffffff;
    --ok-badge-bg: #e74c3c;
    --ok-badge-text: #ffffff;
    --ok-tag-bg: #eef3f7;
    --ok-tag-text: #1a5276;

    /* Typography — Matched to onlinekhabar.com source code analysis
       KEY FINDING: onlinekhabar body text = 21px (confirmed from inline CSS)
       All sizes scale proportionally from that 21px base */
    --ok-font: 'Mukta', sans-serif;
    --ok-h1: 40px;                        /* Single post headline */
    --ok-h2: 34px;                        /* Section headers "समाचार" */
    --ok-h3: 28px;                        /* Featured card titles */
    --ok-body: 21px;                      /* Article body — matches onlinekhabar */
    --ok-meta: 14px;                      /* Meta, dates, author */
    --ok-small: 13px;                     /* Tags, captions */
    --ok-nav-font: 16px;                  /* Nav menu items */
    --ok-line-height: 1.8;
    --ok-heading-lh: 1.35;

    /* Layout */
    --ok-container-min: 1085px;
    --ok-container-max: 1280px;
    --ok-sidebar-width: 300px;
    --ok-content-width: calc(100% - var(--ok-sidebar-width) - 30px);
    --ok-gap: 20px;
    --ok-gap-sm: 12px;
    --ok-card-radius: 4px;

    /* Ad zones */
    --ok-ad-bg: #f8f8f8;
    --ok-ad-border: #eeeeee;

    /* Shadows */
    --ok-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --ok-shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --ok-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);

    /* Transitions */
    --ok-transition: 0.2s ease;
}

/* ==========================================================================
   FONT — Mukta (Devanagari + Latin)
   Primary: Google Fonts CDN (always works)
   Override: Self-hosted woff2 files if placed in /fonts/ directory
   ========================================================================== */

/* Self-hosted font override (optional — only if .woff2 files exist in fonts/ folder) */
@font-face {
    font-family: 'Mukta';
    src: url('./fonts/mukta-v14-devanagari-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('./fonts/mukta-v14-devanagari-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('./fonts/mukta-v14-devanagari-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('./fonts/mukta-v14-devanagari-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

body {
    font-family: var(--ok-font);
    font-size: var(--ok-body);
    line-height: var(--ok-line-height);
    color: var(--ok-text-body);
    background-color: var(--ok-bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ok-text);
    text-decoration: none;
    transition: color var(--ok-transition);
}

a:hover {
    color: var(--ok-accent);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ok-font);
    line-height: var(--ok-heading-lh);
    color: var(--ok-text);
    margin: 0 0 0.5em;
}

/* ==========================================================================
   GENERATEPRESS OVERRIDES — CENTERING & LAYOUT
   Must come before component styles to establish the layout foundation.
   GP doesn't have pixel-based content/sidebar width controls.
   We override everything via CSS since our templates handle layout manually.
   ========================================================================== */

/* Force the entire site to center */
body {
    margin: 0;
}

#page.site,
body .site {
    margin: 0 auto;
    max-width: var(--ok-container-max);
}

/* Override GP's grid/container system completely */
.site-content {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0;
}

/* GP generates .inside-article, .inside-page-header, etc. — reset them */
.inside-article,
.inside-page-header {
    padding: 0;
    margin: 0;
}

/* If GP adds its own sidebar, hide it (we use our own) */
#right-sidebar,
#left-sidebar,
.sidebar .inside-right-sidebar,
.sidebar .inside-left-sidebar {
    display: none;
}

/* Ensure GP content area is full width (our flex handles the split) */
.content-area {
    width: 100%;
}

/* ==========================================================================
   LAYOUT — CONTAINER
   ========================================================================== */

.ok-container {
    width: 100%;
    max-width: var(--ok-container-max);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1100px) {
    .ok-container {
        min-width: var(--ok-container-min);
    }
}

.ok-content-sidebar-wrap {
    display: flex;
    gap: 30px;
    margin-top: var(--ok-gap);
}

.ok-main-content {
    flex: 1;
    min-width: 0;
}

.ok-sidebar {
    width: var(--ok-sidebar-width);
    flex-shrink: 0;
}

/* ==========================================================================
   HEADER — Setopati-inspired centered layout
   ========================================================================== */

/* Top ad bar */
.ok-header-ad-bar {
    background: var(--ok-bg);
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--ok-border-light);
}

/* Header main block */
.ok-header-main {
    background: var(--ok-bg);
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--ok-border-light);
}

/* Centered header layout (Setopati-style) */
.ok-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo */
.ok-logo-wrap {
    margin-bottom: 4px;
}

.ok-logo {
    display: inline-block;
}

.ok-header-logo-img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Text fallback logo */
.ok-header-logo-text {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.ok-logo-ok {
    color: var(--ok-accent);
}

.ok-logo-khabar {
    color: var(--ok-text);
}

/* Tagline */
.ok-header-tagline {
    font-size: 13px;
    color: var(--ok-text-light);
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}

/* Date + Clock row */
.ok-header-datetime {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--ok-text-meta);
}

.ok-header-date,
.ok-header-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ok-header-date svg,
.ok-header-time svg {
    color: var(--ok-text-light);
    flex-shrink: 0;
}

/* Old classes — keep for backwards compatibility but hide */
.ok-header-inner {
    display: none;
}

.ok-header-banner-ad {
    display: none;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.ok-nav-bar {
    background: var(--ok-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--ok-shadow-sm);
}

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

.ok-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.ok-nav-menu li {
    position: relative;
}

.ok-nav-menu li a {
    display: block;
    padding: 12px 18px;
    color: var(--ok-nav-text);
    font-size: var(--ok-nav-font);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--ok-transition);
}

.ok-nav-menu li a:hover,
.ok-nav-menu li.current-menu-item a,
.ok-nav-menu li.current-cat a {
    background: rgba(255,255,255,0.12);
    color: var(--ok-nav-text);
}

/* Nav right side items */
.ok-nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ok-nav-special-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--ok-nav-text);
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: background var(--ok-transition);
}

.ok-nav-special-item:hover {
    background: rgba(255,255,255,0.12);
    color: var(--ok-nav-text);
}

.ok-nav-special-item.ok-patro-link {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 6px 12px;
}

/* Hamburger button — hidden on desktop, visible on mobile only */
.ok-hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.ok-hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ok-nav-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ok-hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.ok-hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.ok-hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   HAMBURGER / OFF-CANVAS MENU
   ========================================================================== */

.ok-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ok-offcanvas-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.ok-offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--ok-bg);
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.ok-offcanvas-menu.is-open {
    transform: translateX(0);
}

.ok-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ok-border-light);
}

.ok-offcanvas-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--ok-text-meta);
    line-height: 1;
}

.ok-offcanvas-close:hover {
    color: var(--ok-text);
}

.ok-offcanvas-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.ok-offcanvas-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 500;
    color: var(--ok-text);
    border-bottom: 1px solid var(--ok-border-light);
    transition: background var(--ok-transition);
}

.ok-offcanvas-nav li a:hover {
    background: var(--ok-bg-body);
    color: var(--ok-accent);
}

.ok-offcanvas-nav li a .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ok-offcanvas-social {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--ok-border);
}

.ok-offcanvas-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ok-bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ok-text-meta);
    transition: all var(--ok-transition);
}

.ok-offcanvas-social a:hover {
    background: var(--ok-primary);
    color: #fff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.ok-hero-section {
    margin-top: 20px;
    margin-bottom: var(--ok-gap);
}

.ok-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ok-gap);
}

.ok-hero-card {
    position: relative;
    border-radius: var(--ok-card-radius);
    overflow: hidden;
    background: var(--ok-bg-card);
    box-shadow: var(--ok-shadow-sm);
    transition: box-shadow var(--ok-transition);
    display: flex;
    flex-direction: column;
}

.ok-hero-card:hover {
    box-shadow: var(--ok-shadow-md);
}

/* Top section: Category + Title — centered above the image */
.ok-hero-top {
    padding: 18px 20px 14px;
    text-align: center;
}

.ok-hero-top .ok-category-badge {
    margin-bottom: 8px;
}

.ok-hero-card a.ok-hero-link {
    display: block;
    color: inherit;
    line-height: 0;
}

.ok-hero-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

/* Bottom section: Subtitle below image */
.ok-hero-bottom {
    padding: 12px 20px 16px;
    text-align:center;
}

.ok-hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--ok-text);
}

.ok-hero-card:hover .ok-hero-title a {
    color: var(--ok-accent);
}

.ok-hero-subtitle {
    font-size: 16px;
    color: var(--ok-text-meta);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Legacy class — keep for non-hero uses */
.ok-hero-content {
    padding: 16px 20px 20px;
}

/* Category badge — used in hero, single, and cards */
.ok-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ok-badge-bg);
    color: var(--ok-badge-text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.ok-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--ok-meta);
    color: var(--ok-text-meta);
    flex-wrap: wrap;
}

.ok-post-meta .meta-sep {
    color: var(--ok-border);
}

.ok-post-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ok-post-meta .meta-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.ok-post-meta .meta-comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.ok-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--ok-primary);
}

.ok-section-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--ok-primary);
    margin: 0;
    line-height: 1.3;
}

.ok-section-more {
    font-size: 20px;
    color: var(--ok-primary);
    padding: 4px 8px;
    line-height: 1;
    transition: transform var(--ok-transition);
}

.ok-section-more:hover {
    transform: translateX(3px);
    color: var(--ok-accent);
}

/* ==========================================================================
   NEWS CARDS — FEATURED (Large, 50/50 split)
   ========================================================================== */

.ok-featured-card {
    display: flex;
    gap: var(--ok-gap);
    background: var(--ok-bg-card);
    border-radius: var(--ok-card-radius);
    overflow: hidden;
    margin-bottom: var(--ok-gap);
    box-shadow: var(--ok-shadow-sm);
    transition: box-shadow var(--ok-transition);
}

.ok-featured-card:hover {
    box-shadow: var(--ok-shadow-md);
}

.ok-featured-card .ok-card-image-wrap {
    width: 50%;
    flex-shrink: 0;
}

.ok-featured-card .ok-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
}

.ok-featured-card .ok-card-body {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ok-featured-card .ok-card-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

/* Category label on featured card */
.ok-card-category--featured {
    font-size: 14px;
    margin-bottom: 8px;
}

.ok-featured-card:hover .ok-card-title a {
    color: var(--ok-accent);
}

.ok-featured-card .ok-card-excerpt {
    font-size: 17px;
    color: var(--ok-text-meta);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* ==========================================================================
   NEWS CARDS — SMALL (Thumbnail + Title grid)
   ========================================================================== */

.ok-small-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ok-gap) 24px;
}

.ok-small-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: var(--ok-gap-sm);
    border-bottom: 1px solid var(--ok-border-light);
}

.ok-small-card .ok-card-thumb {
    width: 160px;
    flex-shrink: 0;
    border-radius: var(--ok-card-radius);
    overflow: hidden;
    line-height: 0;
    aspect-ratio: 16 / 10;
}

.ok-small-card .ok-card-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ok-small-card .ok-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.ok-small-card .ok-card-title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category label on small cards */
.ok-card-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ok-accent);
    letter-spacing: 0.2px;
    margin-bottom: 5px;
    line-height: 1;
}

.ok-card-category:hover {
    color: var(--ok-accent-dark);
}

.ok-small-card:hover .ok-card-title a {
    color: var(--ok-accent);
}

/* ==========================================================================
   NEWS SECTION (Repeating category block)
   ========================================================================== */

.ok-news-section {
    margin-bottom: 30px;
}

/* ==========================================================================
   AD ZONES — Structural only (no visible placeholders)
   Uncomment background/border styles when AdSense is active
   ========================================================================== */

.ok-ad-zone {
    text-align: center;
    margin: var(--ok-gap) 0;
    position: relative;
}

/* Ad label — uncomment when ads are live
.ok-ad-zone::before {
    content: 'विज्ञापन';
    display: block;
    font-size: 10px;
    color: var(--ok-text-light);
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
*/

.ok-ad-zone-leaderboard {
    width: 100%;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.ok-ad-zone-mrec {
    width: 300px;
}

.ok-ad-zone-banner {
    width: 100%;
}

.ok-ad-zone-sidebar {
    width: 100%;
    max-width: 300px;
    margin-bottom: var(--ok-gap);
}

.ok-ad-zone-inline {
    width: 100%;
    margin: var(--ok-gap) 0;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.ok-sidebar .widget {
    margin-bottom: var(--ok-gap);
    background: var(--ok-bg-card);
    border-radius: var(--ok-card-radius);
    box-shadow: var(--ok-shadow-sm);
    overflow: hidden;
}

.ok-sidebar .widget-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ok-text);
    padding: 14px 16px;
    margin: 0;
    border-bottom: 3px solid var(--ok-primary);
    background: var(--ok-bg);
}

/* Trending Widget */
.ok-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ok-trending-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ok-border-light);
    align-items: flex-start;
    transition: background var(--ok-transition);
}

.ok-trending-item:last-child {
    border-bottom: none;
}

.ok-trending-item:hover {
    background: var(--ok-bg-body);
}

.ok-trending-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--ok-accent);
    line-height: 1;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.ok-trending-item:nth-child(n+4) .ok-trending-number {
    color: var(--ok-text-light);
}

.ok-trending-thumb {
    width: 80px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.ok-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ok-trending-title {
    flex: 1;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ok-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ok-trending-title a:hover {
    color: var(--ok-accent);
}

/* Calendar Widget */
.ok-calendar-widget .widget-content {
    padding: 0;
}

.ok-calendar-widget iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Gold/Silver Rates Widget */
.ok-rates-widget .widget-content {
    padding: 0;
}

.ok-rates-widget iframe {
    width: 100%;
    border: none;
    display: block;
}

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

.ok-single-header {
    margin-bottom: 20px;
}

.ok-single-category {
    margin-bottom: 10px;
}

.ok-single-title {
    font-size: var(--ok-h1);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--ok-text);
}

.ok-single-subtitle {
    font-size: 19px;
    color: var(--ok-text-meta);
    line-height: 1.6;
    margin: -4px 0 16px 0;
    font-weight: 400;
}

.ok-single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: var(--ok-meta);
    color: var(--ok-text-meta);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ok-border-light);
    margin-bottom: 16px;
}

.ok-single-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ok-single-meta .meta-author img,
.ok-single-meta img.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ok-single-featured-image {
    margin-bottom: 20px;
    border-radius: var(--ok-card-radius);
    overflow: hidden;
}

.ok-single-featured-image img {
    width: 100%;
    height: auto;
}

.ok-image-caption {
    font-size: var(--ok-meta);
    color: var(--ok-text-light);
    font-style: italic;
    padding: 8px 0;
}

/* Article Body */
.ok-article-body {
    font-size: var(--ok-body);
    line-height: var(--ok-line-height);
    color: var(--ok-text-body);
}

.ok-article-body p {
    margin-bottom: 1.2em;
}

.ok-article-body h2 {
    font-size: var(--ok-h2);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
}

.ok-article-body h3 {
    font-size: var(--ok-h3);
    font-weight: 600;
    margin-top: 1.3em;
    margin-bottom: 0.5em;
}

.ok-article-body img {
    border-radius: var(--ok-card-radius);
    margin: 1em 0;
}

.ok-article-body blockquote {
    border-left: 4px solid var(--ok-primary);
    margin: 1.5em 0;
    padding: 16px 20px;
    background: var(--ok-bg-body);
    border-radius: 0 var(--ok-card-radius) var(--ok-card-radius) 0;
    font-size: 16px;
    color: var(--ok-text);
}

/* Tags */
.ok-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    padding-top: 16px;
    border-top: 1px solid var(--ok-border-light);
}

.ok-post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ok-tag-bg);
    color: var(--ok-tag-text);
    font-size: var(--ok-small);
    font-weight: 500;
    border-radius: 3px;
    transition: all var(--ok-transition);
}

.ok-post-tags a:hover {
    background: var(--ok-primary);
    color: #fff;
}

/* Social Share */
.ok-social-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.ok-social-share .share-label {
    font-size: 12px;
    color: var(--ok-text-light);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 4px;
}

.ok-social-share .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: opacity var(--ok-transition);
    line-height: 1;
}

.ok-social-share .share-btn svg {
    flex-shrink: 0;
}

.ok-social-share .share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* Native brand colors */
.ok-social-share .share-fb { background: #1877f2; }
.ok-social-share .share-tw { background: #000000; }
.ok-social-share .share-wa { background: #25d366; }

/* Related Posts */
.ok-related-posts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--ok-border);
}

.ok-related-posts .ok-section-header {
    border-bottom-color: var(--ok-accent);
}

.ok-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ok-gap);
}

.ok-related-card {
    border-radius: var(--ok-card-radius);
    overflow: hidden;
    background: var(--ok-bg-card);
    box-shadow: var(--ok-shadow-sm);
    transition: box-shadow var(--ok-transition);
}

.ok-related-card:hover {
    box-shadow: var(--ok-shadow-md);
}

.ok-related-card .ok-related-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.ok-related-card .ok-related-title {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ok-related-card:hover .ok-related-title a {
    color: var(--ok-accent);
}

/* ==========================================================================
   ARCHIVE / TAG / SEARCH PAGES
   ========================================================================== */

.ok-archive-header {
    background: var(--ok-bg-card);
    padding: 20px 24px;
    border-radius: var(--ok-card-radius);
    margin-bottom: var(--ok-gap);
    box-shadow: var(--ok-shadow-sm);
}

.ok-archive-title {
    font-size: var(--ok-h2);
    font-weight: 700;
    margin: 0;
    color: var(--ok-primary);
}

.ok-archive-description {
    font-size: 14px;
    color: var(--ok-text-meta);
    margin-top: 6px;
}

/* Archive list items */
.ok-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ok-archive-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ok-border-light);
    align-items: flex-start;
}

.ok-archive-item:first-child {
    padding-top: 0;
}

.ok-archive-item .ok-archive-thumb {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--ok-card-radius);
    overflow: hidden;
}

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

.ok-archive-item .ok-archive-info {
    flex: 1;
    min-width: 0;
}

.ok-archive-item .ok-archive-item-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.ok-archive-item:hover .ok-archive-item-title a {
    color: var(--ok-accent);
}

.ok-archive-item .ok-archive-excerpt {
    font-size: 14px;
    color: var(--ok-text-meta);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

/* Pagination */
.ok-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    padding: 20px 0;
}

.ok-pagination a,
.ok-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ok-text);
    background: var(--ok-bg-card);
    border: 1px solid var(--ok-border);
    transition: all var(--ok-transition);
}

.ok-pagination a:hover {
    background: var(--ok-primary);
    color: #fff;
    border-color: var(--ok-primary);
}

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

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */

.ok-comments-wrap {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--ok-border-light);
}

.ok-comments-section {
    max-width: 100%;
}

.ok-comments-header {
    margin-bottom: 24px;
}

.ok-comments-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ok-text);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ok-accent);
    display: inline-block;
}

/* --- Comment List --- */
.ok-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ok-comment-list .ok-comment {
    margin-bottom: 0;
}

/* Individual comment */
.ok-comment-body {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ok-border-light);
}

.ok-comment-author-avatar {
    flex-shrink: 0;
}

.ok-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ok-comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.ok-comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.ok-comment-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ok-text);
}

.ok-comment-author-name a {
    color: var(--ok-text);
}

.ok-comment-author-name a:hover {
    color: var(--ok-accent);
}

.ok-comment-date {
    font-size: 13px;
    color: var(--ok-text-light);
}

.ok-comment-awaiting {
    font-size: 13px;
    color: var(--ok-accent);
    margin: 4px 0;
}

.ok-comment-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ok-text-body);
}

.ok-comment-text p {
    margin: 0 0 8px 0;
}

.ok-comment-text p:last-child {
    margin-bottom: 0;
}

.ok-comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.ok-reply-link a,
.ok-edit-link a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ok-primary);
    transition: color var(--ok-transition);
}

.ok-reply-link a:hover,
.ok-edit-link a:hover {
    color: var(--ok-accent);
}

/* Nested (reply) comments — indent */
.ok-comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 54px;
}

.ok-comment-list .children .ok-comment-body {
    border-left: 3px solid var(--ok-border-light);
    padding-left: 16px;
}

/* --- Comment Pagination --- */
.ok-comment-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}

.ok-comment-pagination a,
.ok-comment-pagination .current {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.ok-comment-pagination a {
    color: var(--ok-primary);
    border: 1px solid var(--ok-border);
}

.ok-comment-pagination a:hover {
    background: var(--ok-primary);
    color: #fff;
    border-color: var(--ok-primary);
}

.ok-comment-pagination .current {
    background: var(--ok-primary);
    color: #fff;
}

/* --- Comments Closed Notice --- */
.ok-comments-closed {
    font-size: 15px;
    color: var(--ok-text-light);
    text-align: center;
    padding: 20px;
    border: 1px dashed var(--ok-border);
    border-radius: var(--ok-card-radius);
}

/* --- Comment Form --- */
.ok-comment-form {
    margin-top: 30px;
}

.ok-comment-form .ok-comment-notes {
    font-size: 13px;
    color: var(--ok-text-light);
    margin-bottom: 16px;
}

.ok-comment-form .required {
    color: var(--ok-accent);
}

/* Name + Email side by side */
.ok-comment-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.ok-comment-field {
    margin-bottom: 16px;
}

.ok-comment-fields-row .ok-comment-field {
    margin-bottom: 0;
}

.ok-comment-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ok-text);
    margin-bottom: 6px;
}

.ok-comment-field input[type="text"],
.ok-comment-field input[type="email"],
.ok-comment-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-card-radius);
    font-family: var(--ok-font);
    font-size: 15px;
    color: var(--ok-text);
    background: var(--ok-bg);
    transition: border-color var(--ok-transition);
    box-sizing: border-box;
}

.ok-comment-field input:focus,
.ok-comment-field textarea:focus {
    outline: none;
    border-color: var(--ok-primary);
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.15);
}

.ok-comment-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Reply title ("प्रतिक्रिया दिनुहोस्") */
.ok-comment-form .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ok-text);
    margin-bottom: 16px;
}

.ok-comment-form .comment-reply-title small a {
    font-size: 13px;
    font-weight: 500;
    color: var(--ok-accent);
    margin-left: 10px;
}

/* Submit button */
.ok-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--ok-primary);
    color: #fff;
    border: none;
    border-radius: var(--ok-card-radius);
    font-family: var(--ok-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ok-transition);
}

.ok-comment-submit:hover {
    background: var(--ok-primary-dark);
}

/* --- Responsive Comments --- */
@media (max-width: 600px) {
    .ok-comment-fields-row {
        grid-template-columns: 1fr;
    }

    .ok-comment-list .children {
        padding-left: 20px;
    }

    .ok-comment-body {
        gap: 10px;
    }

    .ok-comment-avatar {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.ok-footer {
    background: var(--ok-bg-footer);
    margin-top: 40px;
}

.ok-footer-main {
    padding: 28px 0;
}

.ok-footer-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ok-footer-logo {
    flex-shrink: 0;
}

.ok-footer-logo img {
    max-height: 40px;
}

.ok-footer-info {
    display: flex;
    gap: 30px;
    flex: 1;
    flex-wrap: wrap;
}

.ok-footer-col {
    min-width: 0;
}

.ok-footer-col-label {
    font-size: var(--ok-small);
    color: var(--ok-text-meta);
    font-weight: 400;
    display: block;
}

.ok-footer-col-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ok-text);
}

.ok-footer-social {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Base social icon circle */
.ok-footer-social .ok-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity var(--ok-transition), transform var(--ok-transition);
}

.ok-footer-social .ok-social-icon:hover {
    opacity: 0.82;
    transform: translateY(-2px);
    color: #fff;
}

/* Platform-specific brand colors */
.ok-social-facebook { background: #1877F2; }
.ok-social-twitter  { background: #1DA1F2; }
.ok-social-youtube  { background: #FF0000; }

/* Hover states — darken slightly for contrast */
.ok-social-facebook:hover { background: #1565d8; }
.ok-social-twitter:hover  { background: #1a91da; }
.ok-social-youtube:hover  { background: #d40000; }

.ok-footer-bar {
    border-top: 1px solid var(--ok-border);
    padding: 12px 0;
    text-align: center;
    font-size: var(--ok-small);
    color: var(--ok-text-meta);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.ok-404-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.ok-404-number {
    font-size: 80px;
    font-weight: 700;
    color: var(--ok-border);
    line-height: 1;
    margin-bottom: 16px;
}

.ok-404-message {
    font-size: 20px;
    color: var(--ok-text);
    margin-bottom: 24px;
}

.ok-404-search {
    max-width: 400px;
    margin: 0 auto 20px;
}

.ok-404-search input[type="search"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ok-border);
    border-radius: 4px;
    font-family: var(--ok-font);
    font-size: 15px;
    transition: border-color var(--ok-transition);
}

.ok-404-search input[type="search"]:focus {
    outline: none;
    border-color: var(--ok-primary);
}

.ok-404-home-link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--ok-primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background var(--ok-transition);
}

.ok-404-home-link:hover {
    background: var(--ok-primary-dark);
    color: #fff;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */

.ok-search-header {
    background: var(--ok-bg-card);
    padding: 20px 24px;
    border-radius: var(--ok-card-radius);
    margin-bottom: var(--ok-gap);
    box-shadow: var(--ok-shadow-sm);
}

.ok-search-query {
    font-size: var(--ok-h2);
    font-weight: 700;
    color: var(--ok-primary);
}

.ok-search-count {
    font-size: 14px;
    color: var(--ok-text-meta);
    margin-top: 4px;
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */

.ok-ticker-bar {
    background: var(--ok-accent);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
}

.ok-ticker-label {
    display: inline-block;
    padding: 2px 12px;
    background: var(--ok-accent-dark);
    margin-right: 16px;
    font-weight: 600;
}

.ok-ticker-content {
    display: inline-block;
    animation: okTickerScroll 30s linear infinite;
}

@keyframes okTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.ok-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.ok-clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.ok-text-center { text-align: center; }
.ok-mt-0 { margin-top: 0; }
.ok-mb-0 { margin-bottom: 0; }
.ok-mb-sm { margin-bottom: var(--ok-gap-sm); }
.ok-mb-md { margin-bottom: var(--ok-gap); }
.ok-mb-lg { margin-bottom: 30px; }

/* ==========================================================================
   RESPONSIVE — MOBILE FIRST
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1084px) {
    .ok-container {
        min-width: 0;
    }

    .ok-content-sidebar-wrap {
        flex-direction: column;
    }

    .ok-sidebar {
        width: 100%;
    }

    .ok-ad-zone-sidebar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --ok-gap: 14px;
    }

    .ok-hero-grid {
        grid-template-columns: 1fr;
    }

    .ok-featured-card {
        flex-direction: column;
    }

    .ok-featured-card .ok-card-image-wrap {
        width: 100%;
    }

    .ok-featured-card .ok-card-body {
        padding: 14px;
    }

    .ok-small-cards-grid {
        grid-template-columns: 1fr;
    }

    .ok-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ok-archive-item .ok-archive-thumb {
        width: 110px;
        height: 75px;
    }

    .ok-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ok-footer-info {
        flex-direction: column;
        gap: 12px;
    }

    /* Header responsive — scale down on mobile */
    .ok-header-main {
        padding: 16px 0 12px;
    }

    .ok-header-logo-text {
        font-size: 32px;
    }

    .ok-header-logo-img {
        max-height: 50px;
    }

    .ok-header-datetime {
        gap: 16px;
        font-size: 13px;
    }

    .ok-header-tagline {
        font-size: 12px;
    }

    /* Hide desktop nav, show hamburger only */
    .ok-nav-menu {
        display: none;
    }

    .ok-nav-right .ok-nav-special-item:not(.ok-hamburger-btn) {
        display: none;
    }

    .ok-hamburger-btn {
        display: flex;
    }

    .ok-header-banner-ad {
        display: none;
    }

    .ok-ad-zone-leaderboard {
        max-width: 100%;
        min-height: 50px;
    }
}

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

    .ok-hero-title {
        font-size: 26px;
    }

    .ok-single-title {
        font-size: 28px;
    }

    .ok-section-title {
        font-size: 26px;
    }

    .ok-small-card .ok-card-title {
        font-size: 18px;
    }

    .ok-featured-card .ok-card-title {
        font-size: 22px;
    }

    .ok-404-number {
        font-size: 60px;
    }
}

/* ==========================================================================
   GENERATEPRESS OVERRIDES — CLEANUP
   Catch-all for any remaining GP default styles that interfere.
   ========================================================================== */

/* GP sometimes wraps content in .grid-container — force our width */
.grid-container {
    max-width: var(--ok-container-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Remove GP default header/footer remnants (hooks remove them, this is fallback) */
.ok-custom-layout .site-header,
.ok-custom-layout .site-footer:not(.ok-footer),
.ok-custom-layout #secondary {
    display: none !important;
}

/* GP's default content wrapper — ensure it doesn't fight our layout */
.ok-custom-layout .site-content {
    padding: 0 !important;
}

/* Force our font on GP-generated elements */
.site-title,
.site-description,
.main-navigation,
.entry-title,
.entry-content,
.comment-body,
.widget-title {
    font-family: var(--ok-font) !important;
}

/* Override GP link colors */
body a {
    color: var(--ok-text);
}

body a:hover {
    color: var(--ok-accent);
}

/* GP navigation overrides — in case GP nav leaks through */
.main-navigation {
    display: none !important;
}

/* GP generates #primary with padding — remove it */
#primary {
    padding: 0;
    margin: 0;
    width: 100%;
}
