/*
Theme Name: TheCurrent News
Theme URI: https://thecurrent.developer
Author: Senior Theme Developer
Author URI: https://thecurrent.developer
Description: Premium news/magazine WordPress theme with built-in ad monetization (AdSense + Adsterra ready). High CTR optimized layout with 5 strategic ad placements, responsive design, and premium UI.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thecurrent
Tags: news, magazine, blog, responsive, adsense, adsterra, monetization, grid-layout, featured-images, custom-menu, custom-logo, widget-ready, translation-ready
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1.  CSS Variables & Root
   2.  Reset & Base
   3.  Typography
   4.  Utility Classes
   5.  Animations & Keyframes
   6.  Header & Navigation
   7.  Mobile Menu
   8.  Search Bar
   9.  Category Pills
   10. Ad Containers (Monetization)
   11. Featured Slider
   12. News Grid
   13. Sidebar
   14. Pagination
   15. Footer
   16. Single Post
   17. Responsive Breakpoints
   ============================================ */

/* ===========================================
   1. CSS VARIABLES & ROOT
   =========================================== */
:root {
    /* Brand Colors */
    --color-primary: #1B2A4A;
    --color-primary-light: #2C3E6B;
    --color-primary-dark: #0F1A30;
    --color-accent: #D32F2F;
    --color-accent-hover: #B71C1C;
    --color-accent-light: #FF5252;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    --color-light-gray: #ECEEF1;
    --color-gray: #B0B8C1;
    --color-dark-gray: #6C757D;
    --color-text: #2D3436;
    --color-text-light: #636E72;
    --color-text-muted: #95A5A6;
    --color-black: #000000;

    /* Semantic Colors */
    --color-success: #27AE60;
    --color-warning: #F39C12;
    --color-info: #3498DB;
    --color-danger: #E74C3C;

    /* Ad Specific */
    --ad-bg: #F0F2F5;
    --ad-border: #E4E6EB;
    --ad-label-color: #98A4AE;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes - Fluid */
    --fs-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
    --fs-sm: clamp(0.775rem, 0.725rem + 0.25vw, 0.875rem);
    --fs-base: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
    --fs-md: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --fs-xl: clamp(1.375rem, 1.15rem + 1.125vw, 1.875rem);
    --fs-2xl: clamp(1.625rem, 1.3rem + 1.625vw, 2.375rem);
    --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1400px;
    --sidebar-width: 340px;
    --header-height: 68px;
    --grid-gap: 1.5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.08);
    --shadow-sticky: 0 4px 20px rgba(0,0,0,0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root.auto-dark {
        --color-white: #1A1A2E;
        --color-off-white: #16213E;
        --color-light-gray: #0F3460;
        --color-text: #E4E6EB;
        --color-text-light: #B0B3B8;
    }
}

/* ===========================================
   2. RESET & BASE
   =========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.section-title {
    font-family: var(--font-primary);
    font-size: var(--fs-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    position: relative;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-pill);
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===========================================
   4. UTILITY CLASSES
   =========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   5. ANIMATIONS & KEYFRAMES
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease forwards;
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }

/* ===========================================
   6. HEADER & NAVIGATION
   =========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--color-primary);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(27, 42, 74, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sticky);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo-text span {
    color: var(--color-accent);
}

.logo-sub {
    font-family: var(--font-primary);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-gray);
    display: block;
    margin-top: 2px;
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    height: var(--header-height);
    color: rgba(255,255,255,0.85);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-accent);
    transition: width var(--transition-base);
    border-radius: var(--radius-pill) var(--radius-pill) 0 0;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--color-white);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after {
    width: calc(100% - var(--space-xl));
}

/* Dropdown */
.nav-menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-base);
    padding: var(--space-sm) 0;
    border-top: 3px solid var(--color-accent);
}

.nav-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li ul.sub-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-menu li ul.sub-menu li a:hover {
    background: var(--color-off-white);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    padding-left: calc(var(--space-lg) + 4px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-search-toggle,
.header-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.8);
    transition: all var(--transition-fast);
}

.header-search-toggle:hover,
.header-theme-toggle:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

.header-search-toggle svg,
.header-theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: calc(var(--z-overlay) + 1);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: var(--radius-pill);
    transition: all var(--transition-base);
    position: relative;
}

.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(3) { transform: translateY(6px); }

.hamburger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-2px) rotate(-45deg);
}

/* ===========================================
   7. MOBILE MENU
   =========================================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-white);
    z-index: calc(var(--z-overlay) + 1);
    transition: right var(--transition-slow);
    overflow-y: auto;
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.mobile-menu .nav-menu > li > a {
    color: var(--color-text);
    height: auto;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-light-gray);
    font-size: var(--fs-base);
}

.mobile-menu .nav-menu > li > a::after {
    display: none;
}

.mobile-menu .nav-menu > li > a:hover {
    color: var(--color-accent);
}

.mobile-menu .nav-menu li ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    margin: var(--space-sm) 0;
    padding: var(--space-sm);
}

/* ===========================================
   8. SEARCH BAR
   =========================================== */
.search-section {
    background: var(--color-white);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.search-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-form-wrapper form {
    display: flex;
    align-items: center;
    background: var(--color-off-white);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: all var(--transition-base);
}

.search-form-wrapper form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
    background: var(--color-white);
}

.search-form-wrapper .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: var(--space-lg);
    color: var(--color-gray);
}

.search-form-wrapper .search-icon svg {
    width: 20px;
    height: 20px;
}

.search-form-wrapper input[type="search"] {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    font-size: var(--fs-base);
    color: var(--color-text);
}

.search-form-wrapper input[type="search"]::placeholder {
    color: var(--color-gray);
}

.search-form-wrapper button[type="submit"] {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background var(--transition-fast);
    margin: 4px;
    border-radius: var(--radius-pill);
}

.search-form-wrapper button[type="submit"]:hover {
    background: var(--color-accent-hover);
}

/* ===========================================
   9. CATEGORY PILLS
   =========================================== */
.category-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
    padding: var(--space-md) 0;
    position: relative;
}

.category-scroll {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-xs) 0;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid var(--color-light-gray);
    color: var(--color-text);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.category-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

.category-pill.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.category-pill .pill-count {
    background: rgba(0,0,0,0.1);
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    margin-left: var(--space-xs);
}

.category-pill.active .pill-count {
    background: rgba(255,255,255,0.25);
}

/* Scroll fade edges */
.category-bar::before,
.category-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 2;
}

.category-bar::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white), transparent);
}

.category-bar::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white), transparent);
}

/* ===========================================
   10. AD CONTAINERS (MONETIZATION SYSTEM)
   =========================================== */
.ad {
    text-align: center;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* Ad label */
.ad::before {
    content: 'Advertisement';
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ad-label-color);
    margin-bottom: 6px;
    font-weight: 500;
}

.ad-inner {
    background: var(--ad-bg);
    border: 1px dashed var(--ad-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    overflow: hidden;
    transition: all var(--transition-base);
}

/* When real ad loads, remove placeholder styles */
.ad-inner:has(ins),
.ad-inner:has(iframe),
.ad-inner:has(script + div) {
    background: transparent;
    border: none;
}

/* AD #1 - Header Banner (Leaderboard 728x90) */
.ad-header {
    background: var(--color-white);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.ad-header .ad-inner {
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

/* AD #2 - Below Featured Slider */
.ad-below-slider {
    padding: var(--space-xl) 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
}

.ad-below-slider .ad-inner {
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

/* AD #3 - Sidebar Ad */
.ad-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    margin-bottom: var(--space-xl);
}

.ad-sidebar .ad-inner {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

/* AD #4 - In-Feed / Grid Ad */
.ad-inline {
    grid-column: 1 / -1;
    padding: var(--space-lg) 0;
}

.ad-inline .ad-inner {
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

/* AD #5 - Footer Ad */
.ad-footer {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-light-gray);
}

.ad-footer .ad-inner {
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

/* Responsive ad containers */
@media (max-width: 768px) {
    .ad-header .ad-inner,
    .ad-below-slider .ad-inner,
    .ad-inline .ad-inner,
    .ad-footer .ad-inner {
        max-width: 100%;
        height: auto;
        min-height: 60px;
    }

    .ad-sidebar .ad-inner {
        width: 100%;
        height: auto;
        min-height: 250px;
    }
}

/* Lazy load placeholder */
.ad-lazy {
    background: linear-gradient(90deg, var(--ad-bg) 0%, #e8eaed 50%, var(--ad-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* ===========================================
   11. FEATURED SLIDER
   =========================================== */
.featured-section {
    padding: var(--space-xl) 0;
    background: var(--color-white);
}

.slider-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.slide.active .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.1) 70%,
        transparent 100%
    );
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl) var(--space-2xl);
    color: var(--color-white);
    z-index: 2;
}

.slide-category {
    display: inline-block;
    background: var(--color-accent);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.slide-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: 900;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.8);
}

.slide-meta .meta-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.slide-meta .meta-author img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255,255,255,0.3);
}

.slide-meta .meta-separator {
    width: 4px;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.2);
}

.slider-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: var(--space-lg); }
.slider-btn.next { right: var(--space-lg); }

.slider-btn svg {
    width: 20px;
    height: 20px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--color-gray);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--color-accent);
    width: 30px;
    border-radius: var(--radius-pill);
}

/* Small slider navigation */
.slider-nav-small {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-2xl);
    display: flex;
    gap: var(--space-sm);
    z-index: 3;
}

.slider-nav-small button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all var(--transition-fast);
}

.slider-nav-small button:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ===========================================
   12. NEWS GRID
   =========================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

/* News Card */
.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-image .card-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--color-accent);
    color: var(--color-white);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
    transition: all var(--transition-fast);
}

.news-card:hover .card-category {
    background: var(--color-primary);
}

.news-card-image .card-bookmark {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-fast);
    z-index: 2;
}

.news-card:hover .card-bookmark {
    opacity: 1;
    transform: translateY(0);
}

.card-bookmark svg {
    width: 14px;
    height: 14px;
    color: var(--color-text);
}

/* Image overlay gradient */
.news-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.news-card:hover .news-card-image::after {
    opacity: 1;
}

.news-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: var(--space-sm);
    color: var(--color-primary-dark);
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: var(--color-accent);
}

.news-card-excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-light-gray);
    margin-top: auto;
}

.card-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-author img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.card-author-name {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-text);
}

.card-date {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.card-read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.card-read-time svg {
    width: 12px;
    height: 12px;
}

/* Read more arrow */
.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-off-white);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.news-card:hover .card-arrow {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateX(2px);
}

.card-arrow svg {
    width: 14px;
    height: 14px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   13. SIDEBAR
   =========================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
}

.widget-title {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-lg);
    border-bottom: 3px solid var(--color-light-gray);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
}

/* Sidebar Search */
.widget-search form {
    display: flex;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.widget-search form:focus-within {
    border-color: var(--color-accent);
}

.widget-search input {
    flex: 1;
    padding: var(--space-md);
    font-size: var(--fs-sm);
}

.widget-search button {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.widget-search button:hover {
    background: var(--color-accent-hover);
}

.widget-search button svg {
    width: 18px;
    height: 18px;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-light-gray);
    transition: all var(--transition-fast);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:first-child {
    padding-top: 0;
}

.popular-post-item:hover {
    padding-left: var(--space-sm);
}

.popular-post-thumb {
    width: 80px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.1);
}

.popular-post-info {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.popular-post-title:hover {
    color: var(--color-accent);
}

.popular-post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 4px;
}

.popular-post-meta svg {
    width: 12px;
    height: 12px;
}

.popular-post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.popular-post-item:nth-child(1) .popular-post-number {
    background: var(--color-accent);
    color: var(--color-white);
}

.popular-post-item:nth-child(2) .popular-post-number {
    background: var(--color-primary);
    color: var(--color-white);
}

.popular-post-item:nth-child(3) .popular-post-number {
    background: var(--color-primary-light);
    color: var(--color-white);
}

/* Categories Widget */
.widget-categories-list li {
    border-bottom: 1px solid var(--color-light-gray);
}

.widget-categories-list li:last-child {
    border-bottom: none;
}

.widget-categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.widget-categories-list li a:hover {
    color: var(--color-accent);
    padding-left: var(--space-sm);
}

.widget-categories-list li a .cat-count {
    background: var(--color-off-white);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.widget-categories-list li a:hover .cat-count {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
}

.widget-newsletter .widget-title {
    color: var(--color-white);
    border-bottom-color: rgba(255,255,255,0.2);
}

.widget-newsletter .widget-title::after {
    background: var(--color-accent-light);
}

.widget-newsletter p {
    color: rgba(255,255,255,0.8);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.newsletter-form input[type="email"] {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition-fast);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form input[type="email"]:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    padding: var(--space-md);
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Social Widget */
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

.social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-link.facebook  { background: #1877F2; }
.social-link.twitter   { background: #1DA1F2; }
.social-link.linkedin  { background: #0A66C2; }
.social-link.pinterest { background: #E60023; }
.social-link.youtube   { background: #FF0000; }
.social-link.instagram { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); }

/* ===========================================
   14. PAGINATION
   =========================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-2xl) 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 2px solid var(--color-light-gray);
    color: var(--color-text);
    background: var(--color-white);
}

.pagination a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

.pagination span.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.pagination .dots {
    border: none;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

/* ===========================================
   15. FOOTER
   =========================================== */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
}

.footer-main {
    padding: var(--space-3xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-title {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

/* Footer About */
.footer-about .footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-about .footer-logo .logo-text {
    font-size: 1.4rem;
}

.footer-about p {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
}

/* Footer Links */
.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links li a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--color-white);
    padding-left: var(--space-sm);
}

.footer-links li a:hover::before {
    opacity: 1;
}

/* Footer Latest Posts */
.footer-post {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-post-thumb {
    width: 70px;
    height: 55px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.footer-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-post-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.footer-post-title:hover {
    color: var(--color-accent);
}

.footer-post-date {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-lg) 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.5);
}

.footer-copyright a {
    color: var(--color-accent);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    color: var(--color-white);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   16. SINGLE POST STYLES
   =========================================== */
.single-post-header {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
}

.single-post-category {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.single-post-title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-lg);
    max-width: 800px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.single-post-content {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text);
}

.single-post-content p {
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: var(--space-2xl) 0 var(--space-md);
}

.single-post-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--color-off-white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--color-primary);
}

/* ===========================================
   17. RESPONSIVE BREAKPOINTS
   =========================================== */

/* Tablet Landscape */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 300px;
        --grid-gap: 1.25rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .primary-nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide {
        aspect-ratio: 16/9;
    }

    .slide-title {
        font-size: var(--fs-2xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
    }

    .header-inner {
        padding: 0 var(--space-md);
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .slide {
        aspect-ratio: 4/3;
    }

    .slide-content {
        padding: var(--space-lg);
    }

    .slide-title {
        font-size: var(--fs-xl);
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .news-card-title {
        font-size: var(--fs-md);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 var(--space-md);
    }

    .search-form-wrapper button[type="submit"] span {
        display: none;
    }

    .category-pill {
        padding: 6px var(--space-md);
        font-size: var(--fs-xs);
    }

    .social-links {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .ad,
    .sidebar,
    .site-footer,
    .back-to-top,
    .slider-btn,
    .slider-dots {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .news-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
/* ===========================================
   SINGLE POST PAGE STYLES
   =========================================== */

/* Breadcrumbs */
.single-breadcrumbs {
    background: var(--color-white);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.breadcrumb-trail a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumb-trail a:hover {
    color: var(--color-accent);
}

.breadcrumb-sep {
    display: flex;
    align-items: center;
    color: var(--color-gray);
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Single Post Header */
.single-post-header {
    background: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.single-header-content {
    max-width: 860px;
}

.single-categories {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.single-category-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background var(--transition-fast);
}

.single-category-badge:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.3rem + 2.25vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.single-post-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 700px;
}

/* Author & Meta Bar */
.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-light-gray);
}

.meta-author-block {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.meta-avatar img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-light-gray);
    transition: border-color var(--transition-fast);
}

.meta-avatar:hover img {
    border-color: var(--color-accent);
}

.meta-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-author-name {
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.meta-author-name:hover {
    color: var(--color-accent);
}

.meta-details {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.meta-details time,
.meta-details span:not(.meta-dot) {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-dot {
    color: var(--color-gray);
}

/* Share Buttons */
.single-share-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.share-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-off-white);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-light-gray);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-twitter:hover  { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.share-linkedin:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.share-copy:hover     { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.share-copy.copied    { background: var(--color-success); color: white; border-color: var(--color-success); }

/* Featured Image */
.single-featured-image {
    padding: var(--space-xl) 0;
    background: var(--color-white);
}

.featured-figure {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.featured-figure img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 560px;
    object-fit: cover;
}

.featured-caption {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-off-white);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Article Content Area */
.single-content-area {
    margin-top: var(--space-xl);
}

/* Article Body Content */
.single-post-content {
    font-size: var(--fs-md);
    line-height: 1.85;
    color: var(--color-text);
}

.single-post-content p {
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.single-post-content h2 {
    font-size: var(--fs-2xl);
    margin: var(--space-2xl) 0 var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-light-gray);
}

.single-post-content h3 {
    font-size: var(--fs-xl);
    margin: var(--space-xl) 0 var(--space-md);
}

.single-post-content h4 {
    font-size: var(--fs-lg);
    margin: var(--space-xl) 0 var(--space-md);
}

.single-post-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
}

.single-post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--color-off-white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--color-primary);
    position: relative;
}

.single-post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 15px;
    line-height: 1;
}

.single-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.single-post-content ul {
    list-style: disc;
}

.single-post-content ol {
    list-style: decimal;
}

.single-post-content li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
}

.single-post-content a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(211, 47, 47, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-fast);
}

.single-post-content a:hover {
    text-decoration-color: var(--color-accent);
}

.single-post-content pre {
    background: var(--color-primary-dark);
    color: #E4E6EB;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-xl) 0;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.single-post-content code {
    background: var(--color-off-white);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--color-accent);
}

.single-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.single-post-content table th,
.single-post-content table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-light-gray);
}

.single-post-content table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-post-content table tr:hover td {
    background: var(--color-off-white);
}

.single-post-content .wp-block-image {
    margin: var(--space-xl) 0;
}

.single-post-content .wp-block-image figcaption {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    font-style: italic;
}

/* Tags */
.single-tags {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
    border-top: 1px solid var(--color-light-gray);
    flex-wrap: wrap;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    padding-top: 4px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.tag-pill:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
    border: 1px solid var(--color-light-gray);
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-sm);
}

.author-box-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.author-box-name {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    margin: 4px 0 var(--space-sm);
}

.author-box-name a {
    color: var(--color-primary-dark);
    transition: color var(--transition-fast);
}

.author-box-name a:hover {
    color: var(--color-accent);
}

.author-box-bio {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.author-box-link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.author-box-link:hover {
    color: var(--color-accent-hover);
}

/* Post Navigation */
.single-post-navigation {
    margin: var(--space-2xl) 0;
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.post-nav-item {
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-light-gray);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.post-nav-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-nav-item:hover .post-nav-title {
    color: var(--color-accent);
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.post-nav-next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.post-nav-empty {
    border: none;
    background: none;
}

/* Related Posts */
.related-posts {
    margin: var(--space-2xl) 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-light-gray);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.related-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.related-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.related-card:hover .related-card-image img {
    transform: scale(1.08);
}

.related-card-body {
    padding: var(--space-lg);
}

.related-category {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.related-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.related-card:hover .related-card-title {
    color: var(--color-accent);
}

.related-date {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

/* Comments Section */
.single-comments {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-light-gray);
}

.single-comments .comments-title {
    font-family: var(--font-primary);
    font-size: var(--fs-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
}

.single-comments .comment-list {
    list-style: none;
}

.single-comments .comment {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.single-comments .comment-author img {
    border-radius: var(--radius-full);
    margin-right: var(--space-md);
}

.single-comments .comment-respond {
    margin-top: var(--space-xl);
}

.single-comments .comment-form input[type="text"],
.single-comments .comment-form input[type="email"],
.single-comments .comment-form input[type="url"],
.single-comments .comment-form textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    margin-bottom: var(--space-md);
}

.single-comments .comment-form input:focus,
.single-comments .comment-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.single-comments .comment-form .submit {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
}

.single-comments .comment-form .submit:hover {
    background: var(--color-accent-hover);
}

/* Responsive Single Post */
@media (max-width: 768px) {
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .single-share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .meta-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .meta-dot {
        display: none;
    }
}

/* No label variant for inline ad */
.ad-no-label::before {
    display: none;
}
/* ===========================================
   ARCHIVE PAGE HEADER
   =========================================== */
.archive-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding: var(--space-2xl) 0;
    color: var(--color-white);
}

.archive-header-content {
    max-width: 700px;
}

.archive-label {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    backdrop-filter: blur(4px);
}

.archive-title {
    font-size: var(--fs-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.archive-description {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.archive-description p {
    color: rgba(255,255,255,0.75);
}