* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 96px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    background-color: #FFFFFF;
    box-shadow: 0px 4px 50.7px 0px #00000033;
}

.header img {
    width: 165px;
    height: 76px;
    align-self: center;
}

.header .menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header .menu a {
    text-decoration: none;
    color: #0B0B1E;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 30px;
    white-space: nowrap;
}

.contact-action {
    font-size: 18px;
    font-weight: 700;
    background-color: #009A55;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    padding: 12px 37px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Hamburger Menu - Hidden by default */
.header .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.header .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #00BD68;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    transform-origin: center;
}

.header .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    transform-origin: center;
}

/* Mobile Menu - Hidden by default */
.header .mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.header .mobile-menu.active {
    display: block;
}

.header .mobile-menu-content {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header .mobile-link {
    display: block;
    padding: 15px 0;
    color: #0B0B1E;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: color 0.3s ease;
}

.header .mobile-link:hover {
    color: #00BD68;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.header .mobile-login-btn {
    font-size: 18px;
    font-weight: 700;
    background-color: #009A55;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    padding: 12px 37px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.header .mobile-login-btn:hover {
    background-color: #00a558;
}

/* Small Desktop/Large Tablet (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .header {
        padding: 16px 60px;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .header {
        padding: 16px;
    }
    .header img {
        width: 140px;
        height: 60px;
    }

    .header .menu {
        gap: 0;
    }

    .header .menu a {
        padding: 5px 25px;
    }

     .header .menu a {
        padding: 5px 25px;
     }
}

/* Mobile */
@media (max-width: 767px) {
    .header {
        padding: 7px 30px;
    }
    .header img {
        width: 120px;
        height: 50px;
        margin-left: -20px;
    }

    .header .menu,
    .header .contact-action {
        display: none;
    }
    .header .hamburger {
        display: flex;
    }
}

/* Footer */
.site-footer {
    /* background-color: #E6FFF4; */
    background-image: url('/assets/img/footer-bg.svg');
}

.inner {
    max-width: 1440px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 75px 96px;
    margin: 0 auto;
    min-height: 285px;
}

.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-section img {
    width: 165px;
    height: 120px;
    object-fit: contain;
}

/* Grid of columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    align-items: start;
    border-bottom: 1px solid #5CD7A0;
}

.footer-col {
    margin-left: 25px;
}

.footer-col li {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    vertical-align: middle;
    margin-bottom: 24px;
    white-space: nowrap;
}

.footer-col li a {
    color: #0B0B1E;
}

/* Copyright centered below */
.copyright {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin-top: 16px;
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .inner {
        padding: 50px 96px;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px;
    }
}

/* Medium Desktop/Large Tablet (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .inner {
        padding: 40px 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .footer-col {
        margin-left: 15px;
    }

    .footer-col li {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 20px;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .inner {
        padding: 35px 30px;
        flex-direction: column;
        gap: 25px;
    }

    .left-section {
        align-items: flex-start;
        text-align: left;
        margin-bottom: 0;
    }

    .left-section img {
        width: 120px;
        height: 85px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        justify-items: start;
        text-align: left;
        border-bottom: 1px solid #5CD7A0;
        padding-bottom: 15px;
        padding-left: 60px;
    }

    .footer-col {
        margin-left: 0;
    }

    .footer-col li {
        font-size: 13px;
        line-height: 16px;
        margin-bottom: 12px;
        text-align: left;
    }

    .copyright {
        text-align: center;
        margin-top: 15px;
        font-size: 14px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .inner {
        display: flex;
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
    }

    .left-section {
        align-items: flex-start;
        text-align: left;
        margin-bottom: 15px;
    }

    .left-section img {
        width: 120px;
        height: 85px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        text-align: left;
        border-bottom: 1px solid #5CD7A0;
        padding-bottom: 15px;
        padding-left: 40px;
    }

    .footer-col {
        margin-left: 0;
        padding: 0 5px;
    }

    .footer-col li {
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 10px;
        white-space: normal;
        text-align: left;
    }

    .copyright {
        text-align: center;
        font-size: 14px;
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .inner {
        padding: 25px 15px;
        gap: 20px;
    }

    .left-section img {
        width: 100px;
        height: 70px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-bottom: 12px;
        text-align: left;
        padding-left: 30px;
    }
    .footer-grid .footer-col:nth-child(2) {
        margin-left: -15px;
    }

    .footer-col {
        padding: 0 3px;
    }

    .footer-col li {
        font-size: 11px;
        line-height: 14px;
        margin-bottom: 8px;
        text-align: left;
    }

    .copyright {
        font-size: 12px;
        line-height: 16px;
        margin-top: 12px;
        padding-top: 12px;
    }
}

.item_link,
.mobile-link {
    position: relative;
    transition: color 0.3s ease;
}

.item_link.active,
.mobile-link.active,
.mobile-login-btn.active {
    color: #009A55;
    font-weight: 600;
}

/* ============================================
   SLIDING UNDERLINE EFFECT
   ============================================ */

/* Container cho menu để tính toán vị trí */
.menu {
    position: relative;
}

/* Thanh underline chung cho tất cả menu items */
.menu::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    background-color: #009A55;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Active underline cho từng item (dùng cho fallback) */
.item_link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #009A55;
}

/* Hover effect cho desktop menu */
.item_link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #009A55;
    transition: width 0.3s ease;
}

.item_link:hover::before {
    width: 100%;
}

.item_link:hover {
    color: #009A55;
}

/* Active indicator for mobile menu */
.mobile-link.active {
    background-color: rgba(0, 154, 85, 0.1);
    border-left: 3px solid #009A55;
    padding-left: 17px;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #009A55;
    background-color: rgba(0, 154, 85, 0.05);
}

.mobile-login-btn.active {
    background-color: #009A55;
    color: white;
}

.btn-view-more {
    transition: background-color 0.3s ease;
}
#submit-btn:hover,
.btn-view-more:hover,
.contact-action:hover {
    background-color: #00BD68;
}
