/* Vidyaan — Site-wide Mobile Responsive Fixes */

/* ── Base ── */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
body {
    overflow-x: hidden;
    max-width: 100vw;
}
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}
#page, .page, .inner-page-wrapper, .v-home, .v-page {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Legacy inner pages ── */
.inner-page-wrapper {
    margin-top: 60px;
    overflow-x: hidden;
}
.page-hero-section {
    padding: 72px 0 48px !important;
}
.page-hero-section .hero-txt h3,
.page-hero-section .h3-xs {
    font-size: clamp(1.5rem, 5vw, 2.25rem) !important;
}
.page-hero-section .hero-txt p,
.page-hero-section p {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem) !important;
    line-height: 1.6 !important;
}
.wide-60, .wide-70, .wide-100, .pt-100 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}
.container-fluid.section-box {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
.brochure h4 {
    width: auto !important;
    max-width: 100%;
    display: inline-block;
    font-size: clamp(1rem, 3vw, 1.25rem) !important;
}
.txt-block p,
.about-section p,
.team-3-txt p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem) !important;
    line-height: 1.7 !important;
}

/* Contact legacy boxes */
.contacts-section .contact-box {
    text-align: center;
    padding: 28px 20px;
    margin-bottom: 20px;
}
.contacts-section .contact-box.b-right {
    border-right: none !important;
}
.contacts-section .btn {
    white-space: normal !important;
    word-break: break-word;
    max-width: 100%;
    display: inline-block;
    font-size: 14px !important;
    padding: 10px 16px !important;
}
.contacts-section .row.d-flex.align-items-center {
    align-items: stretch !important;
}

/* Policy / content pages */
.comply, .Policy, .brochure .container {
    padding-left: 15px;
    padding-right: 15px;
}
.brochure p, .comply p, .Policy p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    text-align: left !important;
}

/* Bootstrap overrides (prevent horizontal scroll) — legacy pages only */
.inner-page-wrapper .container,
.inner-page-wrapper .container-fluid,
.page:not(#page) .container,
.page:not(#page) .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}
.inner-page-wrapper .row,
.page:not(#page) .row {
    margin-left: -12px;
    margin-right: -12px;
}
.inner-page-wrapper .row > [class*="col-"],
.page:not(#page) .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* ── Demo modal ── */
.v-demo-modal .modal-content {
    position: relative !important;
    bottom: auto !important;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}
.modal-dialog.v-demo-modal {
    max-width: 480px;
    width: calc(100% - 2rem);
    margin: 1rem auto;
}
@media (max-width: 767px) {
    .modal-dialog.v-demo-modal {
        width: calc(100% - 12px);
        max-width: none;
    }
}
@media (max-width: 575px) {
    .modal-dialog.v-demo-modal .modal-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .v-demo-modal .v-demo-phone-wrap {
        width: 100%;
        align-items: stretch !important;
    }
    .v-demo-modal .v-demo-phone-wrap input {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px;
    }
}

/* ── Menu open state ── */
body.wsactive {
    overflow: hidden;
    max-width: 100vw;
}
body.wsactive .v-floating-actions {
    display: none !important;
}
@media (max-width: 991px) {
    body.wsactive .wsmenucontainer {
        margin-left: 0 !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
    body.wsactive .wsmobileheader,
    body.wsactive .v-header .wsmobileheader,
    body.wsactive .v-header .v-mobile-bar {
        margin-left: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 10002 !important;
    }
    .wsmobileheader {
        height: 60px !important;
        background-color: #fff !important;
    }
    .wsmobileheader .smllogo,
    .wsmobileheader .smllogo-black {
        margin-top: 0 !important;
    }
    .v-header .v-mobile-bar {
        justify-content: flex-start !important;
        padding: 0 56px 0 14px !important;
    }
    #wsnavtoggle.v-mobile-toggle {
        position: absolute !important;
        right: 6px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        overflow: hidden !important;
    }
    #wsnavtoggle.v-mobile-toggle i {
        font-size: 22px !important;
        color: #1a3a5c !important;
        line-height: 1 !important;
        display: block !important;
    }
    body.wsactive #wsnavtoggle.v-mobile-toggle {
        transform: translateY(-50%) !important;
    }
    body.wsactive .v-header .wsmenu > .wsmenu-list {
        padding-top: 60px !important;
    }
}

/* ── Home hero ── */
@media (max-width: 991px) {
    .v-hero-laptop .box-banner {
        width: 100% !important;
        max-width: 420px !important;
    }
    img.box-banner {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
    }
}
@media (max-width: 575px) {
    .v-hero {
        padding: 96px 0 48px !important;
    }
    .v-hero-desc {
        font-size: 0.95rem !important;
        margin-bottom: 24px;
    }
    .v-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .v-hero-actions .v-btn-primary,
    .v-hero-actions .v-btn-outline {
        width: 100%;
        justify-content: center;
    }
    .v-hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
    }
    .v-hero-stat {
        text-align: center;
    }
    .v-hero-stat strong {
        font-size: 1.25rem !important;
    }
    .v-hero-stat span {
        font-size: 11px;
    }
    .v-trust-item h4 {
        font-size: 1.1rem !important;
    }
    .v-trust-item p {
        font-size: 12px !important;
    }
    .v-section {
        padding: 48px 0 !important;
    }
    .v-section-header {
        margin-bottom: 32px !important;
        padding: 0 4px;
    }
    .v-section-header h2 {
        font-size: 1.45rem !important;
    }
    .v-offer-grid {
        grid-template-columns: 1fr !important;
    }
    .v-app-section .row {
        flex-direction: column-reverse;
    }
    .v-app-float {
        display: none !important;
    }
    .v-testimonial-card {
        padding: 24px 18px !important;
    }
    .v-clients-section h3 {
        font-size: 1.35rem !important;
        padding: 0 12px;
    }
}

/* ── Feature blocks ── */
@media (max-width: 575px) {
    .v-feat-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .v-feat-header-line {
        display: none;
    }
    .v-feat-num {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 15px;
    }
    .v-feat-header-content h3 {
        font-size: 1.1rem !important;
        word-break: break-word;
    }
    .v-feat-points li {
        font-size: 14px;
        padding: 12px 14px;
    }
    .v-page-hero {
        padding: 96px 0 48px !important;
    }
    .v-page-stats {
        margin-top: -20px;
    }
    .v-page-stat {
        padding: 16px 10px;
    }
    .v-page-stat strong {
        font-size: 1.25rem !important;
    }
    .v-page-stat span {
        font-size: 10px;
    }
    .v-page-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .v-page-cta-actions .v-btn-primary,
    .v-page-cta-actions .v-btn-outline-light {
        width: 100%;
        justify-content: center;
    }
}

/* ── Contact page modern ── */
@media (max-width: 767px) {
    .v-contact-grid {
        grid-template-columns: 1fr !important;
    }
    .v-contact-card {
        padding: 24px 20px !important;
    }
}

/* ── Owl carousel mobile ── */
@media (max-width: 575px) {
    .owl-carousel .owl-stage-outer {
        overflow: hidden;
    }
    .brand-logo img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ── Tables (policy pages) ── */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Utility ── */
@media (max-width: 575px) {
    .d-none.d-sm-block {
        /* keep bootstrap intent */
    }
    h3.fw-bold.mb-3 {
        font-size: 1.35rem !important;
    }
    .modal-dialog {
        margin: 0.5rem auto;
    }
}
