/* Royal Infotech — Mobile Hamburger Menu */

.rit-site-logo {
    display: block;
    width: auto;
    max-height: 58px;
    height: auto;
    object-fit: contain;
}

.rit-site-logo--drawer {
    max-height: 46px;
    border-radius: 4px;
}

.rit-site-logo--footer {
    max-height: 70px;
}

@media (max-width: 991.98px) {
    .rit-site-logo {
        max-height: 48px;
        max-width: 180px;
    }
}
.rit-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    margin-left: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    z-index: 1002;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rit-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    background: #1a3644;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.rit-hamburger:hover span,
.rit-hamburger[aria-expanded="true"] span {
    background: var(--thm-primary, #57bcf5);
}

.rit-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.rit-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.rit-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.rit-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 32, 39, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1003;
}

.rit-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0f2027 0%, #1a3644 100%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1004;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.rit-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rit-mobile-drawer-header img {
    max-height: 42px;
    width: auto;
}

.rit-mobile-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rit-mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rit-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0 24px;
}

.rit-mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rit-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.rit-mobile-nav a i {
    width: 20px;
    text-align: center;
    color: var(--thm-primary, #57bcf5);
}

.rit-mobile-nav a:hover,
.rit-mobile-nav a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 28px;
}

.rit-mobile-nav .rit-login-link a {
    color: #ffd700;
    font-weight: 600;
}

.rit-mobile-nav .rit-login-link a i {
    color: #ffd700;
}

body.rit-menu-open {
    overflow: hidden;
}

body.rit-menu-open .rit-mobile-overlay {
    opacity: 1;
    visibility: visible;
}

body.rit-menu-open .rit-mobile-drawer {
    transform: translateX(0);
}

@media (max-width: 991.98px) {
    .rit-hamburger {
        display: flex;
    }

    #nav .navbar-toggler {
        display: none !important;
    }

    #mainNav {
        display: none !important;
    }

    #nav.navbar {
        margin-top: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    #nav {
        padding-bottom: 10px;
    }

    #nav .navbar-brand img {
        max-height: 52px;
    }

    .stricky,
    .stricky.stricky-fixed {
        position: sticky;
        top: 0;
        z-index: 1001;
        background: #fff !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
}

@media (min-width: 992px) {
    .rit-hamburger,
    .rit-mobile-overlay,
    .rit-mobile-drawer {
        display: none !important;
    }
}
