/* Local Font Face Declarations from assets/fonts */
@font-face {
  font-family: "RobotoLocal";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoLocal";
  src: url("../fonts/Roboto-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "RobotoLocal";
  src: url("../fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoLocal";
  src: url("../fonts/Roboto-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoLocal";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoLocal";
  src: url("../fonts/Roboto-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoLocal";
  src: url("../fonts/Roboto-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #8b4513;
  --primary-dark: #6b340e;
  --primary-light: #fdf8f5;
  --accent-color: #d9534f;
  --text-main: #222222;
  --text-muted: #666666;
  --bg-light: #f9f9fb;
  --bg-card: #ffffff;
  --border-color: #eaeaea;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading:
    "RobotoLocal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "RobotoLocal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.drawer-is-open {
  overflow: hidden !important;
}

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

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --------------------------------------------------------------------------
   Topbar & News Ticker
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--topbar-bg);
  color: #cccccc;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  max-width: 70%;
}

.ticker-badge {
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-hotline {
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.topbar-hotline i {
  color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  /* position: sticky;
	top: 0; */
  z-index: 990;
}

.header-main {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.site-branding .site-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-branding .site-description {
  font-size: 12px;
  color: var(--text-muted);
}
/* Ẩn các ký tự dư thừa do file quảng cáo trả về */
.single-post-ad-in-content ins {
    font-size: 0 !important;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4px 6px 4px 15px;
}

.header-search input[type="search"] {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 200px;
}

.header-search button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.header-search button:hover {
  background: var(--primary-dark);
}

/* Main Navigation Bar (Desktop) */
.main-navigation {
  background-color: var(--primary-color);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 14px 20px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
}

.main-navigation li:hover > a,
.main-navigation li.current-menu-item > a {
  background-color: var(--primary-dark);
}

/* Dropdown Submenu */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  z-index: 100;
}

.main-navigation ul ul a {
  color: var(--text-main);
  text-transform: none;
  font-weight: 500;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-color);
}

.main-navigation ul ul a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.main-navigation li:hover > ul {
  display: flex;
}

/* --------------------------------------------------------------------------
   Mobile Hamburger Button (Morphing Animation)
   -------------------------------------------------------------------------- */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  outline: none;
  flex-shrink: 0;
}

.hamburger-box {
  width: 26px;
  height: 18px;
  display: block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background-color 0.3s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -7px;
}

.hamburger-inner::after {
  content: "";
  bottom: -7px;
}

/* Active Morphing to X */
.hamburger-btn.is-active .hamburger-inner {
  background-color: transparent;
}

.hamburger-btn.is-active .hamburger-inner::before {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent-color);
}

.hamburger-btn.is-active .hamburger-inner::after {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   Off-Canvas Mobile Drawer & Glassmorphism Backdrop Overlay
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.offcanvas-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.offcanvas-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.drawer-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-search form {
  display: flex;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.drawer-search input[type="search"] {
  flex-grow: 1;
  border: none;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

.drawer-search button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 15px;
  cursor: pointer;
}

.mobile-navigation ul {
  list-style: none;
}

.mobile-navigation a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.mobile-navigation a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.drawer-contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-btn {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-call {
  background: var(--accent-color);
  color: #fff;
}

.btn-zalo-contact {
  background: #0068ff;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Mobile Sticky Bottom Quick Action Bar
   -------------------------------------------------------------------------- */
.mobile-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 990;
  padding: 8px 10px;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.quick-item i {
  font-size: 20px;
  height: 20px;
  width: 20px;
}

.quick-item.quick-call i {
  color: var(--accent-color);
}
.quick-item.quick-zalo i {
  color: #0068ff;
}

/* --------------------------------------------------------------------------
   Layout Structure & Responsive Cards
   -------------------------------------------------------------------------- */
.site-main-layout {
  padding: 30px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 15px;
}

.layout-fullwidth {
  grid-template-columns: 1fr;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Featured News Grid */
.featured-news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.featured-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 420px;
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.featured-main:hover img {
  transform: scale(1.04);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: #fff;
}

.featured-cat-tag {
  background: var(--accent-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
}

.featured-main .featured-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff;
}

.featured-sub-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sub-news-card {
  display: flex;
  gap: 15px;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.sub-news-thumb {
  width: 110px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.sub-news-info .sub-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Cards Grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card-thumb {
  height: 270px;
  overflow: hidden;
  position: relative;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Custom Sidebar & Coded Widgets
   -------------------------------------------------------------------------- */
.custom-sidebar .custom-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 12px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.custom-widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  position: relative;
}

.custom-widget-title i {
  color: var(--primary-color);
  font-size: 18px;
}

.custom-widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

/* Widget 1: Trending Ranked Items */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #4a3000;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
  color: #333;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
}

.rank-badge.rank-4,
.rank-badge.rank-5 {
  background: var(--primary-color);
}

.trending-thumb {
  width: 75px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.trending-item:hover .trending-thumb img {
  transform: scale(1.08);
}

.trending-info {
  display: flex;
  flex-direction: column;
}

.trending-cat-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Widget 2: Newsletter Card */
.widget-newsletter-card {
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
}

.newsletter-card-inner {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: #ffffff;
  padding: 25px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  font-size: 22px;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.newsletter-desc {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 15px;
  line-height: 1.45;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

.newsletter-btn {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.newsletter-btn:hover {
  background: #c9302c;
}

/* Widget 3: Custom Category Badges */
.custom-cat-list {
  list-style: none;
}

.custom-cat-item {
  border-bottom: 1px solid var(--border-color);
}

.custom-cat-item:last-child {
  border-bottom: none;
}

.cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.cat-link:hover {
  padding-left: 6px;
  color: var(--primary-color);
}

.cat-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Widget 4: Consultation CTA Box */
.widget-cta-consultation {
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
}

.cta-box-inner {
  background: var(--primary-light);
  border: 1px solid rgba(139, 69, 19, 0.2);
  padding: 22px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-subtitle {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.cta-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.cta-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.btn-call-now {
  background: var(--primary-color);
}

.btn-call-now:hover {
  background: var(--primary-dark);
}

.btn-zalo-now {
  background: #0068ff;
}

.btn-zalo-now:hover {
  background: #0056d6;
}

/* --------------------------------------------------------------------------
   Category Archive Page Redesign (Category Hero Banner & Hero First Post)
   -------------------------------------------------------------------------- */
.category-hero-banner {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: #ffffff;
  padding: 35px 30px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
  line-height: 1.2;
}

.category-description {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 15px;
  max-width: 700px;
  line-height: 1.5;
}

.category-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Archive Hero First Post Card */
.archive-hero-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 35px;
  transition: var(--transition-smooth);
}

.archive-hero-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-post-thumb {
  height: 300px;
  overflow: hidden;
}

.hero-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.archive-hero-post:hover .hero-post-thumb img {
  transform: scale(1.05);
}

.hero-post-body {
  padding: 25px 25px 25px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-block;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero-post-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.hero-post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Single Post Detail Redesign (Magazine Editorial Style)
   -------------------------------------------------------------------------- */
.single-post-article.magazine-single {
  background: var(--bg-card);
  padding: 20px 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.single-post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
}

.category-pill-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(139, 69, 19, 0.15);
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

/* Author Meta Bar */
.author-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  background: var(--bg-light);
  padding: 12px 18px;
  border-radius: 8px;
}

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

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

.author-details {
  display: flex;
  flex-direction: column;
}

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

.meta-stats-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-pill {
  font-size: 12px;
  color: var(--text-muted);
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Single Hero Image */
.single-hero-image {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.image-caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 12px;
  background: var(--bg-light);
  font-style: italic;
}

/* Editorial Drop Cap First Paragraph */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 4px;
  color: var(--primary-color);
  font-weight: 800;
}

/* Section Headings inside Content */
.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 35px 0 15px 0;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

.entry-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 25px 0 12px 0;
}

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--primary-light);
  border: 1px solid rgba(139, 69, 19, 0.15);
  padding: 22px;
  border-radius: var(--radius);
  margin: 35px 0;
}

.bio-avatar img {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.bio-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.bio-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.bio-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Previous / Next Post Navigation Cards */
.post-navigation-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 35px 0;
}

.nav-card {
  background: var(--bg-light);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.nav-card:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.nav-direction {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Posts Redesign */
.related-posts-section {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 2px solid var(--border-color);
}

.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-card-thumb {
  height: 200px;
  overflow: hidden;
}

.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.related-card:hover .related-card-thumb img {
  transform: scale(1.06);
}

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

.related-date {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.related-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination Styling */
.pagination-wrapper {
  margin-top: 35px;
  text-align: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: #bbbbbb;
  padding-top: 45px;
  margin-top: 50px;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333333;
}

.footer-title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.site-info-bar {
  padding: 20px 0 70px 0;
  text-align: center;
  font-size: 13px;
  color: #888888;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Optimizations (Screens <= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .featured-news-grid {
    grid-template-columns: 1fr;
  }
  .featured-main {
    height: 300px;
  }
  .footer-widgets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-navigation,
  .desktop-search,
  .topbar-right {
    display: none !important;
  }

  .hamburger-btn {
    display: block;
  }

  .mobile-quick-bar {
    display: flex;
  }
  /* 
  .site-header {
    padding: 5px 0;
  } */

  .site-branding .site-title {
    font-size: 18px;
  }

  .featured-main {
    height: 260px;
  }

  .featured-overlay {
    padding: 15px;
  }

  .featured-main .featured-title {
    font-size: 17px;
  }

  /* Mobile Horizontal News Card Layout */
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .news-card {
    flex-direction: row;
    height: 110px;
  }

  .news-card-thumb {
    width: 120px;
    height: 100%;
    flex-shrink: 0;
  }

  .news-card-body {
    padding: 10px 12px;
    justify-content: center;
  }

  .news-card-title {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-excerpt {
    display: none;
  }

  .entry-meta {
    font-size: 11px;
    gap: 8px;
  }

  .single-post-article {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .single-post-title {
    font-size: 22px;
  }

  .entry-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .ticker-wrap {
    max-width: 100%;
  }

  /* Archive Hero Post Mobile Layout */
  .archive-hero-post {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-post-thumb {
    height: 220px;
  }

  .hero-post-body {
    padding: 18px 20px 22px 20px;
  }

  .hero-post-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .hero-post-excerpt {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Single Post Mobile Layout Fixes */
  .author-bio-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px 15px;
    gap: 12px;
  }

  .post-navigation-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 95px;
  }

  .related-card-thumb {
    width: 110px;
    height: 100%;
    flex-shrink: 0;
  }

  .related-card-body {
    padding: 10px 12px;
  }

  .related-title {
    font-size: 13px;
    line-height: 1.35;
  }
}