/* ========================================
   MOBICIP SINGLE SUPPORT ARTICLE STYLES
   Matches production support layout
======================================== */

/* ── RESET (Scoped) ── */
.mobicip-support-page,
.mobicip-support-page *,
.mobicip-support-page ::after,
.mobicip-support-page ::before {
    box-sizing: border-box;
}

/* ── PAGE WRAPPER ── */
.mobicip-support-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: 'Manrope', sans-serif;
    color: #111827;
    text-align: left;
    overflow-x: hidden;
}


/* ========================================
   BREADCRUMB + SEARCH BAR
======================================== */

.mobicip-support-breadcrumb-section {
    padding: 28px 0 0;
}

.mobicip-support-breadcrumb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

/* Breadcrumb trail */
.mobicip-support-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.mobicip-breadcrumb-link {
    color: #3188F4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mobicip-breadcrumb-link:hover {
    color: #1d6cd8;
    text-decoration: underline;
}

.mobicip-breadcrumb-sep {
    color: #9ca3af;
    font-size: 12px;
}

.mobicip-breadcrumb-current {
    color: #6b7280;
}

/* Right side: Search + Contact us */
.mobicip-support-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobicip-search-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mobicip-search-icon-btn:hover {
    background: #f3f4f6;
}

.mobicip-contact-us-link {
    font-size: 15px;
    font-weight: 600;
    color: #3188F4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mobicip-contact-us-link:hover {
    color: #1d6cd8;
    text-decoration: underline;
}


/* ========================================
   SEARCH OVERLAY
======================================== */

.mobicip-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    justify-content: center;
    padding-top: 100px;
}

.mobicip-search-overlay-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 32px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.mobicip-search-overlay-icon {
    flex-shrink: 0;
}

.mobicip-search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: 'Manrope', sans-serif;
    background: transparent;
}

.mobicip-search-overlay-close {
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    padding: 4px;
}

.mobicip-search-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.mobicip-cse-results-wrapper {
    width: 100%;
    max-width: 700px;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
}

/* Google CSE style overrides to match production */
.mobicip-cse-results-wrapper .gsc-control-cse {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-family: 'Manrope', sans-serif !important;
}
.mobicip-cse-results-wrapper .gsc-above-wrapper-area {
    display: none !important;
}
.mobicip-cse-results-wrapper .gsc-result-info {
    display: none !important;
}
.mobicip-cse-results-wrapper .gsc-orderby-container {
    display: none !important;
}
.mobicip-cse-results-wrapper .gsc-table-result {
    font-family: 'Manrope', sans-serif !important;
}
.mobicip-cse-results-wrapper .gsc-url-top {
    display: none !important;
}
/* Hide only the thumbnail image, not the title container */
.mobicip-cse-results-wrapper .gs-image-box {
    display: none !important;
}

/* Ensure title link is visible and styled */
.mobicip-cse-results-wrapper .gs-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.mobicip-cse-results-wrapper .gs-title a {
    color: #3188F4 !important;
    text-decoration: none !important;
    display: inline !important;
    visibility: visible !important;
}

.mobicip-cse-results-wrapper .gs-title a:hover {
    text-decoration: underline !important;
}

.mobicip-cse-results-wrapper .gs-title a b {
    color: #3188F4 !important;
    font-weight: 700 !important;
}

/* Hide the green URL below title */
.mobicip-cse-results-wrapper .gs-visibleUrl,
.mobicip-cse-results-wrapper .gs-visibleUrl-long,
.mobicip-cse-results-wrapper .gs-bidi-start-align.gs-visibleUrl-short {
    display: none !important;
}

/* Ensure snippet text is visible */
.mobicip-cse-results-wrapper .gs-snippet {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    display: block !important;
}

/* Make sure the main result table renders properly */
.mobicip-cse-results-wrapper .gsc-table-result,
.mobicip-cse-results-wrapper .gsc-table-cell-snippet-close {
    display: block !important;
    padding: 0 !important;
}

/* Remove table layout so it flows naturally */
.mobicip-cse-results-wrapper table.gsc-table-result {
    display: block !important;
}

/* The snippet cell has the real title + snippet — make sure it's full width */
.mobicip-cse-results-wrapper td.gsc-table-cell-snippet-close {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Hide the entire thumbnail cell — it contains the duplicate title */
.mobicip-cse-results-wrapper td.gsc-table-cell-thumbnail {
    display: none !important;
}

/* Hide the thumbnail-inside wrapper wherever it appears — including inside the snippet cell, where it duplicates the title */
.mobicip-cse-results-wrapper .gsc-thumbnail-inside {
    display: none !important;
}

.mobicip-cse-results-wrapper .gsc-webResult.gsc-result {
    padding: 12px 20px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}
.mobicip-cse-results-wrapper .gsc-results .gsc-cursor-box {
    padding: 12px 20px !important;
}
.mobicip-cse-results-wrapper .gsc-results .gsc-cursor-page {
    color: #3188F4 !important;
}


/* ========================================
   MOBILE ARTICLES DROPDOWN
======================================== */

.mobicip-mobile-articles-dropdown {
    display: none;
}

.mobicip-mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3188F4;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.mobicip-mobile-dropdown-chevron {
    transition: transform 0.2s ease;
}

.mobicip-mobile-articles-dropdown.open .mobicip-mobile-dropdown-chevron {
    transform: rotate(180deg);
}

.mobicip-mobile-dropdown-list {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    transition: max-height 0.2s ease;
}

.mobicip-mobile-articles-dropdown.open .mobicip-mobile-dropdown-list {
    max-height: 500px;
    overflow-y: auto;
}

.mobicip-mobile-dropdown-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.mobicip-mobile-dropdown-item a {
    color: #374151;
    text-decoration: none;
}

.mobicip-mobile-dropdown-item a:hover {
    color: #3188F4;
}

.mobicip-mobile-dropdown-item.selected span {
    color: #3188F4;
    font-weight: 600;
}


/* ========================================
   MAIN TWO-COLUMN LAYOUT
======================================== */

.mobicip-support-content-section {
    padding-top: 40px;
}

.mobicip-support-content-wrapper {
    width: 100%;
}

.mobicip-support-content-container {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    overflow: visible;
}


/* ========================================
   LEFT SIDEBAR: Articles in this section
======================================== */

.mobicip-support-sidebar {
    flex: 0 0 260px;
    min-width: 260px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    overflow: visible;
}

.mobicip-sidebar-label {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 16px;
}

.mobicip-sidebar-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobicip-sidebar-article-item {
    margin: 0;
    padding: 0;
}

.mobicip-sidebar-article-item .mobicip-sidebar-article-title {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    transition: all 0.15s ease;
    line-height: 1.5;
}

.mobicip-sidebar-article-item a.mobicip-sidebar-article-title:hover {
    background: #f0f4ff;
    color: #3188F4;
    border-left-color: #3188F4;
}

/* Active / selected article */
.mobicip-sidebar-article-item.selected .mobicip-sidebar-article-title {
    background: #3188F4;
    color: #ffffff;
    font-weight: 600;
    border-left-color: #3188F4;
    border-radius: 8px;
}

.mobicip-sidebar-empty {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}


/* ========================================
   ARTICLE HEADER
======================================== */

.mobicip-support-article-wrapper {
    flex: 1;
    min-width: 0;
}

.mobicip-support-article-header {
    margin-bottom: 28px;
}

.mobicip-support-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
    color: #111827;
}

.mobicip-support-date {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
    font-weight: 400;
}


/* ========================================
   ARTICLE CONTENT (Support body)
======================================== */

.mobicip-support-article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
    font-weight: 400;
}

.mobicip-support-article-content h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 32px 0 14px;
    color: #111827;
}

.mobicip-support-article-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 28px 0 12px;
    color: #111827;
}

.mobicip-support-article-content h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: #111827;
}

.mobicip-support-article-content p {
    margin: 0 0 20px;
}

.mobicip-support-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.mobicip-support-article-content a {
    color: #3188F4;
    text-decoration: none;
}

.mobicip-support-article-content a:hover {
    text-decoration: underline;
}

.mobicip-support-article-content ul,
.mobicip-support-article-content ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.mobicip-support-article-content li {
    margin-bottom: 10px;
}

.mobicip-support-article-content blockquote {
    border-left: 4px solid #3188F4;
    padding: 12px 20px;
    margin: 24px 0;
    background: #f0f4ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #374151;
}


/* ========================================
   "HAVE MORE QUESTIONS?" FORM
======================================== */

.mobicip-support-form-section {
    margin-top: 56px;
    padding-top: 48px;
    text-align: center;
}

.mobicip-support-form-heading {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 32px;
}

.mobicip-support-form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.mobicip-support-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.mobicip-form-field input,
.mobicip-form-field textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #111827;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobicip-form-field textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 120px;
}

.mobicip-form-field input:focus,
.mobicip-form-field textarea:focus {
    border-color: #3188F4;
    box-shadow: 0 0 0 3px rgba(49, 136, 244, 0.1);
}

.mobicip-form-field input::placeholder,
.mobicip-form-field textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Form Buttons */
.mobicip-support-form-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.mobicip-form-btn {
    padding: 12px 40px;
    border-radius: 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.mobicip-form-btn:hover {
    background: #f3f4f6;
}

.mobicip-form-btn-submit {
    border-color: #3188F4;
    color: #3188F4;
}

.mobicip-form-btn-submit:hover {
    background: #3188F4;
    color: #ffffff;
}


/* ========================================
   RESPONSIVE — TABLET
======================================== */

@media (max-width: 1024px) {
    .mobicip-support-page {
        max-width: 100%;
        padding: 0 20px 60px;
    }

    .mobicip-support-content-container {
        gap: 32px;
    }

    .mobicip-support-sidebar {
        flex: 0 0 220px;
        min-width: 220px;
    }

    .mobicip-support-title {
        font-size: 28px;
    }
}


/* ========================================
   RESPONSIVE — MOBILE
======================================== */

@media (max-width: 768px) {
    .mobicip-support-page {
        padding: 0 16px 40px;
    }

    .mobicip-support-content-container {
        flex-direction: column;
    }

    /* Hide sidebar on mobile */
    .mobicip-support-sidebar {
        display: none;
    }

    /* Show mobile article dropdown */
    .mobicip-mobile-articles-dropdown {
        display: block;
        margin-bottom: 24px;
    }

    .mobicip-support-title {
        font-size: 24px;
    }

    .mobicip-support-article-content {
        font-size: 15px;
    }

    .mobicip-support-article-content h2 {
        font-size: 20px;
    }

    .mobicip-support-article-content h3 {
        font-size: 18px;
    }

    /* Breadcrumb */
    .mobicip-support-breadcrumb-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mobicip-support-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Search overlay */
    .mobicip-search-overlay {
        padding-top: 60px;
    }

    .mobicip-search-overlay-bar {
        max-width: calc(100% - 32px);
    }

    .mobicip-search-overlay-content {
        max-width: calc(100% - 32px);
    }

    .mobicip-cse-results-wrapper {
        max-width: calc(100% - 32px);
    }

    /* Form */
    .mobicip-support-form-heading {
        font-size: 22px;
    }

    .mobicip-support-form-wrapper {
        max-width: 100%;
    }

    .mobicip-support-form-buttons {
        flex-direction: row;
    }

    .mobicip-form-btn {
        flex: 1;
        padding: 12px 24px;
    }
}


/* ========================================
   RESPONSIVE — SMALL MOBILE
======================================== */

@media (max-width: 480px) {
    .mobicip-support-title {
        font-size: 22px;
    }

    .mobicip-support-form-heading {
        font-size: 20px;
    }
}


/* ========================================
   COLLECTION ARCHIVE PAGE
======================================== */

.mobicip-collection-page {
    max-width: 1084px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: 'Manrope', sans-serif;
    text-align: left;
}

.mobicip-collection-header {
    padding-top: 40px;
}

.mobicip-collection-title {
    font-size: 44px;
    line-height: 60px;
    font-weight: 800;
    color: #1f2024;
    margin: 0;
}

.mobicip-collection-description {
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #616b7b;
    margin: 8px 0 0;
}

.mobicip-collection-content {
    margin-top: 40px;
}

/* Uncategorized articles (no heading, appear first) */
.mobicip-collection-uncategorized {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

/* Category group */
.mobicip-category-group {
    margin-top: 40px;
}

.mobicip-category-heading {
    font-size: 22px;
    line-height: 30px;
    font-weight: 800;
    color: #1f2024;
    margin: 0 0 16px;
}

/* Article list */
.mobicip-collection-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobicip-collection-article-item {
    margin: 0;
    padding: 8px 0;
}

.mobicip-collection-article-link {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: #2a85f7;
    text-decoration: none;
    cursor: pointer;
}

.mobicip-collection-article-link:hover {
    text-decoration: underline;
}

/* Back to Support Home */
.mobicip-collection-back-wrapper {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.mobicip-collection-back-link {
    font-size: 16px;
    font-weight: 600;
    color: #2a85f7;
    text-decoration: none;
}

.mobicip-collection-back-link:hover {
    text-decoration: underline;
}

/* Empty state */
.mobicip-collection-empty {
    font-size: 16px;
    color: #9ca3af;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .mobicip-collection-title {
        font-size: 32px;
        line-height: 42px;
    }
    .mobicip-category-heading {
        font-size: 18px;
        line-height: 26px;
    }
    .mobicip-collection-article-link {
        font-size: 16px;
        line-height: 24px;
    }
}


/* ========================================
   RESPONSIVE — COLLECTION ARCHIVE (MOBILE)
======================================== */

@media (max-width: 768px) {
    .mobicip-collection-title {
        font-size: 24px;
    }

    .mobicip-collection-description {
        font-size: 15px;
    }

    .mobicip-category-heading {
        font-size: 18px;
    }

    .mobicip-collection-article-link {
        font-size: 15px;
    }
}