/* 🌾 LOFI COZY CHILL THEME */
body {
  background: #f2ede4 url('../images/lofi-bg-texture.jpg') center/cover no-repeat fixed;
  font-family: "Noto Serif KR", "Noto Sans KR", serif;
  color: #3b2f2f;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html {
  font-size: clamp(12px, 2vw, 22px);
}

/* ---------------- HEADER ---------------- */
.header-logos {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2vh 0;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vw;
  flex-wrap: wrap;
}

.logo {
  height: 4vh;
  width: auto;
  max-width: 15vw;
  object-fit: contain;
  transition: all 0.3s ease;
}

.main-logo {
  height: 12vh;
  max-width: 25vw;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- MAIN ---------------- */
main {
  flex: 1;
  padding: 20px;
}

/* GRID chứa 2 card lớn */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

/* ===== 2 ROW ===== */
.row-large, .row-small {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

/* Row lớn: 3 card */
.row-large .card {
  flex: 1 1 300px;
  max-width: 360px;
}

/* Row nhỏ: 2 card nhỏ */
.row-small .card-small {
  flex: 1 1 200px;
  max-width: 260px;
}


/* CARD LỚN */
.card1, .card2, .card3 {
  position: relative;
  flex: 1 1 300px;   /* Chiều rộng linh hoạt, có thể co nhỏ */
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 360px;  /* Không quá to khi màn hình rộng */
}

.card1 { background-image: url('../images/card1.jpg'); }
.card2 { background-image: url('../images/card2.jpg'); }
.card3 { background-image: url('../images/card3.jpg'); }


.card1:hover, .card2:hover, .card3:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* --------- CARD NHỎ --------- */
.card-small {
  flex: 1 1 200px;
  max-width: 280px;
  height: 80px;
  background: rgba(60, 40, 30, 0.25);
  backdrop-filter: blur(5px);
  border-radius: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  transition: 0.3s ease;
  color: #3b2f2f;
  margin-top: 10px;
}

.card-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

/* Chữ trong card nhỏ */
.small-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Mobile chỉnh nhỏ lại */
@media (max-width: 768px) {
  .card-small {
    max-width: 90%;
    height: 70px;
  }
  .small-text {
    font-size: 1rem;
  }
}


/* Overlay chữ */

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(60, 40, 30, 0.45);
  backdrop-filter: blur(6px);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 16px 16px;
}

/* Dòng tiêu đề chính */
.main-text {
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0px; /* tạo khoảng cách với dòng dưới */
  text-decoration: none;  /* bỏ gạch chân */
}

/* Dòng chú thích */
.sub-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: #f0e4d8;
  opacity: 0.9;
  display: block;
  line-height: 1.4;
  
}


/* ---------------- CTA ---------------- */
.cta-section {
  text-align: center;
  margin-top: 10px;
}

.cta-text-custom {
  font-family: "Segoe UI", sans-serif;
  font-size: 1.2vw;
  line-height: 1.4;
  color: white;
  text-shadow:
    1px 1px 2px rgba(0,0,0,0.7),
    -1px 1px 2px rgba(0,0,0,0.7),
    0px 0px 4px rgba(0,0,0,0.5);
}

.cta-text-custom .cta-bold {
  font-weight: 700;
  display: block;
  margin-top: 3px;
}

.cta-icons {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 50px);
  margin-top: 20px;
}

.cta-icons img {
  width: clamp(30px, 4vw, 50px);
  height: auto;
  cursor: pointer;
  transition: transform 0.3s;
}

.cta-icons img:hover {
  transform: scale(1.2);
}

/* ---------------- FOOTER ---------------- */
footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 6px;
  font-size: 14px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {

  /* Logo */
  .logo-container {
    flex-direction: row;
    justify-content: center;
    gap: 6vw;
  }

  .logo {
    height: 35px;
    max-width: 25%;
  }

  .main-logo {
    height: 50px;
    max-width: 40%;
  }

  /* Card */


  .card1, .card2,.card3 {
    flex: 1 1 90%;
    max-width: 400px;
    height: 200px;
    margin: 0 auto;
  }
  

  .main-text { font-size: 1.3rem; }
  .sub-text  { font-size: 1rem; }

  .cta-text-custom {
    font-size: 15px;
    margin-top: 20px;
  }

  .cta-icons img {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .card1, .card2, .card3 {
    width: 95%;
    height: 180px;
  }
  .cta-text-custom {
    font-size: 13px;
  }
}

@media (max-width: 768px) {

  /* --- 3 Card lớn: gọn lại --- */
  .row-large .card {
    flex: 1 1 100%;
    max-width: 100%;
    height: 150px;        /* giảm chiều cao */
  }

  .main-text {
    font-size: 1rem;
  }

  .sub-text {
    font-size: 0.8rem;
  }

/* --- 3 Card nhỏ: nằm cạnh nhau --- */
.row-small {
  display: flex;
  justify-content: space-between; /* hoặc center + gap */
  gap: 8px; 
  flex-wrap: nowrap; /* quan trọng: không xuống hàng */
}

.row-small .card-small {
  flex: 1 1 30%;      /* 3 card chia đều ~30% mỗi card */
  max-width: 30%;     /* đảm bảo không quá rộng */
  height: 40px;
}

  .small-text {
    font-size: 0.8rem;
  }
}

