/*
 * Nxtech / Foxbeep Technology – Custom Responsive CSS
 * Covers: announcement bar, header, service pages, blog, footer, all custom components
 * Mobile-first enhancements on top of existing theme responsive.css
 */

/* ====================================================================
   0. GLOBAL IMPROVEMENTS
==================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { -webkit-tap-highlight-color: rgba(37,99,235,.15); }

/* ====================================================================
   1. ANNOUNCEMENT BAR
==================================================================== */
.fx-announce-bar {
    position: relative;
    z-index: 99999;
}

@media (max-width: 767px) {
    .fx-announce-bar {
        font-size: 11.5px;
        padding: 8px 40px 8px 12px;
        min-height: 36px;
    }
    .fx-announce-inner {
        gap: 6px;
        justify-content: flex-start;
    }
    .fx-announce-cta { display: none; }
}

/* ====================================================================
   2. TOP HEADER (logo bar above nav)
==================================================================== */
.top_header {
    transition: height 0.2s ease;
}

@media (max-width: 999px) {
    .top_header {
        height: auto;
        min-height: 56px;
        padding: 8px 0;
    }
    .top_header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .top_header .left {
        width: auto;
        padding: 0;
        flex-shrink: 0;
    }
    .top_header .right {
        padding: 0;
        font-size: 13px;
    }
    .top_header .right .call-us-phone {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .top_header {
        min-height: 50px;
        padding: 6px 0;
    }
    .top_header .right {
        display: none; /* hide phone/chat on mobile – nav has contact */
    }
    .top_header .left {
        width: 100%;
        text-align: center;
        padding: 4px 0;
    }
    .top_header #logo img {
        max-height: 36px;
    }
}

/* ====================================================================
   3. STICKY NAV — header.header.sty3
==================================================================== */

/* Keep logo in top_header; on mobile add spacing to nav */
@media (max-width: 767px) {
    header.header.sty3 {
        position: sticky !important;
        top: 0 !important;
        z-index: 8999 !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
        padding: 0 !important;
    }
    header.header.sty3 .menu_main {
        width: 100% !important;
    }
    header.header.sty3 .container {
        padding: 0 12px !important;
    }
    /* Hamburger button */
    .navbar-toggle {
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 10px 12px;
        border: none !important;
        background: none !important;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
    }
    .navbar-toggle span {
        font-size: 13px;
        font-weight: 600;
        color: #1e293b;
        letter-spacing: .02em;
    }
    .navbar-toggle button {
        width: 28px;
        height: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    .navbar-toggle button i {
        font-size: 22px;
        color: #1e293b;
        line-height: 1;
    }
    /* Collapsed nav on mobile */
    .navbar-collapse.collapse:not(.in) {
        display: none !important;
    }
    .navbar-collapse.collapse.in,
    .navbar-collapse.collapsing {
        display: block !important;
    }
    .navbar-collapse {
        width: 100% !important;
        float: none !important;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        padding: 0 !important;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Mobile nav items */
    .navbar-nav {
        float: none !important;
        margin: 0 !important;
        width: 100%;
    }
    .navbar-nav > li {
        float: none !important;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    .navbar-nav > li > a {
        padding: 14px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        line-height: 1.4 !important;
    }
    .navbar-nav > li > a:hover,
    .navbar-nav > li > a:focus {
        background: #f8fafc !important;
        color: #2563eb !important;
    }
    /* Dropdown menus on mobile */
    .dropdown-menu {
        position: static !important;
        float: none !important;
        display: none;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: #f8fafc !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .dropdown-menu > li > a {
        padding: 11px 28px !important;
        font-size: 13.5px !important;
        color: #334155 !important;
        border-bottom: 1px solid #e9eef4 !important;
        display: block;
        font-weight: 500 !important;
    }
    .dropdown-menu > li > a:hover {
        background: #eff6ff !important;
        color: #2563eb !important;
    }
    .open > .dropdown-menu {
        display: block !important;
    }
    /* Show dropdown caret */
    .navbar-nav > li.dropdown > a::after {
        content: '▾';
        font-size: 12px;
        color: #94a3b8;
        margin-left: auto;
        padding-left: 8px;
    }
    /* Yamm / mega-menu override */
    .yamm .yamm-content {
        padding: 0 !important;
    }
    .yamm .dropdown-menu.yamm-fw {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

/* ====================================================================
   4. PAGE CONTAINERS & LAYOUT
==================================================================== */
@media (max-width: 767px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Remove layout-boxed max-width constraint on very small screens */
    .layout-boxed, .limit-width {
        max-width: 100% !important;
    }
}

/* ====================================================================
   5. SERVICE PAGES (svc-* classes from service-single.php)
==================================================================== */

/* Service title bar */
@media (max-width: 900px) {
    .svc-titlebar-inner {
        flex-direction: column;
        gap: 12px;
    }
    .svc-titlebar-btns {
        margin-left: 0 !important;
        width: 100%;
        justify-content: flex-start !important;
    }
}

@media (max-width: 767px) {
    .svc-titlebar {
        padding: 20px 0 16px !important;
    }
    .svc-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .svc-titlebar-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
    .svc-titlebar-icon svg {
        width: 22px;
        height: 22px;
    }
    .svc-h1 {
        font-size: clamp(19px, 5vw, 26px) !important;
    }
    .svc-tagline {
        font-size: 14px !important;
    }
    .svc-btn {
        padding: 9px 18px !important;
        font-size: 13.5px !important;
    }
    .svc-titlebar-btns {
        flex-wrap: wrap;
        gap: 8px;
    }
    .svc-titlebar-btns .svc-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    .svc-highlights-row {
        gap: 7px;
        padding-top: 12px;
    }
    .svc-highlight-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Service content section */
@media (max-width: 767px) {
    .svc-content-section {
        padding: 40px 0 !important;
    }
    .svc-content {
        font-size: 15.5px !important;
    }
    .svc-content h2 {
        font-size: clamp(18px, 5vw, 24px) !important;
        margin-top: 36px !important;
    }
    .svc-content h3 {
        font-size: clamp(16px, 4vw, 20px) !important;
    }
}

/* Related services grid */
@media (max-width: 767px) {
    .svc-related {
        padding: 36px 0 !important;
    }
    .svc-related-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .svc-related-card {
        padding: 14px !important;
    }
}

@media (max-width: 400px) {
    .svc-related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* CTA Banner */
@media (max-width: 767px) {
    .svc-cta-banner {
        padding: 36px 16px !important;
    }
    .svc-cta-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    .svc-cta-title {
        font-size: clamp(18px, 5vw, 26px) !important;
    }
    .svc-cta-sub {
        font-size: 14px !important;
    }
    .svc-btn-cta-white {
        width: 100%;
        justify-content: center;
    }
}

/* ====================================================================
   6. BLOG / CATEGORY PAGES (nxb-* classes)
==================================================================== */

/* Blog header */
@media (max-width: 767px) {
    .nxb-blog-header {
        padding: 32px 16px 24px !important;
    }
    .nxb-header-h1 {
        font-size: clamp(22px, 6vw, 34px) !important;
    }
    .nxb-header-desc {
        font-size: 14px !important;
    }
    .nxb-breadcrumb {
        font-size: 12px !important;
    }
    /* Category tab strip */
    .nxb-cat-tabs {
        gap: 6px !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    .nxb-cat-tab {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    .nxb-cat-tabs-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .nxb-cat-tabs-wrap::-webkit-scrollbar { display: none; }
}

/* Blog posts grid */
@media (max-width: 900px) {
    .nxb-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 540px) {
    .nxb-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* Blog cards */
@media (max-width: 767px) {
    .nxb-card {
        border-radius: 10px !important;
    }
    .nxb-card-body {
        padding: 14px !important;
    }
    .nxb-card-title {
        font-size: 15px !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .nxb-card-excerpt {
        font-size: 13.5px !important;
    }
    .nxb-card-img {
        height: 180px !important;
    }
    /* Pagination */
    .nxb-pagination {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    .nxb-page-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }
}

/* ====================================================================
   7. FOOTER — CTA + Links + Bottom Bar
==================================================================== */

/* Pre-footer CTA section */
@media (max-width: 767px) {
    .fx-cta-section {
        padding: 48px 20px 40px !important;
    }
    .fx-cta-heading {
        font-size: clamp(22px, 6vw, 32px) !important;
    }
    .fx-cta-desc {
        font-size: 14px !important;
    }
    .fx-cta-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .fx-cta-btn-primary,
    .fx-cta-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .fx-cta-badges {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 600px) {
    .fx-cta-badges {
        align-items: center !important;
    }
}

/* Footer grid (4 columns → 2 → 1) */
@media (max-width: 960px) {
    .fx-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px 24px !important;
    }
}

@media (max-width: 600px) {
    .fx-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .fx-footer-brand {
        text-align: center !important;
    }
    .fx-footer-social {
        justify-content: center !important;
    }
    .fx-footer-col h4::after {
        margin-left: 0 !important;
    }
    .fx-footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    .fx-footer-legal {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
}

/* ====================================================================
   8. FAQ PAGE (details/summary accordion)
==================================================================== */
@media (max-width: 767px) {
    .faq-page {
        padding: 0 16px !important;
    }
    .faq-page details summary {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
    .faq-page details p {
        padding: 0 16px 14px !important;
        font-size: 14px !important;
    }
}

/* ====================================================================
   9. GENERAL PAGES (privacy policy, terms, affiliate)
==================================================================== */
@media (max-width: 767px) {
    .pp-page,
    .aff-page {
        padding: 0 16px !important;
    }
    .pp-page h1,
    .aff-page h1 {
        font-size: clamp(22px, 6vw, 32px) !important;
    }
    .pp-page h2 {
        font-size: 17px !important;
    }
}

/* ====================================================================
   10. BREADCRUMBS (service pages)
==================================================================== */
@media (max-width: 767px) {
    .svc-breadcrumb {
        font-size: 11.5px !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }
    .svc-bc-current {
        display: inline-block;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
}

/* ====================================================================
   11. SINGLE BLOG POST — mobile reading experience
==================================================================== */
@media (max-width: 767px) {
    .blog_post,
    .post-body {
        padding: 0 !important;
    }
    .blog_post .post-content p,
    article p {
        font-size: 15.5px;
        line-height: 1.75;
    }
    article h1 { font-size: clamp(20px, 5.5vw, 28px) !important; }
    article h2 { font-size: clamp(18px, 5vw, 24px) !important; }
    article h3 { font-size: clamp(16px, 4.5vw, 20px) !important; }
    .sharepost {
        flex-wrap: wrap !important;
    }
}

/* ====================================================================
   12. HOMEPAGE & GENERAL SECTIONS
==================================================================== */
@media (max-width: 767px) {
    /* Section headings */
    .sectitile h2,
    .stcode_title1 h2,
    .stcode_title h2 {
        font-size: clamp(20px, 5.5vw, 28px) !important;
    }
    /* Feature sections */
    .feature_section1 .one_fourth,
    .feature_section2 .one_third,
    .feature_section3 .one_third {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
    /* Pricing tables */
    .host_plans .planbox {
        margin-bottom: 16px;
    }
    /* Domain search */
    .domain_search .serch_area {
        flex-direction: column;
    }
    .domain_search .serch_area .enter_email_input {
        width: 100% !important;
    }
    .domain_search .serch_area .input_submit {
        width: 100% !important;
        border-radius: 6px !important;
    }
}

/* ====================================================================
   13. TOUCH IMPROVEMENTS & ACCESSIBILITY
==================================================================== */

/* Minimum tap target size: 44×44px */
@media (max-width: 767px) {
    .navbar-nav > li > a,
    .dropdown-menu > li > a,
    .svc-btn,
    .nxb-cat-tab,
    .fx-cta-btn-primary,
    .fx-cta-btn-secondary,
    .fx-footer-col a,
    .nxb-page-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .fx-footer-col a {
        display: block;
        padding: 4px 0;
    }
    /* Prevent zoom on input focus on iOS */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ====================================================================
   14. PERFORMANCE — reduce animation on low-end devices
==================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ====================================================================
   15. TABLET LAYOUT FIXES (768px – 1024px)
==================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .svc-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .nxb-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .svc-titlebar-btns {
        flex-wrap: wrap;
    }
}

/* ====================================================================
   16. PRINT — remove unnecessary elements
==================================================================== */
@media print {
    .fx-announce-bar,
    header.header,
    .top_header,
    .fx-cta-section,
    .svc-cta-banner,
    footer {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* ====================================================================
   17. FOCUS STYLES — keyboard accessibility
==================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 3px;
}

/* ====================================================================
   18. SCROLLBAR STYLING (WebKit)
==================================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ====================================================================
   19. UTILITY — smooth image transitions, better defaults
==================================================================== */
img { transition: opacity 0.2s ease; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded { opacity: 1; }

/* Services hub page grid */
@media (max-width: 767px) {
    .services-grid,
    [class*="services_section"] .one_fourth,
    [class*="services_section"] .one_third {
        width: 100% !important;
        float: none !important;
        margin-bottom: 16px !important;
    }
}

/* ====================================================================
   20. HAMBURGER — enhanced mobile menu toggle
==================================================================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.4);
    z-index: 8998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
    body.menu-active .mobile-nav-overlay {
        display: block;
    }
    body.menu-active {
        overflow: hidden;
    }
    /* Slide-in nav panel */
    .navbar-collapse.in,
    .navbar-collapse.collapse.in {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 82vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #fff !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-shadow: 4px 0 24px rgba(0,0,0,.18) !important;
        border-top: none !important;
        padding: 0 !important;
        animation: slideInLeft .25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    /* Nav header with logo inside slide panel */
    .navbar-collapse.in::before {
        content: '';
        display: block;
        height: 56px;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
    }
    @keyframes slideInLeft {
        from { transform: translateX(-100%); opacity: 0; }
        to   { transform: translateX(0); opacity: 1; }
    }
}

/* ====================================================================
   21. EXTRA: Top header sticky helper for mobile
==================================================================== */
@media (max-width: 767px) {
    /* When menu is open, prevent the top header scrolling */
    .top_header {
        position: relative;
        z-index: 9000;
    }
    /* Clearfix spacer removal on mobile */
    .margin_top6 {
        margin-top: 0 !important;
    }
}

/* ====================================================================
   22. RELATED POSTS – text placeholder (no featured image)
==================================================================== */
.nxrel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    height: 124px;
    background: linear-gradient(135deg, #0d1b6e 0%, #1e3fa3 60%, #3183d7 100%);
    border-radius: 4px;
    padding: 12px 14px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}
.nxrel-placeholder::before {
    content: '';
    position: absolute;
    top: -18px; right: -18px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.nxrel-source {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 5px;
    line-height: 1;
}
.nxrel-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    max-height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ====================================================================
   23. HOMEPAGE EXTRA SECTIONS
==================================================================== */

/* ── Shared section chrome ── */
.nx-section-head {
    text-align: center;
    margin-bottom: 48px;
}
.nx-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3183d7;
    margin-bottom: 10px;
}
.nx-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0d1b6e;
    margin: 0 0 12px;
    line-height: 1.25;
}
.nx-section-sub {
    font-size: 16px;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Stats ── */
.nx-stats-section {
    background: linear-gradient(135deg, #0d1b6e 0%, #1e3fa3 50%, #3183d7 100%);
    padding: 60px 0;
}
.nx-stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}
.nx-stat-item {
    text-align: center;
    color: #fff;
    flex: 1 1 160px;
}
.nx-stat-num {
    display: block;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #fff;
}
.nx-stat-plus {
    font-size: 32px;
    font-weight: 700;
    vertical-align: super;
    margin-left: 2px;
}
.nx-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-top: 8px;
}

/* ── Why Choose Us ── */
.nx-why-section {
    padding: 80px 0;
    background: #f8faff;
}
.nx-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.nx-why-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid #e8eef8;
    transition: box-shadow 0.25s, transform 0.25s;
}
.nx-why-card:hover {
    box-shadow: 0 8px 32px rgba(49,131,215,0.12);
    transform: translateY(-4px);
}
.nx-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f1fd, #c8ddf8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.nx-why-icon i {
    font-size: 22px;
    color: #1e3fa3;
}
.nx-why-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0d1b6e;
    margin: 0 0 8px;
}
.nx-why-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ── Process ── */
.nx-process-section {
    padding: 80px 0;
    background: #fff;
}
.nx-process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.nx-step {
    flex: 1 1 200px;
    max-width: 240px;
    text-align: center;
    padding: 0 16px;
}
.nx-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d1b6e, #3183d7);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}
.nx-step-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0d1b6e;
    margin: 0 0 8px;
}
.nx-step-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.nx-step-arrow {
    padding-top: 20px;
    color: #c0cfe8;
    font-size: 20px;
    align-self: flex-start;
    flex-shrink: 0;
}

/* ── Testimonials ── */
.nx-testi-section {
    padding: 80px 0;
    background: #f8faff;
}
.nx-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.nx-testi-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid #e8eef8;
    position: relative;
}
.nx-testi-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 64px;
    color: #e0ebfb;
    line-height: 1;
    font-family: Georgia, serif;
}
.nx-testi-stars {
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.nx-testi-quote {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 20px;
    font-style: italic;
}
.nx-testi-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid #edf2fb;
    padding-top: 16px;
}
.nx-testi-name {
    font-weight: 700;
    color: #0d1b6e;
    font-size: 14px;
}
.nx-testi-role {
    font-size: 12px;
    color: #999;
}

/* ── Blog Posts ── */
.nx-blog-section {
    padding: 80px 0;
    background: #fff;
}
.nx-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}
.nx-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eef8;
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
    background: #fff;
}
.nx-blog-card:hover {
    box-shadow: 0 8px 32px rgba(49,131,215,0.12);
    transform: translateY(-4px);
    text-decoration: none;
}
.nx-blog-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #e8f1fd;
}
.nx-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.nx-blog-card:hover .nx-blog-thumb img {
    transform: scale(1.04);
}
.nx-blog-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1b6e, #3183d7);
    padding: 16px;
}
.nx-blog-no-img span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}
.nx-blog-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.nx-blog-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3183d7;
    margin-bottom: 8px;
}
.nx-blog-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d1b6e;
    margin: 0 0 10px;
    line-height: 1.4;
    flex: 1;
}
.nx-blog-date {
    font-size: 12px;
    color: #999;
}
.nx-blog-more {
    text-align: center;
}
.nx-btn-outline {
    display: inline-block;
    border: 2px solid #3183d7;
    color: #3183d7;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.nx-btn-outline:hover {
    background: #3183d7;
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .nx-why-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-step-arrow { display: none; }
    .nx-process-steps { gap: 24px; }
    .nx-section-title { font-size: 26px; }
}
@media (max-width: 600px) {
    .nx-why-grid,
    .nx-testi-grid,
    .nx-blog-grid { grid-template-columns: 1fr; }
    .nx-stats-grid { gap: 24px; }
    .nx-stat-num { font-size: 40px; }
    .nx-process-steps { flex-direction: column; align-items: center; }
    .nx-step { max-width: 100%; text-align: left; display: flex; gap: 16px; align-items: flex-start; }
    .nx-step-num { flex-shrink: 0; width: 44px; height: 44px; font-size: 15px; }
    .nx-section-title { font-size: 22px; }
    .nx-why-section,
    .nx-process-section,
    .nx-testi-section,
    .nx-blog-section { padding: 52px 0; }
    .nx-stats-section { padding: 44px 0; }
}

/* ====================================================================
   24. MOBILE HEADER — hide top bar + logo, show brand text
==================================================================== */

/* Brand text: hidden on desktop */
.nx-mobile-brand {
    display: none;
}

@media (max-width: 767px) {
    /* Hide the top header (logo bar + phone/links) */
    .top_header.header-top3 {
        display: none !important;
    }

    /* Show brand text in navbar */
    .nx-mobile-brand {
        display: flex;
        align-items: center;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 2px;
        color: #0d1b6e;
        text-decoration: none;
        flex: 1;
        padding: 0 4px;
        white-space: nowrap;
    }
    .nx-mobile-brand:hover,
    .nx-mobile-brand:focus {
        color: #3183d7;
        text-decoration: none;
    }

    /* Make the navbar-header flex so brand + toggle sit side by side */
    .navbar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 8px 12px !important;
    }

    /* Keep the toggle on the right */
    .navbar-header .navbar-toggle {
        margin: 0 !important;
        float: none !important;
        flex-shrink: 0;
    }
}
