/*
Theme Name: PaltakNews
Theme URI: https://paltaknews.in
Author: PaltakNews Team
Author URI: https://paltaknews.in
Description: Professional Regional News Portal Theme - Red & White Edition
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paltaknews
Tags: news, magazine, regional, hindi, marathi, gujarati, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS VARIABLES & ROOT
============================================================ */
:root {
    --color-primary: #CC0000;
    --color-primary-dark: #990000;
    --color-primary-light: #FF3333;
    --color-secondary: #1a1a1a;
    --color-accent: #FF6600;
    --color-white: #FFFFFF;
    --color-off-white: #F8F8F8;
    --color-light-gray: #F0F0F0;
    --color-mid-gray: #CCCCCC;
    --color-dark-gray: #555555;
    --color-text: #222222;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    --color-breaking: #FF0000;

    --font-heading: 'Noto Sans Devanagari', 'Mukta', Georgia, serif;
    --font-body: 'Noto Sans', 'Hind', Arial, sans-serif;
    --font-ui: 'Roboto', sans-serif;

    --header-height: 70px;
    --ticker-height: 36px;
    --sidebar-width: 300px;
    --container-max: 1280px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.25s ease;
    --transition-fast: 0.15s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover { color: var(--color-primary); }

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

ul, ol { list-style: none; }

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 700;
}

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

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

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

.text-red { color: var(--color-primary); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ============================================================
   TOP BAR (Date, Social, Ads)
============================================================ */
.top-bar {
    background: var(--color-secondary);
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 2px solid var(--color-primary);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar__date { color: #aaa; }
.top-bar__date span { color: var(--color-primary); font-weight: 600; margin-right: 8px; }

.top-bar__social { display: flex; gap: 12px; align-items: center; }
.top-bar__social a {
    color: #aaa;
    font-size: 14px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}
.top-bar__social a:hover { color: var(--color-primary); }

.top-bar__epaper a {
    background: var(--color-primary);
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo .text-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.site-logo .text-logo span {
    display: block;
    font-size: 13px;
    color: var(--color-secondary);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-ad { flex: 1; text-align: center; max-width: 728px; }

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search form {
    display: flex;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.header-search input {
    padding: 8px 12px;
    border: none;
    outline: none;
    min-width: 200px;
    font-size: 14px;
}

.header-search button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
    transition: background var(--transition-fast);
}

.header-search button:hover { background: var(--color-primary-dark); }

/* ============================================================
   PRIMARY NAVIGATION
============================================================ */
.primary-nav {
    background: var(--color-primary);
}

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

.primary-nav .nav-menu {
    display: flex;
    align-items: center;
}

.primary-nav .nav-menu > li { position: relative; }

.primary-nav .nav-menu > li > a {
    display: block;
    padding: 12px 16px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: background var(--transition-fast);
    border-right: 1px solid rgba(255,255,255,0.15);
}

.primary-nav .nav-menu > li > a:hover,
.primary-nav .nav-menu > li.current-menu-item > a {
    background: var(--color-primary-dark);
    color: white;
}

.primary-nav .nav-menu > li:first-child > a { border-left: 1px solid rgba(255,255,255,0.15); }

/* Dropdown */
.primary-nav .nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--color-primary);
    z-index: 999;
    display: none;
    animation: dropDown 0.2s ease;
}

@keyframes dropDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.primary-nav .nav-menu li:hover > .sub-menu { display: block; }

.primary-nav .nav-menu .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.primary-nav .nav-menu .sub-menu li a:hover {
    background: var(--color-off-white);
    color: var(--color-primary);
    padding-left: 22px;
}

/* Live TV Button */
.nav-live-tv {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-accent);
    color: white;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
    margin: 4px;
    animation: pulseBg 2s ease-in-out infinite;
}

@keyframes pulseBg {
    0%, 100% { background: var(--color-accent); }
    50% { background: #FF8800; }
}

.nav-live-tv::before {
    content: '●';
    animation: blink 1s step-end infinite;
    font-size: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all var(--transition);
}

/* ============================================================
   BREAKING NEWS TICKER
============================================================ */
.breaking-ticker {
    background: var(--color-white);
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: var(--ticker-height);
}

.breaking-ticker__label {
    background: var(--color-breaking);
    color: white;
    font-weight: 800;
    font-size: 12px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    flex-shrink: 0;
}

.breaking-ticker__label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-left: 10px solid var(--color-breaking);
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

.breaking-ticker__scroll {
    flex: 1;
    overflow: hidden;
    padding-left: 20px;
}

.breaking-ticker__track {
    display: flex;
    gap: 60px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

.breaking-ticker__track:hover { animation-play-state: paused; }

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

.breaking-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.breaking-ticker__item::before {
    content: '▶';
    color: var(--color-primary);
    font-size: 10px;
}

.breaking-ticker__item a:hover { color: var(--color-primary); }

/* ============================================================
   WEATHER WIDGET (Header)
============================================================ */
.weather-widget-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #aaa;
}

.weather-widget-inline .temp {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.weather-widget-inline .city { font-size: 11px; }

/* ============================================================
   MAIN LAYOUT
============================================================ */
.site-main {
    padding: 20px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .content-area { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION HEADING
============================================================ */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
    position: relative;
}

.section-heading h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.section-heading .badge {
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading .view-all {
    margin-left: auto;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.section-heading .view-all:hover {
    background: var(--color-primary);
    color: white;
}

/* ============================================================
   HERO / FEATURED NEWS (Top Section)
============================================================ */
.hero-section { margin-bottom: 24px; }

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.hero-main {
    grid-row: span 2;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main:hover img { transform: scale(1.03); }

.hero-main .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 20px 20px;
}

.hero-main .card-category {
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-main .card-title {
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.hero-main .card-title a { color: white; }
.hero-main .card-title a:hover { color: #ffcccc; }

.hero-main .card-meta {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    display: flex;
    gap: 12px;
}

/* Side cards */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    flex: 1;
    min-height: 200px;
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-side-card:hover img { transform: scale(1.05); }

.hero-side-card .card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 14px 14px;
}

.hero-side-card .card-category {
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hero-side-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.hero-side-card .card-title a { color: white; }

/* ============================================================
   NEWS CARD (Standard)
============================================================ */
.news-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-card__thumb {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__thumb img { transform: scale(1.05); }

.news-card__body { padding: 14px; }

.news-card__category {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.news-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a:hover { color: var(--color-primary); }

.news-card__excerpt {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
}

.news-card__meta .author { color: var(--color-primary); font-weight: 600; }
.news-card__meta .time::before { content: '🕐 '; }

/* ============================================================
   NEWS GRID LAYOUTS
============================================================ */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   HORIZONTAL LIST CARD (Sidebar style)
============================================================ */
.list-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.list-card:last-child { border-bottom: none; }

.list-card__thumb {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.list-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-card:hover .list-card__thumb img { transform: scale(1.05); }

.list-card__body { flex: 1; }

.list-card__category {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.list-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card__title a:hover { color: var(--color-primary); }

.list-card__time {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ============================================================
   CATEGORY SECTION BLOCK
============================================================ */
.category-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* ============================================================
   VIDEO SECTION
============================================================ */
.video-section { margin-bottom: 24px; }

.video-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition);
}

.video-card:hover { transform: translateY(-3px); }

.video-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-card__thumb img { transform: scale(1.05); }

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(204, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: transform var(--transition), background var(--transition);
}

.video-card__thumb:hover .video-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
}

.video-card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

.video-card__body { padding: 12px; }

.video-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.video-modal.active { opacity: 1; visibility: visible; }

.video-modal__inner {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.video-modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius-md);
}

/* ============================================================
   PHOTO GALLERY (Lightbox)
============================================================ */
.gallery-section { margin-bottom: 24px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-grid .gallery-item:first-child { aspect-ratio: auto; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(204,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__overlay span {
    color: white;
    font-size: 30px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox__container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__caption {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-top: 12px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background var(--transition-fast);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--color-primary); }

.lightbox__close { top: -52px; right: 0; }
.lightbox__prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: -56px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   OPINION / EDITORIAL SECTION
============================================================ */
.opinion-section { margin-bottom: 24px; }

.opinion-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 16px;
    transition: transform var(--transition);
    border-left: 4px solid var(--color-primary);
}

.opinion-card:hover { transform: translateX(4px); }

.opinion-card__author-img {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary);
}

.opinion-card__author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opinion-card__body { flex: 1; }

.opinion-card__author-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.opinion-card__author-title {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.opinion-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.opinion-card__title a:hover { color: var(--color-primary); }

.opinion-card__excerpt {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   SPORTS / CRICKET SCOREBOARD
============================================================ */
.scoreboard-widget {
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.scoreboard-widget__header {
    background: var(--color-primary);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.scoreboard-widget__header::before {
    content: '🏏';
    font-size: 18px;
}

.scoreboard__match {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scoreboard__match:last-child { border-bottom: none; }

.scoreboard__series {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scoreboard__teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scoreboard__team {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scoreboard__team-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.scoreboard__team-flag {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.scoreboard__team-score {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.scoreboard__team-score .overs {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.scoreboard__status {
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
}

.scoreboard__live-badge {
    display: inline-block;
    background: #00CC44;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseBadge 1.5s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.sidebar-widget__header {
    background: var(--color-secondary);
    color: white;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid var(--color-primary);
}

.sidebar-widget__body { padding: 12px 16px; }

/* Trending numbers */
.trending-list .trending-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

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

.trending-item__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.trending-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.trending-item__title a:hover { color: var(--color-primary); }

.trending-item__views {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 3px;
}

/* Weather Sidebar */
.weather-full {
    text-align: center;
    padding: 20px;
}

.weather-full .temp-big {
    font-size: 56px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.weather-full .temp-unit { font-size: 24px; }

.weather-full .city-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 8px 0;
}

.weather-full .condition {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.weather-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.weather-stat { text-align: center; }
.weather-stat__val { font-weight: 700; font-size: 15px; }
.weather-stat__label { font-size: 11px; color: var(--color-text-light); }

/* ============================================================
   AD SLOTS
============================================================ */
.ad-slot {
    background: var(--color-light-gray);
    border: 1px dashed var(--color-mid-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 12px;
    text-align: center;
    padding: 10px;
    margin: 16px 0;
}

.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle { min-height: 250px; width: 300px; }
.ad-slot--sidebar { min-height: 250px; }
.ad-slot--in-article { min-height: 100px; max-width: 100%; }

.ad-slot ins { display: block !important; }

/* ============================================================
   INFINITE SCROLL LOADER
============================================================ */
.infinite-loader {
    text-align: center;
    padding: 30px;
    display: none;
}

.infinite-loader.active { display: block; }

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.infinite-loader p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ============================================================
   SINGLE POST ARTICLE
============================================================ */
.article-header { margin-bottom: 24px; }

.article-breadcrumb {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.article-breadcrumb a { color: var(--color-primary); }
.article-breadcrumb .sep { color: var(--color-mid-gray); }

.article-category-tag {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 16px;
    border-left: 4px solid var(--color-primary);
    padding-left: 16px;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta__author {
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-meta__author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.article-meta__author-name { font-weight: 700; font-size: 14px; }
.article-meta__author-role { font-size: 12px; color: var(--color-text-light); }

.article-meta__info {
    font-size: 13px;
    color: var(--color-text-light);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-meta__info span { display: flex; align-items: center; gap: 4px; }

/* Social Share */
.social-share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.social-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border: none;
    transition: opacity var(--transition-fast);
}

.social-share__btn:hover { opacity: 0.85; }
.social-share__btn--fb { background: #1877F2; }
.social-share__btn--tw { background: #1DA1F2; }
.social-share__btn--wa { background: #25D366; }
.social-share__btn--tg { background: #0088CC; }
.social-share__btn--copy { background: var(--color-dark-gray); }

/* Featured Image */
.article-featured-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.article-featured-img img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-featured-img figcaption {
    background: var(--color-light-gray);
    padding: 8px 14px;
    font-size: 13px;
    color: var(--color-text-light);
    font-style: italic;
}

/* Article Content */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    font-family: var(--font-body);
}

.article-content p { margin-bottom: 20px; }

.article-content h2 {
    font-size: 24px;
    color: var(--color-secondary);
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.article-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: var(--color-secondary);
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    background: var(--color-off-white);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 18px;
    font-style: italic;
    color: var(--color-text-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
    width: 100%;
}

.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
    list-style: disc;
}

.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }

.article-content a { color: var(--color-primary); text-decoration: underline; }

/* In-Article Ad */
.in-article-ad {
    margin: 24px 0;
    padding: 16px;
    background: var(--color-light-gray);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px dashed var(--color-mid-gray);
}

/* Tags */
.article-tags {
    margin: 24px 0;
    padding: 16px;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.article-tags__label {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-secondary);
}

.tag-link {
    display: inline-block;
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.tag-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Related Posts */
.related-posts { margin-top: 40px; }

.related-posts .grid-4 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   COMMENTS SECTION
============================================================ */
.comments-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-top: 24px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.comment-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-light-gray);
}

.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-body { flex: 1; }

.comment-author { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--color-text-light); }
.comment-text { font-size: 14px; margin-top: 6px; line-height: 1.6; }

/* ============================================================
   CATEGORY PAGE
============================================================ */
.category-header {
    background: var(--color-secondary);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--color-primary);
}

.category-header h1 {
    font-size: 28px;
    font-weight: 900;
    padding-left: 16px;
}

.category-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    padding-left: 16px;
    margin-top: 4px;
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--color-border);
    background: white;
    transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--color-secondary);
    color: rgba(255,255,255,0.8);
    margin-top: 40px;
}

.footer-top {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-widget__title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.footer-widget p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    transition: background var(--transition-fast);
}

.footer-social a:hover { background: var(--color-primary); }

.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}
.footer-links a::before { content: '›'; color: var(--color-primary); font-size: 18px; }
.footer-links a:hover { color: white; }

.footer-recent .list-card {
    padding: 8px 0;
    border-color: rgba(255,255,255,0.1);
}

.footer-recent .list-card__title { color: rgba(255,255,255,0.8); font-size: 13px; }
.footer-recent .list-card__time { color: rgba(255,255,255,0.4); }

.footer-bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: var(--color-primary); }

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-3px); }

/* ============================================================
   MOBILE MENU OVERLAY
============================================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    transition: left var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active { left: 0; }

.mobile-menu__header {
    background: var(--color-primary);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu__nav { padding: 16px 0; }

.mobile-menu__nav li { border-bottom: 1px solid var(--color-border); }

.mobile-menu__nav a {
    display: block;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.mobile-menu__nav a:hover {
    color: var(--color-primary);
    background: var(--color-off-white);
    padding-left: 28px;
}

/* ============================================================
   NOTIFICATION / COOKIE BAR
============================================================ */
.notification-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    color: white;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 998;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.notification-bar.show { transform: translateY(0); }

.notification-bar__accept {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { grid-row: auto; }
    .hero-side { flex-direction: row; }
    .related-posts .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --container-max: 100%; }
    .top-bar { display: none; }
    .header-ad { display: none; }
    .header-search input { min-width: 150px; }
    .primary-nav .nav-menu { display: none; }
    .nav-toggle { display: block; }
    .hero-side { flex-direction: column; }
    .hero-main .card-title { font-size: 18px; }
    .article-title { font-size: 24px; }
    .article-content { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
    .grid-4 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .social-share { justify-content: flex-start; }
    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
}

@media (max-width: 480px) {
    .article-title { font-size: 20px; }
    .section-heading h2 { font-size: 17px; }
    .breaking-ticker__label { padding: 0 10px; font-size: 10px; }
    .hero-main img { height: 250px; }
}

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
    .site-header, .primary-nav, .breaking-ticker, .sidebar,
    .social-share, .related-posts, .comments-section,
    .site-footer, .ad-slot, .in-article-ad { display: none !important; }
    .content-area { grid-template-columns: 1fr !important; }
    .article-content { font-size: 14px; }
    a { text-decoration: none; color: black; }
}
