/*
Theme Name: IndiaChron Theme
Theme URI: https://indiachron.com
Description: A modern, elegant news theme for The India Chron with hero section, 7 category panels, and comprehensive theme options.
Version: 2.1.0
Author: Vipul
Text Domain: indiachron
License: GNU General Public License v2 or later
*/

/* ========== CSS VARIABLES ========== */
:root {
    --color-primary: #8B5E3C;
    --color-primary-dark: #6F4A2E;
    --color-primary-light: #F5EDE6;
    --color-dark: #111827;
    --color-text: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-light: #9ca3af;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-bg: #f9fafb;
    --color-white: #ffffff;
    --color-accent-red: #ef4444;
    --color-accent-blue: #3b82f6;
    --color-accent-orange: #f59e0b;
    --color-accent-purple: #8b5cf6;
    --color-accent-green: #10b981;
    --color-accent-pink: #ec4899;
    --color-accent-indigo: #6366f1;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
    --radius: 6px;
    --radius-lg: 10px;
    --transition: .25s cubic-bezier(.4,0,.2,1);
    --container: 1240px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--color-primary); color: #fff; }

/* Global overflow prevention */
.container, .entry-content, .card-body, .hl-content, .list-body, .archive-hero, .search-hero, .author-hero {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100%;
    width: 100%;
}
.entry-content img {
    height: auto;
}
.entry-content table {
    width: 100%;
    overflow-x: auto;
    display: block;
}
.entry-content pre {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive oEmbed */
.ic-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--radius);
}
.ic-embed-wrap iframe,
.ic-embed-wrap embed,
.ic-embed-wrap object,
.ic-embed-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}
.ic-embed-wrap.ic-embed-flat {
    position: relative;
    padding-bottom: 0;
    height: auto;
    overflow: hidden;
}
.ic-embed-wrap.ic-embed-flat blockquote,
.ic-embed-wrap.ic-embed-flat .twitter-tweet,
.ic-embed-wrap.ic-embed-flat .instagram-media {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}
.ic-embed-wrap.ic-embed-flat .instagram-media,
.ic-embed-wrap.ic-embed-flat .twitter-tweet {
    margin: 0 auto !important;
}
.ic-embed-wrap.ic-embed-flat .fb-post,
.ic-embed-wrap.ic-embed-flat .fb-video {
    max-width: 100%;
    overflow: hidden;
}
.ic-embed-wrap.ic-embed-flat .fb-post > span,
.ic-embed-wrap.ic-embed-flat .fb-video > span {
    max-width: 100% !important;
}
.ic-embed-wrap.ic-embed-flat .fb-post iframe,
.ic-embed-wrap.ic-embed-flat .fb-video iframe {
    max-width: 100% !important;
}
.entry-content .wp-block-embed {
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
}
.entry-content .wp-block-embed .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.entry-content .wp-block-embed .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP BAR (BREAKING NEWS TICKER) ========== */
.top-bar {
    background: var(--color-dark);
    color: #d1d5db;
    font-size: 13px;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}
.top-bar .container {
    display: flex;
    align-items: center;
    min-height: 36px;
}
.top-bar-date {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,.1);
    margin-right: 20px;
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.top-bar-links {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
.top-bar-links a {
    color: #9ca3af;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .3px;
    transition: color var(--transition);
}
.top-bar-links a:hover { color: #fff; }

/* ========== HEADER ========== */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
    border-bottom: 1px solid var(--color-border);
}
.site-header.scrolled {
    box-shadow: var(--shadow-lg);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary) !important;
}
.site-logo img { max-height: 44px; width: auto; }
.site-title-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -.5px;
}
.site-title-text span { color: var(--color-primary); }
.site-title-text.footer-logo,
.site-title-text.footer-logo span { color: #fff; }

/* Navigation */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: .2px;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 3px 3px 0 0;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a { color: var(--color-primary); }
.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item a::after,
.main-nav ul li.current_page_item a::after { transform: scaleX(1); }

/* Header right */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--color-text-secondary);
    border-radius: 50%;
    transition: all var(--transition);
    font-size: 18px;
}
.header-search-btn:hover {
    background: var(--color-border-light);
    color: var(--color-primary);
}

/* Mobile toggle - inside header-actions */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all .3s ease;
    position: absolute;
}
.menu-toggle .bar:nth-child(1) { transform: translateY(-7px); }
.menu-toggle .bar:nth-child(3) { transform: translateY(7px); }
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg); }

/* ========== HERO SECTION — 3 COLUMN ========== */
.hero-section {
    background: var(--color-white);
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--color-border);
}
.hero-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    height: 360px;
}

/* Hero image cards (col 1 & 2) */
.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    display: block;
    height: 100%;
}
.hero-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hero-card:hover .hero-card-img { transform: scale(1.03); }
.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 45%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
}
.hero-card-title {
    font-family: var(--font-display);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 6px;
}
.hero-card--main .hero-card-title { font-size: 22px; }
.hero-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,.7);
}
.hero-card-meta .sep { opacity: .4; }

/* Cat badge (shared) */
.cat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: .8px;
    line-height: 1;
    width: fit-content;
}
.cat-badge a { color: #fff; }

/* Hero list (col 3) */
.hero-list {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hero-list-heading {
    display: none;
}
.hero-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: background .2s;
    flex: 1;
}
.hero-list-item:first-child { padding-top: 0; }
.hero-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-list-item:hover { background: rgba(0,0,0,.02); }
.hero-list-thumb {
    width: 68px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.hero-list-num {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}
.hero-list-body { flex: 1; min-width: 0; }
.hero-list-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: .3px;
}
.hero-list-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}
.hero-list-sep {
    color: var(--color-text-light);
    font-size: 10px;
    opacity: .5;
}
.hero-list-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-list-item:hover .hero-list-title { color: var(--color-primary); }
.hero-list-time {
    font-size: 11px;
    color: var(--color-text-light);
}

/* ========== TRENDING BAR ========== */
.trending-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}
.trending-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}
.trending-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.trending-label .dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-red);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}
.trending-items {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.trending-items::-webkit-scrollbar { display: none; }
.trending-items a {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    transition: color var(--transition);
    position: relative;
    padding-left: 14px;
}
.trending-items a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--color-border);
    border-radius: 50%;
    transform: translateY(-50%);
}
.trending-items a:hover { color: var(--color-primary); }

/* ========== CATEGORY PANELS ========== */
.category-panel {
    padding: 40px 0;
}
.category-panel:nth-child(odd) { background: var(--color-white); }
.category-panel:nth-child(even) { background: var(--color-bg); }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}
.panel-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-dark);
    position: relative;
    padding-left: 16px;
}
.panel-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 4px;
}
.panel-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}
.panel-view-all:hover { gap: 10px; }
.panel-view-all svg { width: 16px; height: 16px; }

/* Panel grid: first card large, rest small */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Post Card */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.post-card .card-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.post-card .card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.post-card:hover .card-thumb { transform: scale(1.06); }
.post-card .card-thumb-wrap .cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.post-card .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card .card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-dark);
    margin-bottom: 8px;
    letter-spacing: -.2px;
}
.post-card .card-title a { color: var(--color-dark); }
.post-card .card-title a:hover { color: var(--color-primary); }
.post-card .card-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card .card-meta {
    font-size: 12px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
}
.post-card .card-meta .author { color: var(--color-text-secondary); font-weight: 600; }
.post-card .card-meta .sep { color: var(--color-border); }

/* ========== FEATURED PANEL (first panel variant) ========== */
.panel-featured .panel-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}
.panel-featured .post-card:first-child {
    grid-row: 1 / 3;
}
.panel-featured .post-card:first-child .card-thumb-wrap {
    aspect-ratio: auto;
    height: 100%;
}
.panel-featured .post-card:first-child .card-title {
    font-size: 22px;
}

/* ========== LIST CARD (for sidebar-style lists) ========== */
.list-card {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition);
}
.list-card:last-child { border-bottom: none; }
.list-card .list-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    min-width: 28px;
    flex-shrink: 0;
}
.list-card .list-thumb {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.list-card .list-body { flex: 1; min-width: 0; }
.list-card .list-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-card .list-title a { color: var(--color-dark); }
.list-card .list-title a:hover { color: var(--color-primary); }
.list-card .list-meta {
    font-size: 12px;
    color: var(--color-text-light);
}

/* ========== CONTENT AREA (SINGLE/PAGE/ARCHIVE) ========== */
.content-area {
    padding: 32px 0 48px;
}
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* ========== ARCHIVE / CATEGORY / TAG / SEARCH ========== */
.archive-hero {
    background: var(--color-dark);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,186,177,.15) 0%, transparent 50%);
}
.archive-hero .container { position: relative; z-index: 1; }
.archive-hero .breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
}
.archive-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.archive-hero .breadcrumb a:hover { color: var(--color-primary); }
.archive-hero h1 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 8px;
}
.archive-hero .archive-desc {
    color: rgba(255,255,255,.6);
    font-size: 15px;
    max-width: 600px;
    line-height: 1.6;
}
.archive-hero .archive-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    background: rgba(255,255,255,.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

/* Archive grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== AUTHOR PAGE ========== */
.author-hero {
    background: var(--color-dark);
    padding: 48px 0;
    position: relative;
}
.author-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,186,177,.12) 0%, transparent 60%);
}
.author-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.15);
    object-fit: cover;
    flex-shrink: 0;
}
.author-info h1 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 4px;
}
.author-info .author-bio {
    color: rgba(255,255,255,.6);
    font-size: 15px;
    line-height: 1.6;
    max-width: 500px;
}
.author-info .author-role {
    display: inline-block;
    background: rgba(13,186,177,.2);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.author-stats {
    display: flex;
    gap: 24px;
    margin-top: 14px;
}
.author-stat {
    font-size: 13px;
    color: rgba(255,255,255,.5);
}
.author-stat strong {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: block;
}

/* ========== SEARCH PAGE ========== */
.search-hero {
    background: var(--color-dark);
    padding: 48px 0;
}
.search-hero h1 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}
.search-hero h1 span {
    color: var(--color-primary);
    font-style: italic;
}
.search-hero .search-form-wrap {
    margin-top: 20px;
    max-width: 560px;
}
.search-hero .search-form-wrap form {
    display: flex;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
}
.search-hero .search-form-wrap input[type="search"],
.search-hero .search-form-wrap input[type="text"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-family: var(--font-body);
}
.search-hero .search-form-wrap input::placeholder { color: rgba(255,255,255,.4); }
.search-hero .search-form-wrap button {
    padding: 14px 24px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.search-hero .search-form-wrap button:hover { background: var(--color-primary-dark); }

/* ========== 404 PAGE ========== */
.error-404-section {
    padding: 80px 0 100px;
    text-align: center;
    background: var(--color-white);
}
.error-404-section .error-code {
    font-family: var(--font-display);
    font-size: 140px;
    font-weight: 900;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -6px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-404-section h1 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}
.error-404-section p {
    color: var(--color-text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    padding: 13px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: all var(--transition);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,186,177,.3);
}
.error-404-section .error-suggestions {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}
.error-404-section .error-suggestions h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

/* ========== SINGLE POST ========== */
.single-article {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
}
.single-article .entry-header { padding: 32px 32px 0; }
.single-article .entry-cat-badge { margin-bottom: 14px; }
.single-article .entry-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.25;
    letter-spacing: -.3px;
    margin-bottom: 16px;
}
.entry-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin: 0 32px;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}
.entry-meta-bar .author-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text);
}
.entry-meta-bar .author-chip img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.single-article .featured-image {
    margin: 20px 0;
    border-radius: 0;
}
.single-article .featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.single-article .entry-content {
    padding: 8px 32px 32px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-text);
}
.single-article .entry-content p { margin-bottom: 18px; }
.single-article .entry-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin: 32px 0 14px;
    color: var(--color-dark);
}
.single-article .entry-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 28px 0 12px;
    color: var(--color-dark);
}
.single-article .entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--color-primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}
.single-article .entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}
.single-article .entry-content ul,
.single-article .entry-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
    list-style: disc;
}
.single-article .entry-content ol { list-style: decimal; }
.single-article .entry-content li { margin-bottom: 6px; }
.single-article .entry-content a { color: var(--color-primary); font-weight: 500; }
.single-article .entry-content a:hover { text-decoration: underline; }

/* Tags */
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 32px 24px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 20px;
    margin-top: 8px;
}
.entry-tags .tag-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-right: 4px;
}
.entry-tags a {
    display: inline-block;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.entry-tags a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
.post-nav-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
}
.post-nav-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.post-nav-item .nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.post-nav-item .nav-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
}
.post-nav-item.next { text-align: right; }

/* ========== SIDEBAR ========== */
.sidebar { position: sticky; top: 80px; }
.widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    padding: 24px;
    margin-bottom: 20px;
}
.widget-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    transition: color var(--transition);
}
.widget ul li a:hover { color: var(--color-primary); }

/* ========== PAGINATION ========== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 40px 0 12px;
}
.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: all var(--transition);
}
.pagination-wrap a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination-wrap .current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination-wrap .dots {
    border: none;
    background: none;
    color: var(--color-text-light);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--color-dark);
    color: #9ca3af;
}
.footer-main {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-nav {
    display: flex;
    gap: 0;
}
.footer-nav a {
    color: #d1d5db;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-primary); }
.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 14px rgba(13,186,177,.35);
    cursor: pointer;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.search-overlay-inner {
    width: 90%;
    max-width: 620px;
    text-align: center;
}
.search-overlay form {
    display: flex;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.search-overlay input[type="text"] {
    flex: 1;
    padding: 18px 24px;
    font-size: 18px;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-family: var(--font-body);
}
.search-overlay input::placeholder { color: rgba(255,255,255,.35); }
.search-overlay button[type="submit"] {
    padding: 18px 28px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition);
}
.search-overlay button:hover { background: var(--color-primary-dark); }
.search-overlay .close-hint {
    color: rgba(255,255,255,.35);
    font-size: 13px;
    margin-top: 16px;
}

/* ========== SHARE BAR ========== */
.share-bar {
    padding: 20px 32px 28px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    line-height: 1;
}
.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.share-btn svg { flex-shrink: 0; }
.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-x:hover { background: #000; color: #fff; border-color: #000; }
.share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-email:hover { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.share-copy:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ========== HEADLINES PANEL ========== */
.headlines-panel {
    padding: 48px 0 56px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}
.headlines-panel .panel-header { border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
.headlines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.headline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border-light);
    border-right: 1px solid var(--color-border-light);
    transition: background var(--transition);
    color: var(--color-text);
}
.headline-item:hover {
    background: var(--color-bg);
}
.headline-item:nth-child(3n) {
    border-right: none;
}
.hl-content { flex: 1; min-width: 0; }
.hl-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-dark);
    margin-bottom: 4px;
    transition: color var(--transition);
}
.headline-item:hover .hl-title { color: var(--color-primary); }
.hl-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-light);
}
.panel-view-all--light { color: var(--color-primary); }
.panel-view-all--light:hover { color: var(--color-primary-dark); }
.hl-arrow {
    color: var(--color-border);
    flex-shrink: 0;
    transition: all var(--transition);
}
.headline-item:hover .hl-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-3col { grid-template-columns: 1fr 1fr; height: 320px; }
    .hero-list { display: none; }
    .hero-card-title { font-size: 18px; }
    .panel-grid { grid-template-columns: repeat(3, 1fr); }
    .content-layout { grid-template-columns: 1fr 300px; gap: 28px; }
    .main-nav ul li a { padding: 20px 12px; font-size: 13px; }
    .headlines-grid { grid-template-columns: repeat(2, 1fr); }
    .headline-item:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.06); }
    .headline-item:nth-child(2n) { border-right: none; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-xl);
        z-index: 100;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul li a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--color-border-light);
        font-size: 14px;
    }
    .main-nav ul li a::after { display: none; }

    /* Overflow fixes */
    body { overflow-x: hidden; }
    .single-article { overflow: hidden; }
    .single-article .entry-content { overflow: hidden; }
    .single-article .featured-image img { width: 100%; height: auto; }
    .category-panel .container,
    .headlines-panel .container,
    .hero-section .container,
    .content-area .container { overflow: hidden; }

    .hero-3col {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-card { height: 220px; }
    .hero-card-title { font-size: 18px; }
    .hero-card-overlay { padding: 16px 16px; }
    .hero-list {
        display: block;
        height: auto;
        max-height: none;
    }

    .panel-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .panel-title { font-size: 22px; }

    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }

    .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .author-profile { flex-direction: column; text-align: center; }
    .author-info .author-bio { max-width: none; }

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

    .single-article .entry-header { padding: 24px 20px 0; }
    .single-article .entry-title { font-size: 26px; }
    .single-article .entry-content { padding: 8px 20px 24px; font-size: 16px; }
    .entry-meta-bar { margin: 0 20px; }
    .entry-tags { padding: 16px 20px 20px; }
    .share-bar { padding: 16px 20px 24px; }
    .share-btn span { display: none; }
    .share-btn { padding: 10px; }

    .footer-main .container { flex-direction: column; gap: 16px; text-align: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }

    .top-bar-links { display: none; }

    .trending-bar { display: none; }

    .headlines-grid { grid-template-columns: 1fr; }
    .headline-item:nth-child(3n) { border-right: none; }
    .headline-item { border-right: none; padding: 14px 16px; }
    .hl-title { font-size: 15px; }
}

@media (max-width: 480px) {
    .panel-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .hero-card { height: 180px; }
    .hero-card-title { font-size: 16px; }
    .panel-title { font-size: 19px; }
    .archive-hero h1 { font-size: 28px; }
    .author-info h1 { font-size: 24px; }
    .error-404-section .error-code { font-size: 100px; }
    .author-stats { flex-direction: column; gap: 12px; }
    .single-article .entry-title { font-size: 22px; }
    .container { padding: 0 15px; }
    .single-article .entry-header { padding: 20px 15px 0; }
    .single-article .entry-content { padding: 8px 15px 20px; }
    .entry-meta-bar { margin: 0 15px; }
    .entry-tags { padding: 14px 15px 18px; }
    .share-bar { padding: 14px 15px 20px; }
}

/* Placeholder thumb */
.no-thumb {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
}
