/* ================================================================
   URBAN GUJARAT NEWS - PROFESSIONAL NEWS PORTAL CSS
   Inspired by BBC News, CNN, Times of India
   ================================================================ */

/* ========================================
   CSS VARIABLES - REFINED NEWS DESIGN SYSTEM
   ======================================== */

:root {
  /* Brand Colors - Refined */
  --primary-red: #e53935;
  --primary-dark: #c62828;
  --primary-light: #ef5350;
  --accent-orange: #ff6f00;
  --accent-blue: #1976d2;

  /* Secondary Navy */
  --navy-primary: #0d47a1;
  --navy-light: #1565c0;
  --navy-dark: #01579b;

  /* Typography Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #424242;
  --text-muted: #757575;
  --text-light: #9e9e9e;
  --text-white: #ffffff;
  --text-inverse: #fafafa;

  /* Background Colors */
  --bg-body: #f5f5f5;
  --bg-white: #ffffff;
  --bg-light-gray: #fafafa;
  --bg-dark: #1a1a1a;
  --bg-header: #ffffff;

  /* Border Colors */
  --border-thin: #e0e0e0;
  --border-medium: #bdbdbd;
  --border-dark: #757575;

  /* News-Specific Colors */
  --breaking-red: #ff1744;
  --trending-orange: #ff9100;
  --featured-blue: #2196f3;

  /* Shadows - Enhanced Elevation */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Transitions */
  --transition-quick: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;

  /* Typography Scale */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-base: 16px;
  --font-md: 18px;
  --font-lg: 20px;
  --font-xl: 24px;
  --font-2xl: 28px;
  --font-3xl: 36px;
  --font-4xl: 48px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Gujarati", sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-quick);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-normal);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-red);
  color: white;
  padding: var(--sp-sm) var(--sp-md);
  z-index: 10000;
  font-weight: 600;
  font-size: var(--font-sm);
}

.skip-link:focus {
  top: 0;
}

/* Selection */
::selection {
  background: var(--primary-red);
  color: white;
}

::-moz-selection {
  background: var(--primary-red);
  color: white;
}

/* ========================================
   SCROLL TO TOP BUTTON & READ PROGRESS
   (Used by main.js)
   ======================================== */

/* Read Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(229, 57, 53, 0.5);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all var(--transition-normal);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.scroll-top-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-xl);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}

.main-content {
  min-width: 0;
}

/* ========================================
   HEADER - PROFESSIONAL NEWS STYLE
   ======================================== */
.main-header {
  background: var(--bg-white);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top Bar - Compact Horizontal Layout */
.top-bar {
  background: #12223c;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Logo - Compact */
.logo {
  flex-shrink: 0;
}

.logo a {
  display: block;
  transition: transform var(--transition-normal);
}

.logo:hover a {
  transform: scale(1.02);
}

.logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)) brightness(1.1);
}

/* Top Actions - Compact */
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Search Form - Smaller */
.search-form {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.search-form input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 500;
  color: white;
  transition: all var(--transition-quick);
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-form input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  outline: none;
}

.search-form button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.search-form button:hover {
  color: white;
}

/* E-Paper Button - Compact */
.epaper-link {
  flex-shrink: 0;
}

.btn-epaper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: white;
  border: none;
  border-radius: 25px;
  color: #d32f2f;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-epaper:hover {
  background: #f5f5f5;
  color: #c62828;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Language Switcher - Compact */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 22px;
  flex-shrink: 0;
}

.lang-switch a {
  padding: 6px 12px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-quick);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 44px;
  text-align: center;
}

.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.lang-switch a.active {
  color: #d32f2f;
  background: white;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* ========================================
   NAVIGATION - PROFESSIONAL NAVY STYLE
   ======================================== */
.nav-bar {
  background: #d32f2f;
  border-bottom: none;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

#main-nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible;
}

.nav-item {
  position: relative;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: white;
  display: block;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  transition: all var(--transition-quick);
  letter-spacing: 0.4px;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link.active {
  color: #d32f2f;
  background: white;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: white;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.has-dropdown,
.has-sub-dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 9px;
  margin-left: 5px;
  opacity: 0.85;
  transition: transform var(--transition-quick);
}

.has-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  min-width: 700px;
  max-height: 550px;
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  border-top: 4px solid var(--primary-red);
  margin-top: 10px;
  z-index: 1000;
  overflow: hidden;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-search {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dropdown-search input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.dropdown-search input:focus {
  border-color: var(--navy-primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.dropdown-grid {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  overflow-y: auto;
  list-style: none;
}

.dropdown-grid li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-menu a:hover {
  background: rgba(13, 71, 161, 0.05);
  color: var(--navy-primary);
  border-left-color: var(--navy-primary);
  padding-left: 15px;
}

/* HIERARCHICAL NAV WRAPPERS */
.nav-link-wrapper,
.cat-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sub-toggle,
.nested-toggle {
  background: none;
  border: none;
  color: inherit;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 10px;
  opacity: 0.6;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-toggle:hover,
.nested-toggle:hover {
  opacity: 1;
  color: var(--primary-red);
}

.nav-item.active .sub-toggle,
.cat-item.active .nested-toggle {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary-red);
}

.nav-link {
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition-normal);
  border-radius: var(--radius-sm);
  flex: 1;
}

/* Level 2 Desktop Hover */
.has-sub-dropdown:hover .mega-sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-sub-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 600px;
  max-width: 90vw; /* prevent overflow */
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  border-top: 4px solid #d32f2f;
  border-radius: 0 0 12px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
  overflow: hidden;
  margin-top: 0;
  white-space: normal;
}
.nav-item:last-child .mega-sub-dropdown,
.nav-item:nth-last-child(2) .mega-sub-dropdown,
.nav-item:nth-last-child(3) .mega-sub-dropdown {
  left: auto;
  right: 0;
}

.sub-search-box {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.sub-search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.sub-search-box input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.sub-grid {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  max-height: 450px;
  overflow-y: auto;
  list-style: none;
}

.sub-item a {
  display: block;
  padding: 10px 15px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.sub-item a:hover {
  background: rgba(229, 57, 53, 0.05);
  color: var(--primary-red);
  border-left-color: var(--primary-red);
  padding-left: 20px;
}

/* MEGA MENU NESTED (In More) */
.dropdown-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  overflow-y: auto;
  list-style: none;
}

.cat-item {
  list-style: none;
}

.has-nested {
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-sm);
  padding: 12px !important;
  display: flex;
  flex-direction: column;
}

.cat-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.parent-cat {
  color: var(--navy-primary) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  margin-bottom: 10px !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.03);
  padding-bottom: 5px !important;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s;
}

.parent-cat:hover {
  color: var(--primary-red) !important;
}

.nested-list {
  padding-left: 5px;
  display: none !important; /* Hidden by default */
  flex-direction: column;
  gap: 2px;
  max-height: 250px; /* Prevent too long lists from breaking layout */
  overflow-y: auto;
}

/* Show nested list when parent cat-item is active */
.cat-item.active .nested-list {
  display: flex !important;
}

/* Custom scrollbar for small lists */
.nested-list::-webkit-scrollbar {
  width: 4px;
}
.nested-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.child-cat {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  padding: 6px 10px !important;
  display: block !important;
  border-left: 2px solid transparent !important;
  margin-left: 0;
  text-decoration: none;
  transition: all 0.2s !important;
}

.child-cat:hover {
  border-left-color: var(--primary-red) !important;
  color: var(--primary-red) !important;
  padding-left: 15px !important;
  background: rgba(0, 0, 0, 0.02);
}

/* No results found state */
.no-results {
  grid-column: span 3;
  padding: 30px;
  text-align: center;
  color: #888;
  font-style: italic;
  display: none;
}

.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-quick);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mobile-nav-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) var(--sp-lg);
  background: #12223c;
}

.mobile-logo img {
  height: 42px;
}

.mobile-nav-close {
  font-size: 34px;
  color: white;
  line-height: 1;
  padding: 4px 10px;
}

.mobile-extras {
  display: none;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-light-gray);
  border-bottom: 1px solid var(--border-thin);
}

.mobile-search {
  display: flex;
  margin-bottom: var(--sp-md);
  background: white;
  border: 2px solid var(--border-thin);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: var(--font-sm);
}

.mobile-search button {
  padding: 0 18px;
  background: var(--primary-red);
  color: white;
  font-size: 18px;
}

.mobile-lang {
  display: flex;
  gap: var(--sp-sm);
}

.mobile-lang a {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: white;
  border: 2px solid var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 700;
  transition: all var(--transition-quick);
}

.mobile-lang a.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
}

/* ========================================
   HEADER AD
   ======================================== */
/* ========================================
   HEADER AD
   ======================================== */
.header-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--sp-md) 0;
  background: var(--bg-light-gray);
  border-bottom: 1px solid var(--border-thin);
  overflow: hidden;
}

.header-ad img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
}

/* ========================================
   STRICT ADVERTISEMENT SIZES
   ======================================== */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  overflow: hidden;
  margin: 0 auto;
}

.ad-leaderboard {
  max-width: 728px;
  width: 100%;
  min-height: 90px;
}

.ad-sidebar {
  max-width: 300px;
  width: 100%;
  margin-bottom: var(--sp-lg);
}

.ad-fluid {
  width: 100%;
  height: auto;
}

/* Ensure ads don't overflow on mobile */
@media (max-width: 768px) {
  .ad-leaderboard {
    max-width: 320px;
  }
}

/* ========================================
   NEWS SECTIONS - PROFESSIONAL LAYOUTS
   ======================================== */
.news-section {
  margin-bottom: var(--sp-2xl);
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-section h2 {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-left: 5px solid #e53935;
  padding-left: var(--sp-md);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   LAYOUT: FEATURED - HERO STYLE
   ======================================== */
.layout-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-lg);
}

.featured-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  height: 460px;
}

.featured-main:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform var(--transition-slow);
}

.featured-main:hover img {
  transform: scale(1.06);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    transparent 100%
  );
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
}

.featured-overlay h3 {
  font-size: var(--font-2xl);
  line-height: 1.3;
  color: white;
  font-weight: 800;
  margin-bottom: var(--sp-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.featured-overlay h3 a {
  color: white;
  transition: color var(--transition-quick);
}

.featured-overlay h3 a:hover {
  color: var(--accent-orange);
}

.featured-list ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.featured-list li {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: all var(--transition-normal);
}

.featured-list li:hover {
  border-left-color: #e53935;
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.featured-list a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-list li:hover a {
  color: #e53935;
}

/* ========================================
   LAYOUT: GRID - NEWS CARDS
   ======================================== */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-lg);
}

.grid-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-thin);
  display: flex;
  flex-direction: column;
}

.grid-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: #e53935;
}

.card-image-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-light-gray);
  position: relative;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.grid-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.grid-card h3 {
  padding: var(--sp-md) var(--sp-md) var(--sp-sm);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-card h3 a {
  color: var(--text-primary);
  transition: color var(--transition-quick);
}

.grid-card:hover h3 a {
  color: #e53935;
}

/* ========================================
   LAYOUT: SLIDER - HORIZONTAL SCROLL
   ======================================== */
.layout-slider {
  position: relative;
  padding: var(--sp-md) 0;
  margin: 0 calc(-1 * var(--sp-lg));
}

.slider-track {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) var(--bg-light-gray);
  padding: var(--sp-sm) var(--sp-lg) var(--sp-md);
}

.slider-track::-webkit-scrollbar {
  height: 10px;
}

.slider-track::-webkit-scrollbar-track {
  background: var(--bg-light-gray);
  border-radius: 5px;
}

.slider-track::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 5px;
}

.slider-track::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.slider-item {
  flex: 0 0 350px;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-thin);
}

.slider-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-red);
}

.slider-link {
  display: block;
}

.slider-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-light-gray);
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.slider-item:hover .slider-image img {
  transform: scale(1.08);
}

.slider-content {
  padding: var(--sp-md);
}

.slider-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-item:hover .slider-title {
  color: var(--primary-red);
}

.slider-content time {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.6px;
}

.badge-breaking {
  background: var(--breaking-red);
  color: white;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  color: var(--primary-red);
  font-size: 20px;
  font-weight: bold;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-thin);
   
  padding: 0;          
  text-align: center;  
}

.slider-btn span {
  display: block;
  
  line-height: 0;    
}
.slider-btn:hover {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
 
}

.slider-btn.prev {
  left: var(--sp-sm);
}

.slider-btn.next {
  right: var(--sp-sm);
}

/* ========================================
   LAYOUT: LIST - CLEAN TEXT LIST
   ======================================== */
.layout-list ul {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-thin);
}

.layout-list li {
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--border-thin);
  transition: all var(--transition-quick);
  position: relative;
  padding-left: var(--sp-lg);
}

.layout-list li:last-child {
  border-bottom: none;
}

.layout-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
  font-size: var(--font-md);
  transition: transform var(--transition-quick);
}

.layout-list li:hover {
  background: rgba(211, 47, 47, 0.02);
  padding-left: var(--sp-xl);
}

.layout-list li:hover::before {
  transform: translateX(4px);
}

.layout-list a {
  color: var(--text-primary);
  font-size: var(--font-base);
  font-weight: 600;
  line-height: 1.6;
  display: block;
}

.layout-list li:hover a {
  color: var(--primary-red);
}

/* ========================================
   LAYOUT: HEADLINE - PROMINENT HEADLINES
   ======================================== */
.layout-headline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
}

.headline-item {
  padding: var(--sp-md) var(--sp-lg);
  background: white;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.5;
  transition: all var(--transition-normal);
}

.headline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
  border-left-color: var(--accent-blue);
  background: rgba(211, 47, 47, 0.02);
  color: var(--primary-red);
}

/* ========================================
   LAYOUT: BREAKING NEWS - PROFESSIONAL TICKER
   ======================================== */
.breaking-news-section {
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.layout-breaking {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-thin);
  height: 50px;
}

.breaking-label {
  background: var(--primary-red);
  color: white;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: whitePulse 2s infinite;
}

@keyframes whitePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.breaking-content {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.breaking-ticker {
  display: flex;
  white-space: nowrap;
  padding-left: 20px;
  animation: tickerScroll 40s linear infinite;
}

.breaking-ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-right: 50px;
  transition: color var(--transition-quick);
}

.ticker-item:hover {
  color: var(--primary-red);
}

.ticker-item::after {
  content: "•";
  margin-left: 25px;
  color: var(--border-medium);
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .layout-breaking {
    height: 44px;
  }
  .breaking-label {
    padding: 0 15px;
    font-size: 11px;
  }
  .ticker-item {
    font-size: 13px;
    margin-right: 30px;
  }
}

/* ========================================
   LAYOUT: IMAGE LEFT - HORIZONTAL CARDS
   ======================================== */
.layout-image-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.image-left-item {
  display: flex;
  gap: var(--sp-md);
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-thin);
  transition: all var(--transition-normal);
}

.image-left-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--primary-red);
}

.image-left-item img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.image-left-item:hover img {
  transform: scale(1.06);
}

.image-left-item h3 {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.image-left-item:hover h3 a {
  color: var(--primary-red);
}

/* ========================================
   LAYOUT: COMPACT GRID - DENSE LAYOUT
   ======================================== */
.layout-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-md);
}

.compact-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-thin);
  border-left: 4px solid transparent;
  transition: all var(--transition-normal);
}

.compact-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-left-color: var(--primary-red);
}

.compact-card h4 {
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card:hover h4 a {
  color: var(--primary-red);
}

/* ========================================
   LAYOUT: TWO COLUMN - BALANCED LAYOUT
   ======================================== */
.layout-two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}

.layout-two-column article {
  background: white;
  padding: var(--sp-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-thin);
  transition: all var(--transition-normal);
}

.layout-two-column article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-red);
}

.layout-two-column h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.layout-two-column article:hover h3 a {
  color: var(--primary-red);
}

/* ========================================
   CATEGORY PAGE
   ======================================== */
.category-header {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
  color: white;
  padding: var(--sp-2xl) var(--sp-lg);
  margin-bottom: var(--sp-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.category-header h1 {
  font-size: var(--font-4xl);
  font-weight: 900;
  margin-bottom: var(--sp-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: white;
}

.category-header p {
  font-size: var(--font-md);
  opacity: 0.95;
  font-weight: 500;
}

.category-item {
  display: flex;
  gap: var(--sp-lg);
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-thin);
  transition: all var(--transition-normal);
}

.category-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-red);
}

.category-item:hover img {
  transform: scale(1.04);
}
.category-item img {
  width: 260px;
  height: 180px;
  object-fit: contain;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.img-wrap {
  width: 260px;
  height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.9);
  transform: scale(1.1);
}

.img-wrap img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;

  transform: scale(1);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.category-item:hover .img-wrap img {
  transform: scale(1.06);
}
.img-wrap::before {
  transition: transform 0.5s ease;
}

.category-item:hover .img-wrap::before {
  transform: scale(1.15);
}
.category-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.category-item h2 {
  font-size: var(--font-xl);
  line-height: 1.3;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  border: none;
  padding: 0;
}

.category-item h2::after {
  display: none;
}

.category-item h2 a {
  color: var(--text-primary);
  transition: color var(--transition-quick);
}

.category-item:hover h2 a {
  color: var(--primary-red);
}

.category-item-meta {
  display: flex;
  gap: var(--sp-md);
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.category-item-excerpt {
  font-size: var(--font-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ========================================
   ARTICLE/NEWS PAGE
   ======================================== */
.article-page {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-sm);
}

.article-page h1 {
  font-size: var(--font-3xl);
  line-height: 1.2;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--sp-lg);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  margin-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border-thin);
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.article-meta a {
  color: var(--primary-red);
  font-weight: 700;
  transition: color var(--transition-quick);
}

.article-meta a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.share-btn {
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 700;
  transition: all var(--transition-normal);
  border: 2px solid var(--border-medium);
  background: white;
  color: var(--text-primary);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn.facebook {
  border-color: #1877f2;
  color: #1877f2;
}

.share-btn.facebook:hover {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
}

.share-btn.whatsapp {
  border-color: #25d366;
  color: #25d366;
}

.share-btn.whatsapp:hover {
  background: #25d366;
  color: white;
}

.share-btn.copy-link:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.article-featured {
  margin-bottom: var(--sp-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-featured img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

.article-content {
  font-size: var(--font-md);
  line-height: 1.8;
  color: var(--text-secondary);
}


.article-content h2 {
  font-size: var(--font-xl);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
  font-weight: 800;
}

.article-content h3 {
  font-size: var(--font-lg);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
  font-weight: 700;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: var(--sp-xl) 0;
  box-shadow: var(--shadow-sm);
}

.article-content a {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--primary-dark);
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-results-meta {
  font-size: var(--font-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-lg);
  padding: var(--sp-md) var(--sp-lg);
  background: white;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-red);
  box-shadow: var(--shadow-subtle);
  font-weight: 600;
}

.search-category-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--primary-red);
  color: white;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  margin-left: var(--sp-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-date {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
}

/* ========================================
   E-NEWSPAPER PAGE
   ======================================== */
.enewspaper-page {
  min-height: 70vh;
  margin-top: 40px;
  padding: 20px;
}

.enewspaper-header {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-2xl);
  box-shadow: var(--shadow-md);
}

.enewspaper-header h1 {
  font-size: var(--font-4xl);
  font-weight: 900;
  margin-bottom: var(--sp-sm);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.enewspaper-header p {
  font-size: var(--font-md);
  opacity: 0.95;
  font-weight: 500;
}

.enewspaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}

.enewspaper-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-thin);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.enewspaper-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-red);
}

.enewspaper-title {
  font-size: var(--font-md);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}

.enewspaper-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.enewspaper-meta-icon {
  font-size: 16px;
}

.enewspaper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 13px var(--sp-lg);
  background: var(--primary-red);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-base);
  transition: all var(--transition-normal);
  text-align: center;
}

.enewspaper-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.enewspaper-empty {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  grid-column: 1 / -1;
}

.enewspaper-empty h3 {
  font-size: var(--font-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
  font-weight: 800;
}

.enewspaper-empty p {
  font-size: var(--font-base);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================================
   SIDEBAR - NEWS WIDGETS
   ======================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.sidebar-block {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-thin);
  transition: all var(--transition-normal);
}

.sidebar-block:hover {
  box-shadow: var(--shadow-md);
  border-color: #0d47a1;
}

.sidebar-block h3 {
  font-size: var(--font-md);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 3px solid #e53935;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.sidebar-list li {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-quick);
  border-left: 3px solid transparent;
}

.sidebar-list li:hover {
  background: rgba(211, 47, 47, 0.04);
  border-left-color: var(--primary-red);
  transform: translateX(4px);
}

.sidebar-list a {
  font-size: var(--font-sm);
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-list li:hover a {
  color: #e53935;
}

.sidebar-block.ad-block {
  padding: 0;
  overflow: hidden;
}

.sidebar-block.ad-block img {
  width: 100%;
  height: auto;
}

/* ========================================
   AD BLOCKS
   ======================================== */
.ad-block {
  margin: var(--sp-lg) 0;
  text-align: center;
}

.ad-block img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
}

.ad-in-content {
  margin: var(--sp-xl) 0;
  text-align: center;
}

.ad-in-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   PAGINATION - NEWS STYLE
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-sm);
  margin: var(--sp-2xl) 0;
  flex-wrap: wrap;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--sp-md);
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-thin);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--font-sm);
  transition: all var(--transition-quick);
}

.page-link:hover {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-link.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.mobile-only {
  display: none;
}

.mobile-only-flex {
  display: none;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Large Desktop to Laptop (max-width: 1200px) */
@media (max-width: 1200px) {
  .top-bar-inner {
    gap: 14px;
  }

  .top-actions {
    gap: 14px;
  }

  .search-form {
    width: 300px;
    min-width: 220px;
  }

  .search-form input {
    font-size: 14px;
    padding: 11px 46px 11px 18px;
  }

  .search-form button {
    width: 40px;
    height: 40px;
  }

  .btn-epaper {
    padding: 11px 20px;
    font-size: 13px;
  }

  .lang-switch a {
    padding: 7px 13px;
    font-size: 12px;
    min-width: 42px;
  }

  /* Navigation Scaling */
  .nav-link {
    padding: 14px 18px;
    font-size: 14px;
  }
}

/* Intermediate Tablet (max-width: 1100px) */
@media (max-width: 1100px) {
  .dropdown-menu {
    min-width: 500px;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-link {
    padding: 12px 14px;
    font-size: 13px;
  }

  .dropdown-menu {
    min-width: 450px;
    padding: 15px;
  }

  .dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-bar-inner {
    gap: 12px;
  }

  .top-actions {
    gap: 12px;
  }

  .search-form {
    width: 260px;
    min-width: 200px;
  }

  .search-form input {
    font-size: 13px;
    padding: 10px 44px 10px 16px;
  }

  .search-form button {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .btn-epaper {
    padding: 10px 18px;
    font-size: 12px;
    gap: 6px;
  }

  .lang-switch {
    padding: 4px;
  }

  .lang-switch a {
    padding: 7px 11px;
    font-size: 11px;
    min-width: 38px;
  }

  .logo img {
    height: 48px;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--sp-md);
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }

  .layout-featured {
    grid-template-columns: 1fr;
  }

  .featured-main {
    height: 380px;
  }

  .layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sp-md);
  }

  .layout-two-column {
    grid-template-columns: 1fr;
  }

  .category-item {
    flex-direction: column;
  }

  .category-item img {
    width: 100%;
    height: 220px;
  }

  .nav-bar {
    overflow: visible;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--sp-md);
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .mobile-only-flex {
    display: flex !important;
  }

  .btn-epaper.mobile-epaper {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 20px;
    color:#fff;
    background: rgba(255, 255, 255, 0.15);
  }

  /* Mobile Header */
  .top-bar {
    padding: var(--sp-sm) 0;
  }

  .logo img {
    height: 44px;
  }

  .mobile-header-actions {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2; /* Put toggle after E-Paper */
  }

  .mobile-header-actions .epaper-link {
    order: 1; /* Put E-Paper first (left of toggle) */
  }

  #main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 88%;
    max-width: 340px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: left var(--transition-normal);
    overflow-y: auto;
    overflow-x: hidden;
  }

  #main-nav.active {
    left: 0;
  }

  .mobile-nav-header {
    display: flex;
  }

  .mobile-extras {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-thin);
    border-left: 3px solid transparent;
    border-radius: 0;
    color: var(--text-primary);
    display: block;
    flex: 1;
    text-align: left;
  }

  .nav-link-wrapper {
    background: white;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-item.active > .nav-link-wrapper {
    background: #f8f9ff;
    border-left: 4px solid var(--navy-primary);
  }

  .sub-toggle {
    padding: 15px 20px;
    font-size: 12px;
    border-left: 1px solid #eee;
  }

  .sub-dropdown {
    position: static;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: #fafafa;
    width: 100%;
    padding: 5px 0;
    list-style: none;
  }

  .nav-item.active > .sub-dropdown {
    display: block;
  }

  .sub-dropdown li a {
    padding: 12px 30px !important;
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    border-bottom: none;
    display: block;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    margin-left: 0;
    margin-right: 0;
    display: none;
    grid-template-columns: none;
    gap: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fcfcfc;
    width: 100%;
    min-width: unset; /* Override desktop min-width: 700px */
    max-width: 100%;
    left: 0;
    right: 0;
  }

  .dropdown-search {
    display: none;
  }

  .dropdown-grid {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
  }

  .cat-item {
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    background: white;
  }

  .cat-item.has-nested {
    background: #fafafa;
    padding: 0 !important;
  }

  .cat-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: white;
    border-bottom: 1px solid #f0f0f0;
  }

  .parent-cat {
    padding: 14px 20px !important;
    font-size: 15px !important;
    flex: 1;
    text-align: left !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-width: 0;
  }

  .nested-toggle {
    padding: 14px 20px !important;
    font-size: 14px !important;
    border-left: 1px solid #eee;
    background: transparent;
  }

  .cat-item.active .nested-toggle {
    background: #e8f4f8;
    color: var(--navy-primary);
  }

  .nested-list {
    display: none !important;
    background: #f8f9fa;
    padding: 5px 0 !important;
    max-height: none;
  }

  .cat-item.active .nested-list {
    display: block !important;
  }

  .child-cat {
    padding: 12px 30px !important;
    font-size: 14px !important;
    display: block !important;
    text-align: left !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .child-cat:last-child {
    border-bottom: none !important;
  }

  .cat-item a {
    padding: 14px 20px !important;
    font-size: 15px !important;
    color: var(--text-secondary) !important;
    display: block;
    text-decoration: none;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .cat-item:last-child {
    border-bottom: none;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }

  .mobile-overlay.active {
    display: block;
  }

  /* Content */
  .page-layout {
    margin-top: var(--sp-md);
    margin-bottom: var(--sp-lg);
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .news-section {
    margin-bottom: var(--sp-lg);
  }

  .news-section h2 {
    font-size: var(--font-md);
  }

  .layout-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .featured-main {
    height: 280px;
  }

  .featured-overlay h3 {
    font-size: var(--font-lg);
  }

  .layout-compact-grid {
    grid-template-columns: 1fr;
  }

  .layout-headline {
    grid-template-columns: 1fr;
  }

  .slider-item {
    flex: 0 0 300px;
  }

  .category-header h1 {
    font-size: var(--font-2xl);
  }

  .article-page {
    padding: var(--sp-lg) var(--sp-md);
  }

  .article-page h1 {
    font-size: var(--font-xl);
  }

  .article-content {
    font-size: var(--font-base);
  }

  .image-left-item img {
    width: 120px;
    height: 90px;
  }

  .enewspaper-grid {
    grid-template-columns: 1fr;
  }

  .enewspaper-header h1 {
    font-size: var(--font-2xl);
  }

  .layout-slider {
    margin: 0;
  }

  .slider-track {
    padding: var(--sp-sm) var(--sp-md) var(--sp-md);
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-sm);
  }

  .logo img {
    height: 38px;
  }

  .news-section h2 {
    font-size: var(--font-base);
    padding-left: var(--sp-sm);
  }

  .featured-main {
    height: 220px;
  }

  .featured-overlay {
    padding: var(--sp-md) var(--sp-sm) var(--sp-sm);
  }

  .featured-overlay h3 {
    font-size: var(--font-base);
  }

  .article-page h1 {
    font-size: var(--font-lg);
  }

  .share-buttons {
    gap: var(--sp-xs);
  }

  .share-btn {
    padding: var(--sp-sm) var(--sp-md);
    font-size: var(--font-xs);
  }

  .slider-item {
    flex: 0 0 270px;
  }

  .category-header {
    padding: var(--sp-lg) var(--sp-md);
  }

  .category-header h1 {
    font-size: var(--font-xl);
  }

  .pagination {
    gap: 6px;
  }

  .page-link {
    min-width: 38px;
    height: 38px;
    font-size: var(--font-xs);
  }

  .image-left-item {
    flex-direction: column;
  }

  .image-left-item img {
    width: 100%;
    height: 160px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .main-header,
  .sidebar,
  .share-buttons,
  .ad-block,
  .pagination,
  .mobile-overlay {
    display: none !important;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .article-page {
    box-shadow: none;
    padding: 0;
  }

  body {
    background: white;
  }
}

/* ========================================
   ABOUT PAGE – BREADCRUMB
   ======================================== */

.breadcrumb-bar {
  margin: var(--sp-md) 0 var(--sp-xl);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--border-medium);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-quick);
}

.breadcrumb a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}
/* ========================================
   ABOUT PAGE – LAYOUT
   ======================================== */

.about-page {
  margin-bottom: var(--sp-2xl);
}

.about-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

/* Intro */
.about-intro {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.about-title {
  font-size: var(--font-3xl);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
}

.about-tagline {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
/* ========================================
   ABOUT PAGE – EDITORIAL SECTIONS
   ======================================== */

.about-section {
  padding: var(--sp-xl) 0;
}

.about-section + .about-section {
  border-top: 1px solid var(--border-thin);
}

.about-section h2 {
  font-size: var(--font-lg);
  font-weight: 800;
  margin-bottom: var(--sp-sm);
  position: relative;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary-red);
  margin-top: 8px;
  border-radius: 2px;
}

.about-section p {
  font-size: var(--font-base);
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 720px;
}
/* ========================================
   ABOUT PAGE – CONNECT
   ======================================== */

.about-connect {
  margin-top: var(--sp-2xl);
  padding: var(--sp-lg);
  background: var(--bg-light-gray);
  border-left: 5px solid var(--primary-red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-lg);
}

.connect-text h3 {
  font-size: var(--font-md);
  font-weight: 800;
  margin-bottom: 4px;
}

.connect-text p {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.connect-icons {
  display: flex;
  gap: var(--sp-md);
}

/* Social buttons */
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: white;
  border: 2px solid var(--border-thin);
  transition: all var(--transition-normal);
}

.social-btn.facebook {
  color: #1877f2;
}
.social-btn.instagram {
  color: #e1306c;
}
.social-btn.youtube {
  color: #ff0000;
}
.social-btn.whatsapp {
  color: #075e54;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.social-btn.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.social-btn.twitter:hover {
  background: #000;
  color: white;
  border-color: #000;
}

.social-btn.instagram:hover {
  background: #e1306c;
  color: white;
  border-color: #e1306c;
}
/* ========================================
   ABOUT PAGE – CONNECT
   ======================================== */

.about-connect {
  margin-top: var(--sp-2xl);
  padding: var(--sp-lg);
  background: var(--bg-light-gray);
  border-left: 5px solid var(--primary-red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-lg);
}

.connect-text h3 {
  font-size: var(--font-md);
  font-weight: 800;
  margin-bottom: 4px;
}

.connect-text p {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.connect-icons {
  display: flex;
  gap: var(--sp-md);
}

/* Social buttons */
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: white;
  border: 2px solid var(--border-thin);
  transition: all var(--transition-normal);
}

.social-btn.facebook {
  color: #1877f2;
}
.social-btn.twitter {
  color: #000;
}
.social-btn.instagram {
  color: #e1306c;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.social-btn.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.social-btn.twitter:hover {
  background: #000;
  color: white;
  border-color: #000;
}

.social-btn.instagram:hover {
  background: #e1306c;
  color: white;
  border-color: #e1306c;
}
/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page {
  margin-bottom: var(--sp-2xl);
}

.contact-intro {
  max-width: 720px;
  margin-bottom: var(--sp-2xl);
}

.contact-title {
  font-size: var(--font-3xl);
  font-weight: 900;
  margin-bottom: 6px;
}

.contact-subtitle {
  font-size: var(--font-md);
  color: var(--text-secondary);
  font-weight: 500;
}
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-2xl);
}
.contact-form h2,
.contact-info h2 {
  font-size: var(--font-lg);
  font-weight: 800;
  margin-bottom: var(--sp-md);
}

.contact-form-body {
  background: white;
  padding: var(--sp-xl);
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-md);
}

.form-group label {
  font-size: var(--font-sm);
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}
.contact-submit {
  margin-top: var(--sp-sm);
  background: var(--primary-red);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.contact-submit:hover {
  background: var(--primary-dark);
}

.contact-alert {
  padding: 12px 16px;
  margin-bottom: var(--sp-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.contact-alert.success {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}
.contact-submit {
  margin-top: var(--sp-sm);
  background: var(--primary-red);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.contact-submit:hover {
  background: var(--primary-dark);
}

.contact-alert {
  padding: 12px 16px;
  margin-bottom: var(--sp-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.contact-alert.success {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-body {
    padding: var(--sp-lg);
  }
}

.contact-map {
  margin-top: var(--sp-lg);
}

/* Frame like editorial media */
.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-thin);
  background: var(--bg-light-gray);
  box-shadow: var(--shadow-subtle);
}

/* Map iframe */
.map-frame iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  transition: filter 0.3s ease;
}

/* Subtle interaction, not flashy */
.map-frame:hover iframe {
  filter: grayscale(0%) contrast(1) brightness(1);
}

/* Caption = context */
.map-caption {
  margin-top: 8px;
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .map-frame iframe {
    height: 200px;
  }
}

/* ========================================
   POLICY PAGES (PRIVACY, TERMS, ETC.)
   ======================================== */

.policy-page {
  margin-bottom: var(--sp-2xl);
}

.policy-header {
  max-width: 760px;
  margin-bottom: var(--sp-2xl);
}

.policy-header h1 {
  font-size: var(--font-3xl);
  font-weight: 900;
  margin-bottom: var(--sp-sm);
}

.policy-header p {
  font-size: var(--font-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-content {
  max-width: 760px;
}

.policy-content section {
  margin-bottom: var(--sp-xl);
}

.policy-content h2 {
  font-size: var(--font-lg);
  font-weight: 800;
  margin-bottom: var(--sp-sm);
  position: relative;
}

.policy-content h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-red);
  margin-top: 8px;
  border-radius: 2px;
}

.policy-content p {
  font-size: var(--font-base);
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--sp-md);
}

.policy-content ul {
  padding-left: 20px;
}

.policy-content li {
  font-size: var(--font-base);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.policy-updated {
  margin-top: var(--sp-2xl);
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border-thin);
  padding-top: var(--sp-md);
}

@media (max-width: 768px) {
  .policy-header h1 {
    font-size: var(--font-xl);
  }

  .policy-content,
  .policy-header {
    max-width: 100%;
  }
}
.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.featured-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.featured-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #111827, #1f2937);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.image-left-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.image-left-media {
  flex: 0 0 140px;
  height: 90px;
  background: #111827;
  overflow: hidden;
}

.image-left-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-left-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin: var(--sp-2xl) 0;
  flex-wrap: wrap;
}

/* Base link */
.pagination a {
  min-width: 42px;
  height: 42px;
  padding: 0 var(--sp-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-quick);
  box-shadow: var(--shadow-subtle);
}

/* Hover */
.pagination a:hover {
  color: var(--primary-red);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Active page */
.pagination a.active {
  background: var(--primary-red);
  color: var(--text-white);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

/* Prev / Next emphasis */
.pagination a:first-child,
.pagination a:last-child {
  padding: 0 var(--sp-lg);
  font-weight: 700;
}

/* Ellipsis */
.pagination-ellipsis {
  padding: 0 var(--sp-sm);
  color: var(--text-muted);
  font-weight: 600;
  user-select: none;
}
.logo-wrap {
     display: flex !important;
  align-items: center;   /* vertical center */
  gap: 10px;              /* space between logo & text */
  text-decoration: none;
}
 .logo-wrap img {
 height: 52px;           /* adjust if needed */
  width: auto;
  display: block;
}
.site-slogan {
   font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1;         /* remove extra height */
  white-space: nowrap;             /* ensure true center */
}


/* Responsive tuning */
@media (max-width: 768px) {
   .site-slogan {
    font-size: 10px;
  }
   .logo-wrap img {
 height: 40px;           /* adjust if needed */
  width: auto;
  display: block;
}
}
.mobile-lang-switch {
  display: none !important;
  padding: var(--sp-md) var(--sp-lg);
  background: white;
  border-bottom: 1px solid var(--border-thin);
  display: flex;
  gap: var(--sp-sm);
}

.mobile-lang-switch a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-thin);
  color: var(--text-secondary);
  transition: all var(--transition-quick);
}

.mobile-lang-switch a.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

.mobile-lang-switch a:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Show only on mobile sidebar */
@media (max-width: 768px) {
  .mobile-nav-header {
    display: flex;
  }

  .mobile-lang-switch {
    display: flex;
  }
}
