@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap");
:root {
  --primary01: #5f87c1;
  --primary02: #fd735d;
  --secondary01: #eef5ff;
  --secondary02: #ffe2dd;
  --border: #d9d9d9;
  --neutral50: #f6f6f6;
}
html {
  scroll-behavior: auto !important;
}

.menu-header .nav-link {
  font-size: 20px;
  font-weight: 300;
  color: var(--primary01);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  transition: all 0.05s ease;
}

.nav-item .nav-link:hover,
.nav-item .nav-link:focus,
.nav-item .nav-link.active {
  font-weight: 300;
  color: var(--primary01);
}
.dropdown-menu .dropdown-item {
  font-weight: 300;
  color: var(--primary01);
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  color: var(--primary01);
  font-weight: bold;
}

.nav-link.active {
  background-color: transparent !important;
  color: var(--primary01) !important;
  border-bottom: 2px solid var(--primary01);
  border-radius: 0 !important;
  font-weight: bold;
  border-bottom-color: var(--primary01);
}

.menu-header .nav-link:hover::after,
.menu-header .nav-link.active::after {
  width: 100%;
}

.menu-header .nav-link:hover,
.menu-header .nav-link.active {
  color: var(--primary01) !important;
  font-weight: bold;
}
@media (max-width: 1000px) {
  .navbar-nav .nav-link {
    display: none;
  }
  .navbar-nav .nav-link.active {
    display: block;
  }
}
.intro-section {
  position: relative;
  /* color: #ffffff; */
}
.custom-tab {
  color: #000000 !important;
}
/* CSS cho tab active */
.custom-tab.active {
  color: var(--primary01);
  background-color: var(--primary02);
  border-color: var(--primary02);
  font-weight: bold !important;
}

.intro-section .intro-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/intro-background.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.3;
}

.intro-section .container {
  position: relative;
  z-index: 1;
}
.intro-img {
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}
.card-text {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.news-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.card {
  display: flex;
  flex-direction: column;
}

.primary-01-btn {
  padding-left: 10px;
  padding-right: 10px;
  font-weight: bold;
  display: inline-block;
  height: 50px;
  line-height: 50px;
  background-color: #efecec;
  color: black;
  /* border: 1px solid black; */
  transition: all 0.3s;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}
.primary-01-btn:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  background-color: var(--primary01);
  color: white;
  border-color: var(--primary01);
}
.title-primary-01 {
  color: var(--primary01);
  font-weight: bold;
}
.news-title {
  cursor: pointer;
}
.news-thumb {
  cursor: pointer;
}
.discover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% auto;
  background: url("../images/discover-bg.png") center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}
.primary-01-text {
  color: var(--primary01);
}
.explore-card {
  background-color: #f0f6ff; /* light blue */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  max-width: 342px;
  max-height: 142px;
  color:#000000;
}

.explore-card:hover {
  background-color: var(--primary01);
  color: white;
}

.explore-card h5 {
  font-weight: bold;
  font-size: 1rem;
  margin: 0;
}

.partner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.partner-section .partner-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/partner-background.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.3;
}

.partner-section .container {
  position: relative;
  z-index: 1;
}

.partner-logo {
  width: 166px;
  height: 171px;
  border-radius: 8px;
  opacity: 1;
  transform: rotate(0deg);
  object-fit: contain;
  padding: 8px;
  background: transparent;
  mix-blend-mode: multiply;
}

.partner-section .container {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  position: relative;
}
.partner-section .container.show {
  opacity: 1;
  transform: translateY(0);
}

.logo-box {
  width: 166px;
  height: 171px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero {
  position: relative;
}

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

.card-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px;
  width: 100%;
}

.card {
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.lookup-btn {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 18px;
  display: inline-block;
  height: 35px;
  line-height: 35px;
  background-color: var(--primary01);
  color: white;
  transition: all 0.2s;
  border-radius: 4px;
  text-decoration: none;
  border: none;
}
.lookup-btn:hover {
  background-color: white;
  color: var(--primary01);
  border-color: var(--primary01);
}

.hero-text {
  opacity: 0;
  transform: translateY(-40px);
  transition: all 0.8s ease-out;
  position: absolute;
  top: 20px;
  width: 100%;
  left: 50%;
  transform: translate(-50%, -40px);
  text-align: center;
  z-index: 10;
}

.hero-text.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-text h1 {
  font-size: clamp(30px, 5vw, 100px);
  font-weight: bold;
}

.hero-text .blue {
  color: #5b7db1;
}

.hero-text .orange {
  color: #ff6b5c;
}
.parallax {
  position: relative;
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.intro-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/intro-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  opacity: 0.3;
  z-index: -1;
}
.discover-bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  opacity: 0.3;
  z-index: -1;
}
.partner-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.partner-bg {
  position: absolute;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  opacity: 0.3;
  z-index: 0;
}

.partner-section .container {
  position: relative;
  z-index: 1; /* để content nổi lên trên */
}

.intro-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh; /* dài bằng màn hình */
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.intro-img,
#intro img {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.intro-img.show,
#intro img.show {
  opacity: 1;
  transform: translateY(0);
}
.explore-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.explore-card.show {
  opacity: 1;
  transform: translateY(0);
}

.news-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  position: relative; /* giữ layout cố định */
}

.news-card.show {
  opacity: 1;
  transform: translateY(0);
}
