@import url('https://fonts.cdnfonts.com/css/mulish');
:root {

  --color-1:#ffff;

  --color-2: #000; 
  --color-3: #121928;
  --color-4: #6b7457;

  --font-family-1: "Roboto",sans-serif;
  --font-family-2: "Yeseva One",serif;
  --box--shadow-1:0 10px 30px 0 rgba(0,0,0,.1);

  --box--shadow-2:rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;

}



body {

  font-size: 16px;

  color: var(--color-3);

  font-family: 'Mulish', sans-serif;

}



*:not(i) {

  font-family: 'Mulish', sans-serif;

}

h1,h2,h3,h4,h5,h6{
  font-family: 'Mulish', sans-serif;
  margin-bottom: 10px;
  color: var(--color-3);

}

h1, h1.title {

  font-size: 2rem;

}



h2, h2.title {

  font-size: 1.875rem;

}



h3, h3.title {

  font-size: 20px;

}

p {
  margin-bottom: 10px;
  text-align: justify;
  font-weight: 400;
}

.px-3 {

  padding-left: 1rem;

  padding-right: 1rem;

}

.pb-20px{

  padding-bottom: 20px;

}

.mb-1-25{

  margin-bottom: 1.25rem;

}

.mb-10px{

  margin-bottom: 10px;

}

.text-justify{

  text-align: justify;

}

#logo {
  display: flex;
  justify-content: center;
}

#logo img {
  border-radius: 10px;
}

.stuck #logo img {
  border-radius: 10px;
}

.header-main .nav > li > a {
  font-family: 'Mulish', sans-serif;
  margin-right: 10px;
  margin-left: 10px;
  color: var(--color-1);
  font-size: 15px;
}

/*code phi*/
/*footer*/
.section-content h5 {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 0;
  margin-top: 0;
}

/* Styling cho footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-links li {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
}

.footer-links .arrow {
  color: #cccccc;
  margin-right: 8px;
  font-size: 12px;
  flex-shrink: 0;
  display: inline-block;
}

/* Styling cho contact info */
.contact-info p {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 14px;
  text-align: left;
}

/* Styling cho newsletter section */
.footer-section h5 {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 0;
  margin-top: 20px;
}

.footer-newsletter-right {
  text-align: left;
}

.col-footer-2  .wpcf7-form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.col-footer-2  .wpcf7-form p {
  margin: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.col-footer-2  .wpcf7-form br {
  display: none;
}

.col-footer-2  .wpcf7-form input[type="email"] {
  width: 100%;
  padding: 2px 20px;
  border: none;
  border-radius: 4px;
  background-color: #ffffff;
  color: #333;
  font-size: 14px;
  box-sizing: border-box;
  flex: 1;
}

.col-footer-2  .wpcf7-form input[type="email"]::placeholder {
  color: #999;
}

.col-footer-2  .wpcf7-form input[type="submit"] {
  background-color: #000000;
  color: #ffffff;
  padding: 2px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.col-footer-2 .wpcf7-form input[type="submit"]:hover {
  background-color: #333333;
}

.col-footer-2 .wpcf7-spinner {
  display: none;
}

/* Styling cho social icons */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 10px;
}

.social-icon {
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}
/* Định dạng menu dropdown */
ul.sub-menu.nav-dropdown-default {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
    padding: 4px 0 !important;
    min-width: 240px !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
}

/* Hiệu ứng hiện thị khi hover vào menu cha */
li.menu-item-has-children:hover > ul.sub-menu.nav-dropdown-default {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Tùy chọn menu */
ul.sub-menu.nav-dropdown-default li.menu-item {
    padding: 4px 16px !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
    position: relative !important;
}

/* Link bên trong */
ul.sub-menu.nav-dropdown-default li.menu-item a {
    color: #333333 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

/* Hiệu ứng hover từng item - đổi màu nền và tạo bóng */
ul.sub-menu.nav-dropdown-default li.menu-item:hover {
    background-color: #f1f1f1 !important;
    transform: translateX(5px) !important;
}

/* Hiệu ứng hover link - sử dụng var(--color-4) cho màu chữ */
ul.sub-menu.nav-dropdown-default li.menu-item a:hover {
    color: var(--color-4) !important; /* Màu hover với biến */
    text-shadow: 0 0 5px rgba(107, 116, 87, 0.6) !important;
}

/* Quay mũi tên khi hover */
li.menu-item-has-children:hover > a:after {
    transform: rotate(180deg) !important;
}
/* Định dạng lại khi kích thước màn hình nhỏ hơn 1024px */
@media (max-width: 1024px) {
    .col.post-item {
        width: 50%; /* 2 cột cho màn hình tablet */
    }
}

/* Định dạng lại khi kích thước màn hình nhỏ hơn 768px (mobile) */
@media (max-width: 768px) {
    .col.post-item {
        width: 100%; /* 1 cột cho màn hình di động */
    }

    /* Thay đổi kích thước của nút "Xem thêm" cho mobile */
    .button.is-small {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Tùy chỉnh lại tiêu đề cho phù hợp với màn hình nhỏ */
    .post-title {
        font-size: 18px; /* Giảm kích thước chữ cho tiêu đề */
    }
}


@media (max-width: 768px) {
  .col-footer-2 .wpcf7-form p {
    gap: 8px;
  }
  
  .col-footer-2 .wpcf7-form input[type="email"],
  .col-footer-2 .wpcf7-form input[type="submit"] {
    padding: 2px 30px;
    font-size: 13px;
  }
}
/* Điều chỉnh ảnh để tự động co giãn theo kích thước màn hình */

@media (max-width: 576px) {
  .col-footer-2 .wpcf7-form p {
    flex-direction: column;
    gap: 15px;
  }
  
  .col-footer-2 .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}
/* Màn hình nhỏ nhất: 390px - 412px */
@media (max-width: 412px) {
   
    .box-text h3 {
        font-size: 16px; 
    }

    .box-text p {
        font-size: 12px; 
    }
    .header-nav {
        font-size: 12px; 
    }

    .nav-top-link {
        font-size: 14px;     }

    .menu-item {
        padding: 10px 5px; 
    }
.blog-new .box-image img {
        width: 100% !important;
        height: auto !important;
    }
    .col-12 {
        width: 100%;
        padding: 10px; 
    }

    /* Chỉnh sửa nút "Xem thêm" cho nhỏ hơn */
    .button.is-small {
        font-size: 14px;
        padding: 8px 16px;
    }

    .post-title {
        font-size: 16px; 
    }
}

/* Màn hình 430px */
@media (max-width: 430px) {
    

  * Đảm bảo ảnh chiếm đầy đủ chiều rộng của container */
.box-image {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Đảm bảo ảnh trong image-cover chiếm đầy không gian */
.image-cover {
    position: relative;
    width: 100%;
    height: 100%;
}
.box-text h3 {
        font-size: 18px; 
    }

    .box-text p {
        font-size: 14px; 
    }
/* Đảm bảo ảnh tự động co giãn theo chiều rộng của container mà không bị méo */
.box-image img {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
}
    .menu-item {
        padding: 10px 5px;
    }

    .nav-top-link {
        font-size: 14px;
    }

    .post-title {
        font-size: 18px; 
    }
}

/* Màn hình 549px */
@media (max-width: 549px) {
   
 .blog-new .box-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    } 
    .nav-top-link {
        font-size: 15px;
    }

    .post-title {
        font-size: 20px;
    }
 
@media (max-width: 768px) {
    .col-inner {
        display: block; 
        width: 100%; 
    }

    .box-image {
        width: 100%; 
        height: auto; 
        border-radius: 3% !important; 
    }

    .image-cover {
        padding-top: 56.25%; 
    }

    .box-text {
        text-align: center; /* Căn giữa văn bản */
    }

    .box {
        width: 100%; /* Đảm bảo box chiếm toàn bộ chiều rộng */
        margin-bottom: 20px; /* Thêm khoảng cách dưới box */
    }
}
/* Cải thiện cho các phần tử lớn hơn trên các màn hình này */
@media (min-width: 550px) and (max-width: 768px) {
    .col-12 {
        width: 100%;
        padding: 20px;
    }

    .button.is-small {
        font-size: 16px;
        padding: 10px 20px;
    }

    .menu-item {
        font-size: 14px;
    }

    .post-title {
        font-size: 22px;
    }

}

}
