/*
Theme Name: AS Hoàng Long Event
Theme URI: https://example.com
Author: AS Hoang Long
Author URI: https://example.com
Description: Theme sự kiện chuyên nghiệp sử dụng Tailwind CSS CDN.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: events, one-page, tailwind
Text Domain: as-hoang-long
*/

/* Base Styles */
html {
  /* Ensure UTF-8 encoding for Vietnamese characters */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  /* Force UTF-8 encoding */
  charset: "UTF-8";
}

/* Ensure all Vietnamese text uses proper fonts */
* {
  /* Force proper font rendering for Vietnamese characters */
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

body {
  scroll-behavior: smooth;
  /* Ưu tiên Google Fonts trước, chỉ fallback sang font hệ thống khi cần */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  color: #111827;
  /* Ensure Vietnamese characters render correctly */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fix font rendering on Windows */
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  /* Ensure proper character encoding */
  -webkit-font-feature-settings: "kern" 1;
  font-variant-ligatures: common-ligatures;
}

/* Đảm bảo tất cả content sử dụng font Noto Serif */
p,
li,
div,
span,
a,
td,
th,
label,
input,
textarea,
select,
button:not(.section-title):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Loại trừ các phần tử title khỏi quy tắc trên - tất cả h1-h6 đều dùng Oswald */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  /* Giữ nguyên font Oswald cho tất cả tiêu đề */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

nav,
button,
input,
textarea,
select {
  /* Ưu tiên Google Font Noto Sans (hỗ trợ tiếng Việt tốt hơn Inter) */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Noto Sans", "Segoe UI", "Microsoft YaHei", "Arial Unicode MS",
    -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial,
    sans-serif;
  /* Ensure Vietnamese characters render correctly */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fix font rendering on Windows */
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Font UTM BryantLG Bold - Replaced with Google Font Oswald for better Windows compatibility */
/* This @font-face is kept for backward compatibility with old inline styles */
@font-face {
  font-family: "utm_bryantlg_b";
  src: local("Arial Black"), local("Arial-Black"), local("Helvetica Neue Bold"),
    local("HelveticaNeue-Bold");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Better font stack - Using Google Font Oswald instead of utm_bryantlg_b */
.utm-bryantlg {
  /* Ưu tiên Google Font Oswald trước, chỉ fallback sang font hệ thống khi cần */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  /* Ensure Vietnamese characters render correctly */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fix font rendering on Windows */
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Override inline styles that still use utm_bryantlg_b - Replace with Oswald Google Font */
*[style*="utm_bryantlg_b"] {
  /* Ưu tiên Google Font Oswald trước, chỉ fallback sang font hệ thống khi cần */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
  /* Fix font rendering on Windows */
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Specific font weight adjustments */
*[style*="utm_bryantlg_b"][style*="font-weight: bold"],
*[style*="utm_bryantlg_b"][style*="font-weight:700"],
*[style*="utm_bryantlg_b"][style*="font-weight: 700"] {
  font-weight: 700 !important;
}

*[style*="utm_bryantlg_b"][style*="font-weight: semibold"],
*[style*="utm_bryantlg_b"][style*="font-weight:600"],
*[style*="utm_bryantlg_b"][style*="font-weight: 600"] {
  font-weight: 600 !important;
}

/* Apply to common elements */
h1,
h2,
h3,
h4,
h5,
h6,
.main-menu a,
.menu-link,
.lang-switcher {
  /* Ưu tiên Google Font Oswald trước, chỉ fallback sang font hệ thống khi cần */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif;
  /* Ensure Vietnamese characters render correctly */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fix font rendering on Windows */
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* Container */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: #f54820;
  position: relative;
  letter-spacing: -0.02em;
  /* Đảm bảo tất cả section-title sử dụng font Oswald giống nhau */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #f54820, transparent);
  border-radius: 2px;
}

#dichvu .section-title {
  color: white;
  /* Đảm bảo font Oswald cho title */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

#dichvu .section-title::after {
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

#dichvu .section-title span {
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

#news .section-title {
  color: #000;
  /* Đảm bảo font Oswald cho title */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

#news .section-title::after {
  background: linear-gradient(90deg, transparent, #f54820, transparent);
}

#news .section-title span {
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

/* Đảm bảo section-title trong #thietbi sử dụng font Oswald */
#thietbi .section-title,
#thietbi .section-title span {
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

#contact .section-title {
  color: white;
}

#contact .section-title::after {
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

/* Card Styles */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Banner Slider Styles */
.banner-section {
  position: relative;
}

.banner-section:hover .banner-nav {
  opacity: 0.9;
}

.banner-section .banner-nav:hover {
  opacity: 1 !important;
}

.banner-slideshow {
  position: relative;
  overflow: hidden;
}

.banner-slide {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.banner-image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 20s ease-in-out infinite alternate;
}

.banner-slide.active .banner-image {
  animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

/* Navigation Arrows */
.banner-nav {
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0.6;
  z-index: 20;
}

.banner-nav:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
}

.banner-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.banner-nav svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

/* Indicators */
.banner-indicators {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.banner-indicator:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
  border-radius: 50%;
}

.indicator-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-indicator:hover .indicator-dot {
  background: rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.banner-indicator.active .indicator-dot {
  width: 40px;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(255, 175, 21, 0.8),
    0 0 25px rgba(255, 255, 255, 0.4);
}

.indicator-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0%;
  height: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 175, 21, 1),
    rgba(255, 200, 50, 1)
  );
  border-radius: 3px;
  transition: width 0.1s linear;
  opacity: 0;
  box-shadow: 0 0 10px rgba(255, 175, 21, 0.6);
}

.banner-indicator.active .indicator-progress {
  opacity: 1;
  width: 100%;
  animation: progressBar 5s linear;
}

@keyframes progressBar {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.indicator-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s ease-in-out infinite;
}

.banner-indicator.active .indicator-pulse {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 175, 21, 0.3);
  animation: pulseActive 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes pulseActive {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scaleX(1.1);
  }
}

/* Chat Widget Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scale(1.1);
  }
  50% {
    transform: translateY(-5px) scale(1.15);
  }
}

@keyframes notificationPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.6;
  }
  100% {
    width: 140%;
    height: 140%;
    opacity: 0;
  }
}

@keyframes pulseHover {
  0%,
  100% {
    transform: translateY(0px) scale(1.1);
  }
  50% {
    transform: translateY(-10px) scale(1.15);
  }
}

/* Banner Content */
.banner-content {
  position: relative;
  z-index: 10;
}

/* Gradient Overlay */
.gradient-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-nav {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.8 !important;
  }

  .banner-nav svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .banner-indicators {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .banner-indicator {
    width: 10px;
    height: 10px;
  }

  .indicator-dot {
    width: 10px;
    height: 10px;
  }

  .banner-indicator.active .indicator-dot {
    width: 32px;
    height: 5px;
  }

  .banner-indicator.active .indicator-pulse {
    width: 32px;
    height: 5px;
  }

  .indicator-progress {
    height: 5px;
  }

  .banner-section:hover .banner-nav {
    opacity: 1 !important;
  }
}

/* Smooth Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Services List Styles */
.list-dichvu {
  overflow: hidden;
}

.list-dichvu ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -56px;
  list-style: none;
  padding: 0;
}

.list-dichvu li,
.list-dichvu-item {
  margin-bottom: 2rem;
  width: 25%;
  padding: 0 56px;
  box-sizing: border-box;
}

.list-dichvu li a.image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid white !important;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 1px;
  position: relative;
  min-height: 200px;
  background: transparent;
  box-sizing: border-box;
}

.list-dichvu li a.image:hover {
  background: #fd8265;
  border: 2px solid white !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.list-dichvu li a.image img,
.service-icon {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  padding: 20px;
}

.list-dichvu li a.name,
#dichvu .list-dichvu li a.name,
.list-dichvu-item a.name {
  display: block;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  text-decoration: none;
  /* Sử dụng font giống phần Giới thiệu */
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

.list-dichvu li a.name:hover {
  color: #fef08a;
}

@media (max-width: 768px) {
  .list-dichvu ul {
    margin: 0 -10px;
  }

  .list-dichvu li,
  .list-dichvu-item {
    width: 50% !important;
    padding: 0 10px !important;
    margin-bottom: 1.5rem !important;
  }

  .list-dichvu li a.image,
  .list-dichvu-item a.image {
    min-height: 150px !important;
  }

  .list-dichvu li a.image img,
  .list-dichvu-item a.image img,
  .service-icon {
    padding: 15px !important;
    max-width: calc(100% - 30px) !important;
    max-height: calc(100% - 30px) !important;
    width: auto !important;
    height: auto !important;
  }

  .list-dichvu li a.name,
  .list-dichvu-item a.name {
    margin-top: 1rem !important;
    font-size: 0.9rem !important;
    /* Giữ font giống phần Giới thiệu */
    font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
      "Arial Unicode MS", Times, serif !important;
  }
}

@media (max-width: 479px) {
  .list-dichvu ul {
    margin: 0 -10px;
  }

  .list-dichvu li,
  .list-dichvu-item {
    width: 100% !important;
    padding: 0 10px !important;
    margin-bottom: 1.5rem !important;
  }

  .list-dichvu li a.image,
  .list-dichvu-item a.image {
    min-height: 150px !important;
  }

  .list-dichvu li a.image img,
  .list-dichvu-item a.image img,
  .service-icon {
    padding: 15px !important;
    max-width: calc(100% - 30px) !important;
    max-height: calc(100% - 30px) !important;
    width: auto !important;
    height: auto !important;
  }

  .list-dichvu li a.name,
  .list-dichvu-item a.name {
    margin-top: 1rem !important;
    font-size: 0.875rem !important;
    /* Giữ font giống phần Giới thiệu */
    font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
      "Arial Unicode MS", Times, serif !important;
  }
}

/* Equipment List Styles */
.list-information .info h3 {
  margin-bottom: 2.5rem;
  margin-top: 2.25rem;
}

.list-information .info h3 span {
  text-transform: uppercase;
  border-bottom: 2px solid #f54820;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  display: block;
  font-size: 1.5rem;
  color: #f54820;
  font-weight: bold;
}

@media (min-width: 768px) {
  .list-information .info h3 span {
    font-size: 1.875rem;
  }
}

.list-information .info p {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  /* Ưu tiên Google Font Noto Serif trước, chỉ fallback sang font hệ thống khi cần */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif;
}

@media (min-width: 768px) {
  .list-information .info p {
    font-size: 1.5rem;
  }
}

.list-information .info p a {
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.list-information .info p a:hover {
  color: #f54820;
  font-weight: 600;
}

/* Programs Slider Styles */
.list-chuongtrinh {
  position: relative;
}

.list-chuongtrinh .es-slides {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-chuongtrinh .es-slides > li {
  flex-shrink: 0;
  width: 295px;
  margin-right: 20px;
  margin-bottom: 28px;
}

.list-chuongtrinh ul li a.image {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  position: relative;
  height: 220px;
}

.list-chuongtrinh ul li a.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.list-chuongtrinh ul li a.image .info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: white;
  overflow: hidden;
  background: rgba(245, 72, 32, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

/* Removed hover background effect for programs section */
/* .list-chuongtrinh ul li a.image:hover .info,
.list-chuongtrinh ul li.active a.image .info {
  opacity: 1;
} */

.list-chuongtrinh ul li a.image .info p {
  margin-bottom: 0.5rem;
}

.list-chuongtrinh ul li a.image .info div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 17px 12px;
}

.list-chuongtrinh ul li .name {
  display: block;
  font-size: 1rem;
  color: #374151;
  font-weight: bold;
  margin-top: 1.5rem;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.3s;
}

.list-chuongtrinh ul li .name:hover {
  color: #f54820;
}

.es-navigation {
  text-align: center;
  padding-top: 1rem;
  clear: both;
}

.es-navigation a {
  display: inline-block;
  border-radius: 9999px;
  transition: background-color 0.3s;
  width: 36px;
  height: 36px;
  margin: 0 3px;
  background-color: #f88420;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.es-navigation a:hover {
  background-color: #f9a35a;
}

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

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .list-chuongtrinh ul li {
    width: 50%;
  }

  .list-chuongtrinh ul li a.image {
    height: 200px;
  }
}

@media (max-width: 479px) {
  .list-chuongtrinh ul li {
    width: 100%;
  }

  .list-chuongtrinh ul li a.image {
    height: 220px;
  }
}

/* News Styles */
.list-news .es-slides {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-news .es-slides > li {
  flex-shrink: 0;
  width: 595px;
  margin-right: 20px;
  margin-bottom: 44px;
}

/* Menu Link Hover */
.menu-link:hover {
  color: #f58220 !important;
}

/* Mobile Menu */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu-overlay {
  transition: opacity 0.3s ease-in-out;
}

#mobile-menu-toggle {
  z-index: 10001;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 10px;
  margin-right: 0;
}

@media (max-width: 640px) {
  #mobile-menu-toggle {
    right: 1rem;
    padding: 10px 8px;
  }
}

#mobile-menu-toggle.active {
  transform: translateY(-50%);
}

#mobile-menu-toggle.active #menu-line-1 {
  transform: rotate(45deg) translateY(8px);
}

#mobile-menu-toggle.active #menu-line-2 {
  opacity: 0;
}

#mobile-menu-toggle.active #menu-line-3 {
  transform: rotate(-45deg) translateY(-8px);
}

/* Mobile menu links */
#mobile-menu .mobile-menu-link {
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

#mobile-menu .mobile-menu-link:hover,
#mobile-menu .mobile-menu-link:active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f58220 !important;
  padding-left: 25px;
}

#mobile-menu .mobile-menu-link[data-section="home"] {
  color: #f58220 !important;
}

/* Mobile menu list */
#mobile-menu .mobile-menu-list {
  padding-bottom: 20px;
}

#mobile-menu .mobile-menu-list li:last-child {
  border-bottom: none !important;
}

/* Mobile menu close button */
#mobile-menu-close {
  transition: all 0.2s ease;
}

#mobile-menu-close:hover,
#mobile-menu-close:active {
  color: #f58220 !important;
  transform: scale(1.15);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Language switcher in mobile menu */
#mobile-menu .language-mobile .lang-switcher:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #f58220 !important;
  color: #f58220 !important;
}

#mobile-menu .language-mobile .lang-switcher.active {
  background-color: #555 !important;
  border-color: #878787 !important;
  color: #fff !important;
}

/* Ensure mobile menu is above everything */
@media (max-width: 1023px) {
  #mobile-menu {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Improve touch targets */
  #mobile-menu .mobile-menu-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  #mobile-menu-close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Language Switcher */
.lang-switcher.active {
  border: 1px solid #878787 !important;
}

/* Utilities */
.text-primary {
  color: #f54820;
}

.text-secondary {
  color: #ffaf15;
}

.bg-primary {
  background-color: #f54820;
}

.bg-secondary {
  background-color: #ffaf15;
}

/* Chat Widget Styles */
.chat-widget-container {
  position: fixed;
  bottom: 50px;
  right: 30px;
  z-index: 9998;
}

.chat-widget-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 350px;
  height: 350px;
  z-index: 2;
  pointer-events: none;
}

.chat-widget-container:hover::after {
  pointer-events: auto;
}

.chat-widget-popup:hover {
  pointer-events: auto;
}

.chat-widget-popup:hover ~ * {
  pointer-events: auto;
}

.chat-widget-icon {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.chat-widget-icon:hover {
  animation: float 3s ease-in-out infinite, pulseHover 1.5s ease-in-out infinite;
}

.chat-widget-icon:hover::after {
  animation: ripple 1.5s ease-out infinite;
}

.chat-widget-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: #ff0000;
  border-radius: 50%;
  border: 3px solid white;
  animation: notificationPulse 2s ease-in-out infinite;
  z-index: 3;
}

.chat-widget-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 0, 0.3);
  animation: ripple 2s ease-out infinite;
  z-index: 1;
}

.chat-widget-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.chat-widget-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.chat-widget-container:hover .chat-widget-popup,
.chat-widget-popup:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-widget-popup:hover ~ * {
  pointer-events: auto;
}

.chat-popup-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 280px;
  position: relative;
}

.chat-popup-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin: 0 0 20px 0;
  text-align: center;
  /* Ưu tiên Google Font Oswald trước, chỉ fallback sang font hệ thống khi cần */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.chat-popup-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.chat-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease;
}

.chat-icon-link:hover {
  transform: translateY(-3px);
}

.chat-icon-link span {
  font-size: 12px;
  margin-top: 8px;
  color: #333;
  font-weight: 500;
}

.chat-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.chat-icon-zalo {
  background: #0068ff;
}

.chat-icon-telegram {
  background: #0088cc;
}

.chat-icon-facebook {
  background: #1877f2;
}

.chat-popup-button {
  display: block;
  background: #f54820;
  color: white;
  text-align: center;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  min-width: 150px;
}

.chat-popup-button:hover {
  background: #d6391a;
  transform: scale(1.05);
}

.chat-popup-arrow {
  position: absolute;
  bottom: -10px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

@media (max-width: 768px) {
  .chat-widget-container {
    bottom: 15px;
    right: 15px;
  }

  .chat-widget-icon {
    width: 50px;
    height: 50px;
  }

  .chat-widget-icon::before {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .chat-widget-popup {
    bottom: 70px;
    right: -10px;
  }

  .chat-popup-content {
    min-width: 250px;
    padding: 16px;
  }

  .chat-popup-icons {
    gap: 8px;
  }

  .chat-icon-circle {
    width: 45px;
    height: 45px;
  }

  .chat-icon-circle svg {
    width: 20px;
    height: 20px;
  }
}

/* About Section - Ensure Google Fonts are used for Vietnamese text on Windows */
#about {
  /* Ưu tiên Google Font Noto Serif trước, chỉ fallback sang font hệ thống khi cần */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

#about p,
#about li,
#about div,
#about span {
  /* Đảm bảo tất cả text trong #about sử dụng Google Font */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Đảm bảo section-title trong #about vẫn sử dụng font Oswald như các section khác */
#about .section-title,
#about .section-title span {
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

#about strong,
#about .font-bold {
  /* Bold text vẫn sử dụng Google Font */
  /* Thêm fallback tốt hơn cho Windows */
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  font-weight: 700;
}

/* Contact Section - Ensure Vietnamese text uses proper fonts */
#contact {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#contact p,
#contact div,
#contact span,
#contact a,
#contact label,
#contact input,
#contact textarea,
#contact button:not(.section-title) {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Đảm bảo section-title trong #contact vẫn sử dụng font Oswald như các section khác */
#contact .section-title,
#contact .section-title span {
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

/* Services Section - Ensure service items and description use Noto Serif font like About section */
#dichvu .list-dichvu li a.name,
#dichvu .list-dichvu-item a.name,
#dichvu .list-dichvu li a.name span,
#dichvu a.name,
#dichvu .list-dichvu a.name,
#dichvu .list-dichvu-item a.name[data-i18n],
#dichvu p[data-i18n="services.description"],
#dichvu .mb-12 p,
#dichvu p {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: "kern" 1 !important;
  font-kerning: normal !important;
}

/* Programs Section - Ensure Vietnamese text uses proper fonts */
#chuongtrinh p,
#chuongtrinh div,
#chuongtrinh span {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Đảm bảo section-title trong #chuongtrinh vẫn sử dụng font Oswald như các section khác */
#chuongtrinh .section-title,
#chuongtrinh .section-title span {
  font-family: "Oswald", "Segoe UI", "Microsoft YaHei", "Arial Black",
    "Arial Unicode MS", "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

/* Đảm bảo phần dịch vụ sử dụng font Noto Serif - override mọi inline style */
#dichvu .list-dichvu li a.name,
#dichvu .list-dichvu-item a.name,
#dichvu a.name[data-i18n],
#dichvu .list-dichvu a.name[class*="name"],
#dichvu .list-dichvu-item a.name[class*="name"] {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: "kern" 1 !important;
  font-kerning: normal !important;
}

/* Đảm bảo chữ "Xem tiếp" và các link tương tự sử dụng font Noto Serif */
.view-next,
.click-view-detail.view-next,
.view-post-detail.view-next,
#news .view-next,
#news .click-view-detail,
#news a.view-next,
#news .view-next span,
#news a[data-i18n="news.read_more"],
#news .view-next[data-i18n="news.read_more"] span {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: "kern" 1 !important;
  font-kerning: normal !important;
}

/* Đảm bảo tên bài viết trong news và programs sử dụng font Noto Serif */
#news .name,
#news .list-news .name,
#news a.name,
#news .click-view-detail.name,
#chuongtrinh .name,
#chuongtrinh .list-chuongtrinh .name,
#chuongtrinh a.name {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: "kern" 1 !important;
  font-kerning: normal !important;
}

/* Đảm bảo phần summary/tóm tắt sử dụng font Noto Serif */
.sumary,
#news .sumary,
#news .info .sumary {
  font-family: "Noto Serif", "Times New Roman", "Segoe UI", "Microsoft YaHei",
    "Arial Unicode MS", Times, serif !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: "kern" 1 !important;
  font-kerning: normal !important;
}
