/* ══════════════════════════════════════════════════════════════════
   DIGIPDF TOOL — DEDICATED MOBILE STYLESHEET (mobile.css)
   Targeting Mobile Phones & Small Tablets (max-width: 768px)
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── 1. HEADER (Same Look as PC with Scaled Center Arch & Floating Logo) ── */
    .digi-header {
        height: 52px !important;
        padding: 0 8px !important;
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .digi-header-left {
        gap: 6px !important;
        position: relative;
        z-index: 20;
    }

    .digi-logo-box {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 6px rgba(255, 92, 40, 0.3) !important;
    }

    .digi-brand-name {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        letter-spacing: -0.2px !important;
    }

    .digi-divider {
        display: none !important;
    }

    .digi-all-tools-btn {
        display: none !important;
    }

    .digi-header-right {
        gap: 4px !important;
        position: relative;
        z-index: 20;
    }

    .digi-search-text,
    .digi-shortcut-key {
        display: none !important;
    }

    .digi-search-bar {
        min-width: unset !important;
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
    }
    .digi-search-bar i {
        margin: 0 !important;
        font-size: 12px !important;
    }

    .digi-action-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Bottom Arch Line on Mobile (Scaled & Graceful Center Arch) */
    .digi-bottom-arch-wrapper {
        display: flex !important;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        align-items: flex-end;
        z-index: 10;
        pointer-events: none;
    }

    .digi-straight-line {
        height: 2.5px !important;
        flex-grow: 1;
    }

    .digi-arch-container {
        display: flex !important;
        width: 66px !important;
        height: 33px !important;
        position: relative;
        flex-shrink: 0;
        justify-content: center;
        align-items: flex-end;
    }

    .digi-arch-curve {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        border-width: 2.5px !important;
        border-top-left-radius: 33px !important;
        border-top-right-radius: 33px !important;
    }

    .digi-center-halo {
        display: flex !important;
        width: 48px !important;
        height: 48px !important;
        bottom: -22px !important;
        box-shadow: 0 2px 10px rgba(255, 92, 40, 0.3) !important;
    }

    .digi-center-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        box-shadow: 0 2px 8px rgba(255, 92, 40, 0.4) !important;
    }


    /* ── 2. HERO SECTION & PROPORTIONATE TYPOGRAPHY ── */
    .hero-container {
        padding: 0 10px 30px 10px !important;
        max-width: 100% !important;
    }

    .hero-badge {
        font-size: 11px !important;
        padding: 3px 10px !important;
        margin-bottom: 10px !important;
        gap: 6px !important;
    }

    .hero-heading {
        font-size: 1.65rem !important;
        margin-bottom: 6px !important;
        line-height: 1.18 !important;
        letter-spacing: -0.02em !important;
    }

    .hero-subtext {
        font-size: 0.86rem !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
        padding: 0 6px !important;
    }

    /* ── 3. SEARCH BAR ON MOBILE (Fix Button Overflow & Text Sizing) ── */
    .hero-search-wrap {
        max-width: 100% !important;
        margin-bottom: 14px !important;
    }

    .hero-search-box {
        padding: 3px 4px 3px 12px !important;
        border-radius: 40px !important;
    }

    .hero-search-icon {
        font-size: 14px !important;
        margin-right: 8px !important;
    }

    .hero-search-box input {
        font-size: 13px !important;
        padding: 4px 0 !important;
        min-width: 0 !important;
    }

    .hero-search-box input::placeholder {
        font-size: 12px !important;
    }

    #heroClearBtn {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
        margin-right: 4px !important;
    }

    .hero-search-btn {
        padding: 7px 14px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 30px !important;
        gap: 4px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Quicklinks & Trust */
    .hero-quicklinks {
        gap: 4px 6px !important;
        margin-bottom: 14px !important;
        justify-content: center !important;
    }

    .hero-quicklinks-label {
        font-size: 11px !important;
    }

    .hero-ql-tag {
        font-size: 11px !important;
        padding: 3px 8px !important;
        border-radius: 16px !important;
    }
    .hero-ql-tag i {
        font-size: 10px !important;
    }

    .hero-trust {
        gap: 4px 10px !important;
    }
    .hero-trust-item {
        font-size: 11px !important;
        gap: 4px !important;
    }
    .hero-trust-item i {
        font-size: 11px !important;
    }


    /* ── 4. TOOL GRID (1 Line 3 Tools on Mobile Screen) ── */
    .tools-grid-section {
        padding: 20px 0 32px 0 !important;
    }

    .section-header-row {
        margin-bottom: 18px !important;
    }

    .section-title {
        font-size: 1.35rem !important;
        margin-bottom: 2px !important;
    }

    .section-sub {
        font-size: 0.82rem !important;
    }

    .btn-see-all {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }

    /* 3 Tools Per Line Grid Box */
    .simple-tool-box {
        padding: 10px 4px !important;
        min-height: 105px !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    }

    .stb-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 9px !important;
        margin-bottom: 6px !important;
    }

    .stb-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        padding: 0 2px !important;
    }

    /* Disable hover popups on mobile touch screens */
    .tool-hover-popup {
        display: none !important;
    }


    /* ── 5. SINGLE-LINE FILTER TOOLBAR (Mobile Horizontal Swipe) ── */
    .tools-filter-wrapper {
        padding: 4px 6px !important;
        border-radius: 30px !important;
        margin-bottom: 16px !important;
    }

    .tools-pill {
        padding: 4px 10px !important;
        font-size: 11.5px !important;
        gap: 4px !important;
    }


    /* ── 6. TOOL WORKSPACE ON MOBILE ── */
    .tool-workspace-header {
        padding-top: 14px !important;
        margin-bottom: 12px !important;
    }

    .twh-title {
        font-size: 1.35rem !important;
        margin-bottom: 4px !important;
    }

    .twh-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
        padding: 0 8px !important;
    }

    .upload-box {
        padding: 20px 10px !important;
        border-radius: 1rem !important;
    }

    .upload-icon-circle {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .upload-box h4 {
        font-size: 1.05rem !important;
    }

    /* ── Browse All 50+ Tools Button (Mobile Sized) ── */
    .btn-browse-all-tools {
        font-size: 13.5px !important;
        padding: 9px 22px !important;
        border-radius: 30px !important;
        max-width: 90% !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 14px rgba(255, 92, 40, 0.35) !important;
    }
    .btn-browse-all-tools i {
        font-size: 14px !important;
    }

    /* ── Video Guide Section on Mobile ── */
    .guide-video-wrapper {
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }
    .guide-video-thumb {
        height: 200px !important;
    }
    .guide-play-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 18px !important;
    }
    .guide-step-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    /* ── FAQ Section on Mobile ── */
    .faq-card-item {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }
    .faq-question-btn {
        font-size: 13px !important;
        gap: 8px !important;
    }
    .faq-answer-text {
        font-size: 12px !important;
        line-height: 1.5 !important;
        padding-top: 8px !important;
    }

    /* ── Tool Workspace Content, Video & Workflow on Mobile ── */
    .tool-sections-container {
        margin-top: 40px !important;
        padding-top: 20px !important;
    }
    .tool-content-card,
    .tool-video-card,
    .tool-workflow-card {
        padding: 20px 16px !important;
        border-radius: 18px !important;
        margin-bottom: 28px !important;
    }
    .tool-content-badge-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 20px !important;
        border-radius: 12px !important;
    }
    .tool-content-card h3,
    .tool-video-card h3,
    .tool-workflow-card h3 {
        font-size: 1.25rem !important;
    }
    .step-workflow-card {
        padding: 18px 14px !important;
        border-radius: 16px !important;
        margin-bottom: 12px !important;
    }
    .step-workflow-graphic {
        min-height: 110px !important;
        padding: 16px 10px !important;
    }
    .step-workflow-graphic i.fs-1 {
        font-size: 1.75rem !important;
    }

    /* ── 2 Tools Per Line on Mobile ── */
    .related-tool-card {
        padding: 12px 10px !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    }
    .related-tool-icon-wrap {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
        border-radius: 9px !important;
    }
    .related-tool-card .badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .related-tool-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        margin-top: 8px !important;
        margin-bottom: 3px !important;
        line-height: 1.25 !important;
    }
    .related-tool-desc {
        font-size: 10.5px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2 !important;
    }
    .related-tool-footer {
        padding-top: 8px !important;
        font-size: 11px !important;
    }
    .related-tool-arrow {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }

    /* ── Mobile Overrides for Modern Home Page Sections ── */
    .tool-card-modern {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }
    .tool-icon-circle {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
    }
    .tool-card-modern h5 {
        font-size: 14px !important;
    }
    .how-step-card {
        padding: 24px 18px !important;
        border-radius: 18px !important;
    }
    .how-step-num {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        margin-bottom: 14px !important;
    }
    .how-step-icon {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    .review-card-modern {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }
    .why-feature-card {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }
    .why-icon-box {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }
    .accordion-faq-custom .accordion-button {
        font-size: 14px !important;
        padding: 14px 16px !important;
    }
    .accordion-faq-custom .accordion-body {
        font-size: 13.5px !important;
        padding: 14px 16px !important;
    }
}


