html {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
  /*max-width: 100vw;*/
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  overflow-x: hidden;
  max-width: 100vw;
}

#videoIntro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: transform 1s ease, opacity 1s ease;
}

#videoIntro.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#introVideo {
  width: 100vw;
  height: auto;
  object-fit: cover;
}

#playBtn {
  position: absolute;
  top: 48%;
  left: 48%;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  z-index: 10000;
  border: none;
  transition: all 0.2s ease;
}

#playBtn i {
  margin-right: 10px;
  color: white;
}

/* Thêm hiệu ứng khi hover */
#playBtn:hover {
  transform: scale(1.2);
}


#skipBtn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background: #0A4D3C;
  color: #ffe9ab;
  font-weight: bold;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 1vw;
  transition: all 0.5s ease;
  z-index: 10000;
  transform: translateX(-50%);
}

#skipBtn:hover {
  letter-spacing: 3px;
  background-color: #ffe9ab;
  color: #0A4D3C;
  box-shadow: #0A4D3C 0 10px 35px 0;
}

#skipBtn:active {
  letter-spacing: 2px;
  background-color: #ffe9ab;
  color: #0A4D3C;
  box-shadow: #FCB92C 0 0 0 0;
  transition: 10ms;
}

#mainContent {
  opacity: 0;
  transform: translateY(100px);
  transition: all 1s ease;
}

#mainContent.show {
  opacity: 1;
  transform: translateY(0);
}

.content {
  position: relative;
  /*padding-top: 70px;*/
  display: flex;
  flex-direction: column;
  font-family: "My Font", serif;
}

.content > * {
  position: relative;
  z-index: 2;
}

.main-home {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
}

/*trang chủ*/

.home-container {
  display: flex;
  position: relative;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: #C70E1C;
}

@font-face {
  font-family: 'My Font';
  src: url('../lib/font/1FTV-HF-Gesco.ttf') format('truetype');
}

.home-back {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

}

.home-top-img img {
  filter: drop-shadow(0px 35px 20px rgb(0, 0, 0));
}

.home-back .back-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 50%;
}

.home-back .phu-image {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transform: translateX(-50%);
}

.home-back .mobileBack {
  display: none;
}

.home-back .des {
  display: block;
}

.home-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.home-top .home-top-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-top-text h1 {
  width: 70%;
  font-size: 4vw;
  text-align: center;
  line-height: 1;
  letter-spacing: 4px;
  font-family: 'My Font', serif;
  color: #C70E1C;
  margin-top: 70px;
}

.home-top-text h2 {
  width: 70%;
  font-size: 3.2vw;
  text-align: center;
  letter-spacing: 3px;
  font-family: 'My Font', serif;
  color: #0A4D3C;
}

.home-top .home-top-img {
  position: relative;
  width: 62vw;
  height: 46vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-top .home-top-img img {
  width: 22vw;
}

.home-top .home-top-img .bunbo-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.home-top .home-top-img .com-image {
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.home-top .home-top-img .banhmi-image {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.home-top p {
  width: 100%;
  font-size: 2vw;
  text-align: center;
  letter-spacing: 3px;
  font-family: 'My Font', serif;
  color: #FCB92C;
}

.home-top a {
  width: 100%;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1vh;
  margin-bottom: 20px;
}

.button-des {
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background: #0A4D3C;
  color: #ffe9ab;
  font-weight: bold;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 1vw;
  transition: all 0.5s ease;
}

.button-des:hover {
  letter-spacing: 3px;
  background-color: #ffe9ab;
  color: #0A4D3C;
  box-shadow: #FCB92C 0 7px 29px 0;
}

.button-des:active {
  letter-spacing: 3px;
  background-color: #ffe9ab;
  color: #0A4D3C;
  box-shadow: #FCB92C 0 0 0 0;
  transform: translateY(10px);
  transition: 100ms;
}

/*Việt Nam*/

.vietnam-con {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-family: 'My Font', serif;
  position: relative;
  background: #ffe9ab;
}

.vietnam-con .title {
  margin: 40px 0;
  letter-spacing: 1px;
  font-size: 60px;
  color: #C70E1C;
}

.vietnam-con .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 50px;
}

.vietnam-con .grid .vncard {
  background-color: #FFEFD6;
  padding: 20px;
  text-align: left;
  border: 4px solid #FCB92C;
  width: 17vw;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #0A4D3C;
  transition: all 0.2s ease;
  border-radius: 10px;
}

.vietnam-con .grid .vncard img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.vietnam-con .grid .vncard h1 {
  font-size: 2.5vw;
  font-weight: bold;
  color: #0A4D3C;
}

.vietnam-con .grid .label {
  font-size: 1.2vw;
  font-weight: 900;
  color: #0A4D3C;
  width: 100%;
}

.vietnam-con .grid .desc {
  font-size: 1.1vw;
  margin-top: auto;
  line-height: 1.5;
  color: #0A4D3C;
  text-align: justify;
  width: 100%;
}

.vietnam-vid {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: 'My Font', serif;
}

.vn-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.vn-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-text {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.66);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: bold;
  font-size: 2.8vh;
  letter-spacing: 2px;
  background: linear-gradient(to bottom,
  #FFEFD6 0%,
  rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /*margin: 4vw 0 0 0;*/
}

.vertical2 {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: bold;
  font-size: 2.8vh;
  letter-spacing: 2px;
  background: linear-gradient(to bottom,
  rgba(255, 255, 255, 0.34) 0%,
  #FFEFD6 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /*margin: 0 0 4vw 0;*/
}

.discover {
  top: calc(50% - 310px);
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  color: #FFEFD6; /* Màu chữ "Khám Phá Việt Nam" */
}

strong {
  color: #ffb957;
  font-weight: bold; /* Đảm bảo chữ in đậm */
}

.dagestan {
  bottom: calc(50% - 290px);
  left: 50%;
  transform: translateX(-50%);
}

.vietnam-vid .vn-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.vietnam-vid .vn-content p {
  width: 40%;
  font-size: 1.2vw;
  line-height: 1.6;
  color: #FFEFD6;
  text-align: justify;
}

/*map*/

.map-index {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 90vh;
  padding: 40px;
  background: #FFEFD6;
}

.map-show {
  flex: 1;
  width: 80%;
  height: 80%;
  flex-shrink: 0;
  /*display: flex;*/
  /*flex-direction: column;*/
  /*justify-content: center;*/
  /*align-items: center;*/
  /*text-align: center;*/
}

.map-tabs-choice {
  display: flex;
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 1px 0 rgba(24, 94, 224, 0.15), 0 6px 12px 0 rgba(24, 94, 224, 0.15);
  padding: 10px;
  border-radius: 20px 20px 0 0;
  gap: 20px;
}

.map-tabs-choice .tab {
  padding: 10px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background: #0A4D3C;
  color: #ffe9ab;
  font-weight: bold;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 1vw;
  transition: all 0.5s ease;
}

.map-tabs-choice .tab:hover {
  letter-spacing: 2px;
  box-shadow: #FCB92C 0 7px 29px 0;
}

.map-tabs-choice .tab:active {
  letter-spacing: 3px;
  background-color: #ffe9ab;
  color: #0A4D3C;
  box-shadow: #FCB92C 0 0 0 0;
  transform: translateY(5px);
  transition: 100ms;
}

.tab  {
  z-index: 2;
}

.active-tab {
  background: #FCB92C;
  color: #C70E1C;
  font-weight: bold;
}

.gg-map {
  display: flex;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.json-map {
  display: flex;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.active {
  opacity: 1;
}

.gg-map:not(.active) {
  display: none;
}

.json-map:not(.active) {
  display: none;
}

.map-gg {
  width: 100%;
  height: 100%;
  border-radius: 0 0 10px 10px;
  border: 5px solid #0A4D3C;
}

.map-function {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-left: 40px;
}

.map-function-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 30px;
  margin-bottom: 20px;
  color: #0A4D3C;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.map-function-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: fit-content;
  border-radius: 10px;
  background: #ffffff;
}

.map-tabs-choice {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.input-map {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 0 0 0 10px;
  height: 40px;
  font-size: 2rem;
  border: 3px solid #0A4D3C;
}

.input-map input {
  border: none;
  background: rgba(255, 255, 255, 0);
  margin: 0 10px;
  font-size: 1.2vw;
  font-family: 'My Font', serif;
}

.input-map input:focus {
  outline: none;
  border: none;
}

.input-map .button-enter {
  background: #0A4D3C;
  color: #FFEFD6;
  width: 50px;
  height: 40px;
  border-radius: 0 20px 20px 0;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.5s ease;
}

.input-map .button-enter:hover {
  background: #FCB92C;
  color: #0A4D3C;
  font-size: 1.3rem;
}

.map-go-to {
  height: 40px;
  width: fit-content;
  padding: 10px;
  text-decoration: none;
  background: #0A4D3C;
  color: #FFEFD6;
  border-radius: 20px;
  cursor: pointer;
  display: none;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 1.2vw;
  transition: all 0.5s ease;
}
.map-go-to.active {
  display: flex;
}
.map-go-to i {
  font-size: 20px;
  width: auto;
  height: 100%;
}
.map-go-to:hover {
  background: #FCB92C;
  color: #0A4D3C;
}

.map-func-button {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 40px;
  gap: 10px;
}

.map-func-button .button-nav {
  background: rgba(255, 255, 255);
  color: #0A4D3C;
  width: 40px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: all 0.5s ease;
}

.map-func-button .button-nav:hover {
  background: #FCB92C;
  color: #0A4D3C;
}

.map-func-show {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: fit-content;
  max-width: 1000px;
  overflow-x: scroll;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 24px;
  -webkit-overflow-scrolling: touch; /* Hỗ trợ cuộn mượt trên WebKit */
  touch-action: pan-x;
  overflow-y: hidden;
}
.map-func-show::-webkit-scrollbar {
  height: 8px;
}
.map-func-show::-webkit-scrollbar-track {
  background: #a8a8a8; /* Màu nền thanh cuộn */
  border-radius: 4px;
}
.map-func-show::-webkit-scrollbar-thumb {
  background: #FCB92C; /* Màu thanh cuộn */
  border-radius: 4px;
}
.map-func-show::-webkit-scrollbar-thumb:hover {
  background: #04503e; /* Màu khi hover */
}

.map-func-show .map-func-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 270px;
  height: 400px;
  background: #ffffff;
  border: 4px solid #FCB92C;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.5s ease;
  position: relative;
  flex-shrink: 0;
}

.map-func-show .map-func-card:hover {
  background: #FCB92C;
  border: 4px solid #FCB92C;
}

.map-func-show .map-func-card img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: all 0.5s ease;
  overflow: hidden;
}

.map-func-show .map-func-card h2 {
  color: #0A4D3C;
  font-weight: bold;
  width: 100%;
  text-align: left;
  font-size: 2rem;
}

.map-func-show .map-func-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn tối đa 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  text-overflow: ellipsis; /* Thêm dấu ba chấm khi vượt quá */
  line-height: 1.5em;
  max-height: 3rem;
  margin: 10px;
  font-size: 16px;
  color: #0A4D3C;
}

.map-btn-more {
  padding: 15px 20px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid #0A4D3C;
  background: #ffe9ab;
  color: #0A4D3C;
  font-weight: bold;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 12px;
  position: absolute;
  width: 80%;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transform: translate(-50%, 125%);
  transition: all 0.3s ease;
}

.map-btn-more:hover {
  letter-spacing: 2px;
  background-color: #0A4D3C;
  color: hsl(0, 0%, 100%);
  border: 2px solid #ffe9ab;
  box-shadow: rgb(208, 26, 26) 0 7px 29px 0;
}

.map-btn-more:active {
  letter-spacing: 1.7px;
  background-color: #0A4D3C;
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(208, 26, 26) 0 0 0 0;
  transform: translateY(10px);
  transition: 100ms;
}

.map-func-card:hover {
  border-color: #0A4D3C;
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.map-func-card:hover .map-btn-more {
  opacity: 1;
  transform: translate(-50%, 50%);
}

/*3 miền */

.mien-container {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: #FFEFD6;
  padding: 20px 0;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  width: 80%;
}

.reverse {
  flex-direction: row-reverse;
  /*text-align: right;*/
}

.row-top {
  align-items: flex-start;
}

.row-middle {
  align-items: center;
}

.row-bottom {
  align-items: flex-end;
}

.box-text {
  display: flex;
  flex: 1;
  width: 100%;
}

.letter {
  font-size: 5vw;
  font-weight: bold;
  color: #C70E1C;
  flex-shrink: 0;
  margin-right: 20px;
  /*width: 80px;*/
}

.text {
  text-align: justify;
}

.text h2 {
  margin: 0;
  font-size: 2vw;
  font-weight: bold;
  color: #C70E1C;
}

.text p {
  width: 100%;
  margin-top: 1vw;
  font-size: 1.1vw;
  line-height: 1.6;
}

.text p b {
  color: #0A4D3C;
}

.text a {
  text-decoration: none;
  width: 100%;
}

.text .btn-seemore {
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  margin-top: 20px;
  background: #ffe9ab;
  color: #0A4D3C;
  font-weight: bold;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.5s ease;
}

.text .btn-seemore:hover {
  letter-spacing: 3px;
  background-color: #0A4D3C;
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(208, 26, 26) 0 7px 29px 0;
}

.text .btn-seemore:active {
  letter-spacing: 3px;
  background-color: #0A4D3C;
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(208, 26, 26) 0 0 0 0;
  transform: translateY(10px);
  transition: 100ms;
}

.map {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  width: 100%;
}

.animate-row .box-text {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.4s ease-out;
}

.animate-row .map {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.4s ease-out;
}

.animate-row.show-up .box-text,
.animate-row.show-up .map {
  opacity: 1;
  transform: translateX(0);
}

.map iframe {
  width: 93%;
  height: 60vh;
}

.dish-link {
  color: #0A4D3C;
  font-weight: bold;
  text-decoration:none;
}

.dish-link:hover {
  color: #C70E1C;
  text-decoration: underline;
}

/*Giới thiệu*/

.we {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: #FCB92C;
  color: #000000;
  flex-direction: row;
  transform: translateY(50px);
  transition: all 0.4s ease;
}

.we .we-text {
  display: flex;
  flex-direction: column;
  flex: 4;
  width: 100%;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('../IMG/yeu-to-lich-su.jpg') center/cover no-repeat;
  color: #ffe9ab;
  padding: 0 50px;
}

.we .we-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  flex-direction: column;
  flex: 3;
  padding: 20px 40px;
}

.we .we-grid .card {
  position: relative;
  /*flex: 1;*/
  width: 100%;
  height: 43vh;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s ease;
}

.we .we-grid .card img {
  top: 0;
  left: 0;
}

.we-grid .c1 { grid-area: 2 / 1 / 4 / 2; }
.we-grid .c2 { grid-area: 1 / 2 / 3 / 3; }
.we-grid .c3 { grid-area: 3 / 2 / 5 / 3; }
.we-grid .c4 { grid-area: 2 / 3 / 4 / 4; }
/*.we-grid .c5 { grid-area: 1 / 1 / 2 / 2; }*/
/*.we-grid .c6 { grid-area: 4 / 1 / 5 / 2; }*/
/*.we-grid .c7 { grid-area: 1 / 3 / 2 / 4; }*/
/*.we-grid .c8 { grid-area: 4 / 3 / 5 / 4; }*/

.we-grid .c5, .c7 {
  background: linear-gradient(to top, #0A4D3C, #0A4D3C, rgba(10, 77, 60, 0));
}

.we-grid .c6, .c8 {
  background: linear-gradient(to bottom, #0A4D3C, #0A4D3C, rgba(10, 77, 60, 0));
}

.we-text h2 {
  width: 80%;
  text-align: left;
  font-size: 4vw;
  z-index: 2;
  line-height: 1;
}

.we-text p {
  width: 80%;
  font-size: 1.6vw;
  text-align: left;
  margin: 10px 0;
  z-index: 2;
}

.card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 0;
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  padding: 10px;
  z-index: 2;
  background: linear-gradient( rgba(199, 14, 28, 0.05), #C70E1C, #c70e1c);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 0 0 10px 10px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.card-text h2 {
  margin-top: 4vh;
  width: 100%;
  font-size: 1.2vw;
}

.card-text p {
  opacity: 0;
  transition: all 0.3s ease-in-out;
  transform: translateY(2vh);
  width: 100%;
  font-size: 0.8vw;
}

.cards .card:hover {
  transform: scale(1.1, 1.1);
}

.cards:hover > .card:not(:hover) {
  filter: blur(10px);
  transform: scale(0.9, 0.9);
}

.card:hover .card-text {
  top: 75%;
  height: auto;
}

.card:hover .card-text h2 {
  line-height: 2vh;
}

.card:hover .card-text p {
  opacity: 1;
  transform: translateY(0);
}

.we.show-up {
  opacity: 1;
  transform: translateY(0);
}

.cards.show-up-delayed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  #videoIntro {
    height: 100%;
  }

  #skipBtn {
    bottom: 10%;
    font-size: 4vw;
  }

  .home-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .home-back .back-image {
    height: 50%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .home-back .phu-image {
    height: 80%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .home-back .des {
    display: none;
  }

  .home-back .mobileBack {
    display: block;
  }

  .home-top .home-top-text h1 {
    font-size: 10vw;
    width: 100%;
  }

  .home-top .home-top-text h2 {
    margin-top: 4vh;
    font-size: 8vw;
    width: 100%;
  }

  .home-top .home-top-img {
    width: 100%;
    height: 30vh;
  }

  .home-top .home-top-img img {
    width: 40vw;
  }

  .home-top p {
    font-size: 5vw;
  }

  .home-top a {
  }

  .home-top button {
    font-size: 3.7vw;
    padding: 15px 10px;
    margin-top: 20px;
    width: 90%;
  }

  /*Việt Nam*/

  .vietnam-con .grid {
    grid-template-columns: 1fr; /* Một cột */
    grid-template-rows: repeat(5, auto); /* Năm dòng */
    justify-items: center;
    align-items: center;
  }

  .vietnam-con .grid .vncard {
    background-color: #FFEFD6;
    padding: 20px;
    text-align: left;
    border: 4px solid #FCB92C;
    width: 70%;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #0A4D3C;
  }

  .vietnam-con .grid .vncard h1 {
    font-size: 8vw;
    font-weight: bold;
    color: #0A4D3C;
  }

  .vietnam-con .grid .label {
    font-size: 8vw;
    font-weight: 900;
    color: #0A4D3C;
    width: 100%;
  }

  .vietnam-con .grid .desc {
    font-size: 5vw;
    margin-top: auto;
    line-height: 1.5;
    color: #0A4D3C;
    text-align: justify;
    width: 100%;
  }

  .vietnam-con .content p {
    width: 80%;
    font-size: 3vw;
    line-height: 1.6;
    color: #333;
    text-align: justify;
  }

  /*3 miền*/

  .row,
  .reverse {
    flex-direction: column !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .letter {
    font-size: 20vw;
  }

  .box-text .text h2 {
    font-size: 5vw;
  }

  .box-text .text p {
    font-size: 3vw;
  }

  .row .map iframe {
    width: 100%;
    height: 60vh;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cards {
    flex-wrap: wrap;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    gap: 10px;
  }

  .card {
    width: calc(50% - 5px);
    height: 30vh;
  }

  .vietnam-vid .vn-content p {
    width: 90%;
    font-size: 4vw;
  }

  /*map*/

  .map-index {
    flex-direction: column;
    height: calc(100vh + 30vh);
  }

  .map-gg {
    height: 85%;
  }

  .map-show {
    width: 100%;
    height: 100%;
  }

  .map-function {
    margin: 0;
  }

  .map-function-top {
    flex-direction: column;
  }

  .button-nav i {
    font-size: 5rem;
  }

  .input-map {
    width: 100%;
    height: 50px;
  }

  .input-map input {
    width: 100%;
    font-size: 3.2vw;
  }

  .input-map .button-enter {
    height: 50px;
  }

  .map-func-show {
    height: 50vh; /* Giảm chiều cao để phù hợp màn hình nhỏ */
    padding: 16px; /* Giảm padding */
    gap: 15px; /* Giảm khoảng cách giữa các card */
    max-width: 100%; /* Chiếm toàn bộ chiều rộng */
  }

  .map-func-show .map-func-card {
    width: 60vw; /* Card chiếm 60% chiều rộng màn hình để hiển thị 1-2 card mỗi lần */
    height: 85%; /* Giảm chiều cao card */
    padding: 8px; /* Giảm padding trong card */
  }

  .map-func-show .map-func-card img {
    width: 50vw; /* Giảm kích thước ảnh */
    height: 25vh; /* Giảm chiều cao ảnh */
  }

  .map-func-show .map-func-card h2 {
    font-size: 1.5rem; /* Giảm kích thước chữ tiêu đề */
  }

  .map-func-show .map-func-card p {
    font-size: 14px; /* Giảm kích thước chữ mô tả */
    margin: 8px; /* Giảm margin */
    -webkit-line-clamp: 2; /* Giảm số dòng hiển thị */
    max-height: 3em; /* Điều chỉnh chiều cao tối đa cho 2 dòng */
  }

  .map-func-button {
    gap: 8px; /* Giảm khoảng cách giữa các nút */
  }

  .button-nav {
    width: 36px; /* Giảm kích thước nút */
    height: 36px;
  }

  .button-nav i {
    font-size: 1.2rem; /* Giảm kích thước icon */
  }
  .map-tabs-choice .tab {
    font-size: 2vw;
  }
  .map-go-to {
    font-size: 2vw;
  }

  /*Giới thiệu */

  .we {
    flex-direction: column;
  }

  .we .we-text {
    flex: 1;
    height: 100%;
    padding: 20px;
  }

  .we .we-text h2 {
    font-size: 11vw;
  }

  .we .we-text p {
    font-size: 4vw;
    width: 100%;
  }

  .we .we-grid {
    flex: 1;
    height: 100%;
  }

  .cards {
    flex-wrap: wrap;
    width: 90%;
  }

  .card {
    width: 40vw;
    height: 30vh;
  }

  .we {
    height: fit-content;
  }

  .we .we-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    width: 100%;
  }

  .we-grid .c1 { grid-area: 1 / 1 / 2 / 2; }
  .we-grid .c2 { grid-area: 1 / 2 / 2 / 3; }
  .we-grid .c3 { grid-area: 2 / 1 / 3 / 2; }
  .we-grid .c4 { grid-area: 2 / 2 / 3 / 3; }

  .we .we-grid .card {
    position: relative;
    width: 100%;
    height: 30vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s ease;
  }

  .we-text p {
    width: 80%;
    font-size: 1.6vw;
    text-align: left;
    margin: 10px 0;
    z-index: 2;
  }

  .card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 0;
  }

  .card-text h2 {
    margin: 0;
    font-size: 3.5vw;
  }

  .card-text p {
    opacity: 1;
    transform: translateY(0);
    font-size: 2.4vw;
  }
}

@media (max-width: 670px) {
  .about-us h2 {
    font-size: 30px;
  }

  .about-us p {
    font-size: 16px;
  }

  .about-four {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 0;
    gap: 20px;
  }

  .about-item img {
    width: 80px;
    height: 80px;
    border-radius: 80px;
  }

  .about-item-text h2 {
    font-size: 22px;
  }

  .about-item-text p {
    margin: 0;
  }
}

@media (min-width: 671px) {
  .for-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    width: auto;
  }

  .mobile-menu {
    display: none !important; /* ẩn đi menu mobile */
  }
}
