/*
Theme Name: Yoruba Times Custom
Theme URI: https://theyorubatimes.com
Author: The Yoruba Times Team
Author URI: https://theyorubatimes.com
Description: A modern, responsive news theme for The Yoruba Times
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yorubatimes-custom
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
    --primary:       #c0392b;
    --primary-dark:  #992d22;
    --primary-light: #e74c3c;
    --dark:          #0f172a;
    --dark-mid:      #1e293b;
    --dark-soft:     #334155;
    --text:          #111827;
    --text-mid:      #374151;
    --text-muted:    #6b7280;
    --text-light:    #9ca3af;
    --bg:            #f1f5f9;
    --bg-white:      #ffffff;
    --border:        #e2e8f0;
    --border-dark:   #cbd5e1;
    --font-sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-serif:    Georgia, 'Times New Roman', serif;
    --radius-sm:     4px;
    --radius:        6px;
    --radius-lg:     10px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
    --shadow:        0 2px 8px rgba(0,0,0,0.10);
    --shadow-lg:     0 4px 20px rgba(0,0,0,0.12);
    --transition:    0.2s ease;
    --max-width:     1240px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

button {
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
}

/* =========================================
   UTILITY
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BREAKING NEWS TICKER
   ========================================= */
.breaking-bar {
    background: var(--primary);
    color: #fff;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    height: 38px;
}

.breaking-label {
    background: var(--primary-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 18px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.ticker-track {
    display: flex;
    gap: 60px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255,255,255,0.95);
}

.ticker-item a {
    color: inherit;
}

.ticker-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.ticker-item::before {
    content: '//';
    margin-right: 8px;
    opacity: 0.6;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   HEADER - TOP BAR
   ========================================= */
.header-topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-family: var(--font-sans);
    padding: 0 20px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.topbar-date::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-social a {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 600;
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topbar-social a:hover {
    color: #fff;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.15);
}

.topbar-search-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition);
    padding: 0;
    font-family: var(--font-sans);
}

.topbar-search-btn:hover {
    color: #fff;
}

/* =========================================
   HEADER - LOGO AREA
   ========================================= */
.header-main {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.header-main-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-mark {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    flex-shrink: 0;
    line-height: 1;
}

.logo-text .site-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.logo-text .site-name span {
    color: var(--primary);
}

.logo-text .site-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-subscribe {
    background: var(--primary);
    color: #fff;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background var(--transition), transform var(--transition);
    text-transform: uppercase;
}

.btn-subscribe:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.header-nav {
    background: var(--dark-mid);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.primary-nav li {
    position: relative;
}

.primary-nav li a {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 14px 16px;
    transition: all var(--transition);
    white-space: nowrap;
}

.primary-nav li a:hover,
.primary-nav li.current-menu-item a {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.primary-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width var(--transition);
}

.primary-nav li a:hover::after,
.primary-nav li.current-menu-item a::after {
    width: 100%;
}

.nav-search-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 16px;
    cursor: pointer;
    padding: 10px 14px;
    transition: color var(--transition);
}

.nav-search-btn:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    max-width: var(--max-width);
    margin: 28px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-main {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-main .hero-thumb {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-mid);
    display: block;
}

.hero-main .hero-thumb img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.hero-main .hero-body {
    padding: 24px 28px 28px;
}

.hero-main .hero-headline {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 12px;
}

.hero-main .hero-headline a:hover {
    color: var(--primary);
}

.hero-main .hero-excerpt {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 16px;
}

.hero-main .hero-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-main .hero-meta .author-name {
    color: var(--text-mid);
    font-weight: 600;
}

/* Hero sidebar list */
.hero-sidebar {
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-side-item {
    background: var(--bg-white);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.hero-side-item:last-child {
    border-bottom: none;
}

.hero-side-item:hover {
    background: #fafafa;
}

.hero-side-item .side-thumb {
    width: 100%;
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.hero-side-item .side-headline {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 8px;
    flex: 1;
}

.hero-side-item .side-headline a:hover {
    color: var(--primary);
}

.hero-side-item .side-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* =========================================
   CATEGORY TAGS
   ========================================= */
.cat-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Category color variants */
.cat-tag.nigeria       { background: #c0392b; }
.cat-tag.diaspora,
.cat-tag.world         { background: #2563eb; }
.cat-tag.culture       { background: #d97706; }
.cat-tag.health        { background: #059669; }
.cat-tag.politics      { background: #7c3aed; }
.cat-tag.business      { background: #0891b2; }
.cat-tag.sports,
.cat-tag.sport         { background: #16a34a; }
.cat-tag.science       { background: #0f766e; }
.cat-tag.opinion       { background: #b45309; }

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-wrap {
    max-width: var(--max-width);
    margin: 36px auto 0;
    padding: 0 20px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head-bar {
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-head-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
    text-transform: uppercase;
}

.section-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-view-all:hover {
    color: var(--primary-dark);
}

.section-view-all::after {
    content: '→';
}

/* =========================================
   ARTICLE GRID (3 column)
   ========================================= */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.article-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-dark);
}

.article-card .card-image {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-soft);
    flex-shrink: 0;
    display: block;
    overflow: hidden;
}

.article-card .card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.04);
}

.article-card .card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card .card-headline {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 10px;
    flex: 1;
}

.article-card .card-headline a:hover {
    color: var(--primary);
}

.article-card .card-excerpt {
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.card-meta-sep {
    color: var(--border-dark);
}

/* =========================================
   CATEGORY SECTION (4-column cards)
   ========================================= */
.cat-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    margin-top: 36px;
}

.cat-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    box-shadow: var(--shadow);
}

.cat-card .cc-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-soft);
    flex-shrink: 0;
}

.cat-card .cc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-card .cc-headline {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    flex: 1;
    margin-bottom: 10px;
}

.cat-card .cc-headline a:hover {
    color: var(--primary);
}

.cat-card .cc-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* =========================================
   LOAD MORE / PAGINATION
   ========================================= */
.load-more-wrap {
    text-align: center;
    padding: 8px 0 36px;
}

.btn-load-more {
    display: inline-block;
    background: var(--bg-white);
    color: var(--text);
    border: 1.5px solid var(--border-dark);
    border-radius: 4px;
    padding: 11px 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition);
}

.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Pagination */
.pagination-wrap {
    margin-top: 32px;
    margin-bottom: 40px;
}

.pagination-wrap .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    transition: all var(--transition);
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
    background: var(--dark);
    color: #fff;
    padding: 52px 20px;
    margin-top: 40px;
}

.newsletter-inner {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.newsletter-inner p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-sans);
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: background var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-input:focus {
    background: rgba(255,255,255,0.15);
}

.newsletter-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background var(--transition);
    font-family: var(--font-sans);
    white-space: nowrap;
}

.newsletter-submit:hover {
    background: var(--primary-light);
}

.newsletter-msg {
    display: none;
    margin-top: 12px;
    font-size: 13.5px;
    color: #4ade80;
    font-weight: 500;
}

.newsletter-msg.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--dark-mid);
    color: rgba(255,255,255,0.75);
    padding: 52px 20px 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-about-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 18px;
}

.footer-social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-block;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition);
}

.footer-social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links li a::before {
    content: '›';
    color: var(--primary);
    font-size: 16px;
    line-height: 1;
}

.footer-links li a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: rgba(255,255,255,0.75);
}

/* =========================================
   MOBILE NAV OVERLAY
   ========================================= */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 1000;
    padding: 24px 24px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.mobile-nav-logo span {
    color: var(--primary);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}

.mobile-nav-close:hover {
    color: #fff;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-item a {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    font-weight: 700;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color var(--transition);
}

.mobile-nav-item a:hover {
    color: var(--primary);
}

/* =========================================
   SEARCH MODAL
   ========================================= */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.92);
    z-index: 1001;
    padding: 80px 24px;
    backdrop-filter: blur(4px);
}

.search-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.search-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}

.search-modal-close:hover {
    color: #fff;
}

.search-modal-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-modal-box {
    width: 100%;
    max-width: 620px;
    position: relative;
}

.search-modal-input {
    width: 100%;
    padding: 18px 58px 18px 20px;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color var(--transition);
}

.search-modal-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.search-modal-input:focus {
    border-color: var(--primary);
}

.search-modal-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}

/* =========================================
   SCROLL TO TOP
   ========================================= */
.scroll-top {
    display: none;
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--dark-mid);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    z-index: 99;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.scroll-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* =========================================
   SINGLE POST
   ========================================= */
.single-wrap {
    max-width: var(--max-width);
    margin: 32px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.single-article {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-article-hero {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-soft);
}

.single-article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.single-article-body {
    padding: 36px 40px 44px;
}

.single-article-body .single-headline {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 18px;
    margin-top: 10px;
}

.single-article-body .single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.single-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meta-author-name {
    font-weight: 600;
    color: var(--text-mid);
}

.meta-sep {
    color: var(--border-dark);
}

.single-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-mid);
    font-family: var(--font-serif);
}

.single-content p {
    margin-bottom: 24px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.single-content h2 { font-size: 22px; }
.single-content h3 { font-size: 19px; }

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}

.single-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    margin: 24px 0;
    background: #fef2f2;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 16.5px;
    color: var(--text-mid);
    font-style: italic;
}

.single-content ul,
.single-content ol {
    margin: 0 0 24px 24px;
}

.single-content li {
    margin-bottom: 8px;
}

.single-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(192,57,43,0.3);
}

.single-content a:hover {
    text-decoration-color: var(--primary);
}

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px 40px;
    border-top: 1px solid var(--border);
}

.post-nav-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color var(--transition);
}

.post-nav-item:hover {
    border-color: var(--primary);
}

.post-nav-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 6px;
}

.post-nav-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

/* Single sidebar */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.widget-head {
    background: var(--dark-mid);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 11px 18px;
}

.widget-body {
    padding: 16px 18px;
}

/* =========================================
   CATEGORY PAGE
   ========================================= */
.cat-page-wrap {
    max-width: var(--max-width);
    margin: 32px auto;
    padding: 0 20px;
}

.cat-page-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.cat-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.cat-page-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1080px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        flex-direction: row;
        gap: 2px;
    }

    .hero-side-item {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }

    .hero-side-item:last-child {
        border-right: none;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .single-wrap {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root { --max-width: 100%; }

    .breaking-ticker { display: none; }

    .header-topbar { display: none; }

    .header-main {
        padding: 12px 16px;
    }

    .header-cta .btn-subscribe {
        display: none;
    }

    .primary-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-search-btn {
        display: none;
    }

    .hero-section {
        margin-top: 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .hero-main .hero-thumb,
    .hero-main .hero-thumb img {
        height: 240px;
    }

    .hero-main .hero-headline { font-size: 20px; }

    .hero-sidebar {
        flex-direction: column;
    }

    .hero-side-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .single-article-body {
        padding: 24px 20px 32px;
    }

    .single-article-body .single-headline {
        font-size: 22px;
    }

    .single-content { font-size: 15.5px; }

    .post-nav {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }

    .cat-page-wrap {
        margin-top: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }

    .logo-mark { width: 42px; height: 42px; font-size: 17px; }
    .logo-text .site-name { font-size: 18px; }
}
