/* ========================================
   CMSPOST MOBILE NAVIGATION FIX
======================================== */

@media (max-width: 991px) {

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 99999;
        width: min(88%, 380px);
        height: 100%;
        padding: 85px 28px 35px;
        overflow-y: auto;
        background: #ffffff;
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.18);
        transition: right 0.35s ease;
    }

    /* Use whichever active class your template adds */
    .mobile-menu.active,
    .mobile-menu.open,
    .mobile-menu.show {
        right: 0;
    }

    .mobile-menu .close-btn {
        position: absolute;
        top: 24px;
        right: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f3edff;
        cursor: pointer;
    }

    .mobile-menu .close-btn img {
        width: 18px;
        height: 18px;
        filter: none;
    }

    /* Override desktop navigation layout */
    .mobile-menu .main-menu11 {
        display: block !important;
        width: 100%;
    }

    .mobile-menu .main-menu11 > ul {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        list-style: none;
    }

    .mobile-menu .main-menu11 > ul > li {
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #ececf2;
    }

    .mobile-menu .main-menu11 > ul > li > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 58px;
        padding: 0 14px !important;
        border-radius: 10px;
        color: #151525 !important;
        background: transparent !important;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.3;
        text-decoration: none;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mobile-menu .main-menu11 > ul > li > a:hover {
        color: #861ee8 !important;
        background: #f7f1ff !important;
    }

    .mobile-menu .main-menu11 > ul > li > a.active {
        color: #7417d1 !important;
        background: #f1e6ff !important;
    }

    /* Mobile Login link */
    .mobile-menu .main-menu11 > ul > li:nth-last-child(2) > a {
        color: #7417d1 !important;
    }

    /* Mobile CTA */
    .mobile-menu .mobile-cta {
        margin-top: 24px !important;
        border-bottom: 0 !important;
    }

    .mobile-menu .mobile-cta > a.btn-style1 {
        display: flex !important;
        justify-content: center;
        min-height: 54px;
        padding: 0 20px !important;
        color: #ffffff !important;
        background: linear-gradient(
            90deg,
            #861ee8 0%,
            #c918f1 100%
        ) !important;
        border-radius: 30px;
        text-align: center;
    }

    .mobile-menu .mobile-cta > a.btn-style1:hover {
        color: #ffffff !important;
        background: linear-gradient(
            90deg,
            #7417d1 0%,
            #ad12d1 100%
        ) !important;
    }

    .mobile-menu .mobile-cta .btn-style1 span {
        display: inline-flex;
        margin-left: 12px;
    }

    /* Dark page overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 99990;
        background: rgba(0, 0, 0, 0.62);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .menu-overlay.active,
    .menu-overlay.open,
    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}
/* ========================================
   MOBILE CTA BUTTON — ALWAYS VISIBLE
======================================== */

@media (max-width: 991px) {

    .mobile-menu .mobile-cta {
        display: block !important;
        width: 100% !important;
        margin: 22px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .mobile-menu .mobile-cta > a.btn-style1 {
        position: relative !important;
        z-index: 2 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        min-height: 58px !important;
        padding: 7px 8px 7px 26px !important;

        border: 0 !important;
        border-radius: 999px !important;

        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;

        background: linear-gradient(
            90deg,
            #7b19e8 0%,
            #c718ed 100%
        ) !important;

        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-align: left !important;
        text-decoration: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        transform: none !important;

        box-shadow: 0 12px 30px rgba(139, 28, 232, 0.24) !important;
    }

    /* Remove template animation layers */
    .mobile-menu .mobile-cta > a.btn-style1::before,
    .mobile-menu .mobile-cta > a.btn-style1::after {
        display: none !important;
        content: none !important;
    }

    /* Arrow circle */
    .mobile-menu .mobile-cta > a.btn-style1 span {
        position: static !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 44px !important;

        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;

        border-radius: 50% !important;
        background: #111111 !important;

        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .mobile-menu .mobile-cta > a.btn-style1 span img {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        filter: brightness(0) invert(1) !important;
    }

    /* Keep it visible during hover, focus, and touch */
    .mobile-menu .mobile-cta > a.btn-style1:hover,
    .mobile-menu .mobile-cta > a.btn-style1:focus,
    .mobile-menu .mobile-cta > a.btn-style1:active {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;

        background: linear-gradient(
            90deg,
            #6f12d8 0%,
            #b610da 100%
        ) !important;

        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}
/* ========================================
   SERVICE AREA FEATURE
======================================== */

.service-area-feature {
    position: relative;
    overflow: hidden;
}

.service-area-feature::before {
    content: "";
    position: absolute;
    left: -160px;
    bottom: -160px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(114, 219, 58, 0.08);
    filter: blur(100px);
    pointer-events: none;
}

.service-area-token-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.service-area-token-box span {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(152, 24, 231, 0.18);
    border-radius: 30px;
    color: #7d18d4;
    background: #f7efff;
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
}

.service-area-btn {
    margin-top: 30px;
}

@media (max-width: 991px) {
    .service-area-feature .benefit-img2 {
        margin-bottom: 50px;
    }
}
/* ========================================
   SERVICE AREA TOKEN DISPLAY
======================================== */

.benefit-content2 .service-area-token-box {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 26px 0 0;
    padding: 0;
}

.benefit-content2 .service-area-token-box > span {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 14px !important;

    border: 1px solid rgba(204, 27, 255, 0.25) !important;
    border-radius: 999px !important;

    color: #861ee8 !important;
    background: #f6ecff !important;

    font-family: monospace;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Service Area button spacing */
.benefit-content2 .service-area-btn {
    display: inline-flex;
    margin-top: 26px;
}
.service-area-subtitle {
    display: inline-block;
    margin-bottom: 14px;
    color: #cc1bff;
    font-size: 14px;
    font-weight: 700;
}
/* ========================================
   SERVICE AREA PAGE BUILDER
======================================== */

.service-area-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(152, 24, 231, 0.14);
    border-radius: 22px;
    box-shadow: 0 24px 65px rgba(31, 24, 48, 0.12);
}

.service-area-subtitle {
    display: inline-block;
    margin-bottom: 14px;
    color: #cc1bff;
    font-size: 14px;
    font-weight: 700;
}

.geo-builder-block {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 12px;
    padding: 22px;
    border: 1px solid rgba(152, 24, 231, 0.14);
    border-radius: 18px;
    background: #faf7ff;
}

.geo-builder-block > img {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
}

.geo-builder-copy {
    flex: 1;
}

.geo-builder-copy .title2 {
    margin-bottom: 8px;
}

.geo-builder-copy p {
    margin-bottom: 0;
}

/* Token pills */

.benefit-content2 .service-area-token-box {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 26px 0 0;
    padding: 0;
}

.benefit-content2 .service-area-token-box > span {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    border: 1px solid rgba(204, 27, 255, 0.25) !important;
    border-radius: 999px !important;
    color: #861ee8 !important;
    background: #f6ecff !important;
    font-family: monospace;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.service-area-note {
    max-width: 680px;
    margin: 18px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.benefit-content2 .service-area-btn {
    display: inline-flex;
    margin-top: 26px;
}

@media (max-width: 991px) {
    .service-area-image {
        margin-bottom: 50px;
    }
}

@media (max-width: 575px) {
    .geo-builder-block {
        flex-direction: column;
        padding: 18px;
    }

    .benefit-content2 .service-area-token-box > span {
        font-size: 12px !important;
    }
}
/* ========================================
   CMSPOST CORE FEATURES
======================================== */

.cmspost-feature-intro {
    max-width: 780px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
}

.feature-block2 {
    height: 100%;
}

.feature-block2 .title {
    margin-bottom: 12px;
}

.feature-block2 p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
}


/* ========================================
   CMSPOST WORKFLOW LIST
======================================== */

.workflow-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}

.workflow-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.workflow-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(204, 27, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(204, 27, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
}

.workflow-img img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow:
        0 28px 75px rgba(0, 0, 0, 0.32),
        0 0 60px rgba(204, 27, 255, 0.08);
}

@media (max-width: 991px) {
    .workflow-content {
        margin-bottom: 50px;
    }
}

@media (max-width: 575px) {
    .workflow-list {
        grid-template-columns: 1fr;
    }

    .cmspost-feature-intro {
        font-size: 15px;
        text-align: left;
    }
}
/* ========================================
   CMSPOST HEADER RESPONSONSIVE FIX
======================================== */

.header-main .header-logo {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: visible;
}

.header-main .header-logo .logo {
    display: inline-flex;
    align-items: center;
    width: 235px;
    max-width: 100%;
    text-decoration: none;
}

.header-main .header-logo img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.header-main .header-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-main .header-login {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.header-main .header-login:hover {
    color: #cc1bff;
}

/* Desktop hamburger remains hidden */

.header-main .hamburger-btn {
    display: none;
}


/* ========================================
   TABLET AND MOBILE HEADER
======================================== */

@media (max-width: 991px) {

    .header-main .header-bottom {
        padding: 16px 0;
    }

    .header-main .container-fluid {
        padding-right: 18px;
        padding-left: 18px;
    }

    .header-main .row {
        align-items: center;
    }

    .header-main .header-logo {
        min-height: 54px;
    }

    .header-main .header-logo .logo {
        width: 250px;
        max-width: none;
    }

    /*
     * Slightly enlarges the visible logo.
     * This helps when the PNG contains
     * transparent spacing around the artwork.
     */
    .header-main .header-logo img {
        width: 250px !important;
        max-width: none !important;
        transform: scale(1.12);
        transform-origin: left center;
    }

    /*
     * Login and CTA already exist inside
     * the slide-out mobile navigation.
     */
    .header-main .desktop-header-action {
        display: none !important;
    }

    .header-main .header-btn {
        width: 100%;
        justify-content: flex-end;
        gap: 0;
    }

    .header-main .hamburger-btn {
        display: inline-flex !important;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 6px;

        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        margin: 0;
        padding: 8px;

        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .header-main .hamburger-btn span {
        display: block;
        width: 30px;
        height: 3px;
        margin: 0;

        border-radius: 999px;
        background: #ffffff;
    }
}


/* ========================================
   SMALLER PHONES
======================================== */

@media (max-width: 575px) {

    .header-main .container-fluid {
        padding-right: 14px;
        padding-left: 14px;
    }

    .header-main .header-logo .logo {
        width: 225px;
    }

    .header-main .header-logo img {
        width: 225px !important;
        transform: scale(1.12);
    }

    .header-main .hamburger-btn {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .header-main .hamburger-btn span {
        width: 28px;
    }
}


/* ========================================
   VERY NARROW PHONES
======================================== */

@media (max-width: 390px) {

    .header-main .header-logo .logo {
        width: 200px;
    }

    .header-main .header-logo img {
        width: 200px !important;
        transform: scale(1.08);
    }

    .header-main .hamburger-btn span {
        width: 26px;
    }
}