.mobile-toggle,
.mobile-sidebar,
.mobile-overlay {
    display: none;
}

@media (max-width: 767px) {




    /* --- 1. GLOBAL & UTILS --- */
    body.menu-open {
        overflow: hidden;
        /* Prevent body scroll when menu is open */
    }

    .container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide elements that don't fit or clutter mobile */
    .hero-dots,
    .hero-arrow,
    .ss-top-right,
    /* Desktop Contact Info */
    .ss-navbar,
    /* Desktop Nav Bar */
    .partners-arrow-box,
    .hero-overlay

    /* Optional: Hide overlay if it interferes with text contrast too much, or keep it */
        {
        display: none !important;
    }

    /* --- 2. MOBILE HEADER (Logo Left, Burger Right) --- */
    .ss-topbar {
        height: 70px;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        z-index: 100;
    }

    .ss-topbar .container {
        height: 100%;
        display: flex;
        flex-direction: row;
        /* Ensure row direction */
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .ss-top-left {
        width: auto;
        /* Auto width to fit logo */
        margin: 0;
        justify-content: flex-start;
    }

    .ss-logo {
        width: 36px;
    }

    .ss-brand {
        font-size: 18px;
        margin-left: 8px;
    }

    /* HAMBURGER ICON */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 101;
    }

    .mobile-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: #0b2a5b;
        border-radius: 3px;
        transition: 0.3s;
    }

    /* --- 3. SIDEBAR MENU (Slide-in) --- */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 999;
        padding: 30px 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;

        /* Animation: Slide from Left */
        left: -100%;
    }

    .mobile-sidebar.active {
        left: 0;
    }

    /* Sidebar Header */
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 40px;
    }

    .sidebar-brand {
        font-size: 20px;
        font-weight: 700;
        color: #0b2a5b;
    }

    .sidebar-close {
        font-size: 32px;
        line-height: 1;
        cursor: pointer;
        color: #000;
    }

    /* Sidebar Links */
    .sidebar-menu {
        list-style: none;
        margin-bottom: 40px;
    }

    .sidebar-menu li {
        margin-bottom: 20px;
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 10px;
    }

    .sidebar-menu a {
        text-decoration: none;
        font-size: 18px;
        font-weight: 600;
        color: #0b2a5b;
        display: block;
    }

    /* Sidebar Contact Info */
    .sidebar-contact {
        border-top: 1px solid #f5f5f5;
        padding-top: 0px;
    }

    .sidebar-contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 14px;
        color: #555;
    }

    .sidebar-contact-item img {
        width: 16px;
    }

    .sidebar-socials {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }

    .sidebar-socials a {
        width: 36px;
        height: 36px;
        background: #0b2a5b;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-socials a img {
        width: 16px;
        filter: brightness(0) invert(1);
    }

    /* --- 4. PAGE CONTENT RECTIFICATIONS --- */

    /* Hero */
    .hero {
        height: 200px;
    }

    .hero-row {
        flex-direction: column;
        text-align: center;
        height: unset !important;
    }

    .hero-left {
        width: 100%;
        margin-bottom: 40px;
        margin-top: 2rem;


        .hero-small {
            display: none !important;
        }

        p {
            text-align: justify;
            font-weight: 600 !important;
            font-size: 17px !important;
        }
    }

    .mission-hr {
        margin-bottom: 15px;
    }

    .mission-stats {
        margin-top: 0;
    }

    .mission-icon {
        display: none;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 25px !important;
    }

    .mission-item {
        border-bottom: 1px solid gainsboro;
        padding-bottom: 15px;
    }


    .about-page-text p {
        text-align: justify;
    }

    .team-header {
        margin: 0 auto 25px;
    }

    .hero-left h1 {
        font-size: 25px !important;
        line-height: 1.2;
        margin-bottom: 25px;
    }

    .hero-btn {
        width: 80%;
        padding: 18px;
    }

    .services-head {
        flex-wrap: wrap;
    }

    .hero-right {
        margin: 0;
        display: none;
    }

    .hero-circle {
        width: 140px;
        height: 140px;
    }

    .hero-circle img {
        width: 60px;
    }

    .hero-circle p {
        font-size: 12px;
    }

    /* Swipeable Horizontal Sections (Services, Pricing, Why Choose Us) */
    .services-grid,
    .pricing-grid,
    .why-grid-wrapper .why-grid-row {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;



        /* IE */
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
        align-items: end;
    }

    .services-grid::-webkit-scrollbar,
    .pricing-grid::-webkit-scrollbar,
    .why-grid-wrapper .why-grid-row::-webkit-scrollbar {
        display: none;
    }

    .why-choose {
        padding: 15px 0;
    }

    .testi-quote {
        text-align: justify;
    }

    .cta-desc {
        text-align: justify;
        font-size: 13px;
    }

    .service-card,
    .pricing-card,
    .why-item {
        width: 100%;



    }

    /* Fix Why Item internal layout */
    .why-item {
        flex: unset !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        background: #fafafa;
        padding: 20px;
        border-radius: 12px;
    }

    /* Reset Row Wrappers for Why Section since structure is complex */
    .why-grid-wrapper {
        border: none;
    }

    .why-grid-row {
        border: none;
        padding: 0;
        width: 100%;
    }

    /* Stacked Sections (About, Legacy, Mission, Partners) */
    .about-legacy-section,
    .about,
    .mission-section,
    .partners,
    .contact-section,
    .team-section {
        padding: 50px 0;
    }

    .legacy-top-row,
    .legacy-bottom-row,
    .about-row,
    .about-bottom,
    .expertise-row,
    .mission-row,
    .team-grid,
    .testimonials-container,
    .partners-container,
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    /* Reset dimensions */
    .legacy-top-left,
    .legacy-top-right,
    .legacy-stats-col,
    .legacy-middle-img,
    .legacy-approach-col,
    .about-left,
    .about-right,
    .expertise-left,
    .expertise-right,
    .mission-left,
    .mission-right,
    .partners-left,
    .partners-right,
    .testimonials-left,
    .testimonials-right,
    .footer-col,
    .footer-brand {
        width: 100%;
        flex: none;
        padding: 0;
        max-width: 100%;
    }

    /* Images */
    .legacy-top-right img,
    .legacy-middle-img img,
    .about-img-main,
    .expertise-left img,
    .partners-left,
    .testimonials-right,
    .woman-banner {
        width: 100%;
        height: 250px;
        min-height: auto;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Specific styling for Partners Left BG image */
    .partners-left {
        background-size: cover;
    }

    /* Testimonials: Image on Top */
    .testimonials-right {
        order: -1;
    }

    .approach-arrow {
        display: none;
    }

    /* Stats Grids */
    .legacy-stats-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding-top: 1rem;
    }

    .approach-content p {
        text-align: start;
        margin-top: 0;
    }

    .about-stats {
        justify-content: space-between;
        width: 100%;
        margin-bottom: 20px;
    }

    .services {
        padding: 15px 0;
    }

    /* Typography */
    h1,
    h2,
    .legacy-title,
    .about-title,
    .partners-title,
    .cta-title {
        font-size: 22px !important;
        line-height: 1.25;
    }

    p,
    .legacy-desc,
    .about-desc {
        font-size: 15px !important;
        line-height: 1.6;
    }

    /* Partners Grid */
    .partners-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-logo {
        padding: 15px;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* CTA */
    .cta-box {
        border-radius: 20px;
        padding: 30px 20px;
        margin: 0;
    }

    .cta-section {
        padding: 40px 0 30px;

    }

    .approach-title-row h3 {
        font-size: 22px;
    }


    .approach-title-row {
        padding-top: 0;
    }

    .card-top {

        p {
            text-align: justify;
            font-size: 14px !important;
        }
    }

    .card-arrow {
        bottom: 0;
    }

    .footer-grid {
        margin-bottom: 0;
    }



    .footer-col {
        padding-top: 1rem;
    }

    .footer-newsletter h3 {
        font-size: 27px;
        font-weight: 700;
        padding-top: 15px;
    }

    .footer-desc {
        font-size: 14px !important;
        line-height: 1.6;
        color: #a0a0a0;
        text-align: justify;
    }

    /* Footer */
    .footer-newsletter {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 0;
        padding-bottom: 20px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        display: grid;
    }

    .footer-col h4 {
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
        margin-bottom: 15px;
        display: block;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    /* Contact Form */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 30px 20px;
    }


}