/* .hamburger-menu,
.close-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
} */

body.menu-open {
    overflow: hidden;
}

/* Smooth fade transitions for logo and back button */
.mobile-logo {
    display: flex;
}
.mobile-logo,
.back-button, .hamburger-menu,
.close-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.mobile-logo.is-hidden,
.back-button.is-hidden, .hamburger-menu.is-hidden, .close-menu.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.is-hidden {
    display: none !important;
}

/* ===== Drawer ===== */
.mobile-nav-drawer {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    z-index: 1100;

    /* 1. Define the layout structure PERMANENTLY (Content + Footer) */
    display: grid;
    grid-template-rows: 1fr auto;

    /* 2. Start closed (Height 0) */
    height: 0;
    opacity: 0;
    overflow: hidden;

    /* 3. Animate HEIGHT instead of grid-template-rows */
    transition:
            height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.2s ease-in-out;
}

.mobile-nav-drawer > * {
    overflow: hidden;
}

.mobile-nav-drawer.active {
    /* 4. Open to full dynamic viewport height */
    height: calc(100dvh - 57px);
    opacity: 1;

    /* 5. Safe area padding for mobile footer */
    padding-bottom: env(safe-area-inset-bottom);
}


/* ===== Buttons ===== */
.hamburger-menu,
.close-menu,
.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter Display', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.back-button:active {
    transform: scale(0.95);
}

/* ===== Drawer Content ===== */
.nav-drawer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    -webkit-overflow-scrolling: touch;
}

.nav-drawer-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* ===== Main Nav ===== */
.main-nav-list,
.submenu,
.submenu-links,
.deep-menu {
    list-style: none;
    padding: 0;
}

.main-nav-item,
.submenu-section {
    border-bottom: 1px solid #f0f0f0;
}

.main-nav-link,
.submenu-accordion-toggle {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-family: 'Inter Display', sans-serif;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
}

.submenu-accordion-toggle img {
    transform: rotate(90deg);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.submenu-accordion-toggle.active img {
    transform: rotate(270deg);
}

/* ===== Accordion ===== */
.submenu-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transition:
            grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.5s ease;
}

.submenu-accordion-content > * {
    overflow: hidden;
}

.submenu-accordion-content.active {
    grid-template-rows: 1fr;
    opacity: 1;
}


.submenu-links {
    gap: 4px;
    display: flex;
    flex-direction: column;
}

.submenu-links a {
    padding: 2px 20px;
    font-size: 16px;
    font-family: 'Inter Display', sans-serif;
    color: #6D6D6D;
    display: block;
}
.submenu-links li:last-child a{
padding-bottom: 20px;
}

.submenu-links a:hover,
.submenu-link-direct:hover {
    color: #FF4833;
}

/* Deep Menu */
.deep-menu {
    margin-left: 20px;
    border-left: 1px solid #E4E4E4;
}
.deep-menu li:last-child a {
    padding-bottom: 0;
}

.submenu {
    padding: 0;
    list-style-type: none;
}

.submenu li a {
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Inter Display', sans-serif;
    line-height: 18px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    width: 100%;
    display: block;
    border-bottom: 1px solid #E4E4E4;
}

.submenu li a:hover {
    color: #F9452D;
}

.content-area {
    padding: 15px 20px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-area .title {
    font-size: 16px;
    font-family: 'Inter Display', sans-serif;
    font-weight: 400;
    color: #000000;
    margin-bottom: 12px;
}

.content-area .desc {
    font-size: 15px;
    font-family: 'Inter Display', sans-serif;
    line-height: 22px;
    font-weight: 400;
    color: #6D6D6D;
}

.partners-mobile {
    display: flex;
    gap: 24px;
    margin-top: 30px;
}

.product-and-platform {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-and-platform .item {
    display: flex;
    gap: 20px;
}

.product-and-platform .item:hover .product-title {
    color: #F9452D;
}

.product-and-platform .item .thumbnail {
    width: 90px;
    height: 80px;
    flex-shrink: 0;
}

.product-and-platform .item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail .product-title {
    font-weight: 400;
    font-size: 16px;
    font-family: 'Inter Display', sans-serif;
    line-height: 26px;
    color: #000000;
}

.product-detail .product-desc {
    font-weight: 400;
    font-size: 14px;
    font-family: 'Inter Display', sans-serif;
    line-height: 20px;
    color: #6D6D6D;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Number of lines to show */
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
}
/* ---------- Footer ---------- */
.nav-drawer-footer {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.mobile-menu-btn {
    display: inline-block;
    padding: 8px 24px;
    font-size: 15px;
    font-family: 'Inter Display', sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 1px solid;
    text-align: center;
}

.red-to-white-outline {
    border-color: #F9452D;
    background: #F9452D;
    color: #fff;
}

.red-to-white-outline:hover {
    border-color: #F9452D;
    background: transparent;
    color: #F9452D;
}

.gray-outline-to-red {
    color: #000000;
    border-color: #E4E4E4;
}
.gray-outline-to-red:hover {
    color: #F9452D;
    border-color: #F9452D;
}


/*.btn-contact-mobile {*/
/*    display: block;*/
/*    width: 100%;*/
/*    padding: 8px;*/
/*    text-align: center;*/
/*    border-radius: 4px;*/
/*    background: #FF4833;*/
/*    color: #fff;*/
/*    font-size: 15px;*/
/*    font-family: 'Inter Display', sans-serif;*/
/*    font-weight: 500;*/
/*}*/

/*.btn-contact-mobile:hover {*/
/*    background: #E63D29;*/
/*}*/

