/* Global Styles */
* {
    box-sizing: border-box;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1184px !important;
    }
}

/* Header Styles */
header {
    background: transparent;
    z-index: 1000;
    padding: 0.625rem 0;
}

/* Logo Styling */
.ats-logo {
    height: 4.375rem;
    width: auto;
    z-index: 1001;
    transition: height 0.3s ease;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger-icon {
    width: 35px;
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 0.2rem;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.offcanvas.show .hamburger-icon span:nth-child(1) {
    transform: translateY(0.9rem) rotate(45deg);
    background: #000;
}

.offcanvas.show .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.offcanvas.show .hamburger-icon span:nth-child(3) {
    transform: translateY(-0.9rem) rotate(-45deg);
    background: #000;
}

.hamburger-menu:hover .hamburger-icon span {
    background: #000;
}

/* Off-Canvas Menu Styling */
.offcanvas {
    background-image: url("https://seorigel.com/admin-panel/assets/images/689c39129fc44_sidebar.webp");
    background-repeat: no-repeat;
    background-size: contain;
    color: #000;
    z-index: 2000;
    width: 350px !important;
    height: 100vh;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 0px 20px;
    background-position: bottom;
}

.offcanvas-header {
    background: transparent;
    border-bottom: none;
    padding: 2rem 1.5rem;
    justify-content: flex-end;
}

.offcanvas-title {
    display: none; /* Hidden to match tarq.in */
}

.btn-close {
    opacity: 1;
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-close:hover {
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
}

/*.main-menu {*/
/*    list-style: none;*/
/*    margin: 0;*/
/*    padding: 1rem;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: flex-start;*/
/*    width: 100%;*/
/*}*/

.main-menu li {
    border-bottom: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.offcanvas.show .main-menu li {
    opacity: 1;
    transform: translateY(0);
}

.main-menu li:nth-child(1) { transition-delay: 0.1s; }
.main-menu li:nth-child(2) { transition-delay: 0.2s; }
.main-menu li:nth-child(3) { transition-delay: 0.3s; }
.main-menu li:nth-child(4) { transition-delay: 0.4s; }
.main-menu li:nth-child(5) { transition-delay: 0.5s; }
.main-menu li:nth-child(6) { transition-delay: 0.6s; }

.main-menu li a {
    text-decoration: none;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    display: block;
    padding: 0px;
    text-align: left;
    border-top: 0;
    float: none;
    line-height: 3rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-style: normal;
}
.main-menu li a:hover {
    color: #006332;
}

.main-menu .arrow {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    color: #000;
    transition: transform 0.3s ease;
}

.main-menu .has-submenu.active .arrow {
    transform: rotate(90deg);
    color: #006332;
}

.main-menu .submenu {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0 0 0 1rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-menu .has-submenu.active .submenu {
    display: block;
    opacity: 1;
}

.main-menu .submenu li {
    padding: 0.5rem 0;
    opacity: 1;
    transform: none;
}

.main-menu .submenu li a {
    text-decoration: none;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    display: block;
    padding: 0px;
    text-align: left;
    border-top: 0;
    float: none;
    line-height: 16px;
    font-size: 12px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-style: normal;
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .container-fluid {
        margin: 0 auto;
        padding: 0 6rem;
    }

    .ats-logo {
        height: 3rem;
    }

    .hamburger-menu {
        width: 3rem;
        height: 3rem;
    }

    .hamburger-icon span {
        height: 0.25rem;
    }

    .offcanvas {
        width: 100%;
    }

}

@media (min-width: 768px) and (max-width: 991px) {
    .container-fluid {
        padding: 0 1.5rem;
    }

    .ats-logo {
        height: 3rem;
    }

    .hamburger-menu {
        width: 2.75rem;
        height: 2.75rem;
    }

    .hamburger-icon span {
        height: 0.22rem;
    }

    .main-menu li a {
        font-size: 1.5rem;
    }

}

@media (max-width: 767px) {
    .container-fluid {
        padding: 0 1rem;
    }

    .ats-logo {
        height: 3rem;
        left: 1rem;
        top: 0.75rem;
    }

    .hamburger-menu {
        right: 1rem;
        top: 1.25rem;
    }

    .offcanvas {
        width: 100%;
    }

    .main-menu li a {
        font-size: 1.3rem;
    }

}

@media (max-width: 576px) {
    .ats-logo {
        height: 3rem;
    }

    .hamburger-menu {
        width: 2rem;
        height: 2rem;
        right: 2rem;
        top: 1rem;
        position: absolute;
    }

    .hamburger-icon span {
        height: 0.18rem;
    }

    .main-menu li a {
        font-size: 1.2rem;
    }

    .main-menu .submenu li a {
        font-size: 0.85rem;
    }
}