/* =====================
   MAX-WIDTH: 1080px
===================== */
@media (max-width: 1080px) {
    .SecondBanner {
        height: 750px; width: 100%;
        display: flex; align-items: center; flex-direction: column;
        justify-content: center;
        background: linear-gradient(45deg, #6a11cb, #2575fc); color: white;
    }
    .SecondBanner-a { height: 60%; width: 50%; display: flex; align-items: start; justify-content: center; }
    .SecondBanner-a-image { height: 80%; width: 85%; border-radius: 5px; box-shadow: 5px 5px 15px rgba(0,0,0,0.548); }
    .SecondBanner-b { height: 60%; width: 80%; display: flex; align-items: center; justify-content: center; }
    .thirdBanner { height: auto; padding: 40px 0; display: flex; align-items: center; justify-content: center; }
    .thirdBanner section { width: 85%; height: 100%; display: flex; justify-content: center; flex-direction: column; align-items: center; }
    .thirdBanner-a { width: 55%; display: flex; align-items: center; justify-content: center; }
    .thirdBanner-b { width: 85%; display: flex; align-items: start; flex-direction: column; margin-top: 30px; }
}

/* =====================
   MAX-WIDTH: 940px
===================== */
@media (max-width: 940px) {
    .Body3a {
        width: 100%; align-items: center; justify-content: center;
        display: flex; border-radius: 15px; flex-direction: column;
    }
    .Body3 {
        height: auto; min-height: 500px; background-color: #fff;
        display: flex; align-items: center; justify-content: center; width: 100%;
        padding: 20px 0;
    }
    .footer { height: auto; }
    .FTMOB { display: flex; flex-direction: column; height: auto; justify-content: space-between; }
    .seo-intro { padding: 0 16px; }
    .seo-intro h2 { font-size: 1.3rem; }
    .faq-section { padding: 0 16px; }

    /* Banners stack full width on tablet */
    .Body3a-banner-1, .Body3a-banner-2, .Body3a-banner-3,
    .Body3a-banner-4, .Body3a-banner-5, .Body3a-banner-6 {
        width: 90%; height: 300px;
    }
    .BoxSection1-Straight, .BoxSection1-Rev {
        width: 90%; min-height: auto; text-align: center;
    }
}

/* =====================
   MAX-WIDTH: 740px
===================== */
@media (max-width: 740px) {
    .NavHead { display: none; }
    .seo-intro h2 { font-size: 1.2rem; }
    .seo-intro p { font-size: 0.95rem; }
    .faq-section summary { font-size: 0.95rem; }
    .faq-section details p { font-size: 0.9rem; }
    .footer-container { flex-direction: column; margin: 0 6%; gap: 20px; }
    .footer-section { width: 100%; }
}

/* =====================
   MAX-WIDTH: 540px — mobile only
===================== */
@media (max-width: 540px) {

    /* ── Hide desktop nav and social icons ── */
    .HeadSec2 { display: none !important; }
    .HeadSec3 { display: none !important; }

    /* ── Hamburger: sits inside header flex row, pushed to the right ── */
    .mob-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 14px;
        width: 38px;
        height: 38px;
        font-size: 22px;
        background: #270057;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        flex-shrink: 0;
        /* Remove any fixed/absolute positioning — it lives in the header flow */
        position: static !important;
        top: auto !important;
        right: auto !important;
    }

    /* ── Sidebar ── */
    .sidebar {
        position: fixed; top: 0; left: 0; width: 0; height: 100%;
        background-color: #1a0036; overflow-x: hidden;
        transition: width 0.4s ease; padding-top: 60px;
        z-index: 3000;
    }
    .sidebar a {
        all: unset; display: block; padding: 14px 24px;
        font-size: 16px; color: #ccc; cursor: pointer;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: background 200ms, color 200ms;
    }
    .sidebar a:hover { color: #fff; background: rgba(255,255,255,0.08); }
    .sidebar ul { list-style: none; padding: 0; }
    .sidebar ul li {
        color: #bdbdbd; padding: 10px 24px 10px 32px;
        font-size: 15px; cursor: pointer;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .sidebar ul li:hover { color: #fff; background: rgba(255,255,255,0.06); }
    .close-btn {
        position: absolute; top: 14px; right: 18px;
        font-size: 24px; color: white; background: none; border: none; cursor: pointer;
    }

    /* ── Rebrand banner: wrap text neatly ── */
    .rebrand-banner {
        font-size: 11px;
        padding: 8px 50px 8px 10px; /* right padding keeps text clear of hamburger */
        min-height: auto;
        height: auto;
        line-height: 1.6;
        text-align: left;
    }

    /* ── Hero / Body1 ── */
    .Body1 {
        min-height: auto;
        height: auto;
        padding-bottom: 0;
    }
    .Body1Wallpaper {
        width: 100%;
        height: 440px;
        border-radius: 10px;
        margin-top: 0;
        justify-content: flex-end;
        padding-bottom: 0;
    }
    /* H1 sits at top of the image, readable */
    .Body1Head {
        font-size: 18px;
        margin-top: 0;
        padding: 14px 14px 8px;
        text-align: center;
        width: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
        border-radius: 10px 10px 0 0;
    }
    /* Promo bar sits at bottom of image */
    .Body1Down {
        width: 100%;
        height: auto;
        margin-top: auto;
        padding: 10px 8px;
        border-radius: 0 0 10px 10px;
    }
    .Body1Down-A1 p { font-size: 18px; }
    .Body1Down-A21 p:nth-child(1) { font-size: 12px; }
    .Body1Down-A21 p:nth-child(2) { font-size: 11px; }
    .Body1Down-A22 { font-size: 10px; }
    .Body1Down-B button { font-size: 10px; width: 100%; height: 36px; }

    /* ── Product sections ── */
    .BodySection { margin-top: 20px; margin-bottom: 20px; }
    .Body3 { margin-top: 20px; margin-bottom: 10px; }
    .BoxSection1-Straight, .BoxSection1-Rev {
        width: 100%; min-height: auto; height: auto;
        text-align: center; padding: 20px 16px;
    }
    .Body3Para2 { margin: 0 auto; text-align: justify; width: 90%; }
    .Body3Para3 { margin: 0 auto; width: 140px; height: 38px; }
    .Body3a { flex-direction: column; width: 100%; gap: 0; }
    .Body3a-banner-1, .Body3a-banner-2, .Body3a-banner-3,
    .Body3a-banner-4, .Body3a-banner-5, .Body3a-banner-6 {
        width: 100%; height: 200px; border-radius: 0;
    }

    .Body4 { width: 100%; height: 170px; text-align: center; }
    .seo-intro { margin: 20px auto; padding: 0 16px; }
    .seo-intro h2 { font-size: 1.1rem; }
    .seo-intro p { font-size: 0.9rem; }
    .faq-section { margin: 30px auto; padding: 0 16px; }
    .faq-section h2 { font-size: 1.1rem; }
    .footer-container { flex-direction: column; text-align: center; justify-content: center; margin: 0 5%; }
    .footer-section { width: 100%; }
}

/* =====================
   320px – 540px — small phones (extra overrides)
===================== */
@media only screen and (min-width: 320px) and (max-width: 540px) {
    .rebrand-banner { font-size: 11px; padding: 8px 50px 8px 10px; height: auto; line-height: 1.6; text-align: left; }
    .Body1 { min-height: auto; height: auto; }
    .Body1Wallpaper { width: 100%; height: 340px; border-radius: 10px; margin-top: 0; }
    .Body1Head { font-size: 18px; margin-top: 0; padding: 14px; }
    .Body1Down { height: auto; width: 100%; margin-top: auto; }
}

/* =====================
   541px – 768px — large phones
===================== */
@media only screen and (min-width: 541px) and (max-width: 768px) {
    .HeadSec2 { display: none !important; }
    .HeadSec3 { display: none !important; }
    .mob-menu-btn { display: flex !important; }

    .rebrand-banner { font-size: 12px; padding: 8px 14px; }

    .Body1Wallpaper { height: 380px; width: 100%; border-radius: 0; }
    .Body1Head { font-size: 22px; }
    .Body1Down { padding: 10px 8px; }

    .BodySection { margin-top: 20px; margin-bottom: 20px; }
    .Body3 { margin-top: 20px; margin-bottom: 10px; }
    .BoxSection1-Straight, .BoxSection1-Rev {
        width: 100%; min-height: auto; height: auto;
        text-align: center; padding: 20px 16px;
    }
    .Body3Para2 { margin: 0 auto; width: 90%; }
    .Body3Para3 { margin: 0 auto; width: 140px; }
    .Body3a { flex-direction: column; width: 100%; gap: 0; }
    .Body3a-banner-1, .Body3a-banner-2, .Body3a-banner-3,
    .Body3a-banner-4, .Body3a-banner-5, .Body3a-banner-6 {
        width: 100%; height: 240px; border-radius: 0;
    }
    .Body4 { width: 100%; height: 200px; text-align: center; }
    .footer-container { flex-direction: column; text-align: center; justify-content: center; margin: 0 5%; }
    .footer-section { width: 100%; }
}

/* =====================
   768px – 1024px — tablets
===================== */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

    .rebrand-banner { font-size: 13px; }
    /* banner (~36px) + header (70px) = 106px */
    .Body1 { margin-top: 106px; }

    .HeadLogo { height: 40px; width: 220px; margin-top: 60px; position: fixed; margin-right: 70%; }
    .HeadSec3 { margin-left: 60%; }
    .HeadSec2 { flex-direction: column; width: 88%; margin-left: 100px; }
    .NavHead { font-size: 20px; padding-left: 60px; padding-right: 60px; margin-left: 90px; }

    .Body1Wallpaper { height: 70%; width: 92%; display: flex; flex-direction: column; align-items: center; margin-top: 5%; }
    .Body1Head { font-size: 40px; }
    .Body1Down { height: 100%; width: 100%; }

    .Body3 { margin-top: 30px; margin-bottom: 10px; }
    .BoxSection1-Straight, .BoxSection1-Rev {
        width: 100%; min-height: auto; height: auto;
        text-align: center; padding: 20px 16px;
    }
    .Body3Para2 { margin: 0 auto; text-align: justify; width: 90%; }
    .Body3Para3 { margin: 0 auto; width: 160px; }
    .Body3a { flex-direction: column; width: 100%; gap: 0; }

    .Body3a-banner-1, .Body3a-banner-2, .Body3a-banner-3,
    .Body3a-banner-4, .Body3a-banner-5, .Body3a-banner-6 {
        width: 100%; height: 400px;
    }

    .Body4 { width: 100%; height: 250px; text-align: center; }
    .footer-container { flex-direction: column; text-align: center; justify-content: center; }
    .footer-section { width: 100%; }
}
