/* =============================================
   Stepway Softwares — Mobile Responsive Fixes
   ============================================= */

/* ------------------------------------------
   CURSOR — disable custom cursor, use default
   ------------------------------------------ */
.cursor,
.cursor2 {
    display: none !important;
}

*, *::before, *::after {
    cursor: auto !important;
}

a, button, [role="button"], input[type="submit"], input[type="button"], select, label {
    cursor: pointer !important;
}

/* ------------------------------------------
   HERO SLIDER — ensure buttons are clickable
   ------------------------------------------ */

/* Force buttons above all swiper layers */
.th-hero-slide .btn-group {
    position: relative;
    z-index: 20;
    pointer-events: all !important;
}

.th-hero-slide .btn-group a {
    pointer-events: all !important;
    cursor: pointer;
    position: relative;
    z-index: 20;
}

/* Override Swiper fade's pointer-events:none on the active slide's content */
.swiper-fade .swiper-slide-active,
.swiper-fade .swiper-slide-active .container,
.swiper-fade .swiper-slide-active .hero-style2,
.swiper-fade .swiper-slide-active .btn-group,
.swiper-fade .swiper-slide-active .btn-group a,
.swiper-fade .swiper-slide-active .th-btn {
    pointer-events: all !important;
    cursor: pointer !important;
}

/* ------------------------------------------
   0. HAMBURGER MENU — mobile nav overlay
   ------------------------------------------ */

/* Hamburger button — always visible below lg */
.th-menu-toggle.d-inline-block.d-lg-none {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--theme-color, #3E66F3);
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 9999;
}

.th-menu-toggle.d-inline-block.d-lg-none:hover {
    background: var(--title-color, #0d1e30);
}

/* On desktop (lg+) always hide the hamburger */
@media (min-width: 992px) {
    .th-menu-toggle.d-inline-block.d-lg-none {
        display: none !important;
    }
}

/* Mobile nav overlay panel */
.th-menu-wrapper .th-menu-area {
    background-color: #fff;
    width: 300px;
    min-height: 100vh;
    padding: 0 20px 40px;
    position: absolute;
    left: -300px;
    top: 0;
    transition: all ease 0.4s;
    overflow-y: auto;
}

.th-menu-wrapper.th-body-visible .th-menu-area {
    left: 0;
}

/* Mobile nav links */
.th-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-mobile-menu ul li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color, #0d1e30);
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: color 0.2s;
}

.th-mobile-menu ul li a:hover {
    color: var(--theme-color, #3E66F3);
}

.th-mobile-menu ul li.active > a {
    color: var(--theme-color, #3E66F3);
}

/* Close button inside the mobile menu panel */
.th-menu-area .th-menu-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    color: var(--title-color, #0d1e30);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Ensure header-button area shows the toggle on mobile */
@media (max-width: 991px) {
    .menu-area .header-button {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    /* Make sticky-wrapper row not wrap/overflow on small screens */
    .menu-area .container > .row {
        flex-wrap: nowrap;
        align-items: center;
    }
    .menu-area .col-auto:last-child {
        margin-left: auto;
    }
}

/* ------------------------------------------
   1. LOGO — replace fixed 229×111 with fluid
   ------------------------------------------ */
.header-logo img,
.header-logo .mask-icon {
    max-width: 180px !important;
    width: 100% !important;
    height: auto !important;
}

.mobile-logo img {
    max-width: 160px;
    height: auto;
}

@media (max-width: 575px) {
    .header-logo img,
    .header-logo .mask-icon {
        max-width: 130px !important;
    }
    .mobile-logo img {
        max-width: 130px;
    }
}

/* ------------------------------------------
   2. HEADER TOP BAR
   ------------------------------------------ */
@media (max-width: 991px) {
    .header-top {
        display: none !important;
    }
}

/* ------------------------------------------
   3. STICKY HEADER / MENU AREA
   ------------------------------------------ */
@media (max-width: 991px) {
    .menu-area .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .th-header .menu-area {
        padding: 8px 0;
    }
}

/* ------------------------------------------
   4. HERO / SLIDER SECTION
   ------------------------------------------ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px !important;
        line-height: 1.2;
    }
    .hero-text {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 26px !important;
    }
    .th-hero-slide .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* ------------------------------------------
   5. BREADCRUMB
   ------------------------------------------ */
@media (max-width: 767px) {
    .breadcumb-title {
        font-size: 28px;
    }
    .breadcumb-wrapper {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .breadcumb-title {
        font-size: 22px;
    }
    .breadcumb-wrapper {
        padding: 40px 0;
    }
}

/* ------------------------------------------
   6. SECTION TITLES
   ------------------------------------------ */
@media (max-width: 767px) {
    .sec-title {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .sec-title {
        font-size: 22px;
    }
    .title-area {
        text-align: center;
    }
}

/* ------------------------------------------
   7. SERVICE CARDS
   ------------------------------------------ */
@media (max-width: 575px) {
    .service-card {
        padding: 25px 20px;
    }
    .service-card_number {
        font-size: 32px;
    }
}

/* ------------------------------------------
   8. FOOTER CONTACT STRIP (header area of footer)
   ------------------------------------------ */
@media (max-width: 991px) {
    .footer-contact-wrap {
        flex-direction: column;
        gap: 16px;
    }
    .footer-contact {
        width: 100%;
    }
    .footer-top .col-xl-3,
    .footer-top .col-xl-9 {
        text-align: center;
    }
    .footer-logo {
        margin-bottom: 20px;
    }
}

/* ------------------------------------------
   9. FOOTER LOGO
   ------------------------------------------ */
.footer-logo img,
.footer-logo .mask-icon {
    max-width: 160px;
    height: auto;
}

/* ------------------------------------------
   10. FOOTER WIDGET AREA
   ------------------------------------------ */
@media (max-width: 767px) {
    .footer-widget {
        margin-bottom: 30px;
    }
    .widget_title {
        font-size: 18px;
    }
}

/* ------------------------------------------
   11. CONTACT FEATURE BOXES (appointment section)
   ------------------------------------------ */
.contact-feature {
    flex-wrap: wrap;
}

.contact-feature_link,
.footer-contact_link {
    word-break: break-all;
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .contact-feature {
        padding: 14px;
        gap: 10px;
    }
    .contact-feature .media-body {
        min-width: 0;
        flex: 1;
    }
}

/* ------------------------------------------
   12. APPOINTMENT / CONTACT FORM SECTION
   ------------------------------------------ */
@media (max-width: 991px) {
    .appoitment-form .form-group {
        margin-bottom: 12px;
    }
}

@media (max-width: 575px) {
    .appoitment-form .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ------------------------------------------
   13. ABOUT / WHY-CHOOSE IMAGE BOXES
   ------------------------------------------ */
@media (max-width: 991px) {
    .img-box1 {
        margin-bottom: 30px;
    }
    .img-box1 .img2 {
        display: none;
    }
    .about-img-counter {
        bottom: 10px;
        right: 10px;
        padding: 12px 16px;
    }
}

/* ------------------------------------------
   14. COUNTER / STAT CARDS
   ------------------------------------------ */
@media (max-width: 575px) {
    .counter-card {
        padding: 20px;
    }
    .counter-card_number {
        font-size: 36px;
    }
}

/* ------------------------------------------
   15. CHECKLIST IN ABOUT / TRAINING SECTIONS
   ------------------------------------------ */
@media (max-width: 575px) {
    .checklist ul li {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* ------------------------------------------
   16. CTA SECTION
   ------------------------------------------ */
@media (max-width: 767px) {
    #cta-sec .sec-title {
        font-size: 22px;
    }
    #cta-sec .th-btn {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }
}

/* ------------------------------------------
   17. TEAM / PROJECT CARDS
   ------------------------------------------ */
@media (max-width: 575px) {
    .th-team,
    .project-card {
        margin-bottom: 24px;
    }
}

/* ------------------------------------------
   18. PROCESS / FEATURE BOXES
   ------------------------------------------ */
@media (max-width: 767px) {
    .process-card,
    .feature-card {
        text-align: center;
        padding: 20px;
    }
}

/* ------------------------------------------
   19. TESTIMONIAL SECTION
   ------------------------------------------ */
@media (max-width: 575px) {
    .testi-box,
    .testi-card {
        padding: 20px;
    }
}

/* ------------------------------------------
   20. BLOG / RECENT POSTS
   ------------------------------------------ */
@media (max-width: 575px) {
    .blog-card .blog-title {
        font-size: 18px;
    }
}

/* ------------------------------------------
   21. SCROLL TO TOP BUTTON
   ------------------------------------------ */
@media (max-width: 575px) {
    .scroll-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ------------------------------------------
   22. GENERAL OVERFLOW GUARD
   ------------------------------------------ */
body,
html {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 575px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
}
