@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {  font-family: "Montserrat", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  padding: 0;
  box-sizing: border-box;
}

/* Normalize root font-size to reduce differences between laptop and desktop renderings
   and prevent mobile/desktop text-size auto-adjust. This aligns with the amthuc changes. */
html{ font-size:16px; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{ font-size:1rem; }

/* Scale up base font-size on larger viewports so text doesn't appear too small on wide desktop monitors.
   These breakpoints are conservative — we increase to 17px on >=1200px and 18px on >=1600px.
   Adjust values below if you prefer slightly larger/smaller scaling. */


.intro-container, .visa-section, .diadiem-section, 
.camnang-section, .dichvu-section, .footer {
  width: 100vw;           /* full chiều ngang màn hình */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
}

.main-nav {
            position: sticky;
            top: 0;
            z-index: 999;
            background: linear-gradient(135deg, #fbf7ed 0%, #fff9f0 100%);
            border-bottom: 2px solid #e1a900;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            padding: 12px 52px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: 'Montserrat', sans-serif;
        }

        .logo {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(135deg, #c10000 0%, #e1a900 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .logo i {
            font-size: 32px;
            background: linear-gradient(135deg, #c10000 0%, #e1a900 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
nav ul li {
  list-style: none;
}
        .nav-menu {
            list-style: none;
            display: flex;
            gap: 35px;
            align-items: center;
        }

        .nav-menu li {
            position: relative;
        }

        .nav-menu a {
            text-decoration: none;
            color: #333;
            font-weight: 600;
            font-size: 1rem;
            padding: 10px 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-menu a::before {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, #c10000, #e1a900);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover {
            color: #c10000;
        }

        .nav-menu a:hover::before {
            width: 100%;
        }

        .nav-menu a i {
            font-size: 1.1rem;
            color: #c10000;
        }

    /* ======= DROPDOWN ======= */

    /* Use opacity/visibility transitions and a small overlap so the dropdown
       doesn't disappear when the cursor moves from the trigger to the menu. */
    .dropdown { position: relative; }

    .dropdown-menu {
      position: absolute;
      top: calc(100% - 6px); /* slight overlap to avoid pointer gaps */
      left: 0;
      min-width: 160px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.12);
      padding: 8px 0;
      z-index: 9999;
      background: linear-gradient(135deg, rgba(252, 248, 235, 0.98) 0%, rgba(255, 250, 240, 0.98) 100%);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      border: 1px solid rgba(225, 169, 0, 0.28);
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transform: translateY(6px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }

    /* show the menu when hovering the dropdown or when the menu itself is hovered
       also support keyboard focus-within to improve accessibility */
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu,
    .dropdown-menu:hover {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }
        

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dropdown-menu li a {
            padding: 12px 16px;
            color: #333;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
            
        }

        .dropdown-menu li a:hover {
            background: rgba(225, 169, 0, 0.1);
            color: #c10000;
            border-left-color: #c10000;
            padding-left: 20px;
        }

        .dropdown-menu li a i {
            margin-right: 8px;
            color: #e1a900;
        }

        

    .banner-slider {
  position: relative;
  width: 100vw;             /* full chiều ngang viewport */
  left: 50%;                /* đẩy ra giữa */
  right: 50%;
  margin-left: -50vw;       /* kéo ngược lại để tràn đều hai bên */
  margin-right: -50vw;
  overflow: hidden;
  padding: 0;
  border: none; 
z-index: 2;
--banner-height: 0px;}

.banner-slider img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block; /* loại bỏ khoảng trắng dưới ảnh */
}




    .slide {
      position:absolute;
      width: 100%;
      
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }

    .slide.active {
      opacity: 1;
    }

    .slide img {
      width: 100%;
      
      object-fit: cover;
    }

    .slider {
  position: relative;
  width: 100%;
  aspect-ratio: 27 / 10; /* hoặc đúng tỷ lệ ảnh banner của mày, ví dụ 21/9, 3/1,... */
  overflow: hidden;
}
    
.prev, .next {
      position:absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.4);
      color: white;
      border: none;
      font-size: 30px;
      padding: 10px 15px;
      cursor: pointer;
      border-radius: 50%;
      transition: background 0.3s;
    }

    .prev:hover, .next:hover {
      background: rgba(0,0,0,0.7);
    }

    .prev { left: 20px; }
    .next { right: 20px; }
    body {
  margin: 0;
  padding: 0;
  background-color: #f9f6f0;
  overflow-x: hidden; 
  border: none;
}



   /* GIỚI THIỆU */



.intro-vn {
  position: relative;
  width: 100vw;        /* full theo màn hình */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 0;
  border: none;
  z-index: 1;
  clear: both;
  margin-top: calc(var(--banner-height, 0px)); 
}

.intro-vn img {
  width: 100%;         /* luôn bằng chiều rộng màn hình, không theo container */
     
  height: auto;
  object-fit: cover;
  display: block;
}



/* CONTENT */
.visa-section {
  text-align: center;
  background-color: #faf7f1;
  padding: 50px 0;
}

.visa-section h2 {
  color: #c0392b;
  font-size: 36px;
  margin-bottom: 30px;
}

.visa-container {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Cho cuộn ngang */
  scroll-snap-type: x mandatory;
  padding: 20px 20px 20px 48px; /* thêm lề trái để không sát màn hình */
  scroll-behavior: smooth;
}

.visa-card,
.diadiem-card,
.camnang-card,
.dichvu-card {
  flex: 0 0 30%;
  min-width: 350px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  transition: transform 0.32s ease;
  background: #000;
}

.visa-card:hover,
.diadiem-card:hover,
.camnang-card:hover,
.dichvu-card:hover {
  transform: translateY(-6px);
}

/* image fills the card */
.visa-card img,
.diadiem-card img,
.camnang-card img,
.dichvu-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.6s ease;
}

/* dark gradient overlay concentrated at bottom-left for good contrast */
.visa-card::after,
.diadiem-card::after,
.camnang-card::after,
.dichvu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 30%, rgba(0,0,0,0.62) 100%);
  pointer-events: none;
}

/* title, description, CTA stacked at bottom-left (white) */
.visa-card h3,
.diadiem-card h3,
.camnang-card h3,
.dichvu-card h3 {
  position: absolute;
  left: 40px; /* xích sang phải hơn để khỏi sát mép */
  /* move the title up so it doesn't overlap the description below */
  bottom: 95px;
  margin: 0;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  z-index: 3;
  line-height: 1.5;
  text-shadow: 0 15px 30px rgba(0,0,0,0.6);

  /* keep the heading on a single line and avoid accidental wrap */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;

  
}

.visa-card .card-desc,
.diadiem-card .card-desc,
.camnang-card .card-desc,
.dichvu-card .card-desc {
  position: absolute;
  left: 40px; /* xích sang phải */
  bottom: 44px;
  margin: 0;
  color: rgba(255,255,255,0.95);
  font-size: 1.2rem; /* slightly smaller intro text */
  z-index: 3;
  max-width: 80%;
  line-height: 1.2;
  text-shadow: 0 10px 24px rgba(0,0,0,0.55);

  /* clamp to two lines, left-aligned */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.visa-card .read-more,
.diadiem-card .read-more,
.camnang-card .read-more,
.dichvu-card .read-more {
  position: absolute;
  left: 40px; /* xích sang phải */
  bottom: 18px;
  z-index: 3;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.visa-card .read-more::after,
.diadiem-card .read-more::after,
.camnang-card .read-more::after,
.dichvu-card .read-more::after {
  content: ' →';
}

/* gentle zoom on hover */
.visa-card:hover img,
.diadiem-card:hover img,
.camnang-card:hover img,
.dichvu-card:hover img {
  transform: scale(1.06);
}

/* more card readable */
.visa-card.more,
.diadiem-card.more,
.camnang-card.more,
.dichvu-card.more {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-left: 22px;
  padding-bottom: 26px;
  background: linear-gradient(180deg, #f9e9dc, #f3d9c3);
  color: #3a2a1a;
}

/* keep the 'more' card readable */
.visa-card.more,
.diadiem-card.more,
.camnang-card.more,
.dichvu-card.more {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-left: 22px;
  padding-bottom: 26px;
  background: linear-gradient(180deg, #f9e9dc, #f3d9c3);
  color: #3a2a1a;
}





.diadiem-section {
  text-align: center;
  background-color: #faf7f1;
  padding: 50px 0;
}

.diadiem-section h2 {
  color: #c0392b;
  font-size: 36px;
  margin-bottom: 30px;
}

.diadiem-container {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Cho cuộn ngang */
  scroll-snap-type: x mandatory;
  padding: 20px 20px 20px 48px; /* thêm lề trái */
  scroll-behavior: smooth;
}

/* diadiem-card styles now use the unified card rules above */




.camnang-section {
  text-align: center;
  background-color: #faf7f1;
  padding: 50px 0;
}

.camnang-section h2 {
  color: #c0392b;
  font-size: 36px;
  margin-bottom: 30px;
}

.camnang-container {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Cho cuộn ngang */
  scroll-snap-type: x mandatory;
  padding: 20px 20px 20px 48px; /* thêm lề trái */
  scroll-behavior: smooth;
}

/* camnang-card styles now use the unified card rules above */



.dichvu-section {
  text-align: center;
  background-color: #faf7f1;
  padding: 50px 0;
}

.dichvu-section h2 {
  color: #c0392b;
  font-size: 36px;
  margin-bottom: 30px;
}

.dichvu-container {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Cho cuộn ngang */
  scroll-snap-type: x mandatory;
  padding: 20px 20px 20px 48px; /* thêm lề trái */
  scroll-behavior: smooth;
}

/* dichvu-card styles now use the unified card rules above */






#backToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #a90000;
            color: rgb(255, 255, 255);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            display: none;
            transition: background-color 0.3s ease, transform 0.3s ease;
            z-index: 999;
        }

        #backToTop:hover {
            background-color: #f7c215;
            color: #000;
            transform: scale(1.1);
        }

        

        .custom-select-arrow {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 1.5em 1.5em;
            padding-right: 2.5rem; /* Tạo khoảng trống cho mũi tên */
        }

       .social-item.facebook{
        margin: 10px;
        font-size: 20px;
       }

       .social-item.instagram{
        margin: 10px;
        font-size: 20px;
       }

       .social-item.tiktok{
        margin: 10px;
        font-size: 20px;
       }

         .social-item.facebook:hover i {
            color: #1877F2;
        }

        /* Xanh Dương */
        .social-item.instagram:hover i {
            color: #E4405F;
        }
        .social-item.tiktok:hover i {
            color: black;
        }



       
    .form-input {
        width: 100%;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid #4B5563;
        /* gray-600 */
        background-color: #374151;
        /* gray-700 */
        color: #F3F4F6;
        /* gray-100 */
        transition: all 0.3s;
    }

    .form-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
        /* Mô phỏng ring 2px với màu primary (xanh dương nhạt, opacity 50%) */
        outline: none;
    }

    .btn-submit {
        padding: 0.75rem 2rem;
        font-weight: bold;
        color: white;
        background-color: var(--primary-color);
        border-radius: 0.75rem;
        transition: all 0.3s;
        box-shadow: 0 4px 6px rgba(37, 99, 235, 0.4);
    }

    .btn-submit:hover {
        background-color: #1D4ED8;
        transform: translateY(-2px);
    }

    .btn-clear {
        padding: 0.75rem 2rem;
        font-weight: bold;
        color: var(--text-dark);
        background-color: var(--secondary-color);
        border-radius: 0.75rem;
        transition: all 0.3s;
        box-shadow: 0 4px 6px rgba(251, 191, 36, 0.4);
    }

    .btn-clear:hover {
        background-color: #F59E0B;
        transform: translateY(-2px);
    }

    /* Contact success panel */
    #contact-success {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 22px;
        border-radius: 12px;
        background: linear-gradient(90deg, #f0fff4, #e6fffa);
        color: #065f46;
        box-shadow: 0 10px 30px rgba(6, 95, 70, 0.06);
        border: 1px solid rgba(6, 95, 70, 0.08);
        min-height: 160px;
        flex-direction: column;
        text-align: center;
    }

    #contact-success.show {
        display: flex;
        animation: successIn .36s ease forwards;
    }

    #contact-success .check {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: #3ae495;
        color: #065f46;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        box-shadow: 0 6px 18px rgba(6, 95, 70, 0.12);
    }

    @keyframes successIn {
        from {
            transform: translateY(12px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Ensure form wrapper layout */
    #contact-wrapper {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    custom-select-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* --- STYLE CHUNG CHO ICON --- */
.social-item {
    margin: 10px;
    font-size: 20px;
}

.social-item i {
    transition: color 0.3s ease, transform 0.3s ease; /* cực mượt */
}

/* FACEBOOK */
.social-item.facebook:hover i {
    color: #1877F2;
    transform: scale(1.3);
}

/* INSTAGRAM */
.social-item.instagram:hover i {
    color: #E4405F;
    transform: scale(1.3);
}

/* TIKTOK */
.social-item.tiktok:hover i {
    color: #000000;
    transform: scale(1.3);
}





/* ======================================
   RESPONSIVE TOÀN TRANG – FULL FIX
   ====================================== */

/* Giữ font-size ổn định, không bị nhỏ trên mobile */
html {
  font-size: 16px !important;
}

/* ======================
   ≥ 1200px
   ====================== */
@media (min-width: 1200px) {
  html {
    font-size: 17px !important; /* chữ hơi lớn cho desktop */
  }

  .main-nav {
    padding: 16px 48px;
  }

  .visa-card,
  .diadiem-card,
  .camnang-card,
  .dichvu-card {
    min-width: 340px;
  }
}

/* ======================
   ≤ 992px (Tablet ngang)
   ====================== */
@media (max-width: 992px) {
  .main-nav {
    padding: 12px 24px;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }

  .visa-card,
  .diadiem-card,
  .camnang-card,
  .dichvu-card {
    min-width: 280px;
  }

  h2 {
    font-size: 30px !important;
  }
}

/* ======================
   ≤ 768px (Tablet dọc)
   ====================== */
@media (max-width: 768px) {

  /* Ẩn menu desktop */
  .nav-menu {
    display: none;
  }

  /* Banner */
  .slider {
    aspect-ratio: 16 / 9 !important;
  }

  /* Card nhỏ lại hợp lý */
  .visa-card,
  .diadiem-card,
  .camnang-card,
  .dichvu-card {
    min-width: 240px;
    aspect-ratio: 4/5;
  }

  .visa-card h3,
  .diadiem-card h3,
  .camnang-card h3,
  .dichvu-card h3 {
    font-size: 1.25rem;
  }

  .card-desc {
    font-size: 0.9rem !important;
  }
}

/* ======================
   ≤ 576px (Mobile)
   ====================== */
@media (max-width: 576px) {

  /* Fix full-width luôn đúng, không lệch trái/phải */
  .intro-container, .visa-section, .diadiem-section,
  .camnang-section, .dichvu-section, .footer,
  .banner-slider, .intro-vn {
    width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Banner */
  .banner-slider img {
    border-radius: 0;
    object-fit: cover;
  }

  /* Intro image */
  .intro-vn img {
    width: 100%;
    height: auto;
  }

  /* Card chỉnh cho mobile */
  .visa-card,
  .diadiem-card,
  .camnang-card,
  .dichvu-card {
    min-width: 220px;
    aspect-ratio: 4/5;
  }

  .visa-card h3,
  .diadiem-card h3,
  .camnang-card h3,
  .dichvu-card h3 {
    left: 20px;
    bottom: 75px;
    font-size: 1.1rem;
  }

  .card-desc {
    left: 20px;
    bottom: 36px;
    font-size: 0.85rem !important;
  }

  .read-more {
    left: 20px;
    bottom: 16px;
  }

  /* Footer đầy đủ – không vỡ layout */
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    text-align: center;
  }

  footer ul li {
    font-size: 1rem;
  }

  .social-icons-list {
    justify-content: center;
  }
}

