/*
Theme Name: Sundaweb News
Theme URI: https://sundaweb.com/
Author: Sundaweb
Author URI: https://sundaweb.com/
Description: A modern, premium news theme with a Navy Blue color scheme and built-in Dark Mode.
Version: 1.0.0
Text Domain: sundaweb-news
Tags: news, magazine, dark-mode, navy-blue, grid-layout, modern
*/

/* ==========================================================================
   CSS Variables & Theming (Navy Blue + Dark Mode)
   ========================================================================== */

:root {
  /* Brand Colors - Navy Blue Theme */
  --brand-navy: #0A192F;
  --brand-navy-light: #112240;
  --brand-navy-lighter: #233554;
  --accent-color: #64FFDA;
  --accent-hover: #00E676;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Merriweather', Georgia, 'Times New Roman', serif;

  /* Light Theme Colors (Default) */
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;

  /* Header & Footer */
  --header-bg: var(--bg-surface);
  --header-text: var(--text-primary);
  --footer-bg: var(--brand-navy-light);
  --footer-text: #CBD5E1;

  /* Layout Spacing */
  --container-max: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Dark Theme overrides via class */
html.dark-mode {
  --bg-main: #020617;
  --bg-surface: #0F172A;
  --bg-surface-alt: #1E293B;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-color: #334155;
  --header-bg: var(--brand-navy-light);
  --header-text: #FFFFFF;
  --footer-bg: #0A0F1D;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

html.dark-mode a {
  color: var(--accent-color);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site {
  overflow-x: clip;
  width: 100%;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */

.top-bar {
  background-color: var(--brand-navy);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: var(--spacing-xs) 0;
}

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

.trending-ticker {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.trending-ticker .label {
  background: var(--accent-color);
  color: var(--brand-navy);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.trending-ticker a {
  color: #CBD5E1;
  font-size: 0.9rem;
}

.trending-ticker a:hover {
  color: var(--accent-color);
}

.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

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

.site-branding img, .custom-logo {
  max-height: 90px;
  width: auto;
}

.site-title a {
  color: var(--header-text);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
}

html.dark-mode .site-title a {
  color: var(--accent-color);
}

.site-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Main Navigation */
.main-navigation {
  background-color: var(--brand-navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
}

.main-navigation a {
  display: block;
  padding: var(--spacing-sm) 0;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.main-navigation a:hover {
  color: var(--accent-color);
}
html.dark-mode .main-navigation a:hover {
  color: var(--accent-color);
}

/* Active / Current Menu Item */
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a,
.main-navigation ul li.current-menu-parent > a,
.main-navigation ul li.current-category-ancestor > a {
  color: var(--accent-color);
  position: relative;
}

.main-navigation ul li.current-menu-item > a::after,
.main-navigation ul li.current-menu-ancestor > a::after,
.main-navigation ul li.current-menu-parent > a::after,
.main-navigation ul li.current-category-ancestor > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px 3px 0 0;
}

.main-navigation a i {
  margin-right: 8px;
  font-size: 1.1em;
}

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

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all var(--transition-fast);
}

.dark-mode-toggle:hover {
  background: var(--bg-surface-alt);
}

/* ==========================================================================
   Home Page Layout (Hero + Grid + Sidebar)
   ========================================================================== */

.home-main-section {
  padding: var(--spacing-xl) 0;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--spacing-lg);
}

@media (max-width: 992px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Hero Section (Top) */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  height: 500px;
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-main {
    height: 350px;
  }
  .hero-side {
    height: 400px;
  }
}

.hero-main {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--spacing-sm);
  height: 100%;
  min-height: 0;
}

.hero-item {
  display: block;
  height: 100%;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 0;
}

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

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

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-lg);
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0) 100%);
  color: #fff;
}

.hero-cat {
  background: var(--accent-color);
  color: var(--brand-navy);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: var(--spacing-xs);
  display: inline-block;
}

.hero-title {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
}

.hero-side .hero-title {
  font-size: 1.2rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title h2 {
  background-color: transparent;
  color: var(--text-primary);
  padding: 0 0 0 15px;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  border-left: 5px solid var(--accent-color);
  display: inline-block;
  letter-spacing: -0.5px;
}

html.dark-mode .section-title h2 {
  background-color: transparent;
  color: #fff;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
  margin-left: 15px;
}

html.dark-mode .section-title::after {
  background-color: var(--border-color);
}

/* ==========================================================================
   Category Tabs
   ========================================================================== */
.category-tabs-section {
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tab-buttons {
  list-style: none;
  display: flex;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-buttons li {
  flex-shrink: 0;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 15px 25px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--brand-navy);
}

html.dark-mode .tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--brand-navy);
  border-bottom-color: var(--accent-color);
  background: var(--bg-surface);
}

html.dark-mode .tab-btn.active {
  color: #fff;
  background: var(--bg-surface);
}

.tab-contents {
  padding: var(--spacing-md);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

@media (max-width: 768px) {
  .tab-news-list {
    grid-template-columns: 1fr;
  }
}

.tab-news-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: var(--border-radius);
  transition: background var(--transition-fast);
}

.tab-news-item:hover {
  background: var(--bg-surface-alt);
}

.tab-news-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.tab-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-news-info {
  flex-grow: 1;
}

.tab-news-title {
  font-size: 1rem;
  margin-bottom: 5px;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tab-news-item:hover .tab-news-title {
  color: var(--brand-navy);
}

html.dark-mode .tab-news-item:hover .tab-news-title {
  color: var(--accent-color);
}

.tab-news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Grid Layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

/* Content Card */
.content-card {
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.03);
}
html.dark-mode .content-card {
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.content-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}
html.dark-mode .content-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2));
  pointer-events: none;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.content-card:hover .card-thumb img {
  transform: scale(1.08);
}

.card-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(var(--accent-rgb), 0.9);
  backdrop-filter: blur(4px);
  color: var(--brand-navy);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-body {
  padding: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  gap: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-meta i {
  margin-right: 4px;
}
.meta-date {
  color: var(--text-muted);
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-title a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.card-title a:hover {
  color: var(--accent-color);
}
html.dark-mode .card-title a:hover {
  color: var(--accent-color);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  position: sticky;
  top: 80px; /* Sticky sidebar */
}

.widget {
  background: var(--bg-surface);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* Top Accent line */
.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
}

.widget-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  font-weight: 900;
  color: var(--brand-navy);
  display: block;
}

html.dark-mode .widget-title {
  color: #fff;
}

/* List Items (Recent Posts, Categories, etc) */
.widget ul {
  list-style: none;
  counter-reset: widget-counter;
}

.widget ul li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px dashed var(--border-color);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.widget ul li a:hover {
  color: var(--brand-navy);
}

html.dark-mode .widget ul li a:hover {
  color: var(--accent-color);
}

/* Numbering for Recent Entries */
.widget_recent_entries ul li,
.widget ul li { /* Fallback for other list widgets */
  counter-increment: widget-counter;
}

.widget_recent_entries ul li::before,
.widget ul li::before {
  content: counter(widget-counter);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border-color);
  line-height: 0.9;
  min-width: 24px;
  text-align: right;
  font-style: italic;
}

html.dark-mode .widget_recent_entries ul li::before,
html.dark-mode .widget ul li::before {
  color: rgba(255,255,255,0.05);
}

/* ==========================================================================
   Custom Widget: Sundaweb Recent Posts
   ========================================================================== */
.sundaweb-recent-widget-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sundaweb-recent-widget-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  background: var(--bg-surface-alt);
  padding: 10px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sundaweb-recent-widget-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sundaweb-recent-widget-item .recent-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.sundaweb-recent-widget-item .recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sundaweb-recent-widget-item .recent-details {
  flex: 1;
  min-width: 0;
}

.sundaweb-recent-widget-item .recent-title {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 5px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.sundaweb-recent-widget-item:hover .recent-title {
  color: var(--accent-color);
}

.sundaweb-recent-widget-item .recent-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Custom Widget: Featured Category
   ========================================================================== */
.sundaweb-featured-widget-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.sundaweb-featured-widget-hero {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.sundaweb-featured-widget-hero a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.sundaweb-featured-widget-hero .hero-thumb {
  width: 100%;
  height: 100%;
}

.sundaweb-featured-widget-hero .hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sundaweb-featured-widget-hero:hover .hero-thumb img {
  transform: scale(1.05);
}

.sundaweb-featured-widget-hero .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 15px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
}

.sundaweb-featured-widget-hero .hero-badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--brand-navy);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.sundaweb-featured-widget-hero .hero-title {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sundaweb-featured-widget-list {
  padding: 10px 15px 15px;
  display: flex;
  flex-direction: column;
}

.sundaweb-featured-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px dashed var(--border-color);
  transition: transform var(--transition-fast);
}

.sundaweb-featured-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sundaweb-featured-list-item:hover {
  transform: translateX(5px);
}

.sundaweb-featured-list-item .list-bullet {
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-top: 2px;
}

.sundaweb-featured-list-item .list-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.sundaweb-featured-list-item:hover .list-title {
  color: var(--accent-color);
}

.sundaweb-featured-list-item .list-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   Custom Widget: Popular (Numbered List)
   ========================================================================== */
.sundaweb-popular-widget-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  counter-reset: popular-counter;
}

.sundaweb-popular-widget-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  padding: 10px;
  background: var(--bg-surface-alt);
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.sundaweb-popular-widget-item:hover {
  transform: translateX(5px);
  border-color: var(--accent-color);
  background: rgba(255,255,255,0.02);
}

.sundaweb-popular-widget-item .popular-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-color);
  opacity: 0.2;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: opacity var(--transition-fast);
}

.sundaweb-popular-widget-item:hover .popular-number {
  opacity: 0.5;
}

.sundaweb-popular-widget-item .popular-details {
  flex: 1;
  min-width: 0;
}

.sundaweb-popular-widget-item .popular-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.sundaweb-popular-widget-item:hover .popular-title {
  color: var(--accent-color);
}

.sundaweb-popular-widget-item .popular-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   New Footer Widgets (About, Category Grid, Newsletter)
   ========================================================================== */

/* About Widget */
.sundaweb-about-widget {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.about-desc {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}
.about-social {
  display: flex;
  gap: 10px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50%;
  transition: all var(--transition-fast);
}
.social-icon:hover {
  background: var(--accent-color);
  color: var(--brand-navy);
  transform: translateY(-3px);
}

/* Category Grid Widget */
.sundaweb-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cat-grid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}
.cat-grid-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: #fff;
}
.cat-name {
  font-weight: 600;
  font-size: 0.85rem;
}
.cat-count {
  background: var(--accent-color);
  color: var(--brand-navy);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
}
html.dark-mode .cat-count {
  background: var(--brand-navy);
  color: var(--accent-color);
}

/* Newsletter Widget */
.sundaweb-newsletter-widget p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-input {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: #fff;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}
.newsletter-input:focus {
  border-color: var(--accent-color);
}
.newsletter-btn {
  background: var(--accent-color);
  color: var(--brand-navy);
  border: none;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.newsletter-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Inline Related Post (Baca Juga)
   ========================================================================== */
.inline-related-post {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent-color);
  padding: 15px 20px;
  margin: var(--spacing-lg) 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.inline-related-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.inline-related-post a {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color var(--transition-fast);
}
.inline-related-post a:hover {
  color: var(--accent-color);
}
html.dark-mode .inline-related-post {
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Social Share Buttons
   ========================================================================== */
.sundaweb-share-buttons {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.share-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}
.share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}
.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #fff;
}
.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-tele { background-color: #0088cc; }
.share-gmail { background-color: #D44638; }
.share-copy { background-color: var(--brand-navy); color: #fff; }
.share-copy.copied { background-color: var(--accent-color); color: var(--brand-navy); }
html.dark-mode .share-copy { background-color: #334155; }
html.dark-mode .share-copy.copied { background-color: var(--accent-color); color: var(--brand-navy); }

/* ==========================================================================
   Post Pagination (Page Links)
   ========================================================================== */
.page-links {
  clear: both;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-links-title {
  font-weight: 700;
  margin-right: 10px;
  color: var(--text-primary);
}

.page-links a,
.page-links > .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.page-links a:hover {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

.page-links > .page-number:not(a) {
  background: var(--accent-color);
  color: var(--brand-navy);
  border-color: var(--accent-color);
  cursor: default;
}

/* ==========================================================================
   Premium News Features (Breadcrumbs, Author, Progress, etc)
   ========================================================================== */

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-color);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s;
}

/* Breadcrumbs */
.sundaweb-breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sundaweb-breadcrumbs a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.sundaweb-breadcrumbs a:hover {
  color: var(--accent-color);
}
.sundaweb-breadcrumbs .sep {
  margin: 0 5px;
}
.sundaweb-breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Font Size Adjuster & Reading Time */
.single-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.meta-sep {
  margin: 0 5px;
  opacity: 0.5;
}
.font-adjuster {
  display: flex;
  gap: 5px;
}
.font-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.font-btn:hover {
  background: var(--accent-color);
  color: var(--brand-navy);
  border-color: var(--accent-color);
}

/* Author Box */
.sundaweb-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: var(--spacing-xl);
}
.author-avatar img {
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.author-info h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}
.author-info h4 a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.author-info h4 a:hover {
  color: var(--accent-color);
}
.author-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Sticky Sidebar */
.home-layout > .sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

/* Form Styles (Search Widget) */
.widget_search .premium-search {
  position: relative;
  margin-top: var(--spacing-sm);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 50px; /* Pill shape */
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.15); /* Soft teal glow */
}

.premium-search .search-field {
  width: 100%;
  padding: 14px 20px 14px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
}

.premium-search .search-submit {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0 20px 0 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.premium-search .search-submit:hover,
.search-input-wrapper:focus-within .search-submit {
  color: var(--accent-color);
}

html.dark-mode .premium-search .search-submit:hover,
html.dark-mode .search-input-wrapper:focus-within .search-submit {
  color: var(--accent-color);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-header {
  margin-bottom: var(--spacing-xl);
  text-align: left;
}

.single-header .hero-cat {
  margin-bottom: var(--spacing-sm);
}

.single-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.single-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.single-featured-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.single-featured-image img {
  width: 100%;
}

.single-content {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: justify;
}

.single-content p {
  margin-bottom: var(--spacing-md);
}

/* Related Posts */
.related-posts {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 4px solid var(--border-color);
}

.related-posts .section-title h2 {
  font-size: 1.5rem;
  padding: 8px 20px;
}

/* ==========================================================================
   Comments Area
   ========================================================================== */
.comments-area {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--border-color);
}

.comments-title, .comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 900;
  color: var(--brand-navy);
}

html.dark-mode .comments-title,
html.dark-mode .comment-reply-title {
  color: var(--text-primary);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-xl);
}

.comment-body {
  background: var(--bg-surface-alt);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border-color);
}

.comment-meta {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.comment-meta b {
  color: var(--text-primary);
  font-size: 1rem;
}

.comment-content {
  color: var(--text-secondary);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.comment-form label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.comment-form .submit {
  background: var(--brand-navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin-top: var(--spacing-sm);
  display: inline-block;
}

.comment-form .submit:hover {
  background: var(--accent-hover);
  color: var(--brand-navy);
}

html.dark-mode .comment-form .submit {
  background: var(--accent-color);
  color: var(--brand-navy);
}

html.dark-mode .comment-form .submit:hover {
  background: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-widget .widget-title {
  color: #fff;
  border-bottom-color: var(--accent-color);
}

.footer-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px 30px;
  list-style: none;
  margin-bottom: var(--spacing-md);
  padding: 0;
}

.footer-navigation li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-navigation li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* ==========================================================================
   Ad Spaces
   ========================================================================== */
.sundaweb-ad-space {
  display: block;
  width: 100%;
  text-align: center;
  margin: var(--spacing-lg) 0;
  overflow: hidden;
}

.sundaweb-ad-space img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header-ad-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.header-ad-wrapper .sundaweb-ad-space {
  margin: 0;
  max-width: 728px; /* Standard leaderboard width */
  display: flex;
  align-items: center;
}

.header-ad-wrapper .sundaweb-ad-space img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

/* Specific spacing for single post ads */
.ad-single_top_ad {
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
}

.ad-single_mid_ad {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-md) 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.ad-single_bot_ad {
  margin-top: var(--spacing-xl);
  margin-bottom: 0;
}

/* Mobile Bottom Nav & Sheets (Hidden on Desktop) */
.mobile-bottom-nav,
.category-sheet-overlay,
.category-bottom-sheet {
  display: none;
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */

/* Tablet & Smaller Desktop */
@media (max-width: 992px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .single-title {
    font-size: 2rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  body, html {
    overflow-x: clip;
  }
  
  .top-date {
    display: none; /* Hide date on small screens to save space */
  }

  .top-bar .container {
    flex-direction: row;
    align-items: center;
  }
  
  .site-header {
    padding: var(--spacing-md) 0; /* Reduce logo padding */
  }

  .header-inner {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .header-ad-wrapper {
    margin: 10px auto 0 auto;
    width: 100%;
  }

  .site-branding {
    flex-direction: column !important;
    gap: 5px !important;
  }

  .site-title {
    font-size: 1.8rem;
  }

  .nav-container {
    flex-wrap: nowrap;
    padding: 8px var(--spacing-md);
    gap: 0;
  }

  /* Make menu scrollable and share row with Dark Mode toggle */
  .main-navigation > div:first-child {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    border-right: 1px solid var(--border-color);
    margin-right: 15px;
  }
  .main-navigation > div:first-child::-webkit-scrollbar {
    display: none;
  }

  /* Category Bottom Sheet (Mobile Only) */
  .category-sheet-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .category-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .category-bottom-sheet {
    display: flex;
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 80vh;
    background: var(--bg-surface);
    z-index: 10001;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Bouncy slide up */
  }

  html.dark-mode .category-bottom-sheet {
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .category-bottom-sheet.active {
    bottom: 0;
  }

  .sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .sheet-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
  }

  .close-sheet-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .close-sheet-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--accent-color);
  }

  html.dark-mode .close-sheet-btn:hover {
    background: rgba(255,255,255,0.1);
  }

  .sheet-content {
    padding: 0 20px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sheet-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sheet-category-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .sheet-category-list li:last-child {
    border-bottom: none;
  }

  .sheet-category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
  }
  
  .sheet-category-list li a:after {
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-color);
    margin-left: 10px;
  }

  .sheet-category-list li a:hover {
    color: var(--accent-color);
    padding-left: 10px;
  }

  /* Main navigation mobile styles */
  .main-navigation ul {
    gap: 20px;
    flex-wrap: nowrap;
    margin: 0;
    padding-right: 15px;
  }
  
  /* Body padding to prevent content from hiding behind the bottom nav */
  body {
    padding-bottom: 90px;
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    bottom: 15px;
    left: 5%;
    width: 90%;
    height: 65px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 35px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all var(--transition-normal);
  }

  html.dark-mode .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-bottom-nav .nav-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-bottom-nav .nav-item:active {
    transform: scale(0.9);
  }

  .mobile-bottom-nav .nav-item:hover,
  .mobile-bottom-nav .nav-item:focus {
    color: var(--brand-navy);
    background: rgba(0, 0, 0, 0.05);
  }
  
  html.dark-mode .mobile-bottom-nav .nav-item:hover,
  html.dark-mode .mobile-bottom-nav .nav-item:focus {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-bottom-nav .nav-item:hover svg,
  .mobile-bottom-nav .nav-item:focus svg {
    transform: translateY(-2px);
  }

  .main-navigation ul li {
    flex-shrink: 0;
  }

  .main-navigation a {
    white-space: nowrap;
    padding: 5px 0;
    font-size: 0.85rem;
  }
  
  .header-actions {
    width: auto;
    flex-shrink: 0;
  }

  .dark-mode-toggle {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-main {
    height: 300px; /* Reduced for better proportion */
  }
  .hero-side {
    height: 350px; /* Reduced */
  }

  .tab-news-list {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .single-title {
    font-size: 1.5rem;
    margin-top: var(--spacing-sm);
  }
  .single-content {
    font-size: 1rem;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
  .hero-main {
    height: 250px;
  }
  .hero-side {
    height: 300px;
  }
  .hero-title {
    font-size: 1.2rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }

  .tab-news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-news-thumb {
    width: 100%;
    height: 150px;
  }

  .comment-form .submit {
    width: 100%;
  }
}

/* ==========================================================================
   Mobile Header Customizations (Logo & Actions)
   ========================================================================== */
.mobile-header-actions {
  display: none;
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0 !important;
  }
  .header-ad-wrapper {
    display: none !important;
  }
  .site-branding {
    gap: 10px;
    flex: 0 1 auto;
    width: auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  .site-branding img, .custom-logo {
    max-width: 130px !important;
    height: auto !important;
    margin: 0 !important;
  }
  .site-title {
    font-size: 1.2rem;
  }
  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100%;
  }
  .mobile-header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html.dark-mode .mobile-menu-toggle {
    color: var(--accent-color);
  }
  .action-separator {
    color: var(--border-color);
    font-size: 1.2rem;
  }
  .mobile-dark-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile Menu Visibility & Styling */
  .desktop-menu-container {
    display: none !important;
  }
  .mobile-menu-container {
    display: block !important;
    width: 100%;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  .main-navigation.toggled {
    display: block !important;
  }
  .mobile-menu-list {
    display: flex;
    flex-direction: column !important;
    padding: 10px 15px;
    margin: 0;
    gap: 0 !important;
  }
  .mobile-menu-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-menu-list li:last-child a {
    border-bottom: none;
  }
  .nav-container .header-actions {
    display: none !important;
  }
}

/* Global Desktop overrides */
.mobile-menu-container {
  display: none;
}

/* ==========================================================================
   Swiper Customizations
   ========================================================================== */
.hero-swiper {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}
.hero-swiper .swiper-slide {
  height: 100%;
}
.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent-color);
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
