/* === Hero Section === */
.hero-section {
  margin-top: 0px;
  position: relative;
  width: cover;
  height: 70vh;
  background: linear-gradient(0deg, rgba(115, 111, 78, 0.24), rgba(115, 111, 78, 0.24)),
              url('images/City.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 5px;
  padding-right: 5px;
  padding: clamp(10px, 5vw, 40px);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.text-primary {
  font-family: 'Roboto', sans-serif;
  color: #C92728 !important;
  font-size: clamp(40px, 6vw, 88px);
  margin: 0;
  word-wrap: inherit;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
}

.text-secondary {
  font-family: 'Roboto', sans-serif;
  color: #1D2F6F!important;
  font-size: clamp(40px, 6vw, 88px);
  margin: 0;
  line-height: 1.2;
  text-align: center; 
  word-wrap: inherit;
  text-overflow: ellipsis;
}

.info-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: clamp(10px, 3vw, 30px);
  margin: 20px auto;
  border-radius: 8px;
  max-width: 100%;
}

.info-text {
  color: rgba(5, 19, 29, 0.8);
  font-size: clamp(14px, 2.5vw, 24px);
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.6;
  text-align: center;
}

/* Button */
.custom-button {
  background-color: #C92728;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
}

.custom-button:hover {
  background-color: #a52222;
  color: #fff;
}

.hero-custom-button {
  background-color: #C92728;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
}

.hero-custom-button:hover {
  background-color: #a52222;
  color: #fff;
}

/* === section trust === */

.section-trust {
  background-color: #FFFAF8;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
}

.text-blue {
  color: #1D2F6F;
}

.text-pink {
  color: #E91E63;
}

.icon {
  width: clamp(20px, 4vw, 40px); /* Điều chỉnh kích thước icon theo chiều rộng màn hình */
  margin-right: 8px;  /* Khoảng cách giữa icon và số */
}

h4 {
  font-size: clamp(1rem, 3vw, 2rem);  /* Điều chỉnh kích thước chữ số */
  font-weight: bold;  /* In đậm số */
  display: flex;
  align-items: center;
}

p {
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);  /* Điều chỉnh kích thước chữ mô tả */
  color: #555;  /* Màu chữ cho phần mô tả */
}

.section-desc {
  font-size: 1rem;
  color: #333;
  margin-top: 1rem;
  text-align: justify;
  padding-left: 3rem;
}
.img-fluid {
  width: 100%;
  height: auto;
  
}

.value-box {
  position: absolute;
  bottom: -20px;
  left: -20%;
  right: 0;
  width: 450px;
  padding: 20px;
  background-color: #fff;
  z-index: 10;

}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}
@media (max-width: 768px) {
  .text-primary, .text-secondary {
    font-size: 2rem; /* Có thể vẫn quá lớn nếu container chỉ còn ~350px */
  }
}
@media (max-width: 768px) {
  .col-md-6 {
    position: relative;  /* Đảm bảo box nằm trong phạm vi container */
  }

  .value-box {
    position: relative;   /* Để box không bị cố định */
    margin-left: 20px;    /* Khoảng cách với ảnh */
    top: 0;               /* Không bị đẩy lên */
    left: 0;              /* Không bị che */
    width: auto;          /* Cho phép box co giãn */
    max-width: 100%;      /* Đảm bảo box không vượt quá chiều rộng */
  }
}

/* strenght section*/

section-strength {
  background-color: #fffaf88e;
}

.title-center {
  display: flex;
  justify-content: center; /* Căn giữa tiêu đề theo chiều ngang */
  align-items: center;     /* Căn giữa theo chiều dọc */
  text-align: center;      /* Căn giữa chữ */
  font-size: 2rem;
  font-weight: bold;
  color: #E91E63;          /* Màu đỏ cho tiêu đề */
  text-transform: uppercase;
  margin-bottom: 30px;     /* Khoảng cách dưới */
  padding-top: 40px;       /* Khoảng cách trên */
}


.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Thêm hiệu ứng cho box-shadow khi hover */
}

.card:hover {
  transform: translateY(-10px); /* Hiệu ứng hover */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1); /* Hiệu ứng bóng đổ */
}

.card-title {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: bold;
  color: #E91E63; /* Màu đỏ cho tiêu đề */
}

.card-text {
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  color: #333;
}

@media (max-width: 768px) {
  .title-center {
    font-size: 1.5rem; /* Chữ nhỏ hơn trên màn hình nhỏ */
  }

  .card-title {
    font-size: 1.125rem;
  }

  .card-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .title-center {
    font-size: 2rem; /* Chữ nhỏ hơn trên các màn hình rất nhỏ */
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .title-center {
    font-size: 1.5rem; /* Chữ nhỏ hơn trên màn hình nhỏ */
  }
}

@media (max-width: 576px) {
  .title-center {
    font-size: 1.2rem; /* Chữ nhỏ hơn trên các màn hình rất nhỏ */
  }
}

@media (max-width: 768px) {
  .section-strength img {
    width: 100%;  /* Đảm bảo ảnh hiển thị đầy đủ và thu phóng trên các màn hình nhỏ */
  }
}

/* === Carousel === */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@900&family=Noto+Sans&display=swap");

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  background-color: #FFFAF8;
  background: linear-gradient(145deg, #ffeeee 0%, #FFFAF8 76%);
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  min-height: 100vh;
}

/* Content */

.content {
  padding-left: 120px;
  color: #ffffff7e;
  user-select: none;
}

.content h1 {
  
  font-size: clamp(5rem, 4vw, 99rem);
  font-weight: 700;
  background: -webkit-linear-gradient(0deg, #f76591, #ffc16f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 36px;
  padding-left: 0px;
}

.content p {
  font-size: clamp(1rem, 4vw, 2rem);
  line-height: 1.6;
  padding-right: 25px;
  text-align: justify;
}

.btn {
  background-color: #f76591;
  background-image: linear-gradient(-180deg, #ffc16f, #f76591);
  font-size: clamp(0.8rem, 8vw, 0.9rem);
  font-weight: 600;
  color: #fff;
  width: max-content;
  outline: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  margin-top: 26px;
  text-align: center;
  transform: scale(1);
  transition: all 0.2s ease-in;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.btn:hover {
  box-shadow: 0 4px 10px rgba(247, 101, 145, 0.5);
  transform: scale(0.98);
}

/* Stacked Cards */

.stack {
  position: relative;
}

.card {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 350px;
  height: 500px;
  border-radius: 2rem;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.25),
    0 15px 20px 0 rgba(0, 0, 0, 0.125);
  transition: transform 0.3s ease; /* Smooth transition for dragging */
  user-select: none;
  cursor: grab; /* Indicate draggable element */
}

.card:active {
  cursor: grabbing; /* Change cursor when dragging */
}

.card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  pointer-events: none;
}

.card:nth-last-child(n + 5) {
  --x: calc(-50% + 90px);
  transform: translate(var(--x), -50%) scale(0.85);
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.01);
}

.card:nth-last-child(4) {
  --x: calc(-50% + 60px);
  transform: translate(var(--x), -50%) scale(0.9);
}

.card:nth-last-child(3) {
  --x: calc(-50% + 30px);
  transform: translate(var(--x), -50%) scale(0.95);
}

.card:nth-last-child(2) {
  --x: calc(-50%);
  transform: translate(var(--x), -50%) scale(1);
}

.card:nth-last-child(1) {
  --x: calc(-50% - 30px);
  transform: translate(var(--x), -50%) scale(1.05);
}

.card:nth-last-child(1) img {
  box-shadow: 0 1px 5px 5px rgba(255, 193, 111, 0.5);
}

.swap {
  animation: swap 1.3s ease-out forwards;
}

@keyframes swap {
  30% {
    transform: translate(calc(var(--x) - 250px), -50%) scale(0.85) rotate(-5deg) rotateY(65deg);
  }
  100% {
    transform: translate(calc(var(--x) - 30px), -50%) scale(0.5);
    z-index: -1;
  }
}

/* Media queries for keyframes */

@media (max-width: 1200px) {
  @keyframes swap {
    30% {
      transform: translate(calc(var(--x) - 200px), -50%) scale(0.85) rotate(-5deg) rotateY(65deg);
    }

    100% {
      transform: translate(calc(var(--x) - 30px), -50%) scale(0.5);
      z-index: -1;
    }
  }
}

@media (max-width: 1050px) {
  @keyframes swap {
    30% {
      transform: translate(calc(var(--x) - 150px), -50%) scale(0.85) rotate(-5deg) rotateY(65deg);
    }

    100% {
      transform: translate(calc(var(--x) - 30px), -50%) scale(0.5);
      z-index: -1;
    }
  }
}

/* Media queries for other classes */

@media (max-width: 1200px) {
  .content {
    padding-left: 80px;
  }

  .content p {
    padding-right: 40px;
  }

  .card {
    width: 250px;
    height: 380px;
  }
}

@media (max-width: 1050px) {
  .content {
    padding-left: 60px;
  }

  .content p {
    line-height: 1.5;
  }

  .card {
    width: 220px;
    height: 350px;
  }
}

@media (max-width: 990px) {
  .content p {
    padding-right: 0;
  }

  .card {
    width: 200px;
    height: 300px;
  }
}

@media (max-width: 950px) {
  main {
    grid-template-columns: 1fr;
    grid-template-rows: 4fr 3fr;
    grid-template-areas:
      "stacked"
      "content";
  }

  .content {
    grid-area: content;
    text-align: center;
    padding: 0 90px;
  }

  .btn {
    margin-bottom: 30px;
  }

  .stack {
    grid-area: stacked;
  }
}

@media (max-width: 650px) {
  main {
    grid-template-rows: 1fr 1fr;
  }

  .content {
    padding: 0 50px;
  }

  .content h1 {
    padding-left: 0;
  }

  .btn {
    padding: 8px 16px;
  }

  .card {
    width: 180px;
    height: 260px;
  }
}

.carousel {
  pointer-events: none; /* Disable all user interactions */
}
