/*
 * Tablet / small-laptop fixes. Everything is inside max-width queries,
 * so the desktop layout (1200px and wider) is not touched.
 */

/* ---------- up to 1199px: small laptops and tablets ---------- */
@media (max-width: 1199px) {
    img, video { max-width: 100%; }

    /* hero grows with its content instead of a fixed 840px (the form was overflowing into the header) */
    section.banner_main { height: auto; padding: 150px 0 70px; }
    section.banner_main .banner_from,
    .banner_from { width: 100%; }
    .inner_banner, .landing-page { height: auto; padding-top: 150px; padding-bottom: 60px; }
    .banner_textt h1 { font-size: 30px; line-height: 38px; }

    /* header: keep the menu on one line */
    header.main_header { padding: 12px 15px; }
    header.main_header ul#menu li a { font-size: 13px; white-space: nowrap; }
    .call_any span { display: none; }
    .call_any h6 { font-size: 14px; line-height: normal; white-space: nowrap; }
}

/* ---------- up to 991px: tablets, use the same mobile menu as phones ---------- */
@media (max-width: 991px) {
    html, body { overflow-x: hidden; }
    header.main_header { position: relative; padding: 0 !important; background: #000 !important; }
    header.main_header .container,
    header.main_header ul#menu,
    .call_any { display: none !important; }

    .mob-header-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; min-height: 64px; width: 100%; background: #000; }
    .mob-logo img { width: 150px; display: block; }
    .slicknav_menu { display: block; background: transparent !important; padding: 0 !important; margin: 0 !important; float: none !important; line-height: normal; }
    .slicknav_btn { margin: 0 !important; background-color: #f39200 !important; border-radius: 4px; padding: 0 !important; float: none !important; display: flex; align-items: center; justify-content: center; width: 44px; height: 38px; }
    .slicknav_nav { position: absolute; top: 64px; left: 0; width: 100%; background: #111; z-index: 99999; padding: 10px 20px; margin: 0 !important; max-height: calc(100vh - 64px); overflow-y: auto; }
    .slicknav_nav ul { max-height: 260px; overflow-y: auto; }
    .slicknav_nav a, .slicknav_nav .slicknav_row, .slicknav_nav .slicknav_row a { color: #fff !important; font-size: 15px; padding: 9px 5px; }
    .slicknav_nav .slicknav_arrow { color: #f39200; }
    header.main_header.sticky { top: 0; background: #000 !important; }

    /* hero / inner banners: text on top, form underneath, full width */
    section.banner_main { padding: 60px 0 50px; }
    section.banner_main .container { position: relative; left: 0; top: 0; }
    .banner_main .col-md-7, .banner_main .col-md-5,
    .inner_banner .col-md-6, .landing-page .col-md-6 { flex: 0 0 100%; max-width: 100%; }
    .banner_textt p { width: 100%; }
    .banner_from { margin: 30px 0 0; width: 100%; }
    .inner_banner, .landing-page { padding-top: 60px; padding-bottom: 50px; }
    .inner_banner_textt { margin-bottom: 20px; }

    /* big headings with fixed side margins */
    .portfolio_textt h2 { margin: 0 0 10px; font-size: 32px; line-height: 40px; }
    section h2 { word-wrap: break-word; }
    .footer_top ul.row li { text-align: center; margin-bottom: 15px; }
    footer .col-md-4, footer .col-md-3, footer .col-md-2 { margin-bottom: 20px; }
}

@media (max-width: 991px) {
    .intersted_boxx_wrpp ul.row > li { flex: 0 0 100%; max-width: 100%; text-align: center; margin-bottom: 14px; }
    .theme-btn, .theme-btn .btn-title { white-space: nowrap; }
    .intersted_boxx_wrpp {padding: 30px 30px ;}
}

/* book covers: keep the desktop 2:3 shape instead of cropping them to a fixed 420px height */
@media (max-width: 1199px) {
    .portfo_boxx img { height: auto; aspect-ratio: 2 / 3; }
    .intersted_boxx_wrpp {width: 100% ;}
}

/* "How It Works" slider */
@media (max-width: 1199px) {
    section.testi_secc { padding: 40px 3%; }
    .big_imggs_testii img { height: 380px; }
    .test_bigg_txt_wrpp h3 { font-size: 30px; }
}
@media (max-width: 991px) {
    .testi_secc .col-md-10, .testi_secc .col-md-2 { flex: 0 0 100%; max-width: 100%; }
    .testi_small_deal { display: none; }
    section.testi_secc .slick-list { padding: 0; }
    .test_bigg_txt_wrpp .col-md-6 { flex: 0 0 100%; max-width: 100%; text-align: center; }
    .big_imggs_testii img { width: 300px; height: 300px; margin: 0 auto; display: block; }
    .test_bigg_txt_wrpp h3 { margin-top: 20px; }
    .test_bigg_txt_wrpp p { width: 100%; max-width: 520px; margin: 0 auto; }
    .testi_bigg_deal .slick-dots { position: static; margin-top: 10px; display: flex !important; justify-content: center; gap: 6px; }
    .testi_bigg_deal .slick-dots li { width: 10px; height: 10px; margin: 0; }
    .testi_bigg_deal .slick-dots li button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: #cfcfcf; }
    .testi_bigg_deal .slick-dots li.slick-active button { background: #f39200; }
    .testi_bigg_deal .slick-dots li button:before { display: none; }
}

/* keep the round photos round (they were turning into ovals on narrow columns) */
@media (min-width: 992px) and (max-width: 1199px) {
    .big_imggs_testii img { height: auto; aspect-ratio: 1 / 1; }
}
@media (max-width: 1199px) {
    .testi_smll_imgg img { height: auto; aspect-ratio: 1 / 1; }
}


