/* CSS đã được tạo sẵn ở bước trước */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #d1d3dc;
    color: black;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  /* h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
  } */
  
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, #434343, black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .fade-out {
    opacity: 0;
  }
  
  .fade-in {
    opacity: 1 !important;
    transition: opacity 1s ease;
  }
  
  h3 {
    margin: 0;
    padding: 0;
    color: black;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e0e2e3;
    padding: 10px 10px;
    color: #333;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
  }
  .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
  }
  .nav-links li a {
    color: #434343;
    text-decoration: none;
    text-align: center;
    padding: 10px;
  }
  .nav-links li a:hover {
    background-color: #434343;
    transition: color 0.2s;
    border-radius: 50px;
    color: white;
  }
  .menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
  }
  .logo {
    width: 3.5%;
  }
  .lh{
    width: 25%;
    display: flex;
    justify-content: space-evenly;
  }
  .lh a{
    color: #333;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 8px;
  }
  
  .about1{
    width: 100%;
    display: flex;
    align-items: center;
  }
  .content1 {
    padding: 1.2rem;
    font-size: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: start;
    color: black;
  }
  .img1{
    width: 90%;
    height: 50%;
    padding: 1.5rem;
  }
  .img1 img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
  }
  .content1 a{
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding-top: 20px;
  }
  .ct{
    text-indent: 10px;
    padding: 0.5rem;
  }
  
  .section1 {
    background-image: url(./uploads/logo/logo1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    color: white;
    text-shadow: 1px 1px 10px black;
    padding-left: 50px;
  }
  .section1 h1 { font-size: 60px; margin: 0; }
  .section1 h3 {color: #ffffff;}
  .section1 a {
    margin-top: 20px;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(to left, #434343, black);
    color: white;
    border-radius: 8px;
    text-decoration: none;
  }
  .section1 a:hover {
    background: linear-gradient(to left, #868f96, #596164);
    transition: background 0.2s;
    color: white;
    opacity: 1;
  }
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    padding: 70px;
    align-items: center;
  }
  .item p{
    font-size: 0.9em;
    text-align: center;
    color: white;
    margin-top: 6px;
  }
  .item {
    width: 100%;
    aspect-ratio: 9/16; /* Tỉ lệ 9:16 */
    height: 58vh; /*tỉ lệ đt là 75vh */
    background: linear-gradient(to left, #29323c, #485563);
    border-radius: 10px;
    padding: 1rem 1rem 1rem 1rem;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  .item:hover, .price-item:hover {
    background-color: white;
    transition: background-color 0.2s;
    transform: scale(1.2);
    z-index: 10;
  }
  .item img {
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }
  
  @media screen and (min-width: 319px) and (max-width: 768px){
    body {
      overflow-x: hidden;
    }
    .menu-toggle {
      display: block;
    }
    .lh{
      display: none;
    }
    .logo{
      width: 15% !important;
    }
    .navbar{
      height: 8%;
      padding: 1rem;
    }
    .nav-links {
      position: absolute;
      top: 53px;
      left: 110px;
      background-color: #e0e2e3;
      width: 75%;
      flex-direction: column;
      justify-content: start;
      display: none;
      border-bottom-left-radius: 10px;
    }
    .nav-links.active {
      display: flex;
    }
    .nav-links li {
      width: 100%;
      /* border-radius: 10px; */
      /* padding: rem; */
      border-top: 1px solid #444;
    }
    .nav-links li a {
      display: block;
      width: 100%;
      text-align: start;
      padding: 0.5rem;
    }
    .section1{
      padding-left: 1rem;
    }
  
    .about1{
      min-height: 160vh;
      flex-direction: column;
      justify-content: space-between;
    }
    .content1{
      height: 70vh;
      padding-top: 60px;
      font-size: 13px;
    }
    .intro{
      font-size: 13px;
    }
    .content1 h3{
      font-size: 20px !important;
    }
    .ct{
      font-size: 13px;
    }
    .img1{
      width: 85% !important;
      height: 50% !important;
    }
    
    .grid-container {
      display: flex;             /* Chuyển từ grid sang flex */
      flex-direction: row;       /* Theo hàng ngang */
      overflow-x: auto;          /* Cho phép cuộn ngang */
      scroll-snap-type: x mandatory; /* Giúp snap khi cuộn */
      gap: 10px;
      padding: 0.625rem;
      /* padding-top: 160px; */
    }
    .item {
      /* flex: 0 0 55vw; */
      width: 55vw;          /* Mỗi item chiếm 55% chiều rộng */
      height: 70vh;
      scroll-snap-align: start;  /* Snap từng item vào màn */
    }
    .item:hover {
      background-color: white;
      transform: none;
    }
    .item p{
      font-size: 0.9em;
    }
    
    .filter{
      width: 100%;
    }
    .filter-item{
      width: 100% !important;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    .filter-item-price{
      width: 100%;
      padding: 10px;
      border-top-right-radius: 10px;
    }
    .filter-item-content{
      width: 100%;
      padding: 0.25rem;
      background-color: aliceblue;
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
    }
    .filter-item-content p{
      font-size: 0.9em;
    }
  
    .price{
      flex-direction: row;
      overflow-x: auto;          /* Cho phép cuộn ngang */
      scroll-snap-type: x mandatory; /* Giúp snap khi cuộn */
      gap: 25px;
    }
    .price-item{
      flex: 0 0 90vw;
      height: 60vh;
      scroll-snap-align: start;
    }
    .price-item:hover {
      transform: none !important;
    }
  
    .note{
      width: 100%;
      margin-top: 30px;
    }
    .note-content{
      flex: 0 0 70vw;
      height: 35vh;
      margin: 1.5rem;
    }
  }
  
  .filter{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .filter-item{
    width: 60%;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    padding: 0.625rem;
  }
  .filter-item-price{
    width: 80%;
    padding: 30px;
    background: linear-gradient(to left, #434343, black);
    color: white;
  }
  .filter-item-price h3{ color: white;}
  .filter-item-content{
    width: 80%;
    padding: 1.875rem;
    background-color: #ffffff;
  }
  .filter-item-content p{
    padding: 5px;
  }
  
  .price {
    display: flex;
    justify-content: space-around;
    padding: 1.25rem;
    width: 100%;
  }
  .price-item{
    height: 70vh;
    background-image: url(https://png.pngtree.com/background/20210709/original/pngtree-invitation-card-banquet-notice-letter-invitation-picture-image_947058.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
    width: 24%;
  }
  .price-item h3 {
    font-size: 20px;
    color: white;
    margin-top: 10px;
  }
  .price-item-inner p{
    font-size: 1em;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  .price-item a{
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-radius: 50px;
    background: #ffefa8;
    transition: background 0.3s ease;
  }
  
  .note{
    width: 100%;
    margin-top: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: start;
  }
  .note-content{
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border: 1px solid #333;
    background-color: #2a3132;
    color: white;
    border-radius: 10px;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.3);
  }
  .note-content p{
    padding: 3px;
  }
  
  .brand{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    padding: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
  }
  .brand-item{
    background: linear-gradient(to left, #29323c, #485563);
    border-radius: 10px;
    padding: 0.625rem;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
  }
  .brand-item img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
    margin: auto 0;
  }

  .hidden {
    display: none;
  }
  
  .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    margin-top: 50px;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ff5b00;
    top: 0;
    bottom: 0;
    left: 49.8%;
    margin-left: -2px;
  }
  
  .container {
    padding: 2.5rem;
    position: relative;
    width: 50%;
  }
  
  .container-left {
    position: relative;
    right: 2%;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
  }
  
  .container-right {
    position: relative;
    left: 117%;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
  }
  
  .container::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 4px solid #ff5b00;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    right: -13px;
    text-align: center;
  }
  
  .content {
    background-color: #ffffff;
    position: relative;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-left: 10px solid #004aad;
    width: 100%;
  }
  
  .container-right .content {
    border-left: none;
    border-right: 10px solid #004aad;
  }
  
  .container-left .content,
  .container-right .content {
    text-align: left;
  }
  
  /* 📱 Responsive */
  @media screen and (max-width: 768px) {
    .timeline::before {
      left: 10%;
    }
  
    .timeline{
      padding: 0;
      margin-top: 0;
    }
  
    .container {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
      margin-bottom: 30px;
    }
  
    .container::after {
      left: 23px;
      right: auto;
    }
  
    .container-right,
    .container-left {
      left: 0;
      box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }
  
    .container-right .content {
      border-right: none;
      border-left: 10px solid #004aad;
    }

    .contact{
      font-size: 10px;
    }

    .footer {
        height: 25vh;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .img{
      width: 40% !important;
      height: 100% !important;
    }
    .img img{
      width: 60% !important;
      height: 100% !important;
    }
  }
  
  .footer {
    text-align: center;
    padding: 1.25rem;
    background-color: #868d9f;
    color: black;
  }
  .contact{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
  }
  .img{
    width: 30%;
    height: 30%;
    display: flex;
    justify-content: center;
  }
  .img img{
    width: 30%;
    height: 30%;
  }

  .contact1{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
  }
  .contact1 a{
    padding: 5px;
  }

  .cskh{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }
  .cskh p{
    padding: 5px;
  }
  
  form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    flex-wrap: wrap;
  }
  form input {
    padding: 10px;
    font-size: 1em;
  }
  form button {
    padding: 0.625rem 1.25rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  #imageList {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  #imageList div {
    text-align: center;
    background-color: white;
    padding: 0.625rem;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
  }
  #imageList button {
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 24px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }