/*
Theme Name: News Magazine Pro
Theme URI: https://favorthemes.com/
Author: Favor Themes
Author URI: https://favorthemes.com/
Description: NewsPulse — modern, clean news/magazine homepage with large hero carousel, editor's picks sidebar, category highlights, list style latest posts, videos grid, CTA newsletter, opinion cards and dark footer. Aim: readable, fast, mobile-first, accessible.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-magazine-pro
Tags: news, magazine, blog, editorial, responsive, customizer, premium, seo, fast-loading, high-traffic
*/

/* ============================================
   GLOBAL TOKENS (CSS VARIABLES)
   ============================================ */
:root {
  /* Colors */
  --bg: #ffffff;
  --muted-bg: #f7f9fb;
  --primary: #1e63ff;
  --accent: #ff385c;
  --card-bg: #ffffff;
  --text: #111827;
  --muted-text: #6b7280;
  --border: #e6e9ef;
  --footer-bg: #0f1720;
  --footer-text: #cbd5e1;

  /* Typography */
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Merriweather", Georgia, serif;
  --base-font-size: 16px;
  --line-height: 1.6;

  /* Spacing */
  --container-max: 1200px;
  --gutter: 24px;
  --radius: 12px;

  /* Shadows */
  --card-shadow: 0 6px 20px rgba(16,24,40,0.06);
  --card-shadow-hover: 0 18px 40px rgba(16,24,40,0.12);
  
  /* Breakpoints */
  --breakpoint-mobile: 320px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1280px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --muted-bg: #1f2937;
    --card-bg: #1f2937;
    --text: #f9fafb;
    --muted-text: #9ca3af;
    --border: #374151;
  }
}

body.dark-mode {
  --bg: #111827;
  --muted-bg: #1f2937;
  --card-bg: #1f2937;
  --text: #f9fafb;
  --muted-text: #9ca3af;
  --border: #374151;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-font-size);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 { font-size: clamp(22px, 4vw, 44px); }
h2 { font-size: clamp(18px, 2.5vw, 28px); }
h3 { font-size: clamp(16px, 2vw, 24px); }
h4 { font-size: clamp(14px, 1.5vw, 20px); }
h5 { font-size: clamp(13px, 1.2vw, 18px); }
h6 { font-size: clamp(12px, 1vw, 16px); }

p {
    margin-bottom: 1rem;
    line-height: var(--line-height);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--accent);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.site {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Bootstrap Container Override */
.container {
    max-width: var(--container-max);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    margin-left: auto;
    margin-right: auto;
}

/* Custom container for compatibility */
.container-custom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--gutter);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   GRID SYSTEM (Bootstrap Compatible)
   ============================================ */
/* Bootstrap grid is now primary, custom grid for backward compatibility */
.grid {
    display: grid;
    gap: var(--gutter);
    width: 100%;
    max-width: 100%;
}

/* Use Bootstrap row/col classes instead */
.row {
    --bs-gutter-x: var(--gutter);
    --bs-gutter-y: var(--gutter);
}

/* Custom grid classes for backward compatibility */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   TOPBAR (Breaking News) - EXACT DESIGN
   ============================================ */
.topbar {
    background: #dc2626;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.topbar__content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    width: 100%;
}

.topbar__content:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: -2px;
}

.topbar__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    padding-right: 16px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.topbar__arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Ticker Wrapper */
.topbar__ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.topbar__ticker {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.topbar__ticker-item {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    padding-right: 40px;
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    cursor: default;
}

.topbar__ticker-item.active {
    opacity: 1;
    visibility: visible;
}

.topbar__ticker-item::after {
    content: '•';
    margin-left: 20px;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    display: inline-block;
}


/* ============================================
   HEADER - EXACT DESIGN FROM IMAGE
   ============================================ */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.site-header.sticky {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-mode .site-header {
    background: #1f2937;
}

/* Main Header Bar */
.header-main-bar {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.header-main-bar .row {
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

.header-main-bar .row > [class*="col"] {
    padding-left: 8px;
    padding-right: 8px;
}

body.dark-mode .header-main-bar {
    background: #1f2937;
    border-bottom-color: #374151;
}

/* Logo Section - Blue Button Style */
.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 45px;
    width: auto;
    height: auto;
}

.logo {
    margin: 0;
    line-height: 1;
}

.logo-button {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.logo-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Date Section - Center Simple Text */
.site-date-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-text {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.dark-mode .date-text {
    color: #d1d5db;
}

/* Navigation Bar - Separate Below Header */
.main-navigation {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    position: relative;
    z-index: 1002;
}

.main-navigation .container {
    position: relative;
}

.main-navigation .navbar-collapse {
    position: relative;
    overflow: visible;
}

body.dark-mode .main-navigation {
    background: #1f2937;
    border-top-color: #374151;
    border-bottom-color: #374151;
}

.navbar-toggler {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 4px;
    background: transparent;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23334155' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d1d5db' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scoped to main navigation only */
.main-navigation .navbar-nav {
    gap: 0;
    flex-direction: row;
    position: relative;
    overflow: visible;
}

.main-navigation .nav__item {
    position: relative;
    overflow: visible;
}

.main-navigation .nav__link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 15px;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.dark-mode .main-navigation .nav__link {
    color: #d1d5db;
}

.main-navigation .nav__link:hover,
.main-navigation .nav__link:focus {
    color: #2563eb;
    background: transparent;
}

body.dark-mode .main-navigation .nav__link:hover,
body.dark-mode .main-navigation .nav__link:focus {
    color: #60a5fa;
}

.main-navigation .nav__link.active {
    color: #2563eb;
    background: transparent;
}

body.dark-mode .main-navigation .nav__link.active {
    color: #60a5fa;
}

/* Dropdown Arrow */
.main-navigation .nav__link.has-dropdown::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

/* Header Actions - Simple Icons */
.header-actions {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #1f2937;
    width: auto;
    height: auto;
    padding: 6px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #2563eb;
    transform: scale(1.1);
}

.icon-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

.icon-btn svg {
    stroke: currentColor;
}

body.dark-mode .icon-btn {
    color: #d1d5db;
}

body.dark-mode .icon-btn:hover {
    color: #60a5fa;
}

.theme-icon-dark {
    display: none;
}

/* body.dark-mode .theme-icon-light {
    display: none;
} */

body.dark-mode .theme-icon-dark {
    display: block;
}

/* ============================================
   HEADER RESPONSIVE STYLES
   ============================================ */

/* Tablet and Below (991px and below) */
@media (max-width: 991px) {
    /* Topbar Tablet */
    .topbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .topbar__content {
        gap: 12px;
    }
    
    .topbar__label {
        font-size: 11px;
        padding-right: 12px;
    }
    
    .topbar__ticker-item {
        font-size: 12px;
    }
    
    /* Header Main Bar Tablet */
    .header-main-bar {
        padding: 12px 0;
    }
    
    /* Hide Date on Tablet */
    .site-date-center {
        display: none;
    }
    
    /* Logo Adjustments Tablet */
    .logo-button {
        padding: 8px 14px;
        font-size: 15px;
    }
    
    .logo-text {
        font-size: 15px;
    }
    
    /* Header Icons Tablet */
    .header-icons {
        gap: 10px;
    }
    
    .icon-btn {
        padding: 5px;
    }
    
    .icon-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Navigation Tablet */
    .main-navigation {
        padding: 0;
    }
    
    .main-navigation .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
        margin-right: 0;
        border-color: var(--border);
    }
    
    .navbar-toggler:hover,
    .navbar-toggler:focus {
        border-color: var(--primary);
        background: var(--muted-bg);
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
    
    .navbar-toggler-icon {
        width: 22px;
        height: 22px;
    }
    
    .navbar-collapse {
        background: var(--card-bg);
        padding: 16px;
        margin-top: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 4px 20px rgba(16,24,40,0.1);
    }

    body.dark-mode .navbar-collapse {
        background: var(--card-bg);
        border-color: var(--border);
    }

    .main-navigation .navbar-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation .nav__item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .main-navigation .nav__item:last-child {
        border-bottom: none;
    }

    .main-navigation .nav__link {
        padding: 14px 16px;
        width: 100%;
        border-radius: 0;
        border-bottom: none;
        justify-content: space-between;
        text-transform: none;
        letter-spacing: 0;
    }

    .main-navigation .nav__link:hover,
    .main-navigation .nav__link:focus {
        background: var(--muted-bg);
        color: var(--primary);
    }

    body.dark-mode .main-navigation .nav__link:hover {
        background: var(--muted-bg);
    }
    
    .main-navigation .nav__dropdown-icon {
        margin-left: auto;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    /* Topbar Mobile */
    .topbar {
        height: 36px;
        font-size: 12px;
    }

    .topbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .topbar__content {
        padding: 0;
        gap: 10px;
    }

    .topbar__label {
        font-size: 10px;
        padding-right: 10px;
        gap: 4px;
        flex-shrink: 0;
    }

    .topbar__arrow {
        width: 9px;
        height: 9px;
    }

    .topbar__ticker-wrapper {
        height: 36px;
        min-width: 0;
    }

    .topbar__ticker-item {
        font-size: 11px;
        padding-right: 20px;
        max-width: calc(100% - 20px);
    }

    .topbar__ticker-item::after {
        margin-left: 8px;
        font-size: 9px;
    }
    
    /* Header Main Bar Mobile */
    .header-main-bar {
        padding: 10px 0;
    }
    
    .header-main-bar .row {
        margin-left: 0;
        margin-right: 0;
        align-items: center;
    }
    
    .header-main-bar .row > [class*="col"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Logo Mobile */
    .site-branding {
        flex: 0 0 auto;
        max-width: calc(100% - 100px);
    }
    
    .logo-button {
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .logo-text {
        font-size: 14px;
        letter-spacing: 0.5px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .site-branding .custom-logo {
        max-height: 35px;
        width: auto;
    }
    
    /* Header Actions Mobile */
    .header-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .header-icons {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .icon-btn {
        padding: 4px;
        flex-shrink: 0;
    }
    
    .icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Navigation Mobile */
    .main-navigation {
        border-top: 1px solid var(--border);
    }
    
    .main-navigation .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .navbar-toggler {
        padding: 5px 8px;
        font-size: 14px;
        border-color: var(--border);
        margin-left: auto;
    }
    
    .navbar-toggler:hover,
    .navbar-toggler:focus {
        border-color: var(--primary);
        background: var(--muted-bg);
    }
    
    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }
    
    .navbar-collapse {
        padding: 12px;
        margin-top: 10px;
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    
    .main-navigation .nav__link {
        padding: 12px 14px;
        font-size: 14px;
        text-transform: none;
        letter-spacing: 0;
    }
    
    .main-navigation .nav__dropdown-icon {
        width: 10px;
        height: 10px;
        margin-left: auto;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Topbar Small Mobile */
    .topbar {
        height: 32px;
    }
    
    .topbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .topbar__content {
        gap: 8px;
    }
    
    .topbar__label {
        font-size: 9px;
        padding-right: 8px;
        gap: 3px;
    }
    
    .topbar__arrow {
        width: 8px;
        height: 8px;
    }
    
    .topbar__ticker-wrapper {
        height: 32px;
    }
    
    .topbar__ticker-item {
        font-size: 10px;
        padding-right: 15px;
    }
    
    .topbar__ticker-item::after {
        margin-left: 6px;
        font-size: 8px;
    }
    
    /* Header Small Mobile */
    .header-main-bar {
        padding: 8px 0;
    }
    
    .header-main-bar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .site-branding {
        max-width: calc(100% - 80px);
    }
    
    .logo-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .site-branding .custom-logo {
        max-height: 30px;
    }
    
    .header-icons {
        gap: 6px;
    }
    
    .icon-btn {
        padding: 3px;
    }
    
    .icon-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Navigation Small Mobile */
    .main-navigation .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-toggler {
        padding: 4px 6px;
    }
    
    .navbar-toggler-icon {
        width: 18px;
        height: 18px;
    }
    
    .navbar-collapse {
        padding: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .main-navigation .nav__link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .nav__dropdown-icon {
        width: 9px;
        height: 9px;
    }
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.search-overlay__content {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 40px;
    z-index: 1;
    min-height: 100vh;
}

.search-overlay__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.search-overlay__close:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

.search-overlay__form-wrapper {
    width: 100%;
    max-width: 700px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.search-overlay.active .search-overlay__form-wrapper {
    transform: translateY(0);
    opacity: 1;
}

.search-overlay .search-form {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.search-overlay .search-field {
    flex: 1;
    padding: 20px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-family: inherit;
    background: transparent;
    color: var(--text);
    min-width: 0;
}

.search-overlay .search-field:focus {
    outline: none;
}

.search-overlay .search-field::placeholder {
    color: var(--muted-text);
}

.search-overlay .search-submit {
    padding: 16px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-overlay .search-submit:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.search-overlay .search-submit:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestions__list {
    padding: 10px;
}

.search-suggestion__item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease;
    border: 2px solid transparent;
}

.search-suggestion__item:hover,
.search-suggestion__item:focus,
.search-suggestion__item.selected {
    background: var(--muted-bg);
    border-color: var(--primary);
    outline: none;
}

.search-suggestion__thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-suggestion__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggestion__content {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.search-suggestion__text {
    flex: 1;
    min-width: 0;
}

.search-suggestion__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text);
}

.search-suggestion__excerpt {
    font-size: 14px;
    color: var(--muted-text);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-suggestion__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-suggestion__time {
    font-size: 12px;
    color: var(--muted-text);
}

.search-suggestions__loading,
.search-suggestions__no-results,
.search-suggestions__error {
    padding: 30px;
    text-align: center;
    color: var(--muted-text);
    font-size: 16px;
}

.search-suggestions__error {
    color: var(--accent);
}

body.search-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .search-overlay__content {
        padding-top: 100px;
        padding-left: var(--gutter);
        padding-right: var(--gutter);
        padding-bottom: 20px;
    }

    .search-overlay__close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .search-overlay .search-form {
        border-radius: 30px;
        padding: 3px;
    }

    .search-overlay .search-field {
        padding: 16px 20px;
        font-size: 16px;
    }

    .search-overlay .search-submit {
        padding: 12px 20px;
        min-width: 50px;
    }
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* ============================================
   NAVIGATION - SCOPED TO MAIN NAVIGATION ONLY
   ============================================ */

/* Scoped to main navigation only */
.main-navigation .nav__item {
    position: relative;
    flex-shrink: 0;
}

.main-navigation .nav__link {
    display: flex;
    align-items: center;
    padding: 16px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.main-navigation .nav__link:hover,
.main-navigation .nav__link:focus {
    color: var(--primary);
}

.main-navigation .nav__link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Dropdown Indicator Icon */
.main-navigation .nav__dropdown-icon {
    margin-left: 6px;
    transition: transform 0.3s ease;
    opacity: 0.6;
    vertical-align: middle;
}

.main-navigation .nav__item.has-dropdown:hover .nav__dropdown-icon,
.main-navigation .nav__item.has-dropdown:focus-within .nav__dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* Mega Menu - Theme Matching Dropdown Style - Scoped to main navigation */
.main-navigation .mega-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--card-bg);
    box-shadow: var(--card-shadow-hover);
    border: 1px solid var(--border);
    padding: 8px 0;
    min-width: 220px;
    max-width: 320px;
    display: none !important;
    border-radius: var(--radius);
    z-index: 1003 !important;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    list-style: none;
    margin: 0;
    overflow: visible;
}

body.dark-mode .main-navigation .mega-menu {
    background: var(--card-bg);
    border-color: var(--border);
}

.main-navigation .nav__item:hover .mega-menu,
.main-navigation .nav__item:focus-within .mega-menu,
.main-navigation .nav__item.has-dropdown:hover .mega-menu,
.main-navigation .nav__item.has-dropdown:focus-within .mega-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Keep mega menu open when hovering over it */
.main-navigation .mega-menu:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Right-align dropdown for items on the right side */
.main-navigation .navbar-nav .nav__item:last-child .mega-menu,
.main-navigation .navbar-nav .nav__item:nth-last-child(2) .mega-menu,
.main-navigation .navbar-nav .nav__item:nth-last-child(3) .mega-menu {
    left: auto;
    right: 0;
}

.main-navigation .mega-menu__item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .mega-menu__item:first-child .mega-menu__link {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.main-navigation .mega-menu__item:last-child .mega-menu__link {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.main-navigation .mega-menu__link {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-sans);
    text-transform: none;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.5;
    position: relative;
}

.main-navigation .mega-menu__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.main-navigation .mega-menu__link:hover,
.main-navigation .mega-menu__link:focus {
    background-color: var(--muted-bg);
    color: var(--primary);
    padding-left: 24px;
}

.main-navigation .mega-menu__link:hover::before,
.main-navigation .mega-menu__link:focus::before {
    transform: scaleY(1);
}

.main-navigation .mega-menu__link:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: 4px;
}

/* Nested Submenu (Level 2+) */
.main-navigation .mega-menu__sub-list {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    background: var(--muted-bg);
    border-top: 1px solid var(--border);
}

.main-navigation .mega-menu__sub-list .mega-menu__link {
    padding-left: 32px;
    font-size: 13px;
    color: var(--muted-text);
}

.main-navigation .mega-menu__sub-list .mega-menu__link:hover,
.main-navigation .mega-menu__sub-list .mega-menu__link:focus {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb, 30, 99, 255), 0.05);
}

@media (max-width: 991px) {
    .main-navigation .mega-menu {
        position: static;
        display: none;
        min-width: auto;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 8px;
        margin-left: 20px;
        padding: 0;
        border-left: 2px solid var(--border);
    }
    
    body.dark-mode .main-navigation .mega-menu {
        background: transparent;
        border-left-color: var(--border);
    }
    
    .main-navigation .nav__item.has-dropdown.active .mega-menu {
        display: block !important;
    }
    
    .main-navigation .mega-menu__link {
        color: var(--text);
        padding: 10px 0 10px 12px;
        font-size: 14px;
    }
    
    .main-navigation .mega-menu__link::before {
        display: none;
    }
    
    .main-navigation .mega-menu__link:hover,
    .main-navigation .mega-menu__link:focus {
        background-color: transparent;
        color: var(--primary);
        padding-left: 16px;
    }
    
    .main-navigation .mega-menu__sub-list {
        background: transparent;
        border-top: none;
        margin-top: 4px;
        margin-left: 12px;
        border-left: 1px solid var(--border);
    }
    
    .main-navigation .mega-menu__sub-list .mega-menu__link {
        padding-left: 24px;
        font-size: 13px;
    }
}


/* ============================================
   CONTENT WRAPPER
   ============================================ */
.content-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 40px 0;
}

/* Bootstrap row override for content wrapper */
.content-wrapper.row {
    margin-left: 0;
    margin-right: 0;
}

.main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

@media (max-width: 1023px) {
    .sidebar {
        position: static;
    }
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-section {
    margin: 40px 0;
    width: 100%;
    max-width: 100%;
}

.hero-wrapper {
    width: 100%;
    max-width: 100%;
}

.hero-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    width: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.55) 100%);
}

.hero__badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
}

.hero__title {
    color: #fff;
    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.05;
    margin: 0 0 16px 0;
    text-shadow: 0 6px 22px rgba(0,0,0,0.45);
    font-weight: 600;
}

.hero__title a {
    color: #fff;
}

.hero__meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.hero__dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.hero__dot.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

.hero__dot:hover,
.hero__dot:focus {
    background: rgba(255,255,255,0.7);
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

/* ============================================
   EDITOR'S PICKS
   ============================================ */
.editor-picks {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    width: 100%;
}

.editor-picks__heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.editor-card {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.editor-card:last-child {
    border-bottom: none;
}

.editor-card__thumb {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.editor-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.editor-card__content {
    flex: 1;
    min-width: 0;
}

.editor-card__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.editor-card__time {
    font-size: 12px;
    color: var(--muted-text);
}

@media (max-width: 1023px) {
    .editor-card {
        flex-direction: column;
    }
    
    .editor-card__thumb {
        width: 100%;
        height: 180px;
    }
}

/* ============================================
   EDITORIAL PICKS SECTION
   ============================================ */
.editorial-picks-section {
    margin: 50px 0;
    width: 100%;
    max-width: 100%;
}

.editorial-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.editorial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(16,24,40,0.15);
}

.editorial-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
}

.editorial-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.editorial-card:hover .editorial-card-img {
    transform: scale(1.08);
}

.editorial-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 2;
}

.editorial-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.editorial-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.editorial-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.editorial-card-title a:hover {
    color: var(--primary);
}

.editorial-card-excerpt {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.editorial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.editorial-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.editorial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.editorial-author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.editorial-author-date {
    font-size: 12px;
    color: var(--muted-text);
    line-height: 1.2;
}

@media (max-width: 767px) {
    .editorial-card-content {
        padding: 16px;
    }

    .editorial-card-title {
        font-size: 16px;
    }
}

/* ============================================
   CATEGORY HIGHLIGHTS
   ============================================ */
.category-grid {
    margin: 50px 0;
    width: 100%;
}

.section-heading {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin-bottom: 30px;
    padding-left: 16px;
    position: relative;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.cat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.cat-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
}

.cat-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__image img {
    transform: scale(1.05);
}

.cat-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}

.cat-card__content {
    padding: 20px;
}

.cat-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cat-card__excerpt {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cat-card__meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted-text);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.tag {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
}

.tag--business { background: #2b8cff; }
.tag--world { background: #ff7a00; }
.tag--tech { background: #8b5cf6; }
.tag--sports { background: #10b981; }
.tag--entertainment { background: #ef4444; }
.tag--politics { background: #f59e0b; }
.tag--health { background: #06b6d4; }
.tag--science { background: #6366f1; }
.tag--default { background: var(--primary); }

/* ============================================
   LATEST NEWS LIST
   ============================================ */
.article-list {
    margin: 50px 0;
    width: 100%;
}

.article-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.article-thumb {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-card__title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card__excerpt {
    color: var(--muted-text);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--muted-text);
    align-items: center;
    flex-wrap: wrap;
}

.article-meta__icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more__button {
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, opacity 0.3s ease;
    min-width: 200px;
}

.load-more__button:hover:not(:disabled) {
    background: var(--accent);
    transform: scale(1.03);
}

.load-more__button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.load-more__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more__button.loading {
    position: relative;
    color: transparent;
}

.load-more__button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Fade-in animation for new articles */
.article-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .article-card {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   AD BANNER SECTION - EXACT DESIGN
   ============================================ */
.ad-banner-section {
    margin: 40px 0;
    width: 100%;
    max-width: 100%;
}

.ad-banner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.ad-banner-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ad-banner-code,
.ad-banner-image {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    text-align: center;
}

.ad-banner-image img {
    width: 100%;
    height: auto;
    max-width: 970px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.ad-banner-placeholder {
    width: 100%;
    height: 250px;
    background: #f3f4f6;
    border: 2px dashed #a4a8b1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    position: relative;
}

.ad-placeholder-icon {
    color: #a4a8b1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-placeholder:hover {
    border: 2px dashed #1e63ff;
}

.ad-banner-placeholder:hover .ad-placeholder-icon {
    color: #1e63ff;
}

.ad-placeholder-icon svg {
    width: 48px;
    height: 48px;
}

.ad-placeholder-text {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ad-placeholder-size {
    font-size: 13px;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 1024px) {
    .ad-banner-placeholder {
        max-width: 100%;
        height: auto;
        min-height: 200px;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .ad-banner-placeholder {
        height: auto;
        min-height: 150px;
        padding: 16px;
    }

    .ad-placeholder-icon svg {
        width: 36px;
        height: 36px;
    }

    .ad-placeholder-text {
        font-size: 14px;
    }

    .ad-placeholder-size {
        font-size: 12px;
    }
}

/* ============================================
   VIDEOS SECTION
   ============================================ */
.videos-section {
    margin: 50px 0;
    width: 100%;
    max-width: 100%;
}

.videos-empty-message {
    padding: 40px 20px;
    text-align: center;
    background: var(--muted-bg);
    border-radius: 8px;
    color: var(--muted-text);
}

.videos-empty-message p {
    margin: 0;
    font-size: 16px;
}

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    background: transparent;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-2px);
}

.video-card__link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: var(--card-bg);
    cursor: pointer;
}

.video-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-card__thumb-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #ff385c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: none;
    z-index: 2;
}

.video-card__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff385c;
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
}

.video-card__play:focus {
    outline: 3px solid rgba(255,255,255,0.8);
    outline-offset: 4px;
}

.video-card__play-icon {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px;
}

.video-card__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    font-size: 11px;
    padding: 4px 10px;
    background: #ff385c !important;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0;
    display: inline-block;
}

.video-card__content {
    padding: 14px 0 0 0;
    background: transparent;
    flex: 1;
}

.video-card__title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.video-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.video-card__title a:hover {
    color: var(--primary);
}

.video-card__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--muted-text);
    margin-top: 0;
}

.video-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.video-card__meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

@media (max-width: 1023px) {
    .video-card__play {
        width: 60px;
        height: 60px;
    }

    .video-card__play-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 767px) {
    .video-card__content {
        padding: 12px 0 0 0;
    }

    .video-card__title {
        font-size: 15px;
    }

    .video-card__meta {
        font-size: 11px;
        gap: 12px;
    }
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-modal__iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-modal__iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 767px) {
    .video-modal__content {
        width: 95%;
    }

    .video-modal__close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   POPULAR POSTS SECTION (After Banner)
   ============================================ */
.popular-posts-section {
    margin: 50px 0;
    width: 100%;
}

.popular-posts-wrapper {
    width: 100%;
}

.popular-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .popular-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .popular-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.popular-post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
}

.popular-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.popular-post-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-post-card:hover .popular-post-thumb img {
    transform: scale(1.05);
}

.popular-post-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.popular-post-content {
    padding: 20px;
}

.popular-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--text);
    transition: color 0.3s ease;
}

.popular-post-title a:hover {
    color: var(--primary);
}

.popular-post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--muted-text);
    flex-wrap: wrap;
}

/* Widget styling when displayed in main content */
.popular-posts-section .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.popular-posts-section .widget-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    border-left: none;
    padding-left: 0;
}

.popular-posts-section .widget ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    list-style: none;
    margin: 0;
}

@media (min-width: 768px) {
    .popular-posts-section .widget ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .popular-posts-section .widget ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

.popular-posts-section .widget ul li {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 0;
    margin: 0;
    border-bottom: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.popular-posts-section .widget ul li:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.popular-posts-section .widget ul li a {
    display: block;
    padding: 20px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

.popular-posts-section .widget ul li a:hover {
    color: var(--primary);
}

/* ============================================
   POPULAR CATEGORIES
   ============================================ */
.popular-categories {
    margin: 50px 0;
    width: 100%;
}

.category-icon-card {
    background: var(--card-bg);
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.category-icon-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.category-icon-card__icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.category-icon-card__icon i {
    font-size: 28px;
    color: #fff;
    display: block;
}

.category-icon-card__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
}

.category-icon-card__count {
    font-size: 13px;
    color: var(--muted-text);
    font-weight: 400;
    line-height: 1.4;
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.newsletter-cta {
    margin: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #0047b3 100%);
    padding: 60px 40px;
    border-radius: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.newsletter-cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-cta__heading {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.newsletter-cta__text {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.newsletter-cta__form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-cta__input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-family: inherit;
    min-width: 0;
}

.newsletter-cta__input:focus {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.newsletter-cta__button {
    padding: 16px 32px;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-cta__button:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.newsletter-cta__button:focus {
    outline: 3px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .newsletter-cta {
        padding: 40px 20px;
    }
    
    .newsletter-cta__form {
        flex-direction: column;
    }
    
    .newsletter-cta__button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   OPINION & COLUMNISTS
   ============================================ */
.opinion-section {
    margin: 50px 0;
    width: 100%;
}

.author-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    width: 100%;
}

.author-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.author-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-card__info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.author-card__role {
    font-size: 13px;
    color: var(--muted-text);
}

.author-card__quote {
    font-size: 16px;
    font-style: italic;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

.author-card__quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.author-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0f1720;
    color: #cbd5e1;
    padding: 60px 0 20px;
    margin-top: 80px;
    width: 100%;
    max-width: 100%;
}

.footer-columns {
    margin-bottom: 40px;
}

.footer-column {
    margin-bottom: 30px;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo__link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo__text {
    display: inline-block;
    background: #1e63ff;
    color: #fff;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
}

.footer-logo__img {
    max-height: 40px;
    width: auto;
}

.footer-description {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Footer Headings */
.footer-heading {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Menu - Specific styles to override any header styles */
.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-menu li {
    margin-bottom: 10px;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.site-footer .footer-menu a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border: none;
    background: transparent;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus {
    color: #fff;
    background: transparent;
    transform: none;
}

/* Footer Widgets - Ensure they don't inherit header styles */
.site-footer .widget {
    margin-bottom: 30px;
    background: transparent;
}

.site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .widget ul li {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    border: none;
    background: transparent;
}

.site-footer .widget ul li a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border: none;
    background: transparent;
}

.site-footer .widget ul li a:hover,
.site-footer .widget ul li a:focus {
    color: #fff;
    background: transparent;
    transform: none;
}

.site-footer .widget-title,
.site-footer .widget h3,
.site-footer .widget h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.social-icon:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Footer Tags */
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.footer-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.footer-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Footer Newsletter */
.footer-newsletter {
    margin-top: 30px;
}

.footer-newsletter__text {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.footer-newsletter__form {
    margin-top: 12px;
}

.footer-newsletter__input-wrapper {
    display: flex;
    gap: 0;
}

.footer-newsletter__input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px 0 0 4px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.footer-newsletter__input::placeholder {
    color: #94a3b8;
}

.footer-newsletter__input:focus {
    background: rgba(255, 255, 255, 0.12);
}

.footer-newsletter__button {
    padding: 12px 16px;
    background: #1e63ff;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.footer-newsletter__button:hover {
    background: #1552d9;
}

.footer-newsletter__button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-bottom__content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-newsletter__input-wrapper {
        flex-direction: column;
    }
    
    .footer-newsletter__input,
    .footer-newsletter__button {
        border-radius: 4px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-30 { margin-bottom: 30px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

.p-0 { padding: 0; }
.p-1 { padding: var(--gutter); }
.m-0 { margin: 0; }
.m-auto { margin: 0 auto; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

@media (min-width: 768px) {
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
    .d-md-grid { display: grid; }
    .d-md-none { display: none; }
}

/* ============================================
   WIDGETS & SIDEBAR
   ============================================ */
.widget {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    width: 100%;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text);
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--primary);
}

/* ============================================
   TRENDING SECTION
   ============================================ */
.trending-section {
    margin: 50px 0;
    width: 100%;
}

.trending-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--muted-bg);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    position: relative;
}

.trending-slider.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.trending-slider:active {
    cursor: grabbing;
}

.trending-slider::-webkit-scrollbar {
    height: 6px;
}

.trending-slider::-webkit-scrollbar-track {
    background: var(--muted-bg);
    border-radius: 3px;
}

.trending-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.trending-item {
    min-width: 280px;
    max-width: 100%;
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    flex-shrink: 0;
}

.trending-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.trending-thumb {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.trending-time {
    font-size: 12px;
    color: var(--muted-text);
}

/* ============================================
   SINGLE POST & ARCHIVE
   ============================================ */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: var(--muted-text);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.entry-meta svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.entry-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent);
}

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: var(--text);
    margin-right: 8px;
}

/* Archive Posts */
.archive-post {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
}

.archive-post:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.archive-thumbnail {
    width: 220px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-content {
    flex: 1;
    min-width: 0;
}

.archive-category {
    display: inline-block;
    margin-bottom: 12px;
}

.archive-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.archive-excerpt {
    color: var(--muted-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.archive-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--muted-text);
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .archive-post {
        flex-direction: column;
    }
    
    .archive-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    width: 100%;
}

.search-thumbnail {
    width: 200px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-content {
    flex: 1;
    min-width: 0;
}

.search-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.search-excerpt {
    color: var(--muted-text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.search-meta {
    font-size: 13px;
    color: var(--muted-text);
}

@media (max-width: 767px) {
    .search-result-item {
        flex-direction: column;
    }
    
    .search-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--muted-bg);
    border-radius: var(--radius);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-meta {
    font-size: 14px;
    color: var(--muted-text);
    margin-bottom: 12px;
}

.comment-content {
    line-height: 1.6;
    color: var(--text);
}

.comment-reply-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--accent);
    transform: scale(1.03);
}

/* Comment Form */
.comment-form {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
    margin-bottom: 20px;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form #submit {
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

.comment-form #submit:hover {
    background: var(--accent);
    transform: scale(1.03);
}

.comment-form #submit:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page-header {
    text-align: center;
    margin: 50px 0;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.contact-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.contact-breadcrumb nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-breadcrumb a {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-breadcrumb a:hover {
    color: var(--primary);
}

.contact-breadcrumb span {
    color: var(--text);
}

.contact-page-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.contact-page-description {
    font-size: 18px;
    color: var(--muted-text);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 50px;
}

@media (min-width: 1024px) {
    .contact-page-wrapper {
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
    }
}

/* Contact Form Section */
.contact-form-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form-header {
    margin-bottom: 30px;
}

.contact-form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.contact-form-description {
    font-size: 16px;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-form-wrapper {
    margin-top: 30px;
}

.contact-form-content {
    width: 100%;
}

.contact-form-empty {
    padding: 40px;
    text-align: center;
    background: var(--muted-bg);
    border-radius: 8px;
    color: var(--muted-text);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 99, 255, 0.1);
}

.contact-submit {
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    min-width: 150px;
}

.contact-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 99, 255, 0.3);
}

.contact-submit:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 24px;
}

.contact-info-content {
    flex: 1;
}

.contact-info-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.contact-info-link {
    display: block;
    color: var(--muted-text);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: var(--primary);
}

.contact-info-link:last-child {
    margin-bottom: 0;
}

.contact-info-text {
    color: var(--muted-text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Contact Map Section */
.contact-map-section {
    margin-top: 24px;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.contact-info-empty {
    color: var(--muted-text);
    font-style: italic;
    opacity: 0.7;
}

.contact-map-empty {
    background: var(--muted-bg);
    border: 2px dashed var(--border);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-map-placeholder {
    text-align: center;
    color: var(--muted-text);
    padding: 40px 20px;
}

.contact-map-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.contact-map-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .contact-page-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    .contact-page-wrapper {
        gap: 40px;
        margin-top: 40px;
    }
    
    .contact-info-card {
        padding: 24px 20px;
    }
    
    .contact-info-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 16px;
    font-family: inherit;
    min-width: 0;
}

.search-field:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

.search-submit {
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

.search-submit:hover {
    background: var(--accent);
    transform: scale(1.03);
}

.search-submit:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   PAGINATION
   ============================================ */
.page-links {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: var(--muted-bg);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.page-links a:hover {
    background: var(--primary);
    color: #fff;
}

.posts-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 200px;
}

.nav-previous {
    padding-right: 20px;
}

.nav-next {
    padding-left: 20px;
    text-align: right;
}

/* ============================================
   SKIP LINK & 404
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 999;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-404 {
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* 404 Number Display */
.error-404__number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-404__digit {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    font-family: var(--font-head);
    display: inline-block;
}

.error-404__digit--zero {
    position: relative;
    color: var(--accent);
}

.error-404__digit--zero svg {
    width: clamp(80px, 15vw, 160px);
    height: clamp(80px, 15vw, 160px);
    color: var(--accent);
}

/* Error Message */
.error-404__message {
    margin-bottom: 50px;
}

.error-404__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.error-404__description {
    font-size: 18px;
    color: var(--muted-text);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Search Section */
.error-404__search {
    margin-bottom: 50px;
    padding: 40px;
    background: var(--muted-bg);
    border-radius: 12px;
}

.error-404__search-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.error-404__search-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.error-404__search-form {
    width: 100%;
}

.error-404__search-form .search-form {
    display: flex;
    gap: 12px;
}

.error-404__search-form .search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color 0.3s ease;
}

.error-404__search-form .search-field:focus {
    outline: none;
    border-color: var(--primary);
}

.error-404__search-form .search-submit {
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.error-404__search-form .search-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Search Suggestions for 404 Page */
.error-404__search-form-wrapper .search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 100;
}

/* Action Buttons */
.error-404__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.error-404__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.error-404__button--primary {
    background: var(--primary);
    color: #fff;
}

.error-404__button--primary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 99, 255, 0.3);
}

.error-404__button--secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.error-404__button--secondary:hover {
    background: var(--muted-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.error-404__button i {
    font-size: 16px;
}

/* Popular Posts Section */
.error-404__popular {
    margin-top: 60px;
    text-align: left;
}

.error-404__popular-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text);
}

.error-404__post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.error-404__post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.error-404__post-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.error-404__post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.error-404__post-card:hover .error-404__post-thumb img {
    transform: scale(1.05);
}

.error-404__post-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.error-404__post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.error-404__post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.error-404__post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.error-404__post-title a:hover {
    color: var(--primary);
}

.error-404__post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--muted-text);
    margin-top: auto;
}

.error-404__post-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-404__post-date i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .error-404 {
        padding: 60px 20px;
    }
    
    .error-404__number {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .error-404__search {
        padding: 30px 20px;
    }
    
    .error-404__search-form .search-form {
        flex-direction: column;
    }
    
    .error-404__search-form .search-submit {
        width: 100%;
    }
    
    .error-404__actions {
        flex-direction: column;
    }
    
    .error-404__button {
        width: 100%;
        justify-content: center;
    }
    
    .error-404__popular-title {
        font-size: 24px;
    }
}

/* ============================================
   FINAL FIXES - NO HORIZONTAL SCROLLBAR
   ============================================ */
.site {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.content-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-wrapper {
    width: 100%;
    max-width: 100%;
}

.video-grid {
    width: 100%;
    max-width: 100%;
}

.grid {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 767px) {
    .trending-item {
        min-width: 250px;
    }
    
    .trending-slider {
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }
}
