/* ==========================================
   BASIC STYLES
   ========================================== */

*,
html,
body {
  font-family: "Lexend Deca", sans-serif !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

/* ==========================================
   FONT AWESOME - RESTORE ICONS
   ========================================== */

/* Ensure Font Awesome icons display properly */
.fa,
.fas,
.fab,
.far,
.fal,
.fad,
i[class*="fa-"],
.fa-solid,
.fa-regular,
.fa-brands {
  display: inline-block;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-style: normal;
  font-weight: 900 !important;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1;
  vertical-align: -0.125em;
}

.fab,
.fa-brands {
  font-weight: 400 !important;
}

.far {
  font-weight: 400 !important;
}
/* ==========================================
   HEADER STYLES
   ========================================== */

/* Header Top Bar - Info & Social */
.header-topbar {
  background-color: #1e5ba8;
  color: #fff;
  padding: 8px 0;
  font-size: 0.875rem;
}

.header-topbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
}

.header-topbar a:hover {
  color: #ffeb3b;
  text-decoration: none;
}

.topbar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-contact {
  flex: 1;
}

.topbar-social {
  display: flex;
  gap: 0.5rem;
}

.topbar-social a {
  margin: 0;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.topbar-social a:hover {
  background-color: #fff;
  color: #1e5ba8;
}

/* Main Header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 0;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
}

/* Header Content - Menu + Search */
.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

/* Site Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.site-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-logo-img {
  max-height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

.custom-logo-link {
  flex-shrink: 0;
  display: inline-block;
}

.custom-logo-link img {
  max-height: 80px;
  width: auto;
}

.site-title,
.site-description {
  margin: 0;
  padding: 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0066cc;
}

.site-title a {
  color: #0066cc;
  text-decoration: none;
}

.site-title a:hover {
  color: #1e5ba8;
}

.site-description {
  font-size: 0.75rem;
  color: #666;
  font-weight: 300;
}

/* Navigation */
.site-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

#primary-menu {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

#primary-menu > li {
  position: relative;
  white-space: nowrap;
}

#primary-menu > li > a, #primary-menu > li >span {
  color: #0066cc;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
  border-bottom: 3px solid transparent;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a
 {
  color: #1e5ba8;
  border-bottom-color: #1e5ba8;
}

/* Arrow icon trong menu */
.menu-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

#primary-menu > li:hover .menu-arrow {
  transform: rotate(180deg);
}

#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #0066cc;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  z-index: 100;
}

#primary-menu li:hover > .sub-menu {
  display: block;
}

#primary-menu .sub-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

#primary-menu .sub-menu li a:hover {
  background-color: #f5f5f5;
  color: #0066cc;
  border-left: 3px solid #0066cc;
  padding-left: 1.5rem;
}

/* Search */
.header-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  border-left: 1px solid #e0e0e0;
  position: relative;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: #0066cc;
  padding: 5px;
  line-height: 1;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.search-toggle:hover {
  color: #1e5ba8;
  transform: scale(1.1);
}

/* Search Dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 12px;
  z-index: 200;
}

.search-dropdown.active {
  display: block;
  animation: fadeSlideDown 0.2s ease;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  transform: rotate(45deg);
}

.search-dropdown .search-form {
  display: flex;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.search-dropdown .search-form input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  color: #333;
}

.search-dropdown .search-form input::placeholder {
  color: #aaa;
}

.search-dropdown .search-form button {
  background-color: #0066cc;
  color: #fff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.search-dropdown .search-form button:hover {
  background-color: #1e5ba8;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  justify-content: center;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #0066cc;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger -> X khi active */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle:hover span {
  background-color: #1e5ba8;
}

/* ==========================================
   MOBILE DRAWER OVERLAY
   ========================================== */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-overlay.active {
  display: block;
  animation: overlayFadeIn 0.25s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   MOBILE DRAWER PANEL
   ========================================== */

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  left: 0;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1e5ba8;
  color: #fff;
  flex-shrink: 0;
}

.drawer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Drawer Search */
.drawer-search {
  padding: 14px 16px;
  border-bottom: 1px solid #e8e8e8;
  background: #f5f8ff;
  flex-shrink: 0;
}

.search-form-mobile {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.search-form-mobile input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  color: #333;
  background: #fff;
}

.search-form-mobile input::placeholder {
  color: #aaa;
}

.search-form-mobile button {
  background-color: #0066cc;
  color: #fff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.search-form-mobile button:hover {
  background-color: #1e5ba8;
}

/* Drawer Menu List */
.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}

.drawer-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #222;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition:
    background 0.2s,
    color 0.2s;
}

.drawer-item > a:hover {
  background: #f0f5ff;
  color: #0066cc;
}

.drawer-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.drawer-item.open > a .drawer-arrow {
  transform: rotate(180deg);
}

/* Drawer Sub Menu */
.drawer-sub-menu {
  list-style: none;
  display: none;
  margin: 0;
  padding: 0;
  background: #f5f8ff;
  border-left: 3px solid #0066cc;
}

.drawer-item.open > .drawer-sub-menu {
  display: block;
}

.drawer-sub-menu li a {
  display: block;
  padding: 12px 20px 12px 28px;
  color: #444;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid #e8ecf8;
  transition:
    background 0.2s,
    color 0.2s;
}

.drawer-sub-menu li a:hover {
  background: #e8efff;
  color: #0066cc;
}

/* ==========================================
   RESPONSIVE MOBILE HEADER
   ========================================== */

@media (max-width: 991px) {
  /* Ẩn desktop menu, hiện hamburger */
  #primary-menu {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  /* Ẩn search desktop trên mobile */
  .header-search {
    display: none !important;
  }

  .header-topbar {
    font-size: 0.75rem;
    padding: 5px 0;
  }

  .topbar-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .topbar-contact {
    flex: 1 1 100%;
  }

  .topbar-social {
    justify-content: center;
  }

  .header-wrapper {
    gap: 0.5rem;
  }

  .site-branding {
    flex: 1 1 auto;
  }
}

@media (min-width: 992px) {
  /* Desktop: hiện menu, ẩn hamburger */
  #primary-menu {
    display: flex !important;
  }

  .menu-toggle {
    display: none !important;
  }

  /* Ẩn mobile drawer hoàn toàn */
  .mobile-drawer,
  .mobile-overlay {
    display: none !important;
  }

  .header-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
  }

  .site-navigation {
    flex: 1;
  }

  .header-search {
    flex: 0 0 auto;
    border-left: 1px solid #e0e0e0;
    padding-left: 1.5rem;
  }
}

@media (max-width: 576px) {
  .topbar-contact {
    font-size: 0.65rem;
  }

  .header-wrapper {
    width: 100%;
  }

  .header-content {
    width: 100%;
  }

  .site-branding {
    min-width: 120px;
  }
}

/* ==========================================
   HERO SLIDER
   ========================================== */

.hero-slider-section {
  width: 100%;
  margin: 0;
  padding: 24px 0 36px;
}

.hero-slider {
  width: 100%;
  outline: none;
  position: relative;
  overflow: visible;
}

.hero-slider .slider-cell {
  width: 100%;
  margin: 0;
  background: #f4f4f4;
}

.hero-slider .slider-cell img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: contain;
  object-position: center;
  background: #f4f4f4;
}

/* Flickity nav buttons */
.hero-slider .flickity-button {
  background: rgba(255, 255, 255, 0.92);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition:
    background 0.2s,
    box-shadow 0.2s;
  transform: none !important;
  position: absolute;
  top: 50%;
  margin-top: -22px;
}

.hero-slider .flickity-button.previous {
  left: 12px;
}

.hero-slider .flickity-button.next {
  right: 12px;
}

.hero-slider .flickity-button:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.25);
}

.hero-slider .flickity-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

.hero-slider .flickity-button-icon {
  fill: #0066cc;
  width: 36%;
  height: 36%;
}

/* Flickity page dots - đặt bên ngoài ảnh */
.hero-slider .flickity-page-dots {
  bottom: -26px;
}

.hero-slider .flickity-page-dots .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 5px;
  transition:
    background 0.2s,
    transform 0.2s;
  transform: none;
}

.hero-slider .flickity-page-dots .dot.is-selected {
  background: #0066cc;
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .hero-slider .slider-cell img {
    height: 200px;
  }

  .hero-slider .flickity-button {
    width: 32px;
    height: 32px;
  }
}
.flickity-prev-next-button .flickity-button-icon {
  top: 35% !important;
  left: 35% !important;
}
.posts-slider-section .flickity-prev-next-button .flickity-button-icon {
  width: 36% !important;
  height: 36% !important;
}

/* ==========================================
   POSTS SLIDER SECTION
   ========================================== */

.posts-slider-section {
  padding: 28px 0 40px;
}

/* Section title */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0066cc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid #0066cc;
  display: inline-block;
}

/* Slider wrapper */
.posts-slider {
  width: 100%;
  outline: none;
  position: relative;
  padding-bottom: 36px; /* chỗ cho page dots */
}

/* Mỗi card chiếm ~1/3 chiều rộng, có gutter */
.post-card {
  width: calc(33.333% - 16px);
  margin-right: 16px;
  display: flex;
}

/* Link bọc toàn card */
.post-card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.post-card-inner:hover {
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
  transform: translateY(-4px);
}

/* Thumbnail */
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f4ff;
  flex-shrink: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.post-card-inner:hover .post-card-thumb img {
  transform: scale(1.05);
}

/* No-thumb fallback */
.post-card-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 2.5rem;
}

/* Card body */
.post-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.post-card-date {
  font-size: 0.75rem;
  color: #999;
}

.post-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color 0.2s;
}

.post-card-inner:hover .post-card-title {
  color: #0066cc;
}

.post-card-excerpt {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

.post-card-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0066cc;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  transition: gap 0.2s;
}

.post-card-inner:hover .post-card-btn {
  gap: 9px;
}

/* Posts slider nav dots */
.posts-slider .flickity-page-dots {
  bottom: 0;
}

.posts-slider .flickity-page-dots .dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
  margin: 0 4px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.posts-slider .flickity-page-dots .dot.is-selected {
  background: #0066cc;
  transform: scale(1.3);
}

/* Posts slider prev/next */
.posts-slider .flickity-button {
  background: rgba(255, 255, 255, 0.95);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s,
    box-shadow 0.2s;
  transform: none !important;
  top: 40%;
}

.posts-slider .flickity-button:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.2);
}

.posts-slider .flickity-button-icon {
  fill: #0066cc;
}

/* Content section layout */
.content-section {
  padding: 0 0 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .post-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 480px) {
  .post-card {
    width: 100%;
    margin-right: 0;
  }
}

/* ==========================================
   CATEGORY POSTS SECTIONS
   ========================================== */

.cat-posts-section {
  padding: 8px 0 36px;
}

.cat-posts-section + .cat-posts-section {
  border-top: 1px solid #eee;
}

/* Header: title + "xem tất cả" */
.cat-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0066cc;
}

.cat-posts-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.cat-posts-title a {
  color: #0066cc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cat-posts-title a:hover {
  color: #1e5ba8;
}

.cat-posts-viewall {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap 0.2s;
}

.cat-posts-viewall:hover {
  color: #1e5ba8;
  gap: 7px;
}

/* Post card */
.cat-post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.cat-post-card:hover {
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.14);
  transform: translateY(-3px);
}

/* Thumbnail */
.cat-post-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f4ff;
  flex-shrink: 0;
}

.cat-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cat-post-card:hover .cat-post-thumb img {
  transform: scale(1.05);
}

.cat-post-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 2.2rem;
}

/* Info block */
.cat-post-info {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cat-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
  text-transform: uppercase;
}

.cat-post-card:hover .cat-post-title {
  color: #0066cc;
}

.cat-post-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e53935;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .cat-posts-header {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 28px;
}

/* Widget chung */
.sidebar-widget {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-widget-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #0066cc;
  margin: 0;
  padding: 10px 16px;
  letter-spacing: 0.5px;
  border-left: 4px solid #1e5ba8;
}

/* Widget: Hỗ trợ liên hệ */
.contact-widget-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.contact-img {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
  display: block;
}

.contact-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}

.contact-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
}

.contact-phone:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.contact-phone .fas {
  font-size: 0.9rem;
}

.contact-note {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin-top: 2px;
}

/* Widget: Bài viết mới */
.recent-posts-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.recent-post-item {
  border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.recent-post-link:hover {
  background: #f5f8ff;
}

.recent-post-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f4ff;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-post-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 1.4rem;
}

.recent-post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.recent-post-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.recent-post-link:hover .recent-post-title {
  color: #0066cc;
}

.recent-post-date {
  font-size: 0.73rem;
  color: #aaa;
}

/* ==========================================
   COMPANY INFO SECTION
   ========================================== */

.company-info-section {
  padding: 32px 0 40px;
  background: #f5f8ff;
  border-top: 3px solid #0066cc;
}

.company-info-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.08);
  border-left: 5px solid #0066cc;
}

.company-info-logo {
  flex-shrink: 0;
  width: 110px;
}

.company-info-logo img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.company-info-details {
  flex: 1;
}

.company-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0066cc;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d0e4ff;
}

.company-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.5;
}

.company-meta li .fas {
  color: #0066cc;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  text-align: center;
}

.company-meta li strong {
  color: #1a1a1a;
}

.company-meta li a {
  color: #e53935;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.company-meta li a:hover {
  color: #c62828;
}

@media (max-width: 576px) {
  .company-info-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .company-info-logo {
    width: 80px;
  }

  .company-name {
    font-size: 0.95rem;
  }
}
/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  background: #0d1b2a;
  color: #cdd8e8;
  padding-top: 52px;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Top: 3 cột */
.footer-top {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: #0066cc;
  border-radius: 2px;
}

/* Cột 1: Giới thiệu */
.footer-brand .footer-logo {
  width: 80px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  color: #9aacbf;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cdd8e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition:
    background 0.2s,
    color 0.2s;
}

.footer-social a:hover {
  background: #0066cc;
  color: #fff;
}

/* Cột 2: Liên kết */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  color: #9aacbf;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition:
    color 0.2s,
    gap 0.2s;
}

.footer-links li a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0066cc;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.footer-links li a:hover {
  color: #fff;
  gap: 10px;
}

/* Cột 3: Liên hệ */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9aacbf;
}

.footer-contact-list li .fas {
  color: #0066cc;
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  text-align: center;
}

.footer-contact-list li a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list li a:hover {
  color: #5ba3ff;
}

/* Bottom bar */
.footer-bottom {
  padding: 16px 0;
  background: #060f18;
  text-align: center;
  font-size: 0.8rem;
  color: #5a7080;
}

.footer-bottom a {
  color: #5ba3ff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Back to top */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: #0066cc;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: #1e5ba8;
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 36px;
  }

  .footer-col-title {
    margin-top: 24px;
  }
}
/* ==========================================
   TRANG THI CÔNG
   ========================================== */

.thi-cong-section {
  padding: 32px 0 48px;
}

.thi-cong-section .page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e5ba8;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0066cc;
  display: inline-block;
}

/* Card bài viết */
.thi-cong-post-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 102, 204, 0.08);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e8eef6;
}

.thi-cong-post-card:hover {
  box-shadow: 0 8px 28px rgba(0, 102, 204, 0.16);
  transform: translateY(-3px);
  border-color: #aac8f0;
}

/* Thumbnail */
.thi-cong-post-thumb-link {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f0f4fa;
}

.thi-cong-post-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.thi-cong-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.thi-cong-post-card:hover .thi-cong-post-thumb img {
  transform: scale(1.06);
}

.thi-cong-no-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3eaf3;
  color: #b0b9c6;
  font-size: 2.4rem;
}

/* Nội dung card */
.thi-cong-post-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.thi-cong-post-title {
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0 0 7px;
  color: #1e2d3d;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thi-cong-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.thi-cong-post-title a:hover {
  color: #0066cc;
}

.thi-cong-post-excerpt {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta: ngày đăng, danh mục */
.thi-cong-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #8a9bb0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf1f7;
}

.thi-cong-post-meta i {
  color: #0066cc;
  font-size: 0.82rem;
  margin-right: 3px;
}

.thi-cong-post-meta a {
  color: #0066cc;
  text-decoration: none;
}

.thi-cong-post-meta a:hover {
  text-decoration: underline;
}

/* Phân trang */
.pagination-wrapper {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #f0f4fa;
  color: #1e5ba8;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #dce6f5;
  transition: background 0.2s, color 0.2s;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

@media (max-width: 767px) {
  .thi-cong-section .page-title {
    font-size: 1.2rem;
  }

  .thi-cong-post-info {
    padding: 10px 12px 12px;
  }
}

/* ==========================================
   SINGLE POST
   ========================================== */

.single-post-main {
  padding-bottom: 52px;
}

/* Hero ảnh đại diện */
.single-hero {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 0;
}

.single-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: brightness(0.55);
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 0 32px;
  background: linear-gradient(to top, rgba(10,20,40,0.82) 0%, rgba(10,20,40,0.1) 60%);
}

.single-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.single-hero-cats a {
  background: #0066cc;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 30px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.single-hero-meta {
  display: flex;
  gap: 18px;
  color: #c8d9ef;
  font-size: 0.86rem;
}

.single-hero-meta i {
  margin-right: 5px;
  color: #7ab8ff;
}

/* No-thumbnail header */
.single-no-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e5ba8 100%);
  padding: 44px 0 36px;
  margin-bottom: 0;
}

.single-no-hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 10px 0 12px;
}

.single-no-hero .single-hero-cats a {
  background: rgba(255,255,255,0.2);
}

.single-no-hero .single-hero-meta {
  color: #a8c4e0;
}

/* Row body */
.single-body-row {
  margin-top: 32px;
}

/* Breadcrumb */
.single-breadcrumb {
  font-size: 0.82rem;
  color: #8a9bb0;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.single-breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.single-breadcrumb a:hover {
  text-decoration: underline;
}

.single-breadcrumb span {
  color: #aab8c8;
}

/* Article */
.single-article {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,102,204,0.07);
  border: 1px solid #e4edf8;
  padding: 32px 36px 28px;
}

.single-content {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #2c3e50;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  color: #1e5ba8;
  font-weight: 700;
  margin: 28px 0 12px;
}

.single-content h2 { font-size: 1.3rem; }
.single-content h3 { font-size: 1.12rem; }

.single-content p {
  margin-bottom: 16px;
}

.single-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 16px 0;
  height: auto;
}

.single-content ul,
.single-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.single-content li {
  margin-bottom: 6px;
}

.single-content a {
  color: #0066cc;
  text-decoration: underline;
}

.single-content blockquote {
  border-left: 4px solid #0066cc;
  background: #f0f6ff;
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #345;
  font-style: italic;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.single-content table th,
.single-content table td {
  border: 1px solid #d0ddef;
  padding: 9px 13px;
  text-align: left;
}

.single-content table th {
  background: #e8f0fc;
  color: #1e5ba8;
  font-weight: 700;
}

/* Tags */
.single-tags {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf1f7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.single-tags i {
  color: #0066cc;
  margin-right: 4px;
}

.single-tags a {
  background: #f0f4fa;
  color: #3a5a80;
  padding: 3px 12px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid #d8e6f5;
  transition: background 0.2s, color 0.2s;
}

.single-tags a:hover {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* Prev / Next nav */
.single-post-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf1f7;
}

.post-nav-item {
  flex: 1;
  background: #f5f8fd;
  border: 1px solid #dce8f5;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.post-nav-item:hover {
  background: #e8f0fc;
  border-color: #aac6f0;
}

.post-nav-item.next {
  text-align: right;
}

.post-nav-item .nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0066cc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-nav-item .nav-title {
  font-size: 0.88rem;
  color: #1e2d3d;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Related posts */
.single-related {
  margin-top: 32px;
}

.single-related-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e5ba8;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0066cc;
  display: inline-block;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e4edf8;
  box-shadow: 0 2px 10px rgba(0,102,204,0.07);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.14);
}

.related-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8f0fc;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-card:hover .related-thumb img {
  transform: scale(1.06);
}

.related-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0c0d5;
  font-size: 2rem;
}

.related-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.related-post-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e2d3d;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-date {
  font-size: 0.78rem;
  color: #8a9bb0;
}

.related-date i {
  margin-right: 4px;
  color: #0066cc;
}

/* Sidebar danh mục */
.widget-categories .sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget-categories .sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 7px;
  color: #3a4a5a;
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
  background: #f5f8fd;
  border: 1px solid #e4edf8;
}

.widget-categories .sidebar-cat-list li a:hover {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.widget-categories .sidebar-cat-list li a i {
  color: #0066cc;
  font-size: 0.7rem;
  transition: color 0.2s;
}

.widget-categories .sidebar-cat-list li a:hover i {
  color: #fff;
}

.widget-categories .sidebar-cat-list li a span {
  background: #e8f0fc;
  color: #0066cc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.widget-categories .sidebar-cat-list li a:hover span {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

@media (max-width: 991px) {
  .single-hero-img {
    height: 280px;
  }

  .single-hero-title,
  .single-no-hero-title {
    font-size: 1.3rem;
  }

  .single-article {
    padding: 20px 18px;
  }

  .single-post-nav {
    flex-direction: column;
  }

  .post-nav-item.next {
    text-align: left;
  }
}

/* ==========================================
   PAGE TEMPLATE (content-page.php)
   ========================================== */

/* --- Hero banner --- */
.page-hero {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(0.5);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 36px;
  background: linear-gradient(to top, rgba(10,20,40,0.78) 0%, transparent 70%);
}

.page-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.page-hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
}

.page-hero-breadcrumb a {
  color: #7ab8ff;
  text-decoration: none;
}

.page-hero-breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero-breadcrumb span {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
}

.page-hero-breadcrumb span:last-child {
  color: #fff;
  font-size: 0.84rem;
}

/* --- No-hero fallback --- */
.page-no-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e5ba8 100%);
  padding: 48px 0 36px;
}

.page-no-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
}

.page-no-hero .page-hero-breadcrumb {
  color: rgba(255,255,255,0.65);
}

/* --- Layout row --- */
.page-body-row {
  margin-top: 32px;
  padding-bottom: 52px;
}

/* --- Page article card --- */
.page-article {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,102,204,0.07);
  border: 1px solid #e4edf8;
  overflow: hidden;
}

.page-article-content {
  padding: 32px 36px 28px;
  font-size: 0.97rem;
  line-height: 1.8;
  color: #2c3e50;
}

.page-article-content h2,
.page-article-content h3,
.page-article-content h4 {
  color: #1e5ba8;
  font-weight: 700;
  margin: 28px 0 12px;
}

.page-article-content h2 { font-size: 1.4rem; }
.page-article-content h3 { font-size: 1.15rem; }

.page-article-content p {
  margin-bottom: 16px;
}

.page-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
}

.page-article-content ul,
.page-article-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.page-article-content li {
  margin-bottom: 7px;
}

.page-article-content a {
  color: #0066cc;
}

.page-article-content blockquote {
  border-left: 4px solid #0066cc;
  background: #f0f6ff;
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #345;
  font-style: italic;
}

.page-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.page-article-content table th,
.page-article-content table td {
  border: 1px solid #d0ddef;
  padding: 9px 13px;
  text-align: left;
}

.page-article-content table th {
  background: #e8f0fc;
  color: #1e5ba8;
  font-weight: 700;
}

.page-article-content .page-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-article-content .page-links .page-links-label {
  font-weight: 600;
  color: #555;
  margin-right: 4px;
}

.page-article-content .page-links a {
  background: #e8f0fc;
  color: #1e5ba8;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
}

.page-article-content .page-links a:hover {
  background: #0066cc;
  color: #fff;
}

.page-edit-link {
  padding: 12px 36px 16px;
  border-top: 1px solid #edf1f7;
}

.page-edit-link a {
  font-size: 0.82rem;
  color: #8a9bb0;
  text-decoration: none;
}

.page-edit-link a:hover {
  color: #0066cc;
}

/* --- Sidebar --- */
.page-sidebar {
  position: sticky;
  top: 80px;
}

/* Sidebar: contact widget */
.sidebar-contact-widget .sidebar-widget-title {
  font-size: 0.82rem;
}

.sidebar-contact-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-contact-intro {
  font-size: 0.86rem;
  color: #4a5a6a;
  margin: 0;
  line-height: 1.5;
}

.sidebar-hotline-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0066cc, #1e5ba8);
  color: #fff;
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 3px 10px rgba(0,102,204,0.25);
}

.sidebar-hotline-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.sidebar-hotline-btn i {
  font-size: 1.1rem;
  color: #7ab8ff;
  flex-shrink: 0;
}

.sidebar-hotline-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-hotline-btn small {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sidebar-hotline-btn.secondary {
  background: linear-gradient(135deg, #e53935, #c62828);
  box-shadow: 0 3px 10px rgba(229,57,53,0.25);
}

.sidebar-hotline-btn.secondary i {
  color: #ffb3b3;
}

.sidebar-email-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #0066cc;
  text-decoration: none;
  background: #f0f6ff;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid #d0e4f8;
  transition: background 0.2s;
}

.sidebar-email-link:hover {
  background: #dceeff;
}

.sidebar-email-link i {
  color: #0066cc;
  flex-shrink: 0;
}

.sidebar-address {
  font-size: 0.82rem;
  color: #5a6a7a;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.sidebar-address i {
  color: #e53935;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Sidebar: recent posts */
.sidebar-recent-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 4px;
}

.sidebar-recent-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 14px;
  border-bottom: 1px solid #f0f4fa;
  transition: background 0.18s;
}

.sidebar-recent-item:last-child {
  border-bottom: none;
}

.sidebar-recent-item:hover {
  background: #f5f8fd;
}

.sidebar-recent-thumb {
  width: 60px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  display: block;
  background: #e8f0fc;
}

.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-recent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-recent-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e2d3d;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.18s;
}

.sidebar-recent-title:hover {
  color: #0066cc;
}

.sidebar-recent-date {
  font-size: 0.75rem;
  color: #9aabbf;
}

.sidebar-recent-date i {
  color: #0066cc;
  margin-right: 3px;
}

/* Sidebar: category list (.sidebar-cat-list already defined, override .cat-name) */
.sidebar-cat-list .cat-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-cat-list .cat-name i {
  font-size: 0.45rem;
  color: #0066cc;
  transition: color 0.2s;
}

.sidebar-cat-list li a:hover .cat-name i {
  color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  .page-hero-img {
    height: 240px;
  }

  .page-hero-title,
  .page-no-hero-title {
    font-size: 1.4rem;
  }

  .page-article-content {
    padding: 20px 16px;
  }

  .page-sidebar {
    position: static;
  }
}

/* ==========================================
   TRANG TÌM KIẾM (search.php)
   ========================================== */

.search-page {
  padding-bottom: 0;
}

/* Hero */
.search-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e5ba8 100%);
  padding: 52px 0 44px;
  text-align: center;
  margin-bottom: 0;
}

.search-hero-icon {
  font-size: 2.4rem;
  color: #7ab8ff;
  margin-bottom: 12px;
}

.search-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.search-hero-sub {
  font-size: 1rem;
  color: #a8c4e0;
  margin: 0 0 24px;
}

.search-hero-sub strong {
  color: #fff;
}

/* Search form trong hero */
.search-hero-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-radius: 10px;
  overflow: hidden;
}

.search-hero-form input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border: none;
  outline: none;
  font-size: 0.97rem;
  color: #1e2d3d;
  background: #fff;
}

.search-hero-form button {
  background: #e53935;
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-hero-form button:hover {
  background: #c62828;
}

/* Body layout */
.search-body-row {
  margin-top: 32px;
  padding-bottom: 52px;
}

/* Danh sách kết quả */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card kết quả tìm kiếm */
.search-result-card {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4edf8;
  box-shadow: 0 2px 12px rgba(0,102,204,0.07);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.search-result-card:hover {
  box-shadow: 0 6px 22px rgba(0,102,204,0.13);
  transform: translateY(-2px);
}

/* Thumbnail */
.src-thumb {
  width: 200px;
  min-width: 200px;
  display: block;
  overflow: hidden;
  background: #e8f0fc;
  flex-shrink: 0;
}

.src-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.search-result-card:hover .src-thumb img {
  transform: scale(1.05);
}

.src-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0c4d8;
  font-size: 2rem;
  min-height: 140px;
}

/* Body nội dung */
.src-body {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.src-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.src-cat-badge {
  background: #e8f0fc;
  color: #0066cc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.18s, color 0.18s;
}

.src-cat-badge:hover {
  background: #0066cc;
  color: #fff;
}

.src-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.src-title a {
  color: #1e2d3d;
  text-decoration: none;
  transition: color 0.18s;
}

.src-title a:hover {
  color: #0066cc;
}

.src-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: #8a9bb0;
}

.src-meta i {
  color: #0066cc;
  margin-right: 4px;
}

.src-excerpt {
  font-size: 0.88rem;
  color: #4a5a6a;
  line-height: 1.65;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.src-readmore {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0066cc;
  text-decoration: none;
  transition: gap 0.18s;
}

.src-readmore:hover {
  gap: 10px;
  color: #004fa3;
}

/* Pagination */
.search-pagination {
  margin-top: 28px;
}

.search-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.search-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #dce8f5;
  background: #fff;
  color: #3a4a5a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* Empty state */
.search-empty {
  background: #fff;
  border: 1px solid #e4edf8;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,102,204,0.07);
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.search-empty-icon {
  font-size: 3rem;
  color: #c0d0e4;
  margin-bottom: 4px;
}

.search-empty-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e2d3d;
  margin: 0;
}

.search-empty-sub {
  font-size: 0.93rem;
  color: #6a7a8a;
  margin: 0;
}

.search-empty-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.search-empty-cats a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f5fb;
  color: #1e5ba8;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d0e0f0;
  transition: background 0.18s, color 0.18s;
}

.search-empty-cats a span {
  background: #dce8f8;
  color: #0066cc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

.search-empty-cats a:hover {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.search-empty-cats a:hover span {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.search-empty-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0066cc;
  color: #fff;
  padding: 11px 24px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.93rem;
  transition: background 0.2s;
  margin-top: 4px;
}

.search-empty-home-btn:hover {
  background: #004fa3;
  color: #fff;
}

@media (max-width: 767px) {
  .search-result-card {
    flex-direction: column;
  }

  .src-thumb {
    width: 100%;
    min-width: unset;
    height: 180px;
  }

  .src-body {
    padding: 14px 16px;
  }

  .search-hero-title {
    font-size: 1.3rem;
  }
}

/* ==========================================
   TRANG 404
   ========================================== */

.page-404 {
  padding: 60px 0 72px;
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
  min-height: 70vh;
}

.error-404-wrapper {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Số 404 lớn */
.e404-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.e404-number {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.e404-4 {
  font-size: 7rem;
  font-weight: 900;
  color: #0066cc;
  text-shadow: 0 4px 20px rgba(0,102,204,0.15);
  letter-spacing: -4px;
  font-family: 'Rowdies', sans-serif;
}

.e404-icon {
  font-size: 5rem;
  color: #e53935;
  margin: 0 8px;
  filter: drop-shadow(0 4px 8px rgba(229,57,53,0.25));
}

.e404-badge {
  background: #e53935;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Tiêu đề + mô tả */
.e404-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e2d3d;
  margin: 0;
  line-height: 1.35;
}

.e404-desc {
  font-size: 0.97rem;
  color: #5a6a7a;
  margin: 0;
  line-height: 1.7;
}

/* Search form */
.e404-search-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0,102,204,0.13);
  border: 1px solid #d0e4f8;
}

.e404-search-form input[type="search"] {
  flex: 1;
  padding: 13px 16px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #1e2d3d;
  background: #fff;
}

.e404-search-form button {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 13px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.e404-search-form button:hover {
  background: #004fa3;
}

/* Danh mục */
.e404-cats-section,
.e404-recent {
  width: 100%;
}

.e404-cats-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8a9bb0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.e404-cats-label i {
  color: #0066cc;
  margin-right: 5px;
}

.e404-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.e404-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1e5ba8;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #c8ddf5;
  box-shadow: 0 1px 4px rgba(0,102,204,0.07);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.e404-cat-link span {
  background: #e8f0fc;
  color: #0066cc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

.e404-cat-link:hover {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.e404-cat-link:hover span {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Nút hành động */
.e404-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.e404-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0066cc;
  color: #fff;
  padding: 12px 26px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 3px 12px rgba(0,102,204,0.25);
}

.e404-btn-primary:hover {
  background: #004fa3;
  color: #fff;
}

.e404-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0066cc;
  padding: 12px 26px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid #c8ddf5;
  transition: background 0.2s, color 0.2s;
}

.e404-btn-secondary:hover {
  background: #f0f5fb;
  color: #004fa3;
}

/* Recent posts */
.e404-recent-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e4edf8;
  box-shadow: 0 2px 10px rgba(0,102,204,0.07);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.e404-recent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.14);
}

.e404-recent-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8f0fc;
}

.e404-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.e404-recent-card:hover .e404-recent-thumb img {
  transform: scale(1.05);
}

.e404-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0c4d8;
  font-size: 2rem;
}

.e404-recent-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.e404-recent-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e2d3d;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.e404-recent-date {
  font-size: 0.76rem;
  color: #9aabbf;
}

.e404-recent-date i {
  color: #0066cc;
  margin-right: 3px;
}

@media (max-width: 767px) {
  .e404-4 {
    font-size: 4.5rem;
  }

  .e404-icon {
    font-size: 3.2rem;
  }

  .e404-title {
    font-size: 1.2rem;
  }

  .e404-actions {
    flex-direction: column;
    width: 100%;
  }

  .e404-btn-primary,
  .e404-btn-secondary {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================
   TRANG ARCHIVE (archive.php)
   ========================================== */

.archive-page {
  padding-bottom: 0;
}

/* --- Hero --- */
.archive-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e5ba8 100%);
  padding: 52px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(0,102,204,0.25) 0%, transparent 60%),
                    radial-gradient(circle at 80% 30%, rgba(30,91,168,0.2) 0%, transparent 55%);
  pointer-events: none;
}

.archive-hero-icon {
  font-size: 2.2rem;
  color: #7ab8ff;
  margin-bottom: 10px;
  position: relative;
}

.archive-hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}

.archive-hero-desc {
  font-size: 0.97rem;
  color: #a8c4e0;
  margin: 0 0 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.archive-hero-count {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #deeeff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.2);
}

.archive-hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.archive-hero-breadcrumb a {
  color: #7ab8ff;
  text-decoration: none;
  transition: color 0.18s;
}

.archive-hero-breadcrumb a:hover {
  color: #fff;
}

.archive-hero-breadcrumb span {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
}

.archive-hero-breadcrumb span:last-child {
  color: #fff;
  font-size: 0.83rem;
}

/* --- Layout body --- */
.archive-body-row {
  margin-top: 32px;
  padding-bottom: 52px;
}

/* --- Card bài viết dạng grid --- */
.arc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4edf8;
  box-shadow: 0 2px 12px rgba(0,102,204,0.07);
  overflow: hidden;
  text-decoration: none;
  height: 100%;
  transition: transform 0.22s, box-shadow 0.22s;
}

.arc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0,102,204,0.14);
}

/* Thumbnail */
.arc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8f0fc;
  flex-shrink: 0;
}

.arc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.arc-card:hover .arc-thumb img {
  transform: scale(1.07);
}

.arc-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0c4d8;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #e8f0fc, #d0e4f8);
}

/* Category badge */
.arc-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0066cc;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 2;
}

/* Info */
.arc-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.arc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e2d3d;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}

.arc-card:hover .arc-title {
  color: #0066cc;
}

.arc-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: #8a9bb0;
  flex-wrap: wrap;
}

.arc-meta i {
  color: #0066cc;
  margin-right: 4px;
}

.arc-excerpt {
  font-size: 0.85rem;
  color: #5a6a7a;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.arc-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0066cc;
  margin-top: 4px;
  transition: gap 0.18s;
}

.arc-card:hover .arc-readmore {
  gap: 9px;
}

/* Pagination */
.archive-pagination {
  margin-top: 32px;
}

.archive-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #dce8f5;
  background: #fff;
  color: #3a4a5a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* Empty state */
.archive-empty {
  background: #fff;
  border: 1px solid #e4edf8;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,102,204,0.07);
  padding: 52px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.archive-empty-icon {
  font-size: 3rem;
  color: #c0d0e4;
}

.archive-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e2d3d;
  margin: 0;
}

.archive-empty-sub {
  font-size: 0.92rem;
  color: #6a7a8a;
  margin: 0;
}

.archive-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0066cc;
  color: #fff;
  padding: 10px 22px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s;
}

.archive-empty-btn:hover {
  background: #004fa3;
  color: #fff;
}

@media (max-width: 991px) {
  .archive-hero-title {
    font-size: 1.4rem;
  }

  .archive-hero {
    padding: 36px 0 28px;
  }
}

@media (max-width: 767px) {
  .arc-thumb {
    aspect-ratio: 16/9;
  }
}
