/* SASS VAR */
:root {
  --primary: #ffc300;
  --primary-dark: #a80000;
  --secondary: #0297CF;
  --bg: #f4f4f4;
  --card-bg: #ffffff;
  --text: #01021e;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e2e2e2;
  --topbar-bg: #000626;
  --topbar-text: #c0c0c0;
  --header-bg: #ffffff;
  --nav-bg: #ffffff;
  --nav-border: #e8e8e8;
  --subnav-bg: #f9f9f9;
  --section-title-border: #cc0000;
  --footer-bg: #020731;
  --footer-secondary: #000626;
  --footer-text: #aaaaaa;
  --footer-heading: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.14);
  --radius: 3px;
  --transition: all .2s ease;
}

[data-theme=dark] {
  --bg: #01021e;
  --card-bg: #001029;
  --text: #e0e0e0;
  --text-muted: #aaaaaa;
  --text-light: #777777;
  --border: #2e2e2e;
  --header-bg: #161616;
  --nav-bg: #001029;
  --nav-border: #2a2a2a;
  --subnav-bg: #131313;
  --shadow: 0 2px 8px rgba(0,0,0,.4);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.5);
  --topbar-bg: #0c0c0c;
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 14px;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

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

/* ---- Top Bar ---- */
.top-bar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--primary);
}

.top-bar a {
  color: var(--topbar-text);
}

.top-bar a:hover {
  color: #ffffff;
}

.top-bar .top-weather {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.top-bar .social-icons a:hover {
  background: var(--primary);
  color: #fff;
}

.top-bar .login-links a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 11px;
}

.top-bar .login-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Dark Mode Toggle ---- */
.theme-toggle-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--topbar-text);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* ---- Header / Logo ---- */
.site-header {
  background: var(--header-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.site-logo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}

.site-logo span {
  color: var(--primary);
}

.site-logo small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Mobile Header & Offcanvas ---- */
.d-lg-none.sticky-top {
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.offcanvas {
  background-color: var(--card-bg);
  color: var(--text);
  transition: transform 0.3s ease-in-out;
}

.offcanvas-header {
  background: var(--nav-bg);
}
.offcanvas-header .offcanvas-title {
  color: var(--primary);
  font-size: 16px;
}

.offcanvas-body .nav-link {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.offcanvas-body .nav-link:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary) !important;
}

[data-theme=dark] .offcanvas {
  background-color: #001029;
}
[data-theme=dark] .offcanvas .offcanvas-header {
  background: #001029;
}
[data-theme=dark] .offcanvas .nav-link {
  color: #e0e0e0 !important;
}

.header-ad {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius);
  min-height: 80px;
}

[data-theme=dark] .header-ad {
  background: #222;
  border-color: #333;
}

/* ---- Main Navigation ---- */
.main-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: background-color 0.3s ease;
}

.main-nav .navbar-nav .nav-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
}

.main-nav .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
  color: var(--primary);
}

.main-nav .navbar-nav .nav-link:hover::after,
.main-nav .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.main-nav .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-hover);
  border-top: 2px solid var(--primary);
  border-radius: 0;
  padding: 0;
  background: var(--card-bg);
  min-width: 180px;
}

.main-nav .dropdown-item {
  font-size: 12px;
  padding: 8px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.main-nav .dropdown-item:hover {
  background: var(--primary);
  color: #fff;
}

.nav-search-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-search-btn:hover {
  color: var(--primary);
}

/* ---- Sub Nav Tabs ---- */
.sub-nav {
  background: var(--subnav-bg);
  border-bottom: 2px solid var(--border);
  transition: background-color 0.3s ease;
}

.sub-nav .nav-tabs {
  border: none;
  gap: 0;
}

.sub-nav .nav-tabs .nav-link {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  border: none;
  border-radius: 0;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.sub-nav .nav-tabs .nav-link:hover {
  color: var(--primary);
}

.sub-nav .nav-tabs .nav-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Breaking News Ticker ---- */
.breaking-news-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.breaking-label {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-content a {
  color: var(--text);
  font-size: 13px;
}

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

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* ---- Section Header ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  padding-bottom: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: -2px;
  display: inline-block;
}

.section-see-more {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
}
.section-see-more.active {
  background: var(--primary);
  color: #fff;
  border: none;
}

.section-see-more:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Article Cards ---- */
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.article-card .card-img-wrap {
  position: relative;
  overflow: hidden;
}

.article-card .card-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.article-card .card-category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
}

.article-card .card-date-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  padding: 3px 7px;
}

.article-card .card-body {
  padding: 12px;
}

.article-card .card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card .card-meta i {
  color: var(--primary);
}

.article-card .card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-title:hover {
  color: var(--primary);
}

.article-card .card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.article-card .card-footer-bar {
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
}

.article-card .card-footer-bar a:hover {
  color: var(--primary);
}

/* ---- Horizontal Card (Sidebar / Small List) ---- */
.article-card-h {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.article-card-h:last-child {
  border-bottom: none;
}

.article-card-h .card-img-sm {
  width: 80px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-card-h .card-img-sm img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card-h:hover .card-img-sm img {
  transform: scale(1.05);
}

.article-card-h .card-content {
  flex: 1;
  min-width: 0;
}

.article-card-h .card-title-sm {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.article-card-h .card-title-sm:hover {
  color: var(--primary);
}

.article-card-h .card-date-sm {
  font-size: 10px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card-h .card-date-sm i {
  color: var(--primary);
  font-size: 9px;
}

/* ---- Hero Slider ---- */
.hero-section {
  margin-bottom: 24px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

.hero-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta i {
  color: #ffc300;
}

.hero-controls {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-controls button {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-controls button:hover {
  background: var(--primary);
  color: #fff;
}

.hero-sidebar-list {
  height: 100%;
}

.hero-sidebar-list .article-card-h {
  padding: 8px 0;
}

.hero-sidebar-list .article-card-h .card-img-sm {
  width: 90px;
}

.hero-sidebar-list .article-card-h .card-img-sm img {
  width: 90px;
  height: 65px;
}

/* ---- Secondary Featured Cards ---- */
.hero-sub-cards {
  margin-top: 12px;
}

.hero-sub-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-sub-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-sub-card:hover img {
  transform: scale(1.04);
}

.hero-sub-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.hero-sub-overlay .badge-cat {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 5px;
}

.hero-sub-overlay .sub-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Content Sections ---- */
.content-section {
  margin-bottom: 28px;
}

.news-section-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: background-color 0.3s ease;
}

/* ---- Advertisement Banners ---- */
.ad-banner {
  background: #f0f0f0;
  border: 1px dashed #c0c0c0;
  text-align: center;
  padding: 18px;
  border-radius: var(--radius);
  color: #bbb;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 20px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

[data-theme=dark] .ad-banner {
  background: #1e1e1e;
  border-color: #333;
  color: #555;
}

.ad-banner .ad-label {
  font-size: 10px;
  color: #ccc;
  letter-spacing: 3px;
}

[data-theme=dark] .ad-banner .ad-label {
  color: #444;
}

/* ---- Sidebar ---- */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.sidebar-widget .widget-header {
  background: var(--secondary);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-widget .widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

.sidebar-widget .widget-body {
  padding: 14px;
}

/* ---- Stay Connected ---- */
.social-follow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.social-follow-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-follow-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.social-follow-btn span {
  font-size: 10px;
  opacity: 0.8;
}

.social-follow-btn .count {
  font-size: 13px;
  font-weight: 700;
}

.social-fb {
  background: #3b5998;
}

.social-tw {
  background: #1da1f2;
}

.social-gp {
  background: #dd4b39;
}

.social-ln {
  background: #0077b5;
}

.social-yt {
  background: #ff0000;
}

.social-pt {
  background: #bd081c;
}

/* ---- Newsletter ---- */
.newsletter-form .form-control {
  border-radius: var(--radius);
  font-size: 12px;
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.newsletter-form .form-control::placeholder {
  color: var(--text-light);
}

.newsletter-form .btn-subscribe {
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 20px;
  border-radius: var(--radius);
  width: 100%;
  transition: var(--transition);
}

.newsletter-form .btn-subscribe:hover {
  background: var(--primary-dark);
}

/* ---- Video Card ---- */
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.video-card .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(204, 0, 0, 0.9);
  color: #fff;
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding-left: 4px;
}

.video-card .video-play-btn:hover {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

.video-card .video-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .video-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  display: flex;
  gap: 10px;
}

/* ---- Readers Opinion ---- */
.reader-opinion-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.reader-opinion-item:last-child {
  border-bottom: none;
}

.reader-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.reader-info .reader-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.reader-info .reader-text {
  font-size: 11px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.reader-info .reader-date {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ---- Editor's Choice ---- */
.editor-choice-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.editor-choice-item:last-child {
  border-bottom: none;
}

.editor-choice-item .ec-img {
  width: 75px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.editor-choice-item .ec-img img {
  width: 75px;
  height: 55px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.editor-choice-item:hover .ec-img img {
  transform: scale(1.05);
}

.editor-choice-item .ec-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editor-choice-item .ec-title:hover {
  color: var(--primary);
}

.editor-choice-item .ec-date {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 3px;
}

/* ---- Post Page ---- */
.post-header {
  margin-bottom: 20px;
}

.post-category-link {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.post-title-main {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.post-meta-bar i {
  color: var(--primary);
}

.post-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.post-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.post-content p {
  margin-bottom: 16px;
}

.post-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text);
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  margin: 20px 0;
  background: var(--bg);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-tags {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post-tags .tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  margin: 3px;
  transition: var(--transition);
}

.post-tags .tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.post-share-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin: 3px;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.author-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

.author-info .author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.author-info .author-role {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.author-info .author-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- Category / Archive Page ---- */
.category-hero-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #2c3e50 100%);
  padding: 32px 0;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.category-hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.category-hero-banner h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.category-hero-banner .breadcrumb-nav {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.category-hero-banner .breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.category-hero-banner .breadcrumb-nav a:hover {
  color: #fff;
}

.filter-bar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.filter-bar .filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filter-btn {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-bar {
  margin-top: 28px;
}

.pagination-bar .page-link {
  color: var(--primary) !important;
  background: var(--card-bg);
  border-color: var(--border);
  font-size: 13px;
  padding: 7px 14px;
}

.pagination-bar .page-link:hover,
.pagination-bar .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

#topmenu .nav-link {
  color: var(--text);
}

#headsocial .search {
  background-color: var(--primary);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 0 0;
  margin-top: 32px;
}

.footer-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
}

.footer-logo span {
  color: var(--primary);
}

.footer-about-text {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.65;
  margin-top: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 13px;
  margin-right: 4px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--footer-heading);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-links li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links li a {
  font-size: 13px;
  color: var(--footer-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a i {
  color: var(--primary);
  font-size: 10px;
}

.footer-links li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-news-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-news-item:last-child {
  border-bottom: none;
}

.footer-news-item img {
  width: 65px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.footer-news-item .fn-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--footer-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-news-item .fn-title:hover {
  color: #fff;
}

.footer-news-item .fn-date {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

.footer-bottom {
  background: var(--footer-secondary);
  margin-top: 30px;
  padding: 14px 0;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
}

.footer-bottom a {
  color: #888;
}

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

.footer-bottom-links a {
  margin: 0 8px;
}

/* ---- Utilities ---- */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.badge-primary {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
}

.badge-hot {
  background: #ff5722;
}

.badge-new {
  background: #4caf50;
}

.badge-live {
  background: var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.count-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.sticky-sidebar {
  position: sticky;
  top: 16px;
}

.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .hero-main img {
    height: 280px;
  }
  .hero-title {
    font-size: 17px;
  }
  .post-title-main {
    font-size: 21px;
  }
  .main-nav .navbar-collapse {
    background: var(--nav-bg);
    padding: 10px;
  }
  .sticky-sidebar {
    position: static;
  }
}
@media (max-width: 767.98px) {
  /* .top-bar .top-center { display: none; } */
  .hero-main img {
    height: 220px;
  }
  .hero-title {
    font-size: 15px;
  }
  .social-follow-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-hero-banner h1 {
    font-size: 22px;
  }
  .post-title-main {
    font-size: 19px;
  }
  .site-logo {
    font-size: 26px;
  }
}
@media (max-width: 575.98px) {
  .section-title {
    font-size: 14px;
  }
  .article-card .card-title {
    font-size: 12px;
  }
  .hero-main img {
    height: 190px;
  }
}