/*
Theme Name: BaoDienTuTheme
Author: Gemini
Description: A custom theme for Hoi Dong Huong Nghe An.
Version: 1.0
*/

:root {
  --primary-red: #e60808;
  --primary-gold: #ffd700;
  --primary-navy: #1b365d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #000000;
  --text-light: #000000;
  --border-light: #e9ecef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Merriweather', serif;
}

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}

/* Remove underline from all links */
a,
:-webkit-any-link,
:any-link {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

/* Custom Icons - replacing Font Awesome */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  text-align: center;
  color: var(--primary-red);
}

.icon-phone::before {
  content: "📞";
}
.icon-envelope::before {
  content: "✉️";
}
.icon-calendar::before {
  content: "📅";
}
.icon-user::before {
  content: "👤";
}
.icon-eye::before {
  content: "👁️";
}
.icon-folder::before {
  content: "📁";
}
.icon-search::before {
  content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iOCIgU3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjIiLz4KPHN0cm9rZSBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Im0yMSAyMS00LjM1LTQuMzUiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=");
}
.icon-arrow-left::before {
  content: "←";
}
.icon-info-circle::before {
  content: "ℹ️";
}
.icon-handshake::before {
  content: "🤝";
}
.icon-newspaper::before {
  content: "📰";
}
.icon-landmark::before {
  content: "🏛️";
}
.icon-building::before {
  content: "🏢";
}
.icon-map-marker::before {
  content: "📍";
}
.icon-clock::before {
  content: "🕒";
}
.icon-globe::before {
  content: "🌐";
}
.icon-facebook::before {
  content: "📘";
}
.icon-youtube::before {
  content: "📺";
}
.icon-zalo::before {
  content: "💬";
}
.icon-folder::before {
  content: "📁";
}
.icon-search::before {
  content: "🔍";
}
.icon-arrow-left::before {
  content: "←";
}
.icon-info-circle::before {
  content: "ℹ️";
}
.icon-handshake::before {
  content: "🤝";
}
.icon-newspaper::before {
  content: "📰";
}
.icon-landmark::before {
  content: "🏛️";
}
.icon-building::before {
  content: "🏢";
}
.icon-map-marker::before {
  content: "📍";
}
.icon-clock::before {
  content: "🕒";
}
.icon-globe::before {
  content: "🌐";
}
.icon-facebook::before {
  content: "📘";
}
.icon-youtube::before {
  content: "📺";
}
.icon-zalo::before {
  content: "💬";
}

body {
  font-family: 'Merriweather', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  padding-top: 60px; /* Compensate for navigation menu that stays visible */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--primary-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  z-index: 10000;
  width: 100%;
  left: 0;
  right: 0;
  padding-top: 12px;
}

.header .container {
  max-width: 1140px !important;
  margin: 0 auto;
  padding: unset !important;
}

.header-main {
  transition: transform 0.3s ease-in-out;
}

.header.hidden .header-main {
   display: none;
 }

 /* Navigation stays visible and moves to top when header-main is hidden */
 .nav {
   position: relative;
   z-index: 10001;
   transition: all 0.3s ease-in-out;
 }

 .header.hidden .nav {
   position: fixed;
   top: 0;
   width: 100%;
   background: var(--white);
   border-bottom: 3px solid var(--primary-red);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }

 .header-main {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 20px;
   transition: transform 0.3s ease-in-out;
 }

 .header-search {
  flex-shrink: 0;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  width: 80px;
  height: 80px;
  background: url("images/logo.png") no-repeat center;
  background-size: contain;
  margin-right: 10px;
  position: relative;
}

.logo:before,
.logo:after {
  display: none;
}

.header-text h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--primary-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  font-family: 'Faustina', serif;
}

.header-text h1 a {
  color: var(--primary-navy);
  text-decoration: none;
}

.header-slogan {
  font-size: 21px;
  color: var(--primary-red);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.header-datetime {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 16px;
  margin-right: 0;
}

.header-datetime #current-time {
  font-size: 16px;
}

.header-datetime #current-date {
  font-size: 16px;
}

/* Navigation */
.nav {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.nav .container {
  max-width: 1140px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  margin: auto !important;
  padding: unset !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10001;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-navy);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav ul,
.nav .nav-menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav li {
  margin: 0;
  position: relative;
}

.nav-search {
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

/* Search Toggle Button */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--primary-navy);
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s;
  margin-left: auto;
}

.search-toggle:hover {
  color: var(--primary-red);
}

.search-toggle.active i:before {
  content: "\f00d";
}

.nav .header-search {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--white);
  padding: 15px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-light);
  z-index: 10002;
}

.nav .header-search.active {
  display: block;
}

.nav a {
  display: block;
  padding: 15px 21px;
  color: var(--primary-navy);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  font-weight: 500;
  font-size: 18px;
}

.nav a:hover {
  color: #e60808;
  background: transparent;
}

.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_ancestor > a {
  color: #e60808;
}

/* Dropdown Menu */
.nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--primary-red);
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li:hover > .sub-menu {
  display: block;
}

.nav .sub-menu li {
  margin: 0;
}

.nav .sub-menu a {
  padding: 12px 20px;
  font-size: 16px;
  border-bottom: 1px solid var(--border-light);
  transform: none;
}

.nav .sub-menu a:hover {
  background: transparent;
  color: #e60808;
  padding-left: 25px;
}

.nav li.menu-item-has-children > a {
  cursor: default;
}

.nav li.menu-item-has-children > a::after {
  content: " \f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 12px;
  display: inline-block;
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 64px;
  padding-left: 10%;
  padding-right: 10%;
  height: 800px;
  background-image: url(images/bg.png);
  background-size: 100% 100%;
  background-position: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 54, 93, 0.7);
  opacity: 0.3;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 900px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: var(--primary-gold);
  color: var(--primary-navy);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
  background: var(--primary-navy);
  color: white;
}

/* Hero Statistics */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  color: white;
  opacity: 0.9;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }
}

/* Main Content */
.main {
  padding: 50px 0;
  background: var(--white);
}

.section {
  margin-bottom: 0px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: left;
  color: var(--primary-navy);
  position: relative;
  font-weight: 700;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-red);
  margin: 5px 0 15px 0;
  border-radius: 2px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 0px;
}

.featured-news {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  transition: transform 0.3s;
}

.featured-news:hover {
  transform: translateY(-5px);
}

.featured-image {
  height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.featured-image:before {
  content: "";
  display: none;
}

.featured-content {
  padding: 25px;
}

.featured-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-dark) !important;
  line-height: 1.3;
  font-weight: 600;
}

.meta {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.meta .icon {
  color: var(--primary-red);
  margin-right: 5px;
}

.featured-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  cursor: pointer;
}

.read-more:hover {
  color: var(--primary-gold);
}

/* Sidebar News */
.sidebar-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-item {
  position: relative;
  color: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sidebar-item:hover {
  transform: translateX(5px);
}

.sidebar-item h4 {
  font-size: 16px;
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.sidebar-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.sidebar-item > * {
  position: relative;
  z-index: 1;
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.category-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

/* Comments Section */
.comments-section {
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.comments-area {
  max-width: 720px;
  margin: 0 auto;
}

.comments-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--primary-navy);
  font-weight: 700;
}

/* Comment List */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.comment-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

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

.comment-body {
  display: flex;
  gap: 15px;
}

.comment-author-avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.comment-content-wrap {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.comment-author-name {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 16px;
}

.comment-date {
  font-size: 13px;
  color: var(--text-light);
}

.comment-awaiting-moderation {
  font-size: 12px;
  color: var(--primary-gold);
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.comment-text {
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
}

.no-comments {
  text-align: center;
  color: var(--text-light);
  padding: 20px;
  font-style: italic;
}

/* Open Comment Button */
.btn-comment-popup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-comment-popup:hover {
  background: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Comment Modal/Popup */
.comment-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.comment-modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.comment-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  font-weight: 300;
  color: var(--text-light);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.comment-modal-close:hover {
  background: var(--light-bg);
  color: var(--primary-red);
  transform: rotate(90deg);
}

.comment-modal-content h3 {
  color: var(--primary-navy);
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

.comment-note {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 25px;
  font-style: italic;
}

/* Comment Form */
.comment-form-group {
  margin-bottom: 20px;
}

.comment-form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
}

.comment-form-group .required {
  color: var(--primary-red);
}

.comment-form-group input,
.comment-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
}

.comment-form-group input:focus,
.comment-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.comment-form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  margin-top: 25px;
  text-align: right;
}

.submit-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.submit-comment-btn:hover {
  background: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.submit-comment-btn:active {
  transform: translateY(0);
}

/* Comment Navigation */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}

.comment-navigation a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.comment-navigation a:hover {
  color: var(--primary-navy);
}

/* Responsive */
@media (max-width: 768px) {
  .comment-modal-content {
    padding: 30px 20px;
    width: 95%;
  }

  .comment-modal-content h3 {
    font-size: 24px;
  }

  .comment-body {
    flex-direction: column;
  }

  .comment-author-avatar img {
    width: 40px;
    height: 40px;
  }
}


.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 8, 8, 0.05), transparent);
  transition: left 0.5s ease;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-red);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotateY(360deg);
  color: var(--primary-red);
}

.category-card:hover h3 {
  color: var(--primary-red);
}

/* Leader Section */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.leader-row-title {
  grid-column: 1 / -1;
}
.leader-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.leader-card--primary {
  border-color: var(--primary-gold);
  box-shadow: 0 8px 22px rgba(255, 170, 0, 0.18);
}
.leader-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.leader-info {
  display: flex;
  flex-direction: column;
}
.leader-title {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.leader-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 4px;
}
.leader-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.4;
}
@media (max-width: 992px) {
  .leader-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .leader-grid {
    grid-template-columns: 1fr;
  }
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-red);
  font-size: 28px;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary-navy);
  font-weight: 600;
}

.category-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* Page Content */
/* Only hide page-content on home page for SPA-style navigation */
.home .page-content:not(.active) {
  display: none;
}

.page-content.active {
  display: block;
  padding-top: 64px; /* Space for fixed header + nav */
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  padding: 10px 20px;
  border: 2px solid var(--primary-red);
  border-radius: 25px;
  transition: all 0.3s;
}

.back-btn:hover {
  background: var(--primary-red);
  color: white;
}

/* Article Page */
.article-header {
  max-width: 720px;
  margin: 0 auto;
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 24px;
  box-shadow: none;
}

.article-title {
  font-size: 36px;
  color: var(--primary-navy);
  margin-bottom: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 0;
}

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

.article-meta .icon {
  color: var(--primary-red);
}

.article-meta .meta-author {
  font-weight: 700;
  text-transform: capitalize;
}

.article-meta .meta-divider {
  color: var(--text-light);
  margin: 0 4px;
}

.article-meta .meta-date {
  color: var(--text-light);
}

.article-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.85;
  font-size: 18px;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 18px;
}

.article-content p strong {
  color: var(--primary-navy);
}

.article-content ul {
  margin: 0 0 24px 22px;
  padding: 0;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content h3 {
  color: var(--primary-red);
  font-size: 22px;
  margin: 32px 0 16px;
  font-weight: 700;
}

.article-image {
  max-width: 720px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
  display: block;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Force override any inline sizes in legacy blocks */
.article-content .article-image {
  max-width: 720px !important;
  width: 100% !important;
  height: auto !important;
  margin: 24px auto !important;
}

.article-image:before {
  content: "";
  display: none;
}

.article-caption {
  width: 100%;
  max-width: 100%;
  margin: -12px auto 20px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}
.article-content + .article-caption {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 28px;
  }

  .article-meta {
    font-size: 14px;
    gap: 12px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .article-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px auto;
  }

  .article-image img {
    width: 100%;
    height: auto;
  }

  .article-caption {
    width: 100%;
    max-width: none;
    margin: -12px auto 20px;
    font-size: 12px;
    left: 0;
    transform: none;
  }
}

/* News List */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.news-item {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item-image {
  height: 200px;
  background: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item-image:before {
  content: "";
  display: none;
}

.news-item-content {
  padding: 20px;
}

.news-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 600;
}

.news-item p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Page Header */
.page-header {
  background: var(--primary-red);
  color: white;
  padding: 60px 0;
  text-align: center;
  padding-top: 124px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* Content sections */
.content-section {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.content-section h3 {
  color: var(--primary-navy);
  margin-bottom: 20px;
  font-size: 24px;
}

.content-section p {
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background: var(--primary-navy);
  color: white;
  padding: 60px 0 30px;
  width: 100%;
}

.footer .container {
  max-width: 1140px !important;
  margin: 0 auto;
  padding: unset !important;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 24px;
  color: var(--primary-gold);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
}


.footer-section form {
  margin-top: 20px;
}

.footer-section input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.footer-section input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer-section input[type="email"]:focus {
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
}

.footer-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px 30px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  margin-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Search Page */
/* Fix Elementor dialog classes interfering with search page */
body.search,
body.search-results {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static !important;
  height: auto !important;
  background: var(--white) !important;
}

.search-page-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.search-page-header {
  background: var(--primary-red);
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: 110px;
}

.search-page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: white;
}

.search-page-header span {
  color: var(--primary-gold);
}

/* Search functionality */
.search-container input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
}

.search-results {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  overflow-y: auto;
}

.search-modal {
  background: var(--white);
  max-width: 800px;
  margin: 50px auto;
  border-radius: 15px;
  padding: 30px;
  position: relative;
}

.search-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.search-result-item {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.3s;
}

.search-result-item:hover {
  background: var(--light-bg);
}

.search-result-item h4 {
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.search-result-item p {
  color: var(--text-light);
  font-size: 14px;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-dark);
  background: var(--white);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 20, 60, 0.2);
}

/* Current page - WordPress adds this class */
.pagination .current,
.pagination span.current {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
  cursor: default;
}

/* Dots separator */
.pagination .dots,
.pagination span.dots {
  border: none;
  background: transparent;
  color: var(--text-light);
  font-weight: 700;
  cursor: default;
  min-width: auto;
  pointer-events: none;
}

.pagination .dots:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  color: var(--text-light);
}

/* Previous and Next buttons */
.pagination a.prev,
.pagination a.next {
  font-weight: 600;
  min-width: 80px;
}

/* Disabled state for prev/next when not available */
.pagination span.prev,
.pagination span.next {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  * {
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  .header {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .pagination {
    gap: 6px;
  }

  .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer .container {
    padding: 0 20px !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header-main {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 0;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .header-text h1 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .header-slogan {
    font-size: 14px;
  }

  .header-datetime {
    font-size: 12px;
    margin-right: 0;
    gap: 8px;
  }

  .header-datetime #current-time,
  .header-datetime #current-date {
    font-size: 12px;
  }

  .logo-section {
    margin-bottom: 0;
  }

  .header-search {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }

  .header-search form,
  .header-search > div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header-search input,
  .header-search .search-field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  .search-toggle {
    margin-left: auto;
  }

  .nav .container {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    position: relative;
  }

  /* Search box on mobile */
  .nav .header-search {
    width: 100%;
    left: 0;
    right: 0;
  }

  .nav .header-search.active {
    display: block;
  }

  .header-search input,
  .header-search .search-field {
    width: 100% !important;
    max-width: 100% !important;
  }

  .header-search .search-field {
    border-radius: 8px !important;
  }

  .nav ul,
  .nav .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    padding: 10px 0 0 0;
    order: 2;
    margin: 0;
  }

  .nav ul.mobile-menu-open,
  .nav .nav-menu.mobile-menu-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
  }

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

  .nav a {
    padding: 15px 20px;
    width: 100%;
  }

  .nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--light-bg);
    padding-left: 20px;
  }

  .nav .sub-menu a {
    padding: 10px 20px;
  }

  .nav-search {
    justify-content: center;
    padding: 15px;
  }

  .nav-search input {
    width: 200px !important;
    max-width: 200px !important;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content .subtitle {
    font-size: 16px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .main,
  section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .news-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .categories {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .news-list {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .article-header,
  .article-content {
    padding: 0;
  }

  .content-section {
    padding: 20px;
  }

  .page-header {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-header h1 {
    font-size: 28px;
    word-wrap: break-word;
  }

  .search-modal {
    margin: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    box-sizing: border-box;
  }
}

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

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

  .article-header,
  .article-content {
    padding: 0;
  }

  .content-section {
    padding: 20px;
  }

  .page-header {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-header h1 {
    font-size: 28px;
    word-wrap: break-word;
  }

  .search-modal {
    margin: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    box-sizing: border-box;
  }
}
/* Posts by Category Shortcode */
.posts-list {
  margin: 0;
}

.posts-list.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.posts-list.list-layout .post-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.posts-list.list-layout .post-thumbnail {
  flex-shrink: 0;
  width: 250px;
}

.post-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.post-item .post-thumbnail {
  overflow: hidden;
  width: 35%;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

.post-item .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item .post-content {
  padding: 0 0 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

.post-item .post-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.post-item .post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.post-item .post-meta .post-date,
.post-item .post-meta .post-author {
  color: var(--text-light);
}

.post-item .post-meta i {
  color: var(--primary-red);
  margin-right: 5px;
}

.post-item .post-excerpt {
  margin-bottom: 0;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
}

.post-item .read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 18px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current {
  padding: 10px 15px;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.pagination .dots {
  padding: 10px 5px;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .posts-list.grid-layout {
    grid-template-columns: 1fr;
  }

  .posts-list.list-layout .post-item {
    flex-direction: column;
  }

  .posts-list.list-layout .post-thumbnail {
    width: 100%;
  }

  .post-item {
    flex-direction: column;
  }

  .post-item .post-thumbnail {
    width: 100%;
  }

  .post-item .post-content {
    padding: 15px 0 0 0;
  }

  .post-item .post-title {
    font-size: 15px;
  }
}

/* About Page - Heading Sections */
.block-head {
  margin-bottom: 30px;
}

.block-head.block-head-ac.block-head-c.is-left {
  text-align: left;
  position: relative;
  padding-bottom: 15px;
}

.block-head .heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-red);
  margin: 0;
  position: relative;
  display: inline-block;
}

.block-head .heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-red);
}

/* About Page - Logo and Text Section */
.elementor-col-33 .elementor-widget-image {
  text-align: center;
}

.elementor-col-33 .elementor-widget-image img {
  max-width: 200px;
  margin: 0 auto;
}

.elementor-col-66 .elementor-widget-text-editor p {
  text-align: justify;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* About Page - Mission Section */
.elementor-widget-icon .elementor-icon-wrapper {
  text-align: center;
}

.elementor-widget-icon .elementor-icon {
  font-size: 48px;
  color: var(--primary-red);
}

/* About Page - Vision Section (6 columns) */
.elementor-col-16 {
  padding: 15px;
}

.elementor-col-16 .elementor-widget-icon {
  margin-bottom: 15px;
}

.elementor-col-16 .elementor-widget-text-editor p {
  font-size: 16px;
  line-height: 1.6;
}

/* About Page - Core Values (4 columns) */
.elementor-col-25 {
  padding: 15px;
}

.elementor-col-25 .elementor-widget-icon .elementor-icon {
  font-size: 42px;
  margin-bottom: 20px;
}

.elementor-col-25 .elementor-widget-text-editor p {
  font-size: 16px;
  line-height: 1.7;
}

/* About Page - Spacer */
.elementor-widget-spacer .elementor-spacer {
  height: 40px;
}

/* About Page - Full Width Image */
.elementor-widget-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* About Page - Responsive */
@media (max-width: 1024px) {
  .elementor-col-33,
  .elementor-col-66,
  .elementor-col-25,
  .elementor-col-16 {
    width: 100% !important;
  }

  .block-head .heading {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .block-head .heading {
    font-size: 20px;
  }

  .elementor-col-66 .elementor-widget-text-editor p,
  .elementor-col-25 .elementor-widget-text-editor p,
  .elementor-col-16 .elementor-widget-text-editor p {
    font-size: 15px;
  }
}

/* Elementor Category Cards - Custom Hover Effect */
.activity-category-card {
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

.activity-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 8, 8, 0.08), transparent);
  transition: left 0.6s ease;
  z-index: 0;
}

.activity-category-card:hover::before {
  left: 100%;
}

.activity-category-card:hover {
  transform: translateY(-15px) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
  border-color: var(--primary-red) !important;
}

.activity-category-card:hover .elementor-icon {
  transform: scale(1.15) rotate(10deg) !important;
  color: var(--primary-red) !important;
}

.activity-category-card:hover .elementor-icon-box-title {
  color: var(--primary-red) !important;
}

/* Elementor Posts - Full Width Support */
.elementor-article {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.elementor-article .elementor-section {
  width: 100%;
}

/* Remove default padding for Elementor posts */
.page-content .elementor-article {
  padding-top: 0;
}

/* Elementor post in admin edit */
.elementor-edit-mode .elementor-article {
  padding-top: 0;
}

/* Popular Posts List */
.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  counter-reset: popular-counter;
}

.popular-post-item {
  padding: 12px 15px;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  position: relative;
  counter-increment: popular-counter;
}

.popular-post-item::before {
  content: counter(popular-counter);
  background: var(--primary-red);
  color: white;
  font-weight: 700;
  font-size: 16px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 6px 6px 0;
  flex-shrink: 0;
  margin-left: -15px;
  padding: 0 8px;
}

.popular-post-item:hover {
  background: var(--light-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popular-post-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

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

.popular-post-content h4 a:hover {
  color: var(--primary-red);
}

.popular-post-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.popular-post-meta i {
  color: var(--primary-red);
  margin-right: 4px;
}

/* Partners Section - Đơn vị đồng hành (Auto-Scroll + Manual Scroll) */
.partners-section {
  padding: 60px 0;
  overflow: hidden;
}

.partners-section .section-title {
  text-align: left;
  margin-bottom: 30px;
  font-size: 24px;
  color: var(--primary-navy);
  font-weight: 700;
  position: relative;
}

.partners-section .section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-red);
  margin: 5px 0 15px 0;
  border-radius: 2px;
}

.partners-slider {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.partners-slider:active {
  cursor: grabbing;
}

/* Ẩn scrollbar */
.partners-slider::-webkit-scrollbar {
  display: none;
}

.partners-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.partners-slider-track {
  display: flex;
  gap: 30px;
  animation: scroll-partners 30s linear infinite;
  width: fit-content;
}

/* Dừng animation khi hover hoặc đang scroll */
.partners-slider:hover .partners-slider-track,
.partners-slider.is-scrolling .partners-slider-track {
  animation-play-state: paused;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 30px 20px;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 220px;
  max-width: 220px;
  min-height: 220px;
  flex-shrink: 0;
}

.partner-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-red);
}

.partner-logo {
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-item:hover .partner-logo img {
  transform: scale(1.1);
}

.partner-name {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-top: 10px;
}

.partner-item:hover .partner-name {
  color: var(--primary-red);
}

/* Responsive */
@media (max-width: 768px) {
  .partner-item {
    min-width: 180px;
    max-width: 180px;
    padding: 20px 15px;
    min-height: 180px;
  }

  .partner-logo {
    width: 100px;
    height: 80px;
  }

  .partner-name {
    font-size: 13px;
  }

  .partners-slider-track {
    gap: 20px;
    /* Tăng tốc độ animation trên mobile */
    animation-duration: 15s;
  }
}

@media (max-width: 480px) {
  .partner-item {
    min-width: 160px;
    max-width: 160px;
  }
}

/* Featured Posts Highlight - Tin tức nổi bật trang chủ */
.featured-posts-highlight {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.featured-post-item-highlight {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-post-item-highlight:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.featured-post-thumbnail {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
}

.featured-post-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

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

.featured-post-item-highlight:hover .featured-post-thumbnail img {
  transform: scale(1.1);
}

.featured-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

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

.featured-post-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.featured-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
  margin-top: auto;
  margin-bottom: 15px;
}

.featured-post-meta i {
  color: var(--primary-red);
  margin-right: 5px;
}

.featured-post-readmore {
  display: inline-block;
  color: var(--primary-red);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-end;
}

.featured-post-readmore:hover {
  color: var(--primary-red);
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
  .featured-post-item-highlight {
    flex-direction: column;
  }

  .featured-post-thumbnail {
    width: 100%;
    height: 200px;
  }

  .featured-post-title {
    font-size: 16px;
  }

  .featured-post-meta {
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .featured-posts-highlight {
    gap: 15px;
  }

  .featured-post-item-highlight {
    padding: 12px;
  }

  .featured-post-thumbnail {
    height: 160px;
  }

  .featured-post-title {
    font-size: 15px;
  }

  .featured-post-excerpt {
    font-size: 13px;
  }
}

/* Related Posts Section - Bài viết gợi ý */
.related-posts-section {
  background: var(--light-bg);
  padding: 60px 0;
  margin-top: 40px;
}

.related-posts-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* Cột trái - Bài viết gợi ý */
.related-posts-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-post-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-post-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.related-post-thumbnail {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
}

.related-post-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

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

.related-post-item:hover .related-post-thumbnail img {
  transform: scale(1.1);
}

.related-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

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

.related-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
}

.related-post-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* Cột phải - Đọc nhiều */
.related-posts-sidebar {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.related-posts-sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-red);
}

/* Responsive */
@media (max-width: 1024px) {
  .related-posts-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .related-posts-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .related-post-item {
    flex-direction: column;
  }

  .related-post-thumbnail {
    width: 100%;
    height: 200px;
  }

  .related-post-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .related-posts-section {
    padding: 40px 0;
  }

  .related-post-item {
    padding: 12px;
  }

  .related-post-thumbnail {
    height: 160px;
  }
}

/* Social Share Buttons - Minimalist Style */
.social-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-share-buttons .share-label {
  font-weight: 500;
  color: #666;
  margin-right: 8px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}

.share-btn:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

.share-btn.facebook:hover {
  color: #1877f2;
  border-color: #1877f2;
  background: #f0f5ff;
}

.share-btn.twitter:hover {
  color: #1da1f2;
  border-color: #1da1f2;
  background: #f0f8ff;
}

.share-btn.linkedin:hover {
  color: #0077b5;
  border-color: #0077b5;
  background: #f0f7fb;
}

.share-btn.whatsapp:hover {
  color: #25d366;
  border-color: #25d366;
  background: #f0fdf4;
}

.share-btn.email:hover {
  color: #ea4335;
  border-color: #ea4335;
  background: #fff5f5;
}

/* Article Footer Meta - Post Stats & Share (Minimalist Style) */
.article-footer-meta {
  margin: 40px 0 20px 0;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 25px;
  height: auto;
}

.post-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #4a4a4a;
  font-weight: 400;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  letter-spacing: 0.3px;
  height: auto;
  min-height: 24px;
}

.post-stats .stat-item i {
  font-size: 17px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
}

.post-stats .stat-number {
  font-weight: 500;
  color: #333;
  font-size: 15px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 17px;
}

/* View stat - NO effects */
.post-stats .stat-item:not(.like-button) {
  cursor: default;
  pointer-events: none;
}

.post-stats .stat-item:not(.like-button):hover {
  background: none;
}

/* Like Button - Clickable without effects */
.post-stats .like-button {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}

.post-stats .like-button.liked i {
  color: #e74c3c;
}

.post-stats .like-button.liked .stat-number {
  color: #e74c3c;
}

.post-stats .like-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Responsive - Minimalist */
@media (max-width: 768px) {
  .article-footer-meta {
    padding: 16px 0;
    gap: 20px;
  }

  .post-stats {
    width: 100%;
    gap: 20px;
  }

  .social-share-buttons {
    width: 100%;
  }

  .social-share-buttons .share-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .article-footer-meta {
    margin: 30px 0 15px 0;
  }

  .post-stats {
    gap: 15px;
    flex-wrap: wrap;
  }

  .post-stats .stat-item {
    font-size: 14px;
    gap: 6px;
  }

  .post-stats .stat-item i {
    font-size: 16px;
  }

  .post-stats .stat-number {
    font-size: 14px;
  }

  .share-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .social-share-buttons {
    gap: 6px;
  }

  .social-share-buttons .share-label {
    width: 100%;
    margin-bottom: 5px;
    font-size: 13px;
  }
}

/* Ẩn view/like tự động của plugin (nếu có) */
.pvc-stats,
.wp-ulike-post,
.post-views-counter,
.article-content .wp-ulike,
.article-content .pvc-post-views,
.pvc_most_viewed_posts,
.wp-ulike-general-class,
.article-content > .pvc-stats,
.article-content > span[style*="Post Views"],
.article-content p:has(> .wp-ulike-button),
/* Ẩn bất kỳ element nào chứa "Post Views:" trong article-content */
.article-content *[class*="pvc"],
.article-content *[class*="post-view"],
.article-content span:not(.stat-number):not(.stat-item) {
  display: none !important;
}

/* Ẩn WP ULike trong featured news section */
.featured-news-section .wp-ulike,
.featured-news-section .wp-ulike-button,
.featured-news-section .wp-ulike-post,
.featured-news-section .wp-ulike-general-class,
.featured-news-section *[class*="wp-ulike"],
.featured-news .excerpt .wp-ulike,
.featured-news .excerpt *[class*="wp-ulike"] {
  display: none !important;
}

/* Ẩn WP ULike và Post Views Counter trong trang search */
.search-page-wrapper .wp-ulike,
.search-page-wrapper .wp-ulike-button,
.search-page-wrapper .wp-ulike-post,
.search-page-wrapper .wp-ulike-general-class,
.search-page-wrapper *[class*="wp-ulike"],
.search-page-wrapper .pvc-stats,
.search-page-wrapper .post-views-counter,
.search-page-wrapper .pvc-post-views,
.search-page-wrapper *[class*="pvc"],
.search .wp-ulike,
.search .wp-ulike-button,
.search .pvc-stats,
body.search .wp-ulike,
body.search .wp-ulike-button,
body.search .pvc-stats,
body.search *[class*="wp-ulike"],
body.search *[class*="pvc"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Ẩn warning messages trong excerpt trang search */
.search-page-wrapper .post-excerpt > *:not(p),
.search-page-wrapper .post-excerpt strong,
.search-page-wrapper .post-excerpt b,
body.search .post-excerpt > *:not(p),
body.search .post-excerpt strong,
body.search .post-excerpt b {
  display: none !important;
}

/* Clean excerpt trong search - chỉ hiển thị text */
.search-page-wrapper .post-excerpt,
body.search .post-excerpt {
  line-height: 1.6;
  color: var(--text-dark);
}

.search-page-wrapper .post-excerpt p,
body.search .post-excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Force ẩn text "Post Views:" */
.article-content::before,
.article-content::after {
  content: none !important;
}

/* Chỉ hiển thị post stats ở footer */
.article-footer-meta .post-stats {
  display: flex !important;
}

/* ==================================================
   HDH MEDIA SECTIONS - Video & Album
   ================================================== */

/* Container chung */
.hdh-media-section {
  margin: 60px 0;
  padding: 0;
  background: var(--white);
}

.hdh-media-section .section-title {
  font-size: 28px;
  color: var(--primary-red);
  margin-bottom: 30px;
  font-weight: 700;
  text-align: left;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-red);
  display: inline-block;
}

.hdh-media-section .section-title::after {
  display: none;
}

/* ========================================
   VIDEO & ALBUM SECTIONS WRAPPER
   ======================================== */
/* CSS đã bị xóa vì làm hỏng cấu trúc trang */

/* ========================================
   VIDEO FEATURED SECTION
   ======================================== */
.video-featured-section {
  margin: 60px 0;
}

/* Video Container - Layout giống hình */
.video-featured-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

/* Video Player */
.video-featured-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
}

.video-featured-player iframe,
.video-featured-player video {
  width: 100% !important;
  height: 100% !important;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  object-fit: contain;
}

.video-featured-player > * {
  max-width: 100%;
}

/* Video Thumbnail với Play Button */
.video-thumbnail-link {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.video-thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-link:hover .play-overlay {
  color: var(--primary-red);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video Info Area */
.video-featured-info {
  padding: 20px 25px;
  background: var(--white);
}

.video-title {
  margin: 0 0 15px 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.video-title a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.video-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-meta i {
  font-size: 13px;
  color: var(--primary-red);
}

.btn-view-all:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 8, 8, 0.3);
}

/* OLD - Video Card - Giữ lại nếu cần dùng */
.hdh-single-video-card {
  display: block;
  margin-top: 30px;
  background: var(--white);
  border: 4px solid var(--primary-gold);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  text-decoration: none;
  max-width: 100%;
}

.hdh-single-video-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.video-card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.video-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hdh-single-video-card:hover .video-card-thumbnail img {
  transform: scale(1.05);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 215, 0, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 28px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.hdh-single-video-card:hover .play-button {
  transform: scale(1.15);
  background: var(--primary-gold);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

.video-duration {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.video-card-content {
  padding: 25px;
  background: #fffef0;
  border-left: 4px solid var(--primary-gold);
}

.video-card-content h3 {
  font-size: 24px;
  color: var(--primary-navy);
  margin: 0 0 12px 0;
  line-height: 1.4;
  font-weight: 700;
  transition: color 0.3s ease;
}

.hdh-single-video-card:hover .video-card-content h3 {
  color: var(--primary-red);
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.video-card-meta .meta-divider {
  color: #999;
}

.video-card-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
}

/* View More Button */
.media-view-more {
  margin-top: 30px;
  text-align: center;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 8, 8, 0.3);
}

.btn-view-more:hover {
  background: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 8, 8, 0.4);
  color: white;
}

.btn-view-more i {
  font-size: 18px;
}

/* Old layout - remove if not used */
.hdh-media-container {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* Video chính bên trái */
.hdh-media-main {
  background: var(--white);
  border: 4px solid var(--primary-gold);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hdh-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

.hdh-video-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gold);
  color: var(--primary-navy);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.hdh-media-info {
  padding: 25px;
  background: #fffef0;
  border-left: 4px solid var(--primary-gold);
}

.hdh-media-info .media-title {
  font-size: 18px;
  color: var(--primary-red);
  font-weight: 700;
  margin: 20px 0 10px 0;
  text-transform: capitalize;
}

.hdh-media-info .media-title:first-child {
  margin-top: 0;
}

.hdh-media-info .media-title-content {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0 0 15px 0;
  font-weight: 500;
}

.hdh-media-info .media-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0 0 15px 0;
}

.hdh-media-info .media-meta p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Sidebar danh sách video/album bên phải */
.hdh-media-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hdh-media-item {
  display: block;
  background: var(--white);
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 15px 0;
}

.hdh-media-item:first-child {
  padding-top: 0;
}

.hdh-media-item:last-child {
  border-bottom: none;
}

.hdh-media-item:hover {
  background: #f9f9f9;
}

.media-item-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 4px;
}

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

.hdh-media-item:hover .media-item-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  background: rgba(220, 20, 60, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.hdh-media-item:hover .play-overlay {
  background: var(--primary-red);
  transform: translate(-50%, -50%) scale(1.15);
}

.media-item-content {
  padding: 12px 0 0 0;
}

.media-item-content h4 {
  font-size: 15px;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hdh-media-item:hover .media-item-content h4 {
  color: var(--primary-red);
}

/* ========================================
   ALBUM SECTION - Sidebar Style
   ======================================== */
.hdh-albums-section {
  margin: 60px 0;
}

.hdh-albums-grid {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 0;
}

.hdh-album-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.hdh-album-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Album Thumbnail Link - Similar to sidebar-item */
.album-thumbnail-link {
  position: relative;
  color: #fff;
  padding: 13px;
  height: 171px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: transform 0.3s;
}

.album-thumbnail-link h4 {
  font-size: 14px;
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-thumbnail-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.album-thumbnail-link > * {
  position: relative;
  z-index: 1;
}

.album-item-content {
  padding: 12px 15px;
  background: var(--white);
}

.album-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
  flex-wrap: wrap;
}

.album-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.album-meta i {
  font-size: 12px;
  color: var(--primary-red);
}

/* ========================================
   ALBUM ARCHIVE LIST - Grid Style
   ======================================== */
.hdh-albums-list-wrapper .hdh-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.hdh-albums-list-wrapper .hdh-album-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.hdh-albums-list-wrapper .hdh-album-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.album-item-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.hdh-albums-list-wrapper .hdh-album-item:hover .album-item-thumbnail img {
  transform: scale(1.1);
}

.album-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hdh-albums-list-wrapper .hdh-album-item:hover .album-overlay {
  opacity: 1;
}

.album-overlay i {
  font-size: 48px;
  color: white;
  margin-bottom: 5px;
}

.photo-count {
  color: white;
  font-size: 16px;
  font-weight: 600;
  background: rgba(230, 8, 8, 0.9);
  padding: 6px 16px;
  border-radius: 20px;
}

.hdh-albums-list-wrapper .album-item-content {
  padding: 18px;
  background: var(--white);
}

.hdh-albums-list-wrapper .album-item-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.hdh-albums-list-wrapper .hdh-album-item:hover .album-item-content h4 {
  color: var(--primary-red);
}

.hdh-albums-list-wrapper .album-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin: 0;
}

.hdh-albums-list-wrapper .album-meta i {
  font-size: 12px;
  color: var(--primary-red);
}

/* Responsive cho Album List */
@media (max-width: 1024px) {
  .hdh-albums-list-wrapper .hdh-albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .album-item-thumbnail {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hdh-albums-list-wrapper .hdh-albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .album-item-thumbnail {
    height: 180px;
  }

  .hdh-albums-list-wrapper .album-item-content h4 {
    font-size: 15px;
  }

  .album-overlay i {
    font-size: 40px;
  }

  .photo-count {
    font-size: 14px;
    padding: 5px 14px;
  }
}

@media (max-width: 480px) {
  .hdh-albums-list-wrapper .hdh-albums-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .album-item-thumbnail {
    height: 220px;
  }
}

/* ========================================
   LEADER CARDS SECTION
   ======================================== */

.leader-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #e60808;
  margin: 0 0 15px 0;
  text-align: left;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.leader-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #e60808;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.leader-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.leader-card-image {
  width: 100%;
  height: 0;
  padding-bottom: 125%; /* Tỷ lệ 4:5 cho ảnh chân dung nhỏ gọn hơn */
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.leader-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.leader-card:hover .leader-card-image img {
  transform: scale(1.05);
}

.leader-card-info {
  background: #c41e3a;
  padding: 15px 10px;
  text-align: center;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  width: 100%;
}

.leader-name {
  color: white;
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.leader-position {
  color: white;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
}

/* Responsive Leader Cards */
@media (max-width: 1024px) {
  .leader-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .leader-name {
    font-size: 13px;
  }

  .leader-position {
    font-size: 11px;
  }

  .leader-card-info {
    padding: 12px 8px;
    min-height: 70px;
  }
}

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

  .leader-section-title {
    font-size: 22px;
  }

  .leader-name {
    font-size: 13px;
  }

  .leader-position {
    font-size: 11px;
  }

  .leader-card-info {
    padding: 12px 8px;
    min-height: 65px;
  }
}

@media (max-width: 480px) {
  .leader-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .leader-section-title {
    font-size: 20px;
  }

  .leader-name {
    font-size: 12px;
  }

  .leader-position {
    font-size: 10px;
  }

  .leader-card-info {
    padding: 10px 6px;
    min-height: 60px;
  }
}

/* ========================================
   VIEW MORE BUTTON - Simple Style (giống "Đọc tiếp")
   ======================================== */
.hdh-view-more-section {
  margin-top: 15px;
  text-align: left;
}

.btn-view-more-red {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: color 0.3s;
  cursor: pointer;
}

.btn-view-more-red:hover {
  color: var(--primary-gold);
}

.btn-view-more-red i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-view-more-red:hover i {
  transform: translateX(3px);
}

/* RESPONSIVE - Video Featured & Album */
@media (max-width: 1024px) {
  .video-featured-section,
  .hdh-albums-section {
    margin: 40px 0;
  }

  .video-featured-section .section-title,
  .hdh-albums-section .section-title {
    font-size: 24px;
  }

  .video-title {
    font-size: 18px;
  }

  .album-title {
    font-size: 15px;
  }

  .play-overlay {
    font-size: 60px;
  }

  .hdh-albums-grid {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hdh-album-item {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
  }

  /* Old layout */
  .hdh-media-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hdh-media-sidebar {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    padding-bottom: 10px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
  }

  .hdh-media-item {
    min-width: 280px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid #ddd;
    padding: 0 15px;
  }

  .hdh-media-item:first-child {
    padding-left: 0;
  }

  .hdh-media-item:last-child {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 768px) {

  .main {
    padding: 70px 0;
  }

  .hdh-media-section {
    margin: 40px 0;
    padding: 0;
  }

  .hdh-media-section .section-title {
    font-size: 24px;
    padding-bottom: 8px;
  }

  .video-featured-section {
    margin: 30px 0;
  }

  .video-featured-section .section-title {
    font-size: 22px;
  }

  .video-featured-content {
    padding: 20px;
  }

  .video-featured-content h3 {
    font-size: 18px;
  }

  .video-featured-content .meta {
    font-size: 13px;
    gap: 10px;
  }

  .video-featured-content .excerpt {
    font-size: 14px;
  }

  .video-card-content {
    padding: 20px;
  }

  .video-card-content h3 {
    font-size: 18px;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .video-duration {
    font-size: 12px;
    padding: 5px 10px;
  }

  .hdh-albums-grid {
    flex-direction: column;
    gap: 20px;
  }

  .hdh-album-item {
    flex: 1 1 100%;
  }

  .album-meta {
    font-size: 12px;
    gap: 10px;
  }

  .hdh-media-item {
    min-width: 240px;
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .video-featured-section,
  .hdh-albums-section {
    margin: 30px 0;
  }

  .video-featured-section .section-title,
  .hdh-albums-section .section-title {
    font-size: 20px;
  }

  .video-featured-info {
    padding: 15px 18px;
  }

  .video-title {
    font-size: 16px;
  }

  .video-meta {
    font-size: 12px;
    gap: 12px;
  }

  .album-title {
    font-size: 14px;
  }

  .album-meta {
    font-size: 11px;
  }

  .play-overlay {
    font-size: 50px;
  }

  .video-featured-content .excerpt {
    font-size: 13px;
  }

  .video-featured-content .read-more {
    font-size: 14px;
  }

  .section-view-more {
    margin-top: 20px;
  }

  .btn-view-all {
    padding: 10px 18px;
    font-size: 13px;
  }

  .hdh-single-video-card {
    border-width: 3px;
  }

  .video-card-content {
    padding: 18px;
  }

  .video-card-content h3 {
    font-size: 16px;
  }

  .video-card-meta {
    font-size: 13px;
  }

  .video-card-excerpt {
    font-size: 14px;
  }

  .play-button {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .video-duration {
    font-size: 11px;
    padding: 4px 8px;
    bottom: 10px;
    right: 10px;
  }

  .btn-view-more {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
  }

  .media-view-more {
    margin-top: 20px;
  }

  .album-item-content h4 {
    font-size: 14px;
  }

  .hdh-media-info {
    padding: 20px;
  }

  .hdh-media-info .media-title {
    font-size: 16px;
  }

  .hdh-media-info .media-title-content {
    font-size: 15px;
  }

  .hdh-media-info .media-excerpt {
    font-size: 14px;
  }

  .media-item-content h4 {
    font-size: 14px;
  }

  .hdh-media-item {
    min-width: 220px;
    padding: 0 10px;
  }
}

/* ==================================================
   SINGLE VIDEO & ALBUM PAGES
   ================================================== */

/* Video Player trong single post */
.article-video-player {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16/9;
  margin: 30px auto;
  background: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.article-video-player iframe,
.article-video-player video {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
}

/* Album Gallery trong single post */
.article-album-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px auto;
  max-width: 1200px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item a {
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-item a::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover a::after {
  opacity: 0.9;
}

.gallery-caption {
  padding: 12px 15px;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
  background: var(--white);
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .article-album-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .article-album-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-item img {
    height: 250px;
  }
}

/* ==================================================
   CATEGORY PAGES - Video & Album Archives
   ================================================== */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1a3a52 100%);
  padding: 60px 0;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0 C150,100 350,0 600,50 C850,100 1050,0 1200,50 L1200,00 L0,0 Z"></path></svg>') repeat-x bottom;
  background-size: 1200px 120px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 42px;
  color: white;
  margin: 0 0 15px 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Video Archive Grid */
.hdh-videos-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.video-archive-item {
  background: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-archive-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-red);
}

.video-archive-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-archive-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-archive-item:hover .video-archive-thumbnail img {
  transform: scale(1.08);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-play-overlay i {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-archive-item:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.video-archive-item:hover .video-play-overlay i {
  color: var(--primary-red);
  transform: scale(1.15);
}

.video-archive-content {
  padding: 20px;
}

.video-archive-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.video-archive-title a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-archive-item:hover .video-archive-title a {
  color: var(--primary-red);
}

.video-archive-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.video-archive-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-archive-meta i {
  font-size: 13px;
  color: var(--primary-red);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 15px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 8, 8, 0.3);
}

.pagination .current {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  font-weight: 700;
}

.pagination .dots {
  background: transparent;
  border: none;
  color: #999;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  font-size: 18px;
  color: #666;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 40px 0;
}

/* Responsive Category Pages */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 14px;
  }

  .hdh-videos-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .video-archive-title {
    font-size: 16px;
  }

  .video-play-overlay i {
    font-size: 50px;
  }

  .pagination {
    gap: 6px;
    margin-top: 30px;
    padding: 20px 0;
  }

  .pagination a,
  .pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 30px 0;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .hdh-videos-archive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-archive-title {
    font-size: 15px;
  }

  .video-archive-content {
    padding: 15px;
  }

  .video-play-overlay i {
    font-size: 45px;
  }

  .video-archive-meta {
    font-size: 13px;
  }

  .pagination a,
  .pagination span {
    min-width: 35px;
    height: 35px;
    padding: 0 8px;
    font-size: 13px;
  }

  .no-posts {
    font-size: 16px;
    padding: 40px 15px;
  }
}


/* Custom Underline Style for Xem thêm - Simple Red */
.btn-view-more-red u {
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.btn-view-more-red u::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary-red);
  border-radius: 2px;
}

/* Responsive cho header - Mobile screens dưới 480px */
@media (max-width: 480px) {
  .logo {
    width: 40px !important;
    height: 40px !important;
    margin-right: 3px !important;
  }

  .header-text h1 {
    font-size: 14px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.5px !important;
  }

  .header-slogan {
    font-size: 11px !important;
    line-height: 1.3;
  }

  .header-main {
    padding: 0 !important;
    gap: 8px !important;
  }

  .header-datetime {
    font-size: 11px !important;
  }

  .header-datetime #current-time,
  .header-datetime #current-date {
    font-size: 11px !important;
  }
}

/* Responsive cho header - Điện thoại ngang (landscape) */
@media (max-width: 576px) and (orientation: landscape) {
  .header-main {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }

  .logo-section {
    flex-direction: row;
    align-items: center;
  }

  .header-text h1 {
    font-size: 16px !important;
  }

  .header-slogan {
    font-size: 12px !important;
  }
}

/* Responsive cho header - Tablets nhỏ */
@media (min-width: 481px) and (max-width: 768px) {
  .logo {
    width: 60px !important;
    height: 60px !important;
  }

  .header-text h1 {
    font-size: 20px !important;
  }

  .header-slogan {
    font-size: 16px !important;
  }
}

/* Override responsive cho header mobile - Logo riêng 1 dòng */
@media (max-width: 480px) {
  .logo-section {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }

  .logo {
    width: 70px !important;
    height: 70px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }

  .header-text {
    text-align: center;
    width: 100%;
  }

  .header-text h1 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }

  .header-slogan {
    font-size: 13px !important;
  }

  .header-main {
    padding: 0 !important;
  }
}

/* Cho màn hình rất nhỏ (dưới 360px) */
@media (max-width: 360px) {
  .logo {
    width: 60px !important;
    height: 60px !important;
  }

  .header-text h1 {
    font-size: 14px !important;
  }

  .header-slogan {
    font-size: 12px !important;
  }
}

/* Logo fit màn hình mobile - Kích thước lớn hơn */
@media (max-width: 480px) {
  .logo {
    width: 100px !important;
    height: 100px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }

  .header-text h1 {
    font-size: 18px !important;
    margin-bottom: 5px !important;
  }

  .header-slogan {
    font-size: 14px !important;
  }
}

/* Màn hình trung bình mobile (360px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
  .logo {
    width: 110px !important;
    height: 110px !important;
  }
}

/* Màn hình mobile lớn (414px+) */
@media (min-width: 414px) and (max-width: 480px) {
  .logo {
    width: 120px !important;
    height: 120px !important;
  }

  .header-text h1 {
    font-size: 20px !important;
  }

  .header-slogan {
    font-size: 15px !important;
  }
}

/* Logo và header text mobile - Kích thước vừa phải */
@media (max-width: 480px) {
  .logo {
    width: 75px !important;
    height: 75px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }

  .header-text h1 {
    font-size: 15px !important;
    margin-bottom: 5px !important;
  }

  .header-slogan {
    font-size: 13px !important;
  }
}

/* Responsive cho shortcode tin_tuc_noi_bat trên mobile - Chỉ ẩn trích dẫn */
@media (max-width: 768px) {
  .featured-post-excerpt {
    display: none !important;
  }
}


/* Leader Section - Auto scroll giống don_vi_dong_hanh */
.leader-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#leaderSliderLichSu {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Show scrollbar */
#leaderSliderLichSu::-webkit-scrollbar {
  height: 8px;
}

#leaderSliderLichSu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#leaderSliderLichSu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

#leaderSliderLichSu::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#leaderSliderLichSu {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

#vanPhongHoiSlider {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Show scrollbar */
#vanPhongHoiSlider::-webkit-scrollbar {
  height: 8px;
}

#vanPhongHoiSlider::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#vanPhongHoiSlider::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

#vanPhongHoiSlider::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#vanPhongHoiSlider {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

#leaderSlider {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Show scrollbar */
#leaderSlider::-webkit-scrollbar {
  height: 8px;
}

#leaderSlider::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#leaderSlider::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

#leaderSlider::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#leaderSlider {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.leader-grid {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 20px;
  width: fit-content;
}

.leader-card {
  flex-shrink: 0;
  width: 280px;
}

/* Responsive */
@media (max-width: 768px) {
  .leader-card {
    min-width: 250px;
    max-width: 250px;
  }
  
  #leaderSlider::before,
  #leaderSlider::after {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .leader-card {
    min-width: 220px;
    max-width: 220px;
  }
  
  #leaderSlider::before,
  #leaderSlider::after {
    width: 30px;
  }
}