:root {
  --primary-color: #0274b3;
  --primary-hover: #0369a1;
  --primary-soft: rgba(2, 116, 179, 0.1);
  --bg: #f4f6fb;
  --header-bg: var(--primary-color);
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #1f2430;
  --text-muted: #5b6472;
  --border: #e6e9f0;
  --shadow: 0 10px 30px rgba(20, 24, 40, 0.12);
  --shadow-sm: 0 4px 14px rgba(20, 24, 40, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --text-dark: #111111;
  --text-light: #ffffff;
  --text-gray: #555555;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #111111;
  --border-color: #eaeaea;
  --container-width: 1240px;
  --radius: 6px;
  --transition: all 0.3s ease;
  --font-main: "Inter", sans-serif;
  --bg-color: #ffffff;
  --text-color: #111111;
  --tag-border-hover-color: #0369a1;
  --tag-hover-color: #0369a1;
  --input-bg: #fff;
  --archive-level2-bg: rgba(2, 116, 179, 0.75);
  --archive-badge-bg: rgba(255, 255, 255, 0.25);
  --archive-badge-text: #ffffff;
  --archive-icon-hover: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
  --bg: #0d1117;
  --header-bg: #12161f;
  --surface: #171c26;
  --surface-2: #1e2430;
  --text: #e7ebf3;
  --text-muted: #9aa4b5;
  --border: #262c38;
  --primary-soft: rgba(2, 116, 179, 0.25);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --text-dark: #f8f9fa;
  --primary-hover: #f8f9fa;
  --text-gray: #aaaaaa;
  --bg-light: #1e1e1e;
  --bg-white: #121212;
  --border-color: #333333;
  --bg-color: #121212;
  --text-color: #f8f9fa;
  --input-bg: #121212;
  --archive-level2-bg: rgba(2, 116, 179, 0.4);
  --archive-badge-bg: rgba(255, 255, 255, 0.15);
  --archive-badge-text: #f8f9fa;
  --archive-icon-hover: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3em;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.widget-title.section-title {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.widget-title.section-title h3.title {
  margin: 0 !important;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary-color);
  margin-right: 12px;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 15px;
}

.top-header .section {
  min-width: 0;
}
.logo-dark {
  color: var(--text-dark);
  font-size: 2.2rem;
  font-weight: 800;
}

.ads-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 730px;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 730 / 85;
  overflow: hidden;
}

.ads-widget a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.ads-widget img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.adsbygoogle {
  display: block !important;
  width: 100% !important;
}

/* Nav Reset */
.nav-list,
.dropdown,
.submenu,
.mega-menu,
.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

/* Header specific styles for primary color background */
.site-header {
  border-bottom: none;
}
.site-header .theme-toggle,
.site-header .search-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: #ffffff;
}
.site-header .theme-toggle:hover,
.site-header .search-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.site-header .nav-toggle .bar {
  background: #ffffff;
}

@media (min-width: 1025px) {
  .site-header .nav-link {
    color: var(--text-light);
  }
  .site-header .nav-link:hover,
  .site-header .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
  }
}

.navbar {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px 0 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: contents;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav-item {
  position: relative;
}

.nav-search {
  display: none;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-icon {
  color: var(--text-muted);
  font-size: 1rem;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 12px 8px 12px 0;
}
.search-box input[type="search"]::-webkit-search-cancel-button {
  margin-left: 8px;
}
.search-box input::placeholder {
  color: var(--text-muted);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: var(--primary-soft);
}

.caret {
  font-size: 0.7rem;
  transition: transform 0.3s var(--ease);
}
.nav-item:hover .caret {
  transform: rotate(180deg);
}

.caret-right {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.3s var(--ease);
}
.has-submenu:hover > a > .caret-right {
  transform: rotate(180deg);
}

.dropdown,
.submenu {
  position: absolute;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s;
}

.dropdown {
  top: 100%;
  left: 0;
  margin-top: 11px;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a,
.submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--text);
  border-radius: 9px;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.dropdown li a:hover,
.submenu li a:hover {
  background: var(--primary-soft);
  color: var(--primary-color);
}
.dropdown li a i:first-child,
.submenu li a i:first-child {
  color: var(--primary-color);
  font-size: 1rem;
}

.has-submenu {
  position: relative;
}
.submenu {
  top: -8px;
  left: 100%;
  margin-left: 8px;
  transform: translateX(12px);
}

.submenu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  width: 8px;
}

.has-submenu:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s;
}
.has-mega:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.theme-toggle i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    transform 0.5s var(--ease),
    opacity 0.4s var(--ease);
}
.icon-sun {
  transform: translateY(0) rotate(0);
  opacity: 1;
}
.icon-moon {
  transform: translateY(120%) rotate(90deg);
  opacity: 0;
}
[data-theme="dark"] .icon-sun {
  transform: translateY(-120%) rotate(-90deg);
  opacity: 0;
}
[data-theme="dark"] .icon-moon {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

.search-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.2s var(--ease);
}
.search-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle .bar {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s var(--ease);
}
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s;
  z-index: 900;
}
.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
    order: 2;
  }
  .nav-toggle {
    order: 3;
    margin-left: 0;
  }

  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 85vw);
    height: 100dvh;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px 16px 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    z-index: 1001;
  }
  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin: 4rem 0 0 0;
  }

  .site-header {
    z-index: 1000;
  }

  .site-header:has(#navMenu.open) .brand,
  .site-header:has(#navMenu.open) .nav-actions {
    filter: blur(3px);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    transition:
      filter 0.35s var(--ease),
      opacity 0.35s var(--ease);
  }

  .nav-search {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    margin: 0;
    padding: 1rem 1rem 0 1rem;
    background: var(--bg-white);
  }

  .nav-link {
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 1rem;
  }
  .nav-link .caret {
    margin-left: auto;
  }
  .nav-item:hover .caret {
    transform: none;
  }
  .nav-item.expanded > .nav-link .caret {
    transform: rotate(180deg);
  }

  .dropdown,
  .submenu,
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 4px;
    margin: 4px 0 4px 0px;
    display: none;
    gap: 4px;
  }
  .nav-item.expanded > .dropdown,
  .nav-item.expanded > .mega-menu,
  .has-submenu.expanded > .submenu {
    display: block;
  }

  .has-submenu > a .caret-right {
    transition: transform 0.3s var(--ease);
  }
  .has-submenu.expanded > a .caret-right {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 16px;
    gap: 10px;
  }
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: 12vh 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}
.search-modal.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search-modal-dialog {
  position: relative;
  width: min(620px, 100%);
  transform: translateY(-16px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease);
}
.search-modal.open .search-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.search-modal-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.search-modal-icon {
  color: var(--text-muted);
  font-size: 1.25rem;
}
.search-modal-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  padding: 16px 4px;
}
.search-modal-box input::placeholder {
  color: var(--text-muted);
}
.search-modal-box input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.search-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.search-modal-close:hover {
  background: var(--primary-soft);
  color: var(--primary-color);
}

.search-results {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  max-height: 52vh;
  overflow-y: auto;
  display: none;
}
.search-results-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 8px 8px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.search-result:hover {
  background: var(--primary-soft);
  transform: translateX(3px);
}

.search-more-content {
  margin-top: 10px;
  text-align: center;
}

.result-thumb {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
}
.result-thumb-1 {
  background: linear-gradient(150deg, var(--primary-color), #a855f7);
}
.result-thumb-2 {
  background: linear-gradient(150deg, #0ea5e9, #6366f1);
}
.result-thumb-3 {
  background: linear-gradient(150deg, #f59e0b, #ef4444);
}

.result-body {
  min-width: 0;
}
.result-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.result-desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-hint {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.search-hint kbd {
  font-family: inherit;
  font-size: 0.75rem;
  padding: 2px 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--border);
}
.mega-menu .content {
  background: var(--bg-white);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  justify-content: space-between;
}

.content .col {
  display: flex;
  flex-direction: column;
}

.content .col .img-wrapper {
  display: block;
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  padding: 0;
}

.content .col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.content .col .img-wrapper:hover img {
  transform: scale(1.1);
}

.content .col .menu-title {
  margin-top: 10px;
  color: var(--text-color);
  font-size: 1.2rem;
  line-height: 1.5rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content .col .menu-title a {
  color: inherit;
}

.content .col .menu-date {
  margin-top: 5px;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 400;
}

/* Desktop: animate dropdown/submenu inner text so carets stay stationary. */
@media (min-width: 1025px) {
  .dropdown li a .nav-text,
  .submenu li a .nav-text {
    display: inline-block;
    transition: transform 260ms var(--ease);
    will-change: transform;
  }

  .dropdown li a:hover .nav-text,
  .submenu li a:hover .nav-text {
    transform: translateX(8px);
  }
}

.tabbed-mega-menu {
  padding: 0 !important;
}

.tabbed-mega-menu-inner {
  display: flex;
  background: var(--bg-color);
  width: 100%;
  min-height: 250px;
  box-shadow:
    rgba(0, 0, 0, 0.07) 0px 1px 1px,
    rgba(0, 0, 0, 0.07) 0px 2px 2px,
    rgba(0, 0, 0, 0.07) 0px 4px 4px,
    rgba(0, 0, 0, 0.07) 0px 8px 8px,
    rgba(0, 0, 0, 0.07) 0px 16px 16px;
  border-radius: 0 !important;
}

.mega-menu-tabs {
  width: 200px;
  border-right: 1px solid var(--border-color);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
}

.mega-tab {
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    color 0.2s var(--ease);
  text-decoration: none;
  display: block;
  border-left: 3px solid transparent;
}

.mega-tab:hover,
.mega-tab.active {
  color: var(--primary-color);
  background: var(--primary-soft);
  border-radius: 10px;
}

@media (min-width: 1025px) {
  .mega-menu-tabs .mega-tab .nav-text {
    display: inline-block;
    transition: transform 260ms var(--ease);
    will-change: transform;
  }
  .mega-menu-tabs .mega-tab:hover .nav-text,
  .mega-menu-tabs .mega-tab.active .nav-text {
    transform: translateX(8px);
  }
}

.mega-menu-content {
  flex: 1;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.blue-tag {
  background-color: var(--primary-color);
  color: var(--text-white) !important;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  margin-bottom: 0 !important;
  border-radius: 0 4px 0 0 !important;
  padding: 8px 8px;
}

@media screen and (max-width: 1024px) {
  .tabbed-mega-menu-inner {
    flex-direction: column;
    box-shadow: none;
  }

  .mega-menu .content {
    grid-template-columns: auto;
    padding: 1rem 1rem 0 1rem;
  }

  .tabbed-mega-menu {
    margin: 0.5rem 0;
  }

  .mega-menu-tabs {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0 1rem 0 1.7rem;
  }

  .mega-menu-tabs::-webkit-scrollbar {
    display: none;
  }

  .mega-tab {
    padding: 10px 15px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .mega-tab:hover,
  .mega-tab.active {
    color: var(--primary-color);
    background: var(--primary-soft);
  }
}

/* Breaking News */
.breaking-news-section {
  margin-top: 25px;
  margin-bottom: 10px;
}
.breaking-label {
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.breaking-item {
  display: flex;
  gap: 15px;
  align-items: center;
}
.breaking-img-wrap {
  position: relative;
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}
.breaking-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.breaking-img-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.breaking-number {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #222;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  border: 2px solid white;
}
.breaking-content {
  display: flex;
  flex-direction: column;
}
.breaking-content h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.breaking-content span {
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .breaking-number {
    top: 0px;
  }
}

/* Hero Section */
.hero-section {
  margin-top: 50px;
  margin-bottom: 50px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateZ(0); /* Fix for hover zoom breaking border-radius */
  -webkit-mask-image: -webkit-radial-gradient(
    white,
    black
  ); /* Webkit specific fix */
}

.hero-main {
  position: relative;
  height: 480px;
  border-radius: var(--radius) 0 0 var(--radius);
}
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.hero-side-item {
  position: relative;
  height: 238px;
}
.hero-side-item:first-child {
  border-radius: 0 var(--radius) 0 0;
}
.hero-side-item:last-child {
  border-radius: 0 0 var(--radius) 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  /* inset: 0; */
  bottom: 0;
  left: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--text-light);
  width: 100%;
}

.hero-side-item .hero-overlay {
  padding: 20px;
}

.category-tag {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 8px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  align-self: flex-start;
  letter-spacing: 0.5px;
}
.category-tag.yellow {
  background-color: #ffb800;
  color: #000;
}
.category-tag.red {
  background-color: #e50914;
}

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero-side-item .hero-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 15px;
  align-items: center;
  font-weight: 500;
}
.post-meta i {
  margin-right: 5px;
}
.post-meta.dark {
  color: var(--text-gray);
}

/* Browse Categories */
.categories-section {
  margin-bottom: 3.5rem;
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

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

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

@media (max-width: 576px) {
  .categories-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .categories-list {
    grid-template-columns: 1fr;
  }
}

.category-card {
  flex: 1;
  background-color: var(--bg-light);
  padding: 25px 15px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-color);
}
.category-card:hover {
  background-color: var(--bg-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.category-card i {
  font-size: 1.8rem;
  color: #444;
}
.category-card span {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 40px;
  margin-bottom: 50px;
  align-items: start;
}

.is-single.is-post .main-layout,
.is-single.is-page .main-layout,
.is-multiple:not(.is-home) .main-layout {
  grid-template-columns: 1fr 280px;
  margin-top: 50px !important;
}

.is-multiple.is-error .main-layout {
  grid-template-columns: 1fr;
}

.is-single .post-layout {
  grid-template-columns: 1fr;
  margin-top: 0px !important;
}

/* Make sidebars sticky */
.sidebar-left,
.sidebar-right {
  position: sticky;
  top: 90px;
  overflow-x: hidden;
}

/* Left Sidebar (Socials & Popular) */
.social-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.social-stat-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
}
.social-stat-btn i {
  font-size: 1.1rem;
}
.btn-fb {
  background-color: #3b5998;
}
.btn-tw {
  background-color: #1da1f2;
}
.btn-yt {
  background-color: #ff0000;
}
.btn-ig {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.popular-widget {
  margin-bottom: 40px;
}

.popular-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 140px;
}
.popular-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popular-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.popular-overlay h3,
.popular-overlay h4 {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Center Content (Featured News) */
.featured-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  margin-bottom: 20px;
}
.featured-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}
.slider-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-nav button:hover {
  background: var(--primary-color);
}
.featured-slider .hero-overlay {
  justify-content: center;
  padding: 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.news-card-small {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
}
.news-card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-small .hero-overlay {
  padding: 15px;
}
.news-card-small h4 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

/* Standard List Posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 50px;
}
.post-list-item {
  display: flex;
  gap: 25px;
  align-items: center;
}
.post-list-img {
  width: 40%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.post-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
}
.post-list-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.post-list-content p {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 40px;
}

.load-more-btn {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}

.load-more-btn i {
  font-size: 1.1rem;
}

.load-more-btn.loading i {
  animation: spin 1s linear infinite;
}

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

/* Right Sidebar (Latest) */

.sidebar-item {
  display: flex;
  gap: 15px;
  align-items: center;
}
.sidebar-item-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-item-content h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* Grid Layout Sections (Recent & Tech) */
.grid-section {
  margin-bottom: 60px;
  overflow: hidden;
  max-width: 100%;
}

.grid-card {
  display: flex;
  flex-direction: column;
}
.grid-card-img {
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}
.grid-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.image-grid-item {
  height: 250px;
  position: relative;
}
.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.follow-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
}
.follow-btn {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}
.follow-btn .logo-icon {
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
}

/* Footer */
footer {
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo {
  margin-bottom: 20px;
}
.footer-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer Titles with Line */
.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--primary-color);
}

/* Recent Posts in Footer */
.footer-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.recent-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  line-height: 1.4;
  transition: var(--transition);
}
.recent-post-title:hover {
  color: var(--primary-color);
}
.recent-post-date {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 6px;
}

/* Social Grid */
.footer-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.social-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 20px;
  color: #444;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.social-pill i {
  font-size: 1rem;
  color: #222;
}
.social-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.social-pill:hover i {
  color: var(--primary-color);
}

/* Newsletter Form */
.newsletter-form-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-form-new input {
  width: 100%;
  background: #f0f2f5;
  border: none;
  padding: 12px 15px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form-new button {
  width: 100%;
  background: var(
    --primary-color
  ); /* Slightly different red-orange for button */
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Footer Bottom (Dark Bar) */
.footer-bottom-wrapper {
  background: #252525;
  color: #aaa;
  position: relative;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
}
.copyright-text {
  font-size: 0.8rem;
  font-weight: 500;
}
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  caret-color: transparent;
  transition: all 0.4s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 69, 69, 0.3);
}

/* Logo Styling with SVG */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background-image: url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50" fill="%23ff4a11"/><polygon points="17.5,75 32.5,25 42.5,25 27.5,75" fill="%23ffffff"/><polygon points="46.5,25 52.5,25 62.5,58.33 72.5,25 82.5,25 67.5,75 57.5,75 44.5,31.67" fill="%23ffffff"/></svg>');
  background-size: cover;
  background-color: transparent !important;
  color: transparent !important; /* Hide original text */
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
}

.logo img {
  width: 240px;
  aspect-ratio: 150 / 38;
  object-fit: contain;
  background-size: cover;
  display: inline-block;
  flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  /* Header & Nav */
  .top-header {
    padding: 20px 15px;
    gap: 1.2rem;
  }

  .subscribe-btn {
    padding: 6px 12px;
  }

  /* Breaking News */

  /* Hero & Categories */
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .categories-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  /* Main Layout */
  .main-layout {
    grid-template-columns: 1fr !important;
  }
  .sidebar-left,
  .sidebar-right {
    position: static;
  }
  .social-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .social-stat-btn {
    flex: 1 1 calc(50% - 10px);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  /* Header & Nav */
  .top-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  .ads-widget {
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
  }

  .subscribe-btn {
    display: none; /* Hide to save space */
  }
  .header-container {
    justify-content: space-between;
  }

  /* Breaking News */
  /* .breaking-items {
    grid-template-columns: 1fr;
    gap: 15px;
  } */

  /* Hero & Categories */
  .hero-side {
    grid-template-columns: 1fr;
  }
  .categories-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Content Layout */
  .social-stat-btn {
    flex: 1 1 100%;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
  .post-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-list-img,
  .post-list-content {
    width: 100%;
  }
  .post-list-img {
    height: 200px;
  }

  /* Grid Sections */

  /* Image Grid Bottom */
  /* .image-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  } */

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}

/* Dark Mode */
body.dark-mode {
  --bg-white: #121212;
  --bg-light: #1e1e1e;
  --text-dark: #f0f0f0;
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
  --border-color: #333333;
}

body.dark-mode .logo-dark,
body.dark-mode .breaking-content h4,
body.dark-mode .category-card i,
body.dark-mode .category-card span,
body.dark-mode .social-pill,
body.dark-mode .social-pill i {
  color: var(--text-dark);
}

body.dark-mode .newsletter-form-new input {
  background: #333;
  color: var(--text-dark);
}

body.dark-mode .back-to-top {
  background: #222;
}

body.dark-mode .breaking-number {
  border-color: #121212;
}

/* Image Hover Zoom Effect */
.hero-main,
.hero-side-item,
.post-list-img,
.post-card,
.tech-card,
.image-grid-item,
.search-modal-post,
.popular-item,
.featured-slider,
.news-card-small,
.sidebar-item-img,
.grid-card-img {
  overflow: hidden; /* Ensure zoomed image stays within container */
}

/* Apply transition to images inside cards */
.breaking-img-wrap img,
.hero-main img,
.hero-side-item img,
.post-list-img img,
.post-card img,
.tech-card img,
.image-grid-item img,
.search-modal-post img,
.popular-item img,
.featured-slider img,
.news-card-small img,
.sidebar-item-img img,
.grid-card-img img {
  transition: transform 0.4s ease;
}

/* Zoom in slightly on hover */
.breaking-item:hover .breaking-img-wrap img,
.hero-main:hover img,
.hero-side-item:hover img,
.post-list-item:hover .post-list-img img,
.post-card:hover img,
.tech-card:hover img,
.image-grid-item:hover img,
.search-modal-post:hover img,
.popular-item:hover img,
.featured-slider:hover img,
.news-card-small:hover img,
.sidebar-item:hover .sidebar-item-img img,
.grid-card:hover .grid-card-img img {
  transform: scale(1.08);
}

/* Utility Classes replacing Inline Styles */
.bg-gradient-dark {
  background: linear-gradient(to right, #0a3d34, #ff3300);
}
.radius-0 {
  border-radius: 0;
}
.ad-banner-content {
  text-align: left;
  padding-left: 30px;
  flex: 1;
}
.ad-banner-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}
.ad-banner-subtitle {
  font-size: 0.9rem;
  color: #ddd;
}
.ad-banner-btn-styled {
  margin-right: 30px;
  border-radius: 20px;
  font-weight: 800;
  padding: 10px 20px;
}
.nav-dropdown-icon {
  font-size: 0.7em;
  margin-left: 3px;
}
.tag-exclusive {
  display: inline-block;
  font-size: 0.55rem;
  padding: 2px 5px;
  margin-right: 6px;
  margin-bottom: 0;
}
.category-count {
  color: var(--text-gray);
  font-size: 0.75rem;
}
.tag-sm {
  font-size: 0.55rem;
  padding: 2px 5px;
}
.mb-6 {
  margin-bottom: 6px;
}
.mb-5 {
  margin-bottom: 5px;
}
.meta-xs {
  font-size: 0.7rem;
  color: #bbb;
}
.tag-primary {
  background: var(--primary-color);
}
.tag-purple {
  background: #a200ff;
}
.meta-sm-light {
  font-size: 0.75rem;
  color: #bbb;
}
.tag-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
}
.meta-mb-12 {
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.popular-item-lg {
  height: 250px;
  margin-bottom: 40px;
}
.overlay-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
}
.popular-title-lg {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.meta-sm-light-alt {
  font-size: 0.8rem;
  color: #ccc;
}
.sidebar-item-title {
  font-size: 0.9rem;
}
.meta-sm {
  font-size: 0.75rem;
  color: var(--text-gray);
}
.logo-icon-primary {
  background: var(--primary-color);
  color: white;
}
.footer-logo-title {
  margin: 0;
  font-size: 1.8rem;
  font-style: italic;
}
.footer-logo-desc {
  font-size: 1.2rem;
  margin-right: 50px;
}
.tag-bottom-left {
  position: absolute;
  bottom: 10px;
  left: 15px;
  margin: 0;
}
.card-img-sm {
  height: 160px;
}
.grid-card-title {
  font-size: 1rem;
}
.banner-sm {
  height: 90px;
  margin: 0;
}

/* --- Single Post Page Styles --- */

.main-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 40px;
  align-items: start;
}

.main-layout > * {
  min-width: 0;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

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

.post-details-container {
  padding-top: 30px;
  padding-bottom: 20px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-dark);
  font-weight: 500;
}

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

.breadcrumb-label:not(:last-child)::after {
  content: ", ";
}

.post-single-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.post-single-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.post-single-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 1rem;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-info .author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-color);
}

.author-avatar-sm {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name-date {
  display: flex;
  flex-direction: column;
}

.author-name-date strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.author-name-date span {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.post-stats-share {
  display: flex;
  align-items: center;
  gap: 20px;
}

.post-stat {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-share-icons ul {
  display: flex;
  gap: 8px;
}

.post-share-icons .share-icon-static {
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 32px;
  height: 32px;
  width: 32px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  text-align: center;
  margin: 0 10px 0 0;
  border-radius: 5px;
}

.share-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.share-icon:hover {
  transform: translateY(-3px);
}
.share-icon.fb {
  background: #3b5998;
}
.share-icon.tw {
  background: #1da1f2;
}
.share-icon.in {
  background: #0077b5;
}
.share-icon.link {
  background: #555;
}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 30px;
  object-fit: cover;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
}

.article-body blockquote {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 25px 30px;
  margin: 30px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.quote-icon {
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 2rem;
  color: var(--primary-color);
  background: var(--bg-white);
  padding: 0 10px;
}

.custom-check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.custom-check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.check-bullet {
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.in-article-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 30px 0 10px 0;
}

.image-caption {
  font-size: 0.85rem !important;
  color: var(--text-gray) !important;
  text-align: center;
  margin-bottom: 30px !important;
  font-style: italic;
}

.article-tags-bottom {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 0;
}

.search-tags-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.author-box {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin: 40px 0;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.author-box-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.author-socials a {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-right: 15px;
  transition: var(--transition);
}
.author-socials a:hover {
  color: var(--primary-color);
}

.post-navigation {
  display: flex;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  margin: 24px 0;
}

.post-nav-prev,
.post-nav-next {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  flex: 1;
  padding: 14px 18px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.post-nav-prev:hover,
.post-nav-next:hover {
  background: var(--bg-light, #f4f6fb);
  color: var(--primary-color);
}

.post-nav-prev {
  border-right: 1px solid var(--border-color);
}

.post-nav-next {
  justify-content: flex-end;
  text-align: right;
}

.post-nav-prev.disabled,
.post-nav-next.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.nav-arrow {
  font-size: 12px;
  flex-shrink: 0;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.post-nav-prev:hover .nav-arrow {
  transform: translateX(-3px);
}

.post-nav-next:hover .nav-arrow {
  transform: translateX(3px);
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-prev span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-gray, #888);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: start;
}

.nav-text span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-gray, #888);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: end;
}

.nav-text p,
.post-nav-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--text-dark);
}

@media screen and (max-width: 640px) {
  .post-navigation {
    flex-direction: column;
  }
  .post-nav-prev {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .post-nav-next {
    justify-content: flex-start;
    text-align: left;
  }
}

.comments-section {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius);
}

.comment-note {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.comment-form textarea,
.comment-form input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}
body.dark-mode .comment-form textarea,
body.dark-mode .comment-form input {
  border-color: #444;
}

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

.comment-form textarea {
  height: 150px;
  resize: vertical;
}

.comment-inputs-row {
  display: flex;
  gap: 15px;
}
.comment-inputs-row input {
  flex: 1;
}

@media (max-width: 768px) {
  .post-single-title {
    font-size: 1.8rem;
  }
  .post-stats-share {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-start;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .comment-inputs-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Premium Carousel Section */
.premium-carousel-section {
  padding: 30px 0 40px;
}

.premium-carousel-slide {
  position: relative;
  height: 450px;
}

.premium-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  border-radius: var(--radius);
}

.carousel-slide-overlay .category-tag {
  align-self: flex-start;
  margin-bottom: 15px;
  font-size: 0.8rem;
  padding: 5px 12px;
}

.carousel-slide-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-slide-title a {
  color: #fff;
}

.carousel-slide-title a:hover {
  color: var(--primary-color);
}

.carousel-slide-overlay .post-meta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Pagiflow Custom Overrides */
.pagiflow-nav {
  margin: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}

.pagiflow-nav-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  transition: all 0.3s ease;
}

.pagiflow-nav-btn:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .premium-carousel-slide {
    height: 300px;
  }
  .carousel-slide-title {
    font-size: 1.5rem;
  }
  .carousel-slide-overlay {
    padding: 20px;
  }
}

/* Video Showcase Section */
.video-showcase-section {
  background-color: var(--bg-dark);
  padding: 60px 0;
  margin: 25px 0 50px 0;
  color: var(--text-light);
}

.title-light {
  color: var(--text-light);
}

.video-showcase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.video-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}

.video-play-btn {
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
  width: 80px;
  height: 80px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
  padding-left: 5px; /* Visual center for play icon */
}

.video-main:hover .video-play-btn {
  transform: scale(1.15);
  background: #ff0f1a;
}

.video-overlay-text {
  align-self: flex-start;
}

.video-title {
  font-size: 2rem;
  margin-top: 10px;
  line-height: 1.2;
  color: white;
}

.video-title a {
  color: white;
}
.video-title a:hover {
  color: var(--primary-color);
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 480px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar for Playlist */
.video-playlist::-webkit-scrollbar {
  width: 6px;
}
.video-playlist::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.video-playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.video-playlist-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-playlist-item:hover,
.video-playlist-item.active {
  background: rgba(255, 255, 255, 0.1);
}

.video-playlist-item.active {
  border-left: 4px solid var(--primary-color);
}

.video-thumb {
  position: relative;
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

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

.play-icon-sm {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-playlist-item:hover .play-icon-sm,
.video-playlist-item.active .play-icon-sm {
  opacity: 1;
}

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-info h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.video-info h4 a {
  color: var(--text-light);
}

.video-info h4 a:hover {
  color: var(--primary-color);
}

.meta-sm-light-alt {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.video-playlist-item.active .meta-sm-light-alt {
  color: var(--primary-color);
  font-weight: 600;
}

@media (max-width: 992px) {
  .video-showcase-grid {
    grid-template-columns: 1fr;
  }
  .video-main {
    height: 350px;
  }
  .video-playlist {
    height: 350px;
  }
}
@media (max-width: 768px) {
  .video-title {
    font-size: 1.5rem;
  }
  .video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* Trending Stories (Instagram Style) */
.trending-stories-wrapper {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.trending-stories-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.trending-stories-scroll::-webkit-scrollbar {
  height: 4px;
}
.trending-stories-scroll::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}
.trending-stories-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 80px;
  flex-shrink: 0;
}

.story-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 3px;
  background: #ddd; /* Default read state */
  transition: transform 0.3s ease;
}

.story-item.unread .story-ring {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-white);
}

.story-item:hover .story-ring {
  transform: scale(1.08);
}

.story-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  color: var(--text-dark);
}

.mt-30 {
  margin-top: 30px;
}

.mt-50 {
  margin-top: 50px;
}

.pagiflow-next,
.pagiflow-prev {
  pointer-events: all;
  background: var(--primary-color) !important;
  border: 1px var(--primary-color) !important;
  color: var(--text-light) !important;
  width: 32px;
  height: 32px;
  border-radius: 4px !important;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

/* Tabbed Mega Menu */
.tabbed-mega-menu {
  padding: 0 !important;
}
.tabbed-mega-menu-inner {
  display: flex;
  background: var(--bg-color);
  width: 100%;
  min-height: 250px;
  box-shadow:
    rgba(0, 0, 0, 0.07) 0px 1px 1px,
    rgba(0, 0, 0, 0.07) 0px 2px 2px,
    rgba(0, 0, 0, 0.07) 0px 4px 4px,
    rgba(0, 0, 0, 0.07) 0px 8px 8px,
    rgba(0, 0, 0, 0.07) 0px 16px 16px;
  border-radius: 0 !important;
}
.mega-menu-tabs {
  width: 200px;
  padding: 1rem 8px;
  display: flex;
  flex-direction: column;
}

.mega-tab {
  padding: 12px 25px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
  text-decoration: none;
  display: block;
  border-left: 3px solid transparent;
}

.mega-tab:hover,
.mega-tab.active {
  background-color: var(--bg-light);
  color: var(--primary-hover);
  border-left: 3px solid var(--primary-hover);
}
.mega-menu-content {
  flex: 1;
}
.mega-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.mega-tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.blue-tag {
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  margin-bottom: 0 !important;
  border-radius: 0 4px 0 0 !important;
}

/* Responsive Tabbed Mega Menu */
@media screen and (max-width: 1024px) {
  .tabbed-mega-menu-inner {
    flex-direction: column;
    box-shadow: none;
  }
  .mega-menu-tabs {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    margin: 0 1rem 0 1.7rem;
  }
  .mega-menu-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }
  .mega-tab {
    padding: 10px 15px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .mega-tab:hover,
  .mega-tab.active {
    border-left: none;
    border-bottom: 3px solid var(--primary-color);
  }
}

/* --- Home 2 Magazine Layout --- */

/* Hero Magazine Grid */
.hero-magazine-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 15px;
  margin-bottom: 40px;
}
.hero-mag-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.hero-mag-center {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.hero-mag-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-mag-item:hover .hero-mag-bg,
.top-week-item:hover .hero-mag-bg {
  transform: scale(1.05);
}
.hero-mag-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.hero-mag-overlay h2,
.hero-mag-overlay h3 {
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.hero-mag-overlay h3 {
  font-size: 1.1rem;
}
.hero-mag-overlay h2 {
  font-size: 1.8rem;
}
.hero-mag-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Popular Tags Bar */
.popular-tags-bar {
  background-color: #f1f3f4;
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  margin: 30px 0;
}
[data-theme="dark"] .popular-tags-bar {
  background-color: var(--bg-light);
}
.tags-label {
  font-weight: 700;
  color: var(--text-color);
  margin-right: 20px;
  white-space: nowrap;
}

/* .tags-list-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  position: relative;
} */

.tags-carousel-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 1px 0;
}

/* .tags-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tags-list::-webkit-scrollbar {
  display: none;
} */

.tag-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 5px 12px;
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.tag-item:hover {
  border-color: var(--tag-border-hover-color);
  color: var(--tag-hover-color);
}

[data-theme="dark"] .tag-item {
  background-color: var(--bg-color);
  border-color: var(--border-color);
}

.tags-nav {
  display: flex;
  gap: 12px;
  margin-left: 20px;
}
.tags-nav button {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.tags-nav button:hover {
  color: var(--tag-hover-color);
}

/* Top of Week */
.top-week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.top-week-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}
.top-week-lists {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.list-horizontal {
  display: flex;
  gap: 15px;
  align-items: center;
}
.list-horizontal > a {
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}
.list-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.list-horizontal > a:hover img {
  transform: scale(1.1);
}
.list-horizontal h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 5px;
}

.popular-new-wrapper {
  background-color: #f1f3f4;
  padding: 40px 0;
  margin-bottom: 50px;
}
[data-theme="dark"] .popular-new-wrapper {
  background-color: var(--bg-light);
}
.popular-main-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}
.popular-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}
[data-theme="dark"] .popular-header-row {
  border-color: var(--border-color);
}
.popular-title-accent {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
}
.popular-title-accent::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}
.filter-pills {
  display: flex;
  gap: 8px;
}
.filter-pill {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s;
}
.filter-pill.active,
.filter-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
[data-theme="dark"] .filter-pill {
  border-color: var(--border-color);
}

.popular-new-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 25px;
}
.popular-large-col > a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}
.popular-large-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.popular-large-col > a:hover .popular-large-img {
  transform: scale(1.05);
}
.badge-exclusive {
  background-color: #ff3e3e;
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.category-bullet {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 8px;
}
.category-bullet::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
}
.cb-red::before {
  background-color: #ff3e3e;
}
.cb-blue::before {
  background-color: #3b82f6;
}
.cb-yellow::before {
  background-color: #f59e0b;
}
.cb-purple::before {
  background-color: #ec4899;
}

.btn-read-more {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 6px 6px 6px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 15px;
  transition: opacity 0.2s;
}
.btn-read-more:hover {
  opacity: 0.8;
}
[data-theme="dark"] .btn-read-more {
  background: var(--border-color);
}
.btn-read-more .icon-circle {
  background: var(--bg-dark);
  color: var(--text-light);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.popular-sm-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.popular-sm-item > a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}
.popular-sm-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.popular-sm-item > a:hover img {
  transform: scale(1.05);
}
.popular-sm-item h4 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.dont-miss-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dont-miss-item {
  display: flex;
  gap: 15px;
  align-items: center;
}
.dont-miss-thumb {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.dont-miss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dont-miss-thumb:hover img {
  transform: scale(1.05);
}
.dont-miss-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
}
.dont-miss-content h4 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.dont-miss-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-gray);
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}

@media screen and (max-width: 1024px) {
  .hero-magazine-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .hero-mag-center {
    grid-column: span 2;
    grid-row: 1;
    height: 400px;
  }
  .top-week-grid {
    grid-template-columns: 1fr 1fr;
  }
  .top-week-lists {
    grid-template-columns: 1fr 1fr;
  }
  .popular-main-layout {
    grid-template-columns: 1fr;
  }
  .popular-new-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 768px) {
  .hero-magazine-grid {
    grid-template-columns: 1fr;
  }
  .hero-mag-center {
    grid-column: 1;
    height: 300px;
  }
  .top-week-grid {
    grid-template-columns: 1fr;
  }
  .top-week-lists {
    grid-template-columns: 1fr;
  }
}

/* --- Additional Extracted Inline Styles --- */
.hero-mag-overlay-lg {
  padding: 40px;
}
.hero-mag-meta-lg {
  font-size: 1rem;
}
.author-avatar {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
}
.mb-50 {
  margin-bottom: 50px;
}
.popular-large-col {
  grid-column: span 1;
}
.popular-large-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.popular-meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 15px;
}
.popular-meta-date {
  color: var(--text-gray);
  font-weight: 400;
  margin-left: 8px;
}
.popular-excerpt {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}
.btn-read-more-icon {
  font-size: 12px;
}
.popular-sm-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.social-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 30px;
}
.social-stat-btn-inner {
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  display: block;
}
.newsletter-full-block {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}
[data-theme="dark"] .newsletter-full-block {
  background-color: var(--bg-light);
}
.newsletter-full-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.newsletter-full-icon {
  font-size: 3rem;
  color: var(--primary-color);
}
.newsletter-full-title {
  margin-bottom: 5px;
}
.newsletter-full-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
}
.newsletter-full-form {
  display: flex;
  gap: 10px;
  width: 400px;
}
@media screen and (max-width: 768px) {
  .newsletter-full-block {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    text-align: center;
  }
  .newsletter-full-content {
    flex-direction: column;
  }
  .newsletter-full-form {
    width: 100%;
    flex-direction: column;
  }
}
.newsletter-full-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  outline: none;
  background: transparent;
  color: var(--text-color);
}
.newsletter-full-btn {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 30px;
  padding: 12px 25px;
  font-weight: bold;
  cursor: pointer;
}

/* --- Home 3 Layout --- */
.h3-topbar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 0;
}
.h3-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.h3-topbar-left {
  display: flex;
  gap: 15px;
  align-items: center;
}
.h3-topbar-left a {
  color: #fff;
  text-decoration: none;
}
.h3-topbar-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.h3-logo-section {
  padding: 30px 0;
  text-align: center;
}

.h3-logo img {
  width: 210px;
  background-size: cover;
  display: inline-block;
  flex-shrink: 0;
}

.h3-navbar {
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
}
[data-theme="dark"] .h3-navbar {
  border-color: var(--border-color);
}
.h3-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.h3-menu-items {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.h3-menu-items a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.h3-menu-items a:hover,
.h3-menu-items a.active {
  color: #ff3e3e;
  border-bottom-color: #ff3e3e;
}
.h3-nav-search,
.h3-nav-hamburger {
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
}

/* --- Home 3 Hero Section --- */
.h3-hero-section {
  margin-top: 30px;
  margin-bottom: 90px;
}
.h3-hero-main {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  height: 450px;
}

.h3-hero-item {
  position: relative;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.h3-hero-bg {
  width: 100% !important;
  height: 450px !important;
  object-fit: cover;
  border-radius: 12px;
}

@media screen and (max-width: 1024px) {
  .h3-hero-main {
    height: 270px !important;
  }
  .h3-hero-bg {
    height: 300px !important;
  }
}

.h3-hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.h3-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.2;
  max-width: 900px;
}
.h3-hero-bottom-cards {
  position: absolute;
  bottom: -40px;
  left: 80px;
  right: 80px;
  z-index: 10;
}
.h3-hero-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .h3-hero-card {
  background: var(--bg-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.h3-hero-card img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.h3-hero-card-content h4 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 5px;
}

/* --- Home 3 Editor's Picks --- */
.h3-section-title-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.h3-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-bottom: 8px;
}

.h3-section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}
.h3-editors-picks {
  margin-bottom: 50px;
}
.h3-editors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.h3-editor-card {
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
}
.h3-editor-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.h3-editor-card:hover .h3-editor-bg {
  transform: scale(1.05);
}
.h3-editor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: var(--bg-light);
  left: 0;
  top: 50%;
  right: 0;
}
.h3-editor-title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--bg-light);
}
@media screen and (max-width: 1024px) {
  .h3-hero-bottom-cards {
    left: 20px;
    right: 20px;
    bottom: -80px;
  }
  .h3-hero-section {
    margin-bottom: 120px;
  }
  .h3-editors-grid {
    grid-template-columns: 1fr 1fr;
  }
  .h3-hero-title {
    font-size: 1.5rem;
  }
}
@media screen and (max-width: 768px) {
  .h3-editors-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Home 3 Latest Section --- */
.h3-latest-wrapper {
  background-color: #f1f3f4;
  padding: 50px 0;
  margin-bottom: 50px;
}
[data-theme="dark"] .h3-latest-wrapper {
  background-color: var(--bg-light);
}
.h3-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  row-gap: 30px;
}
.h3-latest-item {
  display: flex;
  gap: 15px;
  align-items: center;
}
.h3-latest-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.h3-latest-content h4 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 5px;
}

/* --- Home 3 Main Layout --- */
.h3-main-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.h3-aw-large-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}
.h3-aw-large-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}
.h3-aw-large-item h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.h3-aw-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  row-gap: 25px;
}
.h3-aw-small-item {
  display: flex;
  gap: 15px;
  align-items: center;
}
.h3-aw-small-item img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.h3-aw-small-content h4 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 5px;
}

.h3-featured-post-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
  margin-top: 50px;
}
.h3-featured-post-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h3-featured-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  color: #fff;
}
.h3-featured-post-overlay h2 {
  font-size: 2rem;
  color: #fff;
  max-width: 600px;
  line-height: 1.3;
}
.h3-featured-post-overlay a {
  color: #fff;
}
.h3-featured-avatars {
  display: flex;
}
.h3-featured-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
}

.h3-recent-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.h3-recent-item {
  display: flex;
  gap: 25px;
}
.h3-recent-item img {
  width: 280px;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.h3-recent-content h3 {
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.h3-recent-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.h3-btn-red {
  background-color: #ff3e3e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.h3-btn-red:hover {
  background-color: #e62e2e;
}
.h3-btn-full {
  width: 100%;
  padding: 12px;
}
.h3-load-more {
  text-align: center;
  margin-top: 20px;
}

/* Sidebar */
.h3-sidebar-widget {
  margin-bottom: 40px;
}
.h3-sidebar-newsletter {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
}
[data-theme="dark"] .h3-sidebar-newsletter {
  border-color: var(--border-color);
}
.h3-newsletter-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;
  background: transparent;
  color: var(--text-color);
}
[data-theme="dark"] .h3-newsletter-input {
  border-color: var(--border-color);
}

.h3-following-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.h3-follow-item {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: var(--text-color);
}
.h3-follow-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.h3-follow-icon.fb {
  background: #1877f2;
}
.h3-follow-icon.tw {
  background: #1da1f2;
}
.h3-follow-icon.ig {
  background: #e1306c;
}
.h3-follow-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

@media screen and (max-width: 1024px) {
  .h3-latest-grid {
    grid-template-columns: 1fr 1fr;
  }
  .h3-main-layout {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .h3-latest-grid {
    grid-template-columns: 1fr;
  }
  .h3-aw-large-grid {
    grid-template-columns: 1fr;
  }
  .h3-aw-small-grid {
    grid-template-columns: 1fr;
  }
  .h3-recent-item {
    flex-direction: column;
  }
  .h3-recent-item img {
    width: 100%;
    height: 220px;
  }
}

/* --- Home 3 Instagram Grid --- */
.h3-ig-section {
  position: relative;
  margin-bottom: 0;
}
.h3-ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.h3-ig-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.h3-ig-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ff3e3e;
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 62, 62, 0.4);
  transition: transform 0.3s;
}
.h3-ig-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  color: #fff;
}
@media screen and (max-width: 1024px) {
  .h3-ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .h3-ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Home 3 Picked Section --- */
.h3-picked-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.h3-picked-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  padding-bottom: 15px;
  position: relative;
}
.h3-picked-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}
.h3-picked-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.h3-filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}
.h3-filter-btn.active {
  background: var(--primary-color);
  color: #fff;
}
[data-theme="dark"] .h3-filter-btn {
  color: var(--text-color);
}
[data-theme="dark"] .h3-filter-btn.active {
  color: #fff;
}

.h3-picked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.h3-picked-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.h3-picked-large-card > a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 15px;
}
.h3-picked-large-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.h3-picked-large-card > a:hover img {
  transform: scale(1.05);
}
.h3-picked-large-card h4 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 15px;
}
.h3-picked-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
}
.h3-picked-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0;
}
.h3-picked-small-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.h3-picked-small-card > a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  flex-shrink: 0;
}
.h3-picked-small-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.h3-picked-small-card > a:hover img {
  transform: scale(1.05);
}
.h3-picked-small-info h5 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.badge-exclusive {
  background: #ff3e3e;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 5px;
  vertical-align: middle;
}
@media screen and (max-width: 1024px) {
  .h3-picked-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 768px) {
  .h3-picked-grid {
    grid-template-columns: 1fr;
  }
}

.d-flex {
  display: flex;
}

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

.gap-10 {
  gap: 10px;
}

.slide-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--primary-color);
  width: 0%;
  z-index: 20;
  border-radius: 8px;
}

/* .shimmer-col {
  display: flex;
  flex-direction: column;
}
.shimmer-box {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: placeholderShimmer 1.2s linear infinite forwards;
  border-radius: 4px;
}
.shimmer-img {
  width: 100%;
  height: 160px;
  margin-bottom: 12px;
}
.shimmer-title {
  width: 100%;
  height: 16px;
  margin-bottom: 6px;
}
.shimmer-title-short {
  width: 80%;
  height: 16px;
  margin-bottom: 10px;
}
.shimmer-date {
  width: 50%;
  height: 12px;
}

[data-theme="dark"] .shimmer-box {
  background: #1e1e1e;
  background-image: linear-gradient(
    to right,
    #1e1e1e 0%,
    #333333 20%,
    #1e1e1e 40%,
    #1e1e1e 100%
  );
}

@keyframes placeholderShimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
} */

/* .fade-in-post {
  animation: postFadeIn 0.4s ease-in-out forwards;
  opacity: 0;
}
@keyframes postFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.mega-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: var(--text-gray);
  font-size: 0.95rem;
}
.mega-empty-state i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: var(--border-color, #ccc);
}

.social-stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 30px;
}
.social-stats-container.no-margin {
  margin-bottom: 0;
}
.social-stat-btn-new {
  display: flex;
  align-items: center;
  background: var(--bg-color, #fff);
  border: 1px solid var(--border-color, #eaeaea);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}
.social-stat-btn-new:hover {
  text-decoration: none;
  opacity: 0.8;
}
.social-stat-btn-new .icon-wrapper {
  padding: 8px 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-stat-btn-new .text-wrapper {
  border-left: 1px solid var(--border-color, #eaeaea);
  padding: 8px 10px;
  font-weight: 500;
  font-size: 12px;
  flex: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.social-stat-btn-new[data-name="facebook" i] .icon-wrapper,
.social-stat-btn-new[data-name="facebook" i] .text-wrapper {
  color: #1877f2;
}

.social-stat-btn-new[data-name="whatsapp" i] .icon-wrapper,
.social-stat-btn-new[data-name="whatsapp" i] .text-wrapper {
  color: #128c7e;
}

.social-stat-btn-new[data-name="instagram" i] .icon-wrapper,
.social-stat-btn-new[data-name="instagram" i] .text-wrapper {
  color: #b81b67;
}

.social-stat-btn-new[data-name="youtube" i] .icon-wrapper,
.social-stat-btn-new[data-name="youtube" i] .text-wrapper {
  color: #cc0000;
}

.social-stat-btn-new[data-name="twitter" i] .icon-wrapper,
.social-stat-btn-new[data-name="twitter" i] .text-wrapper,
.social-stat-btn-new[data-name="x" i] .icon-wrapper,
.social-stat-btn-new[data-name="x" i] .text-wrapper {
  color: var(--text-color, #000);
}

.social-stat-btn-new[data-name="telegram" i] .icon-wrapper,
.social-stat-btn-new[data-name="telegram" i] .text-wrapper {
  color: #0088cc;
}

.social-stat-btn-new[data-name="linkedin" i] .icon-wrapper,
.social-stat-btn-new[data-name="linkedin" i] .text-wrapper {
  color: #0077b5;
}

.social-stat-btn-new[data-name="pinterest" i] .icon-wrapper,
.social-stat-btn-new[data-name="pinterest" i] .text-wrapper {
  color: #bd081c;
}

.social-stat-btn-new[data-name="tiktok" i] .icon-wrapper,
.social-stat-btn-new[data-name="tiktok" i] .text-wrapper {
  color: var(--text-color, #000);
}

.social-stat-btn-new[data-name="github" i] .icon-wrapper,
.social-stat-btn-new[data-name="github" i] .text-wrapper {
  color: var(--text-color, #333);
}

/* Initial state: hidden and slightly blurred for premium feel */
.lazyload {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

/* Loaded state: visible, in place, and clear */
.lazyload.loaded {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Error state: fallback styles if image fails to load */
.lazyload.error {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  background-color: #1e293b;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MDAgNDUwIj48cmVjdCB3aWR0aD0iODAwIiBoZWlnaHQ9IjQ1MCIgZmlsbD0iIzFlMjkzYiIvPjxyZWN0IHdpZHRoPSI4MDAiIGhlaWdodD0iNDUwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiIHN0cm9rZS13aWR0aD0iMSIvPjxjaXJjbGUgY3g9IjQwMCIgY3k9IjIyNSIgcj0iMjIwIiBmaWxsPSJyZ2JhKDU5LDEzMCwyNDYsMC4xKSIvPjxyZWN0IHg9IjI1MCIgeT0iMTI1IiB3aWR0aD0iMzAwIiBoZWlnaHQ9IjIwMCIgcng9IjE2IiBmaWxsPSJyZ2JhKDMwLDQxLDU5LDAuNykiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM2NCwgMTgwKSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjU0IiByeD0iOCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOTRhM2I4IiBzdHJva2Utd2lkdGg9IjMiLz48Y2lyY2xlIGN4PSIyMiIgY3k9IjE4IiByPSI3IiBmaWxsPSIjOTRhM2I4Ii8+PHBhdGggZD0iTSA2IDQ0IEwgMjQgMjQgTCA0MCA0MCBMIDUyIDI4IEwgNjYgNDQgWiIgZmlsbD0iIzk0YTNiOCIgb3BhY2l0eT0iMC44Ii8+PC9nPjx0ZXh0IHg9IjQwMCIgeT0iMjc4IiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9IjYwMCIgbGV0dGVyLXNwYWNpbmc9IjIiIGZpbGw9IiM2NDc0OGIiIHRleHQtYW5jaG9yPSJtaWRkbGUiPk5PIFRIVU1CTkFJTCBBVkFJTEFCTEU8L3RleHQ+PC9zdmc+");
  background-size: cover;
  background-position: center;
  position: relative;
}

.shimmer-col {
  display: flex;
  flex-direction: column;
}
.shimmer-box {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: placeholderShimmer 1.2s linear infinite forwards;
  border-radius: 4px;
}
.shimmer-img {
  width: 100%;
  height: 160px;
  margin-bottom: 12px;
}
.shimmer-title {
  width: 100%;
  height: 16px;
  margin-bottom: 6px;
}
.shimmer-title-short {
  width: 80%;
  height: 16px;
  margin-bottom: 10px;
}
.shimmer-date {
  width: 50%;
  height: 12px;
}

[data-theme="dark"] .shimmer-box {
  background: #1e1e1e;
  background-image: linear-gradient(
    to right,
    #1e1e1e 0%,
    #333333 20%,
    #1e1e1e 40%,
    #1e1e1e 100%
  );
}

@keyframes placeholderShimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.fade-in-post {
  animation: postFadeIn 0.4s ease-in-out forwards;
  opacity: 0;
}
@keyframes postFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.widget.LinkList > ul:not(.menu-ready) {
  display: none !important;
}

#pagiflowCarouselBreakingNews:not(.is-loaded),
#metroHeroWidget:not(.is-loaded),
#FeaturedWidget:not(.is-loaded),
#pagiflowCarouselFeatureWidget:not(.is-loaded),
#pagiflowCarouselSidebar:not(.is-loaded),
#VideoWidget:not(.is-loaded) #pagiflowCarousel:not(.is-loaded),
#pagiflowCarouselRecent:not(.is-loaded),
#pagiflowCarouselPopularWidget:not(.is-loaded) {
  font-size: 0 !important;
  color: transparent !important;
}

.breaking-items:not(.pagiflow) {
  min-height: 65px;
}

.skeleton-box {
  display: block;
  background-color: #e2e5e7;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  background-size: 200px 100%;
  background-repeat: no-repeat;
  border-radius: 6px;
  animation: shimmer 1.5s infinite;
}

[data-theme="dark"] .skeleton-box {
  background: #1e1e1e;
  background-image: linear-gradient(
    to right,
    #1e1e1e 0%,
    #333333 20%,
    #1e1e1e 40%,
    #1e1e1e 100%
  );
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* --- Optimized Skeleton Layouts --- */
.skel-hero-main {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  min-height: 400px;
}
.skel-hero-side {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  min-height: 195px;
}
.skel-popular {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.skel-featured-main {
  width: 100%;
  height: 380px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.skel-featured-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.skel-featured-grid {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}
.skel-sidebar-feature {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.skel-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skel-title {
  width: 100%;
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skel-title-short {
  width: 80%;
  height: 14px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.skel-meta {
  width: 40%;
  height: 10px;
  border-radius: 4px;
}
.skel-meta-half {
  width: 50%;
  height: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.skel-video-main {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
}
.skel-video-thumb {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
}
.skel-grid-img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.skel-marquee-img {
  width: 100%;
  height: 250px;
  border-radius: 8px;
}

/* Flexbox and Layout Wrappers */
.skel-flex-grow {
  flex-grow: 1;
}
.skel-list-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}
.skel-video-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
.skel-grid-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
  width: 100%;
}
.skel-grid-card {
  flex: 1;
  min-width: 260px;
  margin-bottom: 20px;
}
.skel-marquee-container {
  display: flex;
  gap: 3px;
  overflow: hidden;
  width: 100%;
}
.skel-marquee-item {
  flex: 1;
  min-width: 200px;
}
.skel-footer-item {
  margin-bottom: 15px;
  list-style: none;
}

/* Responsive Adjustments for Skeleton Layouts */
@media (max-width: 768px) {
  .skel-hero-main {
    min-height: 250px;
  }
  .skel-hero-side {
    min-height: 150px;
  }
  .skel-video-main {
    min-height: 250px;
  }
  .skel-featured-main {
    height: 250px;
  }
  .skel-featured-grid-wrap {
    gap: 10px;
  }
  .skel-featured-grid {
    height: 150px;
  }
  .skel-avatar {
    width: 60px;
    height: 60px;
  }
  .skel-video-thumb {
    width: 100px;
    height: 70px;
  }
}
@media (max-width: 480px) {
  .skel-featured-grid-wrap {
    grid-template-columns: 1fr;
  }
  .skel-grid-container {
    flex-direction: column;
  }
  .skel-grid-card {
    min-width: 100%;
  }
}

/* --- Keep the image and text side-by-side permanently --- */
.breaking-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- Fix Skeleton Widths (Only active BEFORE Pagiflow loads!) --- */
.breaking-items:not(.pagiflow) {
  display: flex;
  gap: 5px;
  overflow: hidden;
  min-height: 65px;
}

/* Desktop: 4 items */
.breaking-items:not(.pagiflow) .breaking-item {
  flex: 0 0 calc(25% - 4px);
  max-width: calc(25% - 4px);
}

/* Tablet: 2 items */
@media (max-width: 1199px) {
  .breaking-items:not(.pagiflow) .breaking-item {
    flex: 0 0 calc(50% - 3px);
    max-width: calc(50% - 3px);
  }
}

/* Mobile: 1 item */
@media (max-width: 479px) {
  .breaking-items:not(.pagiflow) .breaking-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --- Skeleton Sizes --- */
.breaking-item.is-loading .breaking-img-wrap {
  border-radius: 50%;
  min-width: 65px;
  height: 65px;
}

.breaking-item.is-loading .breaking-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breaking-item.is-loading .skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  width: 90%;
}
.breaking-item.is-loading .skeleton-text.short {
  width: 60%;
  margin-bottom: 0;
}

/* Social Stats New Design */
.social-stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 30px;
}
.social-stats-container.no-margin {
  margin-bottom: 0;
}
.social-stat-btn-new {
  display: flex;
  align-items: center;
  background: var(--bg-color, #fff);
  border: 1px solid var(--border-color, #eaeaea);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}
.social-stat-btn-new:hover {
  text-decoration: none;
  opacity: 0.8;
}
.social-stat-btn-new .icon-wrapper {
  padding: 8px 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-stat-btn-new .text-wrapper {
  border-left: 1px solid var(--border-color, #eaeaea);
  padding: 8px 10px;
  font-weight: 500;
  font-size: 12px;
  flex: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.social-stat-btn-new[data-name="facebook" i] .icon-wrapper,
.social-stat-btn-new[data-name="facebook" i] .text-wrapper {
  color: #0a5cd6 !important;
}

.social-stat-btn-new[data-name="whatsapp" i] .icon-wrapper,
.social-stat-btn-new[data-name="whatsapp" i] .text-wrapper {
  color: #075e54 !important;
}

.social-stat-btn-new[data-name="instagram" i] .icon-wrapper,
.social-stat-btn-new[data-name="instagram" i] .text-wrapper {
  color: #b81b67 !important;
}

.social-stat-btn-new[data-name="youtube" i] .icon-wrapper,
.social-stat-btn-new[data-name="youtube" i] .text-wrapper {
  color: #cc0000 !important;
}

.social-stat-btn-new[data-name="twitter" i] .icon-wrapper,
.social-stat-btn-new[data-name="twitter" i] .text-wrapper,
.social-stat-btn-new[data-name="x" i] .icon-wrapper,
.social-stat-btn-new[data-name="x" i] .text-wrapper {
  color: var(--text-color, #000);
}

.social-stat-btn-new[data-name="telegram" i] .icon-wrapper,
.social-stat-btn-new[data-name="telegram" i] .text-wrapper {
  color: #0088cc;
}

.social-stat-btn-new[data-name="linkedin" i] .icon-wrapper,
.social-stat-btn-new[data-name="linkedin" i] .text-wrapper {
  color: #0077b5;
}

.social-stat-btn-new[data-name="pinterest" i] .icon-wrapper,
.social-stat-btn-new[data-name="pinterest" i] .text-wrapper {
  color: #bd081c;
}

.social-stat-btn-new[data-name="tiktok" i] .icon-wrapper,
.social-stat-btn-new[data-name="tiktok" i] .text-wrapper {
  color: var(--text-color, #000);
}

.social-stat-btn-new[data-name="github" i] .icon-wrapper,
.social-stat-btn-new[data-name="github" i] .text-wrapper {
  color: var(--text-color, #333);
}

/* ==========================================================================
   Premium Lazy Loading Styles
   ========================================================================== */

/* Initial state: hidden and slightly blurred for premium feel */
.lazyload {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

/* LQIP (Blur-up) specific styles: visible instantly, but blurred */
.lazyload.has-lqip {
  opacity: 1;
  transform: scale(1.05); /* Slight zoom hides blurred edges */
}

/* Loaded state: visible, in place, and clear */
.lazyload.loaded {
  opacity: 1;
  transform: none; /* Removes our lazyload transforms so original hover effects work! */
  filter: blur(0);
}

/* Error state: fallback styles if image fails to load */
.lazyload.error {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  background-color: #1e293b;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MDAgNDUwIj48cmVjdCB3aWR0aD0iODAwIiBoZWlnaHQ9IjQ1MCIgZmlsbD0iIzFlMjkzYiIvPjxyZWN0IHdpZHRoPSI4MDAiIGhlaWdodD0iNDUwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiIHN0cm9rZS13aWR0aD0iMSIvPjxjaXJjbGUgY3g9IjQwMCIgY3k9IjIyNSIgcj0iMjIwIiBmaWxsPSJyZ2JhKDU5LDEzMCwyNDYsMC4xKSIvPjxyZWN0IHg9IjI1MCIgeT0iMTI1IiB3aWR0aD0iMzAwIiBoZWlnaHQ9IjIwMCIgcng9IjE2IiBmaWxsPSJyZ2JhKDMwLDQxLDU5LDAuNykiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIiBzdHJva2Utd2lkdGg9IjEuNSIvPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM2NCwgMTgwKSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjU0IiByeD0iOCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOTRhM2I4IiBzdHJva2Utd2lkdGg9IjMiLz48Y2lyY2xlIGN4PSIyMiIgY3k9IjE4IiByPSI3IiBmaWxsPSIjOTRhM2I4Ii8+PHBhdGggZD0iTSA2IDQ0IEwgMjQgMjQgTCA0MCA0MCBMIDUyIDI4IEwgNjYgNDQgWiIgZmlsbD0iIzk0YTNiOCIgb3BhY2l0eT0iMC44Ii8+PC9nPjx0ZXh0IHg9IjQwMCIgeT0iMjc4IiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9IjYwMCIgbGV0dGVyLXNwYWNpbmc9IjIiIGZpbGw9IiM2NDc0OGIiIHRleHQtYW5jaG9yPSJtaWRkbGUiPk5PIFRIVU1CTkFJTCBBVkFJTEFCTEU8L3RleHQ+PC9zdmc+");
  background-size: cover;
  background-position: center;
  position: relative;
}

.comment-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease;
}

.comment-wrapper.show {
  max-height: 3000px;
  opacity: 1;
}

.comment-toggle-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 50px;
  background: #2388f7;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.comment-form-wrapper {
  display: none;
  margin-top: 20px;
}

.comment-form-wrapper.show {
  display: block;
}

.comment-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
}

#comments {
  margin-top: 40px;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: inherit;
}

#comments h3.title,
.related-post-list h3.title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

#comments h3.title::before,
.related-post-list h3.title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary-color);
  margin-right: 12px;
}

.comment-thread,
.comment-thread ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.comment-thread ol {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.comment-thread .comment {
  margin-top: 15px;
  margin-bottom: 15px;
  position: relative;
  padding: 15px;
  border: 1px solid rgb(126 126 126 / 0.16);
  background: rgba(45 45 45 / 0.02);
  border-radius: 4px;
}

[data-theme="dark"] .comment-thread .comment {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.comment-thread .comment .comment {
  border: 1px solid rgb(126 126 126 / 0.16);
  margin-top: 10px;
}

.comment-thread .avatar-image-container {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 35px;
  height: 35px;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
}

.comment-thread .avatar-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
}

.comment-thread .comment-block {
  margin-left: 50px;
  position: relative;
}

.comment-thread .comment-header {
  margin-bottom: 8px;
}

.comment-thread .user {
  font-weight: 600;
  color: var(--title-color, #111);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  font-style: normal;
}

[data-theme="dark"] .comment-thread .user {
  color: #eee;
}

.comment-thread .user a {
  color: inherit;
  text-decoration: none;
}

.comment-thread .datetime {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.comment-thread .datetime a {
  color: inherit;
  text-decoration: none;
}

.comment-thread .comment-content {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-color, #444);
  font-weight: 500;
  margin: 10px 0;
  padding: 15px;
  background: rgb(110 110 110 / 0.08);
  border-radius: 3px;
}

[data-theme="dark"] .comment-thread .comment-content {
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}

.comment-thread .comment-content p {
  margin: 0 0 10px 0;
}
.comment-thread .comment-content p:last-child {
  margin-bottom: 0;
}

.comment-thread .comment-actions {
  margin-top: 5px;
}

.comment-thread .comment-actions a,
.comment-thread .item-control a {
  display: inline-block;
  background: transparent;
  color: var(--title-color, #111);
  padding: 2px 10px 2px 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

[data-theme="dark"] .comment-thread .comment-actions a,
[data-theme="dark"] .comment-thread .item-control a {
  color: #eee;
}

.comment-thread .comment-actions a:hover,
.comment-thread .item-control a:hover {
  opacity: 0.7;
}

.comment-thread .thread-toggle,
.comment-thread .comment-replies .continue,
.comment-thread .loadmore {
  display: none !important;
}

.comment-form {
  margin-top: 30px;
}

#top-continue a {
  display: block;
  width: 100%;
  height: 40px;
  border-radius: 4px;
  background-color: var(--primary-color, #3a58f9);
  font-size: 15px;
  color: #fff !important;
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  box-sizing: border-box;
  margin: 25px 0 0 0;
  text-decoration: none;
}

#top-continue a:hover {
  opacity: 0.9;
}

#comments h4#comment-post-message,
.continue.hidden {
  display: none;
}

#comment-editor {
  width: 100%;
  border: none !important;
  background: transparent !important;
  min-height: 120px;
  margin-top: 15px;
}

[data-theme="dark"] #comment-editor {
  background: transparent !important;
}

#comment-editor:focus-within {
  outline: none;
}

.comments .comment-replybox-thread {
  margin-top: 1.5rem;
}

.comment-thread .empty-comment {
  font-style: italic;
  color: #888;
}

.comments-container .comment-form,
.comments-container .comment-replybox-thread {
  display: none;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.queryMessage {
  margin-bottom: 30px;
}

.queryMessage .query-info {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.errorPage {
  margin: 0 auto;
  max-width: 650px;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 30px;
}

.errorPage h3 {
  font-size: 5rem;
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
  font-weight: 800;
}
.errorPage h4 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 20px 0 10px 0;
}

.errorPage p {
  color: var(--text-gray);
  margin-bottom: 30px;
}
.errorPage a.homepage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.errorPage a.homepage:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

img.lazyload:not(.loaded) {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: placeholderShimmer 1.2s linear infinite forwards;
  color: transparent;
}

[data-theme="dark"] img.lazyload:not(.loaded) {
  background: #1e1e1e;
  background-image: linear-gradient(
    to right,
    #1e1e1e 0%,
    #333333 20%,
    #1e1e1e 40%,
    #1e1e1e 100%
  );
}

/* Contact Form CSS Variables */
:root {
  --cf-bg: #ffffff;
  --cf-border: #f0f0f0;
  --cf-title: #1a1a1a;
  --cf-text: #4a4a4a;
  --cf-input-bg: #fafafa;
  --cf-input-border: #e2e8f0;
  --cf-input-focus-bg: #ffffff;
  --cf-primary: var(--primary-color, #007bff);
  --cf-primary-text: var(--text-light, #ffffff);
  --cf-primary-hover: var(--primary-hover, #0056b3);
  --cf-success-bg: #d1fae5;
  --cf-success-text: #065f46;
  --cf-success-border: #10b981;
  --cf-error-bg: #fee2e2;
  --cf-error-text: #991b1b;
  --cf-error-border: #ef4444;
}

[data-theme="dark"] {
  --cf-bg: #1e1e1e;
  --cf-border: #333333;
  --cf-title: #f3f4f6;
  --cf-text: #d1d5db;
  --cf-input-bg: #2a2a2a;
  --cf-input-border: #404040;
  --cf-input-focus-bg: #333333;
  --cf-primary: var(--primary-color, #007bff);
  --cf-primary-text: var(--text-light, #ffffff);
  --cf-primary-hover: var(--primary-hover, #0056b3);
  --cf-success-bg: rgba(16, 185, 129, 0.1);
  --cf-success-text: #34d399;
  --cf-success-border: rgba(16, 185, 129, 0.2);
  --cf-error-bg: rgba(239, 68, 68, 0.1);
  --cf-error-text: #f87171;
  --cf-error-border: rgba(239, 68, 68, 0.2);
}

/* Contact Form Shortcode Styles */
#hidden-widgets-wrap {
  display: none !important;
}

.sc-contact-wrapper {
  margin: 2rem 0;
  font-family: "Inter", sans-serif;
}

.ContactForm {
  background: var(--cf-bg);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--cf-border);
  max-width: 600px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.ContactForm:not(#ContactForm1) {
  padding: 12px;
  border-radius: 8px;
}

.ContactForm .title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: var(--cf-title);
  text-align: center;
  display: block;
  border: none;
  padding: 0;
}
.ContactForm form {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--cf-text);
}
.ContactForm form br,
.ContactForm
  form
  p:not(#ContactForm1_contact-form-error-message):not(
    #ContactForm1_contact-form-success-message
  ) {
  display: none;
}
.ContactForm .contact-form-name,
.ContactForm .contact-form-email,
.ContactForm .contact-form-email-message {
  display: block;
  margin-top: 8px;
  margin-bottom: 20px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--cf-input-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: var(--cf-input-bg);
  max-width: 100%;
  color: var(--cf-title);
}
.ContactForm .contact-form-name:focus,
.ContactForm .contact-form-email:focus,
.ContactForm .contact-form-email-message:focus {
  border-color: var(--cf-primary);
  outline: none;
  background: var(--cf-input-focus-bg);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}
.ContactForm .contact-form-button-submit {
  background: var(--cf-primary);
  color: var(--cf-primary-text);
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
  max-width: 100%;
  margin: 0;
}
.ContactForm .contact-form-button-submit:hover {
  background: var(--cf-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.ContactForm form > div {
  max-width: 100% !important;
  margin-top: 15px;
}
.ContactForm form p.contact-form-error-message-with-border,
.ContactForm form p.contact-form-success-message-with-border {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
  margin: 0;
}
.ContactForm form p.contact-form-success-message-with-border {
  color: var(--cf-success-text);
  background: var(--cf-success-bg);
  border: 1px solid var(--cf-success-border);
}
.ContactForm form p.contact-form-error-message-with-border {
  color: var(--cf-error-text);
  background: var(--cf-error-bg);
  border: 1px solid var(--cf-error-border);
}
.ContactForm .contact-form-cross {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  cursor: pointer;
  opacity: 0.7;
}

.featured-post-pro-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.featured-post-pro-img-wrap {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.featured-post-pro-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-post-pro-card:hover .featured-post-pro-img-wrap img {
  transform: scale(1.08);
}
.featured-post-pro-content {
  padding: 20px;
}
.featured-post-pro-title {
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.featured-post-pro-title a {
  color: var(--text-dark);
}
.featured-post-pro-title a:hover {
  color: var(--primary-color);
}
.featured-post-pro-snippet {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Sidebar Search UI --- */
.sidebar-search-form {
  position: relative;
  margin-bottom: 25px;
}
.sidebar-search-input-group {
  display: flex;
  position: relative;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.sidebar-search-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(2, 116, 179, 0.1);
}
.sidebar-search-input {
  flex-grow: 1;
  border: none;
  padding: 14px 15px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
  outline: none;
}
.sidebar-search-input::placeholder {
  color: var(--text-gray);
}
.sidebar-search-btn {
  background: transparent;
  border: none;
  padding: 0 16px;
  color: var(--text-gray);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.sidebar-search-btn:hover {
  color: var(--primary-color);
}

.widget-content {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  padding: 1rem;
}

/* About Me Profile Widget */
.about-me-pro {
  text-align: center;
  padding: 0 0 2rem 0;
  background: var(--bg-white, #ffffff);
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-me-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--primary-color, #3b82f6);
  z-index: -1;
}

.about-me-pro .profile-img-wrapper {
  margin-top: 50px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.about-me-pro .profile-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-white, #ffffff);
  background: var(--bg-white, #ffffff);
  box-shadow: none;
  transition: transform 0.3s ease;
  padding: 0;
}

.about-me-pro .profile-img:hover {
  transform: translateY(-2px);
}

.about-me-pro .profile-info {
  padding: 0 1.5rem;
}

.about-me-pro .profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--text-dark, #111);
  letter-spacing: -0.5px;
}

.about-me-pro .profile-name a {
  color: inherit;
  text-decoration: none;
}

.about-me-pro .profile-name a:hover {
  color: var(--primary-color, #3b82f6);
}

.about-me-pro .location {
  font-size: 0.85rem;
  color: var(--text-gray, #6c757d);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 500;
}

.about-me-pro .location i {
  color: var(--primary-color, #3b82f6);
}

.about-me-pro .profile-textblock {
  font-size: 0.95rem;
  color: var(--text-gray, #6c757d);
  margin-bottom: 1rem;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-me-pro .btn-view-profile {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color, #3b82f6);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.about-me-pro .btn-view-profile:hover {
  background: var(--primary-hover, #2563eb);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Blog Archive Widget UI (Accordion Style) --- */
#ArchiveList {
  background: transparent;
  padding: 0;
  margin: 0;
}
#ArchiveList ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#ArchiveList li {
  list-style: none;
}

#ArchiveList .archivedate {
  position: relative;
}
#ArchiveList .hierarchy-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 12px 40px;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
#ArchiveList > div > ul > li > .hierarchy-title {
  background: var(--primary-color);
}
#ArchiveList > div > ul > li > ul > li > .hierarchy-title {
  background: var(--archive-level2-bg);
}
#ArchiveList .hierarchy-title:hover {
  filter: brightness(1.1);
}
.interval-name {
  display: flex;
  align-items: center;
}
.interval-name i {
  font-size: 14px;
  transition: transform 0.3s ease;
  margin-right: 0;
}
.toggle-icon {
  position: absolute;
  left: 10px;
  top: 7px;
  z-index: 2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}
.toggle-icon:hover {
  background: var(--archive-icon-hover);
}
#ArchiveList .post-count {
  background: var(--archive-badge-bg);
  color: var(--archive-badge-text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

#ArchiveList .archivedate > ul {
  margin-bottom: 12px;
}
#ArchiveList .archivedate.collapsed > ul {
  display: none;
}
#ArchiveList .archivedate.expanded > ul {
  display: block;
}
#ArchiveList .archivedate.expanded > .toggle-icon i,
#ArchiveList .archivedate.expanded > .hierarchy-title .toggle-icon i {
  transform: rotate(-180deg);
}

#ArchiveList .posts {
  background: var(--bg-white);
  padding: 10px 10px 10px 15px; /* Adjust padding for scrollbar */
  border-radius: 6px;
  margin-bottom: 8px;
  max-height: 300px;
  overflow-y: auto;
}
/* Custom Scrollbar for Posts */
#ArchiveList .posts::-webkit-scrollbar {
  width: 5px;
}
#ArchiveList .posts::-webkit-scrollbar-track {
  background: transparent;
}
#ArchiveList .posts::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
#ArchiveList .posts::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
#ArchiveList .posts li {
  margin-bottom: 0;
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
  margin-bottom: 15px;
}
#ArchiveList .posts li:last-child {
  margin-bottom: 0;
}
#ArchiveList .posts li a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}
#ArchiveList .posts li a:hover {
  color: var(--primary-color);
}

/* Specific overrides for Flat List style */
#ArchiveList ul.flat .hierarchy-title {
  padding-left: 16px;
}

/* --- Followers Widget UI --- */
.followers-pro-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}
.followers-pro-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
}

.followers-iframe-wrapper {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 10px;
  border: 1px dashed var(--border-color);
  display: flex;
  justify-content: center;
}
.followers-iframe-wrapper iframe {
  max-width: 100%;
}

/* --- Image Widget UI --- */
.image-pro-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}
.image-pro-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.image-pro-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}
.image-pro-caption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-gray);
  font-style: italic;
}

/* --- Label Widget Professional UI --- */
.cloud-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cloud-label .label-size {
  display: inline-block;
}
.cloud-label .label-name {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background-color: var(--bg-soft, #f4f6f8);
  color: var(--text-color, #333);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-color, #eaeaea);
  transition: all 0.3s ease;
}
.cloud-label .label-name:hover {
  background-color: var(--primary-color, #007bff);
  color: #fff;
  border-color: var(--primary-color, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.cloud-label .label-count {
  margin-left: 6px;
  background-color: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1;
}
.cloud-label .label-name:hover .label-count {
  background-color: rgba(255, 255, 255, 0.2);
}

.list-label ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-label li {
  margin-bottom: 10px;
}
.list-label li:last-child {
  margin-bottom: 0;
}
.list-label .label-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--bg-white, #fff);
  color: var(--text-color, #333);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border-color, #eaeaea);
  transition: all 0.3s ease;
  font-size: 14px;
}
.list-label .label-name:hover {
  border-color: var(--primary-color, #007bff);
  color: var(--primary-color, #007bff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.list-label .label-count {
  background-color: var(--bg-soft, #f4f6f8);
  color: var(--text-color, #333);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.list-label .label-name:hover .label-count {
  background-color: var(--primary-color, #007bff);
  color: #fff;
}

[data-theme="dark"] .cloud-label .label-name,
body.dark-mode .cloud-label .label-name {
  background-color: var(--bg-light, #1e1e1e);
  color: var(--text-dark, #f0f0f0);
  border-color: var(--border-color, #333);
}

[data-theme="dark"] .cloud-label .label-name:hover,
body.dark-mode .cloud-label .label-name:hover {
  background-color: var(--primary-color, #007bff);
  color: #fff;
  border-color: var(--primary-color, #007bff);
}

[data-theme="dark"] .cloud-label .label-count,
body.dark-mode .cloud-label .label-count {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .list-label .label-name,
body.dark-mode .list-label .label-name {
  background-color: var(--bg-white, #121212);
  color: var(--text-dark, #f0f0f0);
  border-color: var(--border-color, #333);
}

[data-theme="dark"] .list-label .label-count,
body.dark-mode .list-label .label-count {
  background-color: var(--bg-light, #1e1e1e);
  color: var(--text-dark, #f0f0f0);
}

[data-theme="dark"] .list-label .label-name:hover .label-count,
body.dark-mode .list-label .label-name:hover .label-count {
  background-color: var(--primary-color, #007bff);
  color: #fff;
}

.widget.PageList ul,
.widget.LinkList .link-items {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.widget.PageList li,
.widget.LinkList .link-items li {
  padding: 0;
  margin: 0;
}
.widget.PageList li a,
.widget.LinkList .link-items li a {
  color: var(--text-dark);
  font-size: 16px;
  text-decoration: none;
  display: block;
  transition: var(--transition, color 0.2s ease);
}
.widget.PageList li a:hover,
.widget.LinkList .link-items li a:hover {
  color: var(--primary-color);
}

/* --- Stats Widget UI --- */
.stats-widget {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
}

.stats-widget span[id*="_sparklinespan"] {
  display: inline-block;
  vertical-align: middle;
}

.stats-widget .counter-wrapper {
  display: inline-block;
  vertical-align: middle;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  margin-left: 12px;
}

/* Graphical Counter Digits Style */
.stats-widget .graph-counter-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stats-widget .graph-counter-wrapper .digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background-color: var(--text-dark);
  color: var(--bg-white);
  border-radius: 6px;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .stats-widget .graph-counter-wrapper .digit,
body.dark-mode .stats-widget .graph-counter-wrapper .digit {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.stats-widget .graph-counter-wrapper .digit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

[data-theme="dark"] .stats-widget .graph-counter-wrapper .digit::after,
body.dark-mode .stats-widget .graph-counter-wrapper .digit::after {
  background-color: rgba(0, 0, 0, 0.1);
}

.stats-widget .graph-counter-wrapper .digit strong {
  position: relative;
  z-index: 2;
  font-weight: 700;
  line-height: 1;
}

.stats-widget .graph-counter-wrapper .digit .blind-plate {
  display: none;
}

/* --- BlogList Widget UI --- */
.blog-list-widget {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
}

.blog-list-widget .blog-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-list-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-list-widget ul li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.blog-list-widget ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.blog-list-widget .blog-icon-title .blog-icon img {
  border-radius: 4px;
}

.blog-list-widget .blog-icon-title .blog-title a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.blog-list-widget .item-thumbnail {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.blog-list-widget .item-thumbnail a {
  display: block;
}

.blog-list-widget .item-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform 0.4s ease;
}

.blog-list-widget .item-thumbnail:hover img {
  transform: scale(1.08);
}

.blog-list-widget .item-title,
.blog-list-widget .item-title a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.blog-list-widget .item-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-top: 8px;
}

.blog-list-widget .item-time {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 8px;
}

.blog-list-widget .show-option {
  margin-top: 15px;
  padding-top: 5px;
}

.blog-list-widget .show-option a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.blog-list-widget .show-option a:hover {
  color: var(--primary-color);
}

.feed-widget {
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
}

.feed-widget ul {
  list-style: none;
  padding: 1rem;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

/* Custom Scrollbar for Feed Widget */
.feed-widget ul::-webkit-scrollbar {
  width: 5px;
}
.feed-widget ul::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}
.feed-widget ul::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
.feed-widget ul::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.feed-widget li {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.feed-widget li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.feed-widget .item-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
}

.feed-widget .item-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition, color 0.3s ease);
}

.feed-widget .item-title a:hover {
  color: var(--primary-color);
}

.feed-widget .item-date,
.feed-widget .item-author {
  position: relative;
  display: inline-block;
  font-size: 13px;
  color: var(--text-gray);
  padding-left: 8px;
}

.feed-widget .item-date::before,
.feed-widget .item-author::before {
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 100%;
  background-color: var(--bg-white);
  display: flex;
  align-items: center;
  color: var(--text-gray);
}

.feed-widget .item-date::before {
  content: "\f214";
}

.feed-widget .item-author {
  margin-left: 10px;
}

.feed-widget .item-author::before {
  content: "\f4e1";
}

/* --- Subscribe Widget UI --- */
.subscribe-widget {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); /* Slight premium shadow */
}

.subscribe-widget .subscribe-wrapper {
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
}

.subscribe-widget .subscribe-wrapper:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.subscribe-widget .inner {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.subscribe-widget .inner:hover {
  background-color: #f8f9fa; /* Light gray hover */
  color: var(--primary-color);
}

/* Icons */
.subscribe-widget .subscribe-toggle-icon {
  font-size: 14px;
  margin-right: 12px;
  color: var(--text-gray);
  transition: all 0.3s ease;
}

.subscribe-widget .inner:hover .subscribe-toggle-icon {
  color: var(--primary-color);
}

.subscribe-widget .subscribe-rss-icon {
  font-size: 15px;
  margin-right: 8px;
  color: var(--primary-color);
}

/* Links Dropdown */
.subscribe-widget .feed-reader-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 5px;
  padding-left: 27px; /* Indent under title */
  padding-bottom: 8px;
}

.subscribe-widget .feed-reader-link {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.subscribe-widget .feed-reader-link:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

.subscribe-widget .feed-reader-link img,
.subscribe-widget .feed-reader-link i {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.subscribe-widget .feed-reader-link i {
  font-size: 16px;
  color: var(--primary-color);
}

/* --- Translate Widget UI --- */
.translate-widget {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.translate-widget select.goog-te-combo {
  width: 100%;
  padding: 10px 15px;
  font-family: var(--font-family, "Inter", sans-serif);
  font-size: 14px !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-white);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  transition: all 0.3s ease;
}

.translate-widget select.goog-te-combo:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Hide Google Translate Top Bar completely */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

/* --- TextList Widget UI --- */
.text-list-widget {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.text-list-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.text-list-widget li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.text-list-widget li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.text-list-widget li:first-child {
  padding-top: 0;
}

.text-list-widget li::before {
  content: "\f285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  font-size: 12px;
  color: var(--primary-color);
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.text-list-widget li:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.text-list-widget li:hover::before {
  transform: translateX(2px) scale(1.1);
}

/* --- Wikipedia Widget UI --- */
.wikipedia-widget {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.wikipedia-widget .wikipedia-searchtable {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.wikipedia-widget .wikipedia-search-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wikipedia-widget .wikipedia-search-wiki-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.wikipedia-widget .wikipedia-search-wiki-link:hover {
  background: #e9ecef;
}

.wikipedia-widget .wikipedia-icon {
  width: 20px;
  height: auto;
}

.wikipedia-widget .wikipedia-search-bar {
  display: flex;
  flex: 1;
  gap: 8px;
}

.wikipedia-widget .wikipedia-input-box {
  flex: 1;
}

.wikipedia-widget .wikipedia-search-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-family, "Inter", sans-serif);
  font-size: 14px;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-white);
  outline: none;
  transition: border-color 0.3s ease;
}

.wikipedia-widget .wikipedia-search-input:focus {
  border-color: var(--primary-color);
}

.wikipedia-widget .wikipedia-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 16px;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wikipedia-widget .wikipedia-search-button:hover {
  background-color: var(--primary-color-hover, var(--primary-color));
  opacity: 0.9;
}

.wikipedia-widget .wikipedia-search-results-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.wikipedia-widget .wikipedia-search-results {
  font-size: 14px;
  color: var(--text-gray);
}

.wikipedia-widget .wikipedia-search-more a {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.wikipedia-widget .wikipedia-search-more a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* --- Attribution Widget UI --- */
.Attribution .widget-content {
  padding: 25px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.Attribution .widget-content .blogger a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 15px;
  transition: color 0.3s ease;
}

.Attribution .widget-content .blogger a:hover {
  color: var(--primary-color);
}

.Attribution .widget-content .blogger svg {
  width: 42px;
  height: 42px;
  fill: var(--text-dark);
  transition: all 0.3s ease;
}

.Attribution .widget-content .blogger a:hover svg {
  fill: var(--primary-color);
  transform: scale(1.1) translateY(-2px);
}

.Attribution .widget-content .copyright,
.Attribution .widget-content .image-attribution {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* --- ReportAbuse Widget UI --- */
.report-abuse-widget {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius, 8px);
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.report-abuse-widget .report_abuse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #d32f2f; /* Red for warning */
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.report-abuse-widget .report_abuse::before {
  content: "\f33a"; /* bi-exclamation-triangle */
  font-family: "bootstrap-icons";
  font-size: 16px;
}

.report-abuse-widget .report_abuse:hover {
  background: #d32f2f;
  color: #fff;
  border-color: #d32f2f;
}

.PopularPosts .widget-content {
  padding: 0;
}

/* --- PopularPosts Stacked Card UI --- */
.PopularPosts .widget-content div[role="feed"] {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-height: 500px;
  overflow-y: auto;
  padding: 15px;
}

.PopularPosts .widget-content div[role="feed"]::-webkit-scrollbar {
  width: 5px;
}

.PopularPosts .widget-content div[role="feed"]::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.PopularPosts .widget-content div[role="feed"]::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.PopularPosts .widget-content div[role="feed"]::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.PopularPosts article.post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.PopularPosts .post-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.PopularPosts .item-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.PopularPosts .item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.PopularPosts article.post:hover .item-thumbnail img {
  transform: scale(1.05);
}

.PopularPosts .post-label {
  position: absolute;
  bottom: 0;
  left: 10px;
  background: var(--primary-color);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease;
}

.PopularPosts .post-label:hover {
  background: var(--text-dark);
}

.PopularPosts .post-title {
  margin: 10px 0 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.PopularPosts .post-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.PopularPosts .post-title a:hover {
  color: var(--primary-color);
}

.PopularPosts .post-meta {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 10px; /* Increased gap to fix the tight spacing */
  display: flex;
  align-items: center;
  gap: 6px;
}

.PopularPosts .post-meta i {
  font-size: 13px;
  color: var(--primary-color);
  margin-bottom: 1px;
}

/* Hide Google branding */
.translate-widget .goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
  margin-top: 0 !important;
}

.translate-widget .goog-te-gadget span,
.translate-widget .goog-logo-link {
  display: none !important;
}

.sidebar-right .Header .header-widget {
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 15px;
  border-radius: 6px;
}

.hide-actions {
  display: none;
}

.hide-gradient {
  background: transparent !important;
}

.search-wrapper .BlogSearch {
  width: 100%;
}

#metroHeroWidget {
  min-height: 480px;
}
#pagiflowCarouselBreakingNews {
  min-height: 65px;
}
#FeaturedWidget {
  min-height: 400px;
}

@media screen and (max-width: 768px) {
  #metroHeroWidget {
    min-height: 726px;
  }
}

.sidebar-item-title a,
.grid-card h3 a,
.post-list-content h3 a {
  color: var(--text-dark) !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

/* ===== Share Modal Trigger (matches existing icon style) ===== */
.share-modal-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  line-height: 1;
}

.share-modal-trigger i {
  transition: all 0.2s ease;
  font-family: var(--font-main, inherit);
}

.share-trigger-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.share-trigger-btn i {
  font-size: 14px;
}

/* ===== Share Modal Overlay ===== */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== Share Modal Card ===== */
.share-modal {
  background: var(--bg-white, #fff);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  margin: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(30px) scale(0.97);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  opacity: 0;
}

.share-modal-overlay.active .share-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header */
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border-color);
}

.share-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.share-modal-close {
  background: var(--bg-light, #f4f6fb);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-gray);
  font-size: 14px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.share-modal-close:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Body */
.share-modal-body {
  padding: 20px 22px 24px;
}

/* Platform grid */
.share-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.share-platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 12px 6px;
  border-radius: 12px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.share-platform-btn:hover {
  background: var(--bg-light, #f4f6fb);
  transform: translateY(-2px);
}

.share-platform-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.share-platform-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray, #666);
  text-align: center;
}

/* Brand colors */
.share-fb .share-platform-icon {
  background: #1877f2;
}
.share-tw .share-platform-icon {
  background: #000;
}
.share-wa .share-platform-icon {
  background: #25d366;
}
.share-tg .share-platform-icon {
  background: #2ca5e0;
}
.share-pi .share-platform-icon {
  background: #e60023;
}
.share-li .share-platform-icon {
  background: #0077b5;
}
.share-rd .share-platform-icon {
  background: #ff4500;
}
.share-em .share-platform-icon {
  background: #6b7280;
}

/* Copy link row */
.share-copy-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.share-copy-row {
  display: flex;
  align-items: center;
  background: var(--bg-light, #f4f6fb);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  gap: 8px;
}

.share-copy-icon {
  color: var(--text-gray);
  font-size: 16px;
  flex-shrink: 0;
}

.share-copy-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  font-family: var(--font-main, inherit);
  min-width: 0;
  padding: 6px 0;
}

.share-copy-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  font-family: var(--font-main, inherit);
}

.share-copy-btn:hover,
.share-copy-btn.copied {
  background: #16a34a;
}

/* Dark mode support */
body.dark-mode .share-modal {
  background: #1e1e2e;
  border: 1px solid #2e2e3e;
}

body.dark-mode .share-modal-header {
  border-bottom-color: #2e2e3e;
}

body.dark-mode .share-modal-close {
  background: #2e2e3e;
}

body.dark-mode .share-copy-row {
  background: #2e2e3e;
  border-color: #3e3e4e;
}

body.dark-mode .share-copy-input {
  color: #e0e0e0;
}

.author-profile {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin: 40px 0;
}

.author-profile .author-avatar {
  width: 65px !important;
  height: 65px !important;
  border-radius: 50%;
}

.author-name-date .fn {
  font-size: 0.875rem;
  font-weight: 600;
}

.author-profile .author-avatar .author-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-color);
}

.author-profile .author-name {
  display: block;
  margin-bottom: 0px;
}

.author-profile .author-name .g-profile {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.author-profile .author-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.post-comment-number-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-date-reading-time {
  display: flex;
  gap: 0.65rem;
}

.timestamp-link i {
  margin-right: 5px;
}

.post-header-jumplink .section-title {
  margin-bottom: 0;
}

.post-header-jumplink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.more-btn {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

.is-error .sidebar-right {
  display: none;
}
