/* ==========================================================================
   Responsive & Centered Navigation Menu Overrides
   ========================================================================== */

/* Header Main Bar: Flex layout for centered desktop menu and clean mobile bar */
.header-one .header-main-one .header-main-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
}

.header-one .header-main-one .thumbnail {
    flex: 0 0 auto;
}

.header-one .header-main-one .thumbnail a {
    padding: 16px 0;
    display: flex;
    align-items: center;
    max-width: max-content;
}

.header-one .header-main-one .thumbnail img {
    max-height: 58px;
    width: auto;
    height: auto;
    display: block;
}

/* Desktop Navigation: Centered between logo and right action button */
.header-one .header-main-one .main-header {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.header-one .header-main-one .main-header .nav-main {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.header-one .header-main-one .main-header .nav-main ul.mainmenu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(22px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-one .header-main-one .main-header .nav-main ul.mainmenu > li {
    margin: 0 !important;
    flex: 0 0 auto;
}

.header-one .header-main-one .main-header .nav-main ul.mainmenu > li > a {
    padding: 34px 0;
    font-size: 15.5px;
    line-height: 1.3;
    white-space: nowrap;
}

.header-one .header-main-one .main-header .nav-main ul.mainmenu > li.has-droupdown > a {
    padding-right: 15px;
}

.header-one .header-main-one .main-header .nav-main ul.mainmenu > li.has-droupdown > a::before {
    right: 0;
    font-size: 12px;
}

.header-one .header-main-one .main-header .nav-main ul.mainmenu > li > a::after {
    bottom: 26px;
}

/* Keep right-side menu button anchored cleanly on the right */
.header-one .header-main-one .button-area {
    flex: 0 0 auto;
    margin: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
}

.header-one .header-main-one .button-area #menu-btn {
    margin-left: 0 !important;
}

/* Desktop Dropdown & Mega Menu Alignment */
.header-one .header-main-one .mainmenu li.has-droupdown .submenu {
    min-width: 260px;
    max-width: calc(100vw - 32px);
}

.header-one .header-main-one .mainmenu li.has-droupdown .submenu li a {
    padding: 10px 0;
    white-space: normal;
    min-width: 0;
    line-height: 1.4;
    font-size: 14.5px;
    font-weight: 600;
}

.header-one .header-main-one .mainmenu li.has-droupdown .submenu.menu-link {
    width: min(820px, calc(100vw - 48px));
    left: 50%;
    transform: translateX(-50%);
}

.header-one .header-main-one .mainmenu li.has-droupdown .submenu.menu-link .menu-item {
    margin-right: 0;
    padding: 0 16px;
}

.header-one .header-main-one .mainmenu li.has-droupdown .submenu.menu-link .menu-item .tag {
    padding: 16px 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    white-space: normal;
}

.header-one .header-main-one .mainmenu li.has-droupdown .submenu.menu-link .menu-item ul li a {
    padding: 7px 0;
    font-size: 14.5px;
}

/* Compact desktop (1200px - 1399px) */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .header-one .header-main-one .thumbnail img {
        max-height: 50px;
    }

    .header-one .header-main-one .main-header .nav-main ul.mainmenu {
        gap: 21px;
    }

    .header-one .header-main-one .main-header .nav-main ul.mainmenu > li > a {
        font-size: 14.5px;
        padding: 30px 0;
    }

    .header-one .header-main-one .main-header .nav-main ul.mainmenu > li.has-droupdown > a {
        padding-right: 14px;
    }

    .header-one .header-main-one .main-header .nav-main ul.mainmenu > li > a::after {
        bottom: 22px;
    }
}

/* Tablet & Mobile (< 1200px) */
@media only screen and (max-width: 1199px) {
    .header-one .header-main-one .header-main-wrapper {
        min-height: 68px;
    }

    .header-one .header-main-one .main-header {
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .header-one .header-main-one .thumbnail a {
        padding: 12px 0;
    }

    .header-one .header-main-one .thumbnail img {
        max-height: 48px;
    }

    .header-one .header-main-one .button-area {
        margin: 0 !important;
    }
}

@media only screen and (max-width: 575px) {
    .header-one .header-main-one .header-main-wrapper {
        min-height: 62px;
    }

    .header-one .header-main-one .thumbnail img {
        max-height: 42px;
    }

    .header-one .header-main-one .button-area #menu-btn {
        padding: 10px 12px;
    }
}

/* Mobile & Sidebar Drawer (#side-bar) */
.side-bar {
    width: min(365px, 100vw);
    padding: 28px 24px 36px;
}

.side-bar .close-icon-menu {
    align-self: flex-end;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.side-bar .close-icon-menu i {
    margin: 0;
    height: 42px;
    width: 42px;
}

.rts-sidebar-menu-desktop .logo-1 {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.rts-sidebar-menu-desktop .logo-1 img {
    max-height: 54px;
    width: auto;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu > li {
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    background: #fff;
    width: 100%;
    text-align: left;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu-nav .mainmenu li a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    padding: 4px 0;
    white-space: normal;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown > a {
    padding-right: 26px;
    position: relative;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown > a::before {
    right: 4px;
    font-size: 12px;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown .submenu {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-left: 12px;
    margin-top: 8px;
    border-left: 2px solid rgba(28, 37, 57, 0.12);
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown .submenu li {
    padding: 4px 0;
    border-bottom: 0;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown .submenu li a {
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: #3a4254;
}

.rts-sidebar-menu-desktop .body-mobile .mainmenu li.has-droupdown .submenu.third-lvl.mobile-menu {
    min-width: 0;
    left: 0;
    top: 0;
    padding-left: 12px;
}

.rts-sidebar-menu-desktop .body-mobile .social-wrapper-two.menu.mobile-menu {
    margin: 28px 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.rts-sidebar-menu-desktop .body-mobile .social-wrapper-two.menu.mobile-menu a {
    margin-right: 0;
}

.rts-sidebar-menu-desktop .body-mobile .quote-btnmenu {
    display: block;
    width: 100%;
    text-align: center;
    margin: 22px 0 0 0 !important;
}

/* ==========================================================================
   Global Responsive Safeguards (Project Pages, Breadcrumbs, Tabs, Images)
   ========================================================================== */

html,
body {
    overflow-x: clip;
}

.rts-team-details .details-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.tab-button-area-one .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

@media only screen and (max-width: 767px) {
    .rts-breadcrumb-area .breadcrumb-1 .title {
        font-size: 28px;
        line-height: 1.25;
        word-break: break-word;
    }

    .rts-breadcrumb-area .bread-tag {
        text-align: left;
        margin-top: 12px;
    }

    .rts-breadcrumb-area .vedio-icone {
        margin-left: 0 !important;
        margin-top: 24px !important;
    }
}

/* ==========================================================================
   Scroll-to-Top Button Icon Fix (use local Font Awesome instead of external Unicons)
   ========================================================================== */

.progress-wrap::after,
.progress-wrap::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900;
    content: "\f062" !important;
    font-size: 18px;
    line-height: 42px;
}

.progress-wrap svg.progress-circle path {
    stroke-width: 6px;
}
