/**
 * Custom Hero Section - Center text on mobile screens
 * Custom Mobile Menu - Center icon
 */

/* Center hero title on mobile devices */
@media (max-width: 767.98px) {
    .banner__content-two {
        text-align: center !important;
    }

    .banner__content-two .title {
        text-align: center !important;
    }
}

/* Also center on very small screens */
@media (max-width: 575.98px) {
    .banner__content-two {
        text-align: center !important;
        padding: 0 15px;
    }

    .banner__content-two .title {
        text-align: center !important;
        line-height: 1.3;
    }
}

/* Center mobile menu icon in container - only on mobile/tablet screens */
@media (max-width: 1199px) {
    .mobile-nav-toggler {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-nav-toggler i {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Hide mobile menu completely on desktop */
@media (min-width: 1200px) {
    .tgmobile__menu {
        display: none !important;
    }
}

/* Fix mobile menu z-index - ensure it appears above all content */
@media (max-width: 1199px) {
    .tgmobile__menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
    }
}

.tgmobile__menu-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99998 !important;
}

/* Ensure mobile menu is above sticky header */
.mobile-menu-visible .tgmobile__menu {
    z-index: 99999 !important;
}

.mobile-menu-visible .tgmobile__menu-backdrop {
    z-index: 99998 !important;
}

/* Fix sticky header overflow issue */
.sticky-menu {
    overflow: visible !important;
}

.tg-header__area.sticky-menu {
    overflow: visible !important;
}

/* Fix modal header on mobile - prevent logo cutoff */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 20px auto !important;
        max-width: calc(100% - 20px) !important;
    }

    .modal-content {
        border-radius: 12px !important;
        overflow: visible !important;
    }

    .modal-header {
        padding: 20px 15px !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        position: relative !important;
        overflow: visible !important;
    }

    .modal-header .btn-close,
    .modal-header .close {
        position: absolute !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 10 !important;
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 50% !important;
        width: 32px !important;
        height: 32px !important;
        opacity: 1 !important;
    }

    /* Ensure modal logo is visible */
    .modal-header img {
        max-height: 50px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}
