:root {

  --primary-color: #26A9E0;
  --secondary-color: #D5F4FF;
  --bg-gradient-color: linear-gradient(180deg, #FFFFFF 0%, #D5F4FF 100%);
  --primary-text-color: #26A9E0;
  /* --header-bg: #1f0404;
  --header-bg: #006719;
  --text-color: #ebfde9;
  --bg-color: #fff9eb;
  --orange-shade: #fb8c00;
  --marquee-color: #050505;
  --marque-bg: #fff1ca;
  --marquee-color: white;
  --marque-bg: #006719;
  --spacing-md: 1rem;
  --header-height: 100px; */
  --page-cover-width: 1920px;
  --max-screen-width: 1920px;
  --page-content-width: 1200px;
  --page-content-width-mb: 368px;
}

body {
  font-family: 'Libre Baskerville', serif;
  background-color: white;
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
}


@media (max-width: 368px) {
  .text-xs {
    font-size: 12px;
    /* ví dụ */
  }

  .p-xs {
    padding: 4px;
  }

}


@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-marquee {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

@media (max-width: 480px) {
  .animate-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
  }
}

/* .site-nav - đặt sau tailwind.css */
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  border-bottom: 2px solid transparent;
  color: #26A9E0;
  /* default text color (sáng hơn để nổi bật) */
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(38, 169, 224, 0.3);
  /* text-shadow nhẹ để nổi bật */
  transition: color .18s ease, border-color .18s ease, text-shadow .18s ease;
}

/* hover / focus -> active visual */
.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: #26A9E0;
  color: #26A9E0;
  text-shadow: 0 1px 4px rgba(38, 169, 224, 0.6);
  outline: none;
}

/* anchor đang active (class="active") */
.site-nav a.active {
  border-bottom-color: #26A9E0;
  color: #26A9E0;
  text-shadow: 0 1px 4px rgba(38, 169, 224, 0.6);
  font-weight: 700;
}

/* nếu icon là phần tử con có background image (giữ nguyên w-5 h-5 tailwind nếu muốn) */
.site-nav a .icon,
.site-nav a>div {
  display: inline-block;
  width: 1.25rem;
  /* tương đương w-5 */
  height: 1.25rem;
  /* tương đương h-5 */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* chọn hiển thị màu chữ cho label nếu bạn dùng span.label */
.site-nav a .label {
  transition: color .18s ease;
}


/* .site-nav-mb - đặt sau tailwind.css */
.site-nav-mb a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  /* border-bottom: 2px solid transparent; */
  color: #1f6fa5;
  /* default text color (will be overridden by active/hover) */
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}

/* hover / focus -> active visual */
.site-nav-mb a:hover,
.site-nav-mb a:focus {
  border-bottom-color: #26A9E0;
  color: #26A9E0;
  outline: none;
}

/* anchor đang active (class="active") */
.site-nav-mb a.active {
  /* border-bottom-color: #26A9E0; */
  color: #26A9E0;
}

/* nếu icon là phần tử con có background image (giữ nguyên w-5 h-5 tailwind nếu muốn) */
.site-nav-mb a .icon,
.site-nav-mb a>div {
  display: inline-block;
  width: 1.25rem;
  /* tương đương w-5 */
  height: 1.25rem;
  /* tương đương h-5 */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* chọn hiển thị màu chữ cho label nếu bạn dùng span.label */
.site-nav-mb a .label {
  transition: color .18s ease;
}

.section-row {
  max-width: var(--page-content-width);
  margin: "0 auto";
  padding: 0;
}

.page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;

}

.page-footer #footer {
  padding-top: 36px;
}

/* Đảm bảo footer container có cùng max-width với header và page-middle */
footer .container {
  max-width: var(--page-content-width, 1200px) !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Mobile: full width */
@media (max-width: 767px) {
  footer .container {
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Khi màn hình <= 768px (tablet/mobile), thay padding x */
@media (max-width: 1024px) {
  .section-row {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-footer #footer {
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  .section-row {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-footer #footer {
    padding-top: 18px;
  }
}

/* Nếu muốn nhỏ hơn nữa cho điện thoại <= 480px */
@media (max-width: 480px) {
  .section-row {
    padding-left: 6px;
    padding-right: 6px;
  }

  .page-footer #footer {
    padding-top: 12px;
  }
}

.contact-icon {
  width: 128px;
  /* mobile mặc định */
  height: 128px;
}

@media (min-width: 640px) {

  /* sm */
  .contact-icon {
    width: 144px;
    height: 144px;
  }
}

@media (min-width: 768px) {

  /* md */
  .contact-icon {
    width: 160px;
    height: 160px;
  }
}


/* ================= Header Styles ================= */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Header container */
.page-header {
  width: 100%;
  max-width: var(--page-content-width, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: transparent;
  min-height: 56px;
  position: relative;
  overflow: hidden;
}

/* Đường kẻ + bóng cho toàn chiều rộng */
.header-divider {
  width: 100%;
  max-width: var(--page-cover-width, 1920px);
  height: 2px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* ================= Logo Section ================= */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: fit-content;
  max-width: 161px;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ================= Navigation Section ================= */
.site-nav {
  display: none;
  /* Ẩn mặc định trên mobile */
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 13px;
  color: #26A9E0;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(38, 169, 224, 0.3);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: fit-content;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, text-shadow 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: #26A9E0;
  color: #26A9E0;
  text-shadow: 0 1px 4px rgba(38, 169, 224, 0.6);
  outline: none;
}

.site-nav a.active {
  border-bottom-color: #26A9E0;
  color: #26A9E0;
  text-shadow: 0 1px 4px rgba(38, 169, 224, 0.6);
}

.site-nav a .icon {
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}


/* ================= Right Header Buttons ================= */
.right-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: fit-content;
}

/* ================= Buttons Styles ================= */
.btn-signin,
.btn-signup {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  font-size: 13px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: 70px;
  height: 32px;
  padding: 0 12px;
}

.btn-signin {
  background-color: #26A9E0;
  color: white;
  border: none;
}

.btn-signin:hover {
  background-color: #1d8bb5;
}

.btn-signup {
  background-color: white;
  color: #26A9E0;
  border: 1px solid #26A9E0;
}

.btn-signup:hover {
  background-color: #26A9E0;
  color: white;
  border-color: transparent;
}

/* ================= Responsive Breakpoints ================= */

/* Mobile: 0 - 767px */
/* Logo + Buttons only, nav hidden */
@media (max-width: 767px) {
  .page-header {
    max-width: 100%;
    gap: 8px;
    padding: 8px 12px;
    min-height: 52px;
  }

  .page-middle {
    max-width: 100%;
  }

  .header-logo {
    max-width: 120px;
  }

  .logo-img {
    height: 36px;
    max-width: 120px;
  }

  .site-nav {
    display: none;
  }

  .right-header {
    gap: 6px;
  }

  .btn-signin,
  .btn-signup {
    min-width: 70px;
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
  }
}

/* Tablet: 768px - 900px - Compact */
@media (min-width: 768px) and (max-width: 900px) {
  .page-header {
    gap: 8px;
    padding: 8px 12px;
    min-height: 56px;
  }

  .header-logo {
    max-width: 120px;
  }

  .logo-img {
    height: 40px;
    max-width: 120px;
  }

  .site-nav {
    display: flex;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
  }

  .site-nav a {
    gap: 4px;
    padding: 4px 6px;
    font-size: 12px;
    flex-shrink: 1;
  }


  .site-nav a .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .right-header {
    gap: 6px;
  }

  .btn-signin,
  .btn-signup {
    min-width: 80px;
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
  }
}

/* Tablet: 901px - 1023px */
@media (min-width: 901px) and (max-width: 1023px) {
  .page-header {
    gap: 12px;
    padding: 8px 16px;
    min-height: 60px;
  }

  .header-logo {
    max-width: 140px;
  }

  .logo-img {
    height: 44px;
    max-width: 140px;
  }

  .site-nav {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .site-nav a {
    gap: 6px;
    padding: 6px 8px;
    font-size: 13px;
    flex-shrink: 1;
  }


  .site-nav a .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .right-header {
    gap: 6px;
  }

  .btn-signin,
  .btn-signup {
    min-width: 90px;
    height: 32px;
    font-size: 13px;
    padding: 0 12px;
  }
}

/* Desktop: 1024px - 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .page-header {
    gap: 20px;
    padding: 10px 20px;
    min-height: 71px;
  }

  .header-logo {
    max-width: 161px;
  }

  .logo-img {
    height: 50px;
    max-width: 161px;
  }

  .site-nav {
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .site-nav a {
    gap: 6px;
    padding: 8px 10px;
    font-size: 15px;
    flex-shrink: 1;
  }


  .site-nav a .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .right-header {
    gap: 8px;
  }

  .btn-signin,
  .btn-signup {
    min-width: 120px;
    height: 35px;
    font-size: 15px;
    padding: 0 18px;
  }
}

/* Large Desktop: 1280px+ */
@media (min-width: 1280px) {
  .page-header {
    gap: 24px;
    padding: 12px 24px;
  }

  .site-nav {
    display: flex;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .site-nav a {
    gap: 8px;
    padding: 8px 12px;
    font-size: 16px;
    flex-shrink: 1;
  }


  .site-nav a .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .right-header {
    gap: 10px;
  }

  .btn-signin,
  .btn-signup {
    min-width: 140px;
    height: 36px;
    font-size: 16px;
    padding: 0 20px;
  }
}

/* Extra Large Desktop: 1440px+ */
@media (min-width: 1440px) {
  .page-header {
    gap: 32px;
    padding: 12px 24px;
  }

  .site-nav {
    display: flex;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .site-nav a {
    gap: 8px;
    padding: 8px 14px;
    font-size: 17px;
    flex-shrink: 1;
  }


  .site-nav a .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .right-header {
    gap: 12px;
  }

  .btn-signin,
  .btn-signup {
    min-width: 158px;
    height: 36px;
    font-size: 17px;
    padding: 0 24px;
  }
}


/* ================= Base - hidden mobile (<768px) ================= */
.top-contact {
  display: none;
  /* ẩn mobile nhỏ */
}

/* ================= Breakpoint MD (768px – 1023px) ================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .top-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--page-content-width, 1200px);
    gap: 12px;
    margin: 0 auto;
  }

  .top-contact a {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    color: #25A9DF;
    height: 20px;
    transition: all 0.2s;
    /* hover color + font-size */
  }

  .top-contact a:hover {
    color: #1d8bb5;
    font-size: 22px;
    /* tăng nhẹ so với font gốc 20px */
  }

  .top-contact img {
    width: 2px;
    height: 24px;
  }
}

/* ================= Breakpoint LG (>=1024px) ================= */
@media (min-width: 1024px) {
  .top-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--page-content-width, 1200px);
    gap: 16px;
    margin: 0 auto;
  }

  .top-contact a {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
    color: #25A9DF;
    height: 24px;
    transition: all 0.2s;
  }

  .top-contact a:hover {
    color: #1d8bb5;
    font-size: 28px;
    /* tăng lớn hơn so với LG */
  }

  .top-contact img {
    width: 2px;
    height: 28px;
  }
}


/* Mặc định (mobile nhỏ) */
.page-middle {
  width: 100%;
  max-width: var(--page-content-width, 1200px);
}

.page-middle * {
  font-size: 12px;
}

/* >= 640px -> 14px */
@media (min-width: 640px) {
  .page-middle * {
    font-size: 14px;
  }
}

/* >= 768px -> 16px */
@media (min-width: 768px) {
  .page-middle * {
    font-size: 16px;
  }
}

/* >= 1024px -> 18px */
@media (min-width: 1024px) {
  .page-middle * {
    font-size: 18px;
  }
}


.footer-news-list {
  display: flex;
  gap: 16px;
  align-items: stretch !important;
}

.footer-news-item {
  flex: 1;
  overflow: hidden;
  transition: height 0.3s ease;
}

.footer-news-item-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.see-more-text {
  display: none !important;
}

.footer-news-item.expanded .see-more-text {
  display: inline !important;
}


footer {
  background: #fff;
  padding: 10px 0;
  position: relative
}

.footer-news-item-wrap {
  padding: 2px !important;
}

footer .footer-hr {
  margin: 6px 0;
}

/* >= 640px -> 14px */
@media (min-width: 640px) {
  .footer-news-item-wrap {
    padding: 4px !important;
  }

  footer .footer-hr {
    margin: 9px 0;
  }
}

/* >= 768px -> 16px */
@media (min-width: 768px) {
  .footer-news-item-wrap {
    padding: 6px !important;
  }

  footer .footer-hr {
    margin: 12px 0;
  }
}

/* >= 1024px -> 18px */
@media (min-width: 1024px) {
  .footer-news-item-wrap {
    padding: 8px !important;
  }

  footer .footer-hr {
    margin: 15px 0;
  }
}