
/* === Site-specific overrides v1 === */

/* Fix companies table max-width to 1500px */
.mhok-companies-section,
.mhok-companies-table-wrapper,
[class*="companies-table-wrapper"] {
    max-width: 1500px !important;
}

/* Fix main container width */
.mhok-main > .mhok-container {
    max-width: 1500px !important;
    padding: 0 21px !important;
}

/* Override design-overhaul max-width:900px on main/sections - keep for article text but not table */
.mhok-companies-section,
.mhok-companies-table-wrapper {
    max-width: 1500px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Desktop company logos: 170-230px width */
@media (min-width: 769px) {
    .mhok-company-logo,
    img.mhok-company-logo {
        width: 200px !important;
        min-width: 170px !important;
        max-width: 230px !important;
        height: auto !important;
        max-height: 80px !important;
        min-height: auto !important;
        object-fit: contain !important;
    }
}

/* Article images: 30% width, float, on desktop */
@media (min-width: 769px) {
    .mhok-article-image {
        width: 30% !important;
        max-width: 30% !important;
        height: auto !important;
        border-radius: 15px !important;
        margin: 0 1.5rem 1rem 0 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }
    .mhok-article-image.float-left {
        float: left !important;
        margin: 0 1.5rem 1rem 0 !important;
    }
    .mhok-article-image.float-right {
        float: right !important;
        margin: 0 0 1rem 1.5rem !important;
    }
    .mhok-article-image.centered {
        float: none !important;
        display: block !important;
        margin: 1rem auto !important;
    }
    /* Clear floats after sections */
    .mhok-section::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
}
@media (max-width: 768px) {
    .mhok-article-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 1rem 0 !important;
        border-radius: 7px !important;
        float: none !important;
    }
}

/* Review page: larger company logo with semi-transparent white bg */
.mhok-review-logo img {
    max-height: 120px !important;
    min-height: 80px !important;
    padding: 14px 27px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 22px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* FAQ: Fix accordion - override design-overhaul always-open */
.mhok-faq-answer {
    display: block !important;
    padding: 0 23px !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease, padding 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.mhok-faq-item.active > .mhok-faq-answer,
.mhok-faq-item[data-open="1"] > .mhok-faq-answer {
    max-height: 500px !important;
    padding: 0 18px 19px !important;
    overflow: visible !important;
}
/* FAQ question styling - single indicator */
.mhok-faq-question {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 17px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    background: #fafbfc !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    border-bottom: none !important;
}
.mhok-faq-question::after {
    content: '+' !important;
    font-size: 22px !important;
    color: #d3a338 !important;
    font-weight: 300 !important;
    transition: transform 0.3s !important;
    flex-shrink: 0 !important;
    margin-left: 15px !important;
    float: none !important;
}
.mhok-faq-item.active > .mhok-faq-question::after,
.mhok-faq-item[data-open="1"] > .mhok-faq-question::after {
    content: '\2212' !important;
    transform: none !important;
}
/* Remove any additional arrows/indicators */
.mhok-faq-question svg,
.mhok-faq-question .mhok-faq-icon {
    display: none !important;
}

/* FAQ section compact - fix margin inflation */
.mhok-faq-section,
[class*="-faq"],
#faq,
[id="faq"] {
    margin: 1.5rem auto !important;
    padding: 21px 1.5rem !important;
}
.mhok-faq-item {
    margin-bottom: 5px !important;
}

/* Button text centering */
.mhok-btn,
.mhok-btn-visit,
.mhok-btn-review,
.mhok-btn-primary,
.exq-btn-cta,
.exq-btn-review,
a[class*="btn"] {
    text-align: center !important;
}
.exq-cta-cell {
    text-align: center !important;
}
.exq-cta-cell a {
    text-align: center !important;
    display: inline-block !important;
}

/* Breadcrumbs within content */
.mhok-breadcrumb {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 12px 17px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Banner centering */
.mhok-banner-block,
[class*="banner-block"],
.kit-banner-block {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 700px !important;
}
.kit-banner-block img {
    max-width: 100% !important;
    height: auto !important;
}

/* Mobile: company logo 40-50% width */
@media (max-width: 768px) {
    .mhok-company-logo {
        width: 45% !important;
        max-width: 50% !important;
        min-width: 40% !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }
    /* Minimal side padding */
    .mhok-container {
        padding-left: 15px !important;
        padding-right: 13px !important;
    }
    .mhok-main > .mhok-container {
        padding-left: 10px !important;
        padding-right: 15px !important;
    }
    /* Center everything in mobile cards */
    .mhok-td-company,
    .mhok-td-action,
    .mhok-company-info {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .mhok-td-action .mhok-btn {
        text-align: center !important;
    }
    /* Review page logo */
    .mhok-review-logo img {
        max-height: 80px !important;
        width: auto !important;
        max-width: 70% !important;
    }
}

/* Contrast fixes - ensure dark text on light bg, light text on dark bg */
.mhok-footer {
    color: #ccc8c3 !important;
}
.mhok-footer a {
    color: #d3dbd9 !important;
}
.mhok-footer h4 {
    color: #fff !important;
}
.mhok-hero h1 {
    color: #fff !important;
}
.mhok-hero p {
    color: rgba(255,255,255,0.85) !important;
}

/* Trust badges center */
.mhok-trust-badges {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 13px !important;
    max-width: 1500px !important;
    margin: 11px auto !important;
}

/* Process steps center */
.mhok-process-steps {
    max-width: 900px !important;
    margin: 2rem auto !important;
}

/* Testimonials within bounds */
.mhok-testimonials-section {
    max-width: 1100px !important;
    margin: 2rem auto !important;
}

/* Sticky footer height fix */
#stickyFoot .sticky-close {
    position: absolute !important;
    top: -8px !important;
    right: 8px !important;
    background: #fff !important;
    border: 1px solid #e4d5df !important;
    border-radius: 50% !important;
    width: 21px !important;
    height: 24px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #62646f !important;
    padding: 0 !important;
    line-height: 1 !important;
}


/* === CRITICAL: Override design-overhaul.css constraints === */

/* .mhok-main must not be limited to 900px */
.mhok-main,
main.mhok-main {
    max-width: 1540px !important;
    padding-left: 18px !important;
    padding-right: 23px !important;
}

/* Companies section needs full width within container */
.mhok-companies-section,
section.mhok-companies-section {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Container inside main */
.mhok-main > .mhok-container,
main.mhok-main > .mhok-container {
    max-width: 1500px !important;
    padding: 0 22px !important;
    margin: 0 auto !important;
}

/* Table wrapper */
.mhok-companies-table-wrapper {
    max-width: 1500px !important;
    margin: 0 auto !important;
}

/* Desktop logo fix with higher specificity */
@media (min-width: 769px) {
    table.mhok-companies-table .mhok-company-logo,
    .mhok-companies-table img.mhok-company-logo,
    .mhok-td-company img.mhok-company-logo {
        width: 200px !important;
        min-width: 170px !important;
        max-width: 230px !important;
        height: auto !important;
        max-height: 80px !important;
        min-height: 40px !important;
        object-fit: contain !important;
    }
}

/* Override design-overhaul hiding of rank column */
.mhok-companies-table .mhok-td-rank,
.mhok-companies-table .mhok-th-rank {
    display: table-cell !important;
}

/* Keep article text at 900px but not the companies/testimonials/faq sections */
.mhok-article {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* FAQ, testimonials, process steps - keep reasonable widths */
.mhok-faq-section {
    max-width: 900px !important;
}
.mhok-testimonials-section {
    max-width: 1100px !important;
}
.mhok-process-steps {
    max-width: 900px !important;
}

/* Mobile: make companies table cards NOT hidden by design-overhaul mobile rules */
@media (max-width: 768px) {
    .mhok-main,
    main.mhok-main {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .mhok-main > .mhok-container {
        padding: 0 12px !important;
    }

    /* Show all columns as card rows */
    .mhok-companies-table .mhok-td-rank,
    .mhok-companies-table .mhok-td-bbb,
    .mhok-companies-table .mhok-td-features,
    .mhok-companies-table .mhok-td-rating {
        display: flex !important;
    }

    /* Hero more compact for mobile */
    .mhok-hero {
        padding: 3px 0 0 !important;
        margin-bottom: 0 !important;
    }
    .mhok-hero h1 {
        font-size: 1.1rem !important;
        margin-bottom: 3px !important;
    }

    /* Affiliate disclosure more compact */
    .mhok-ftc-disclosure {
        padding: 9px 17px !important;
        font-size: 0.75rem !important;
        margin: 9px auto 8px !important;
    }

    /* Companies section title compact */
    .mhok-companies-section h2 {
        font-size: 1.2rem !important;
        margin-top: 5px !important;
        margin-bottom: 8px !important;
    }

    /* Byline compact */
    .mhok-byline,
    p.mhok-byline {
        font-size: 0.75rem !important;
        margin: 1px 0 !important;
    }
}


/* === FIX: FAQ answers MUST be fully collapsed by default === */
.mhok-faq-section .mhok-faq-item .mhok-faq-answer,
.mhok-faq-section .mhok-faq-answer,
section.mhok-faq-section .mhok-faq-item .mhok-faq-answer {
    padding: 0 22px !important;
    max-height: 0 !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
    transition: max-height 0.3s ease, padding 0.3s ease !important;
}
/* When open */
.mhok-faq-section .mhok-faq-item.active .mhok-faq-answer,
.mhok-faq-section .mhok-faq-item[data-open="1"] .mhok-faq-answer,
section.mhok-faq-section .mhok-faq-item.active .mhok-faq-answer,
section.mhok-faq-section .mhok-faq-item[data-open="1"] .mhok-faq-answer {
    max-height: 500px !important;
    padding: 15px 21px 14px !important;
    overflow: visible !important;
}

/* FAQ items compact spacing */
.mhok-faq-section .mhok-faq-item {
    margin-bottom: 7px !important;
    border-radius: 10px !important;
}

/* === MOBILE: Make hero very compact so table is visible === */
@media (max-width: 768px) {
    /* Compact hero */
    .mhok-hero {
        padding: 0 !important;
        margin: 0 !important;
    }
    .mhok-hero h1 {
        font-size: 0.95rem !important;
        margin: 0 !important;
        padding: 10px 11px !important;
        line-height: 1.2 !important;
    }

    /* Hide the author info box on mobile to save space */
    .mhok-hero > div[style*="background"],
    .mhok-hero > div[style*="linear-gradient"] {
        padding: 7px 13px !important;
        margin: 0 6px !important;
    }

    /* Compact byline */
    .mhok-byline,
    p.mhok-byline,
    p[class*="byline"] {
        font-size: 0.7rem !important;
        margin: 3px 0 !important;
        padding: 0 !important;
    }

    /* Affiliate disclosure very compact */
    .mhok-ftc-disclosure,
    div.mhok-ftc-disclosure {
        padding: 8px 9px !important;
        font-size: 0.7rem !important;
        margin: 5px 11px 11px !important;
        line-height: 1.4 !important;
    }

    /* Companies heading compact */
    .mhok-companies-section h2 {
        font-size: 1.1rem !important;
        margin: 5px 0 5px !important;
    }

    /* Trust badges compact or hidden on mobile */
    .mhok-trust-badges {
        display: none !important;
    }
}


/* === FAQ COMPACTNESS: remove excess spacing === */
.mhok-faq-section .mhok-faq-item,
section.mhok-faq-section .mhok-faq-item {
    margin-bottom: 5px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    border: 1px solid #e9ddeb !important;
}
.mhok-faq-section .mhok-faq-question,
section.mhok-faq-section .mhok-faq-question {
    padding: 14px 15px !important;
    font-size: 17px !important;
    background: #fff !important;
    min-height: auto !important;
    line-height: 1.3 !important;
}
/* FAQ section container compact */
.mhok-faq-section,
section.mhok-faq-section {
    padding: 17px !important;
    margin: 1rem auto !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
}
.mhok-faq-section h2 {
    margin-bottom: 15px !important;
    font-size: 1.3rem !important;
}

/* === MOBILE: ultra-compact hero === */
@media (max-width: 768px) {
    /* Hero gradient section - minimal */
    section.mhok-hero,
    .mhok-hero {
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
    }

    /* The green author box inside hero */
    .mhok-hero + div[style*="background"],
    div[style*="linear-gradient(135deg,#1d3353"] {
        display: none !important;
    }

    /* Hide the author credentials box on mobile */
    .mhok-hero div[style*="background:#f0fff4"],
    .mhok-hero div[style*="background: #f0fff4"],
    .mhok-hero div[style*="linear-gradient"] {
        padding: 3px 10px !important;
        font-size: 0.7rem !important;
    }

    /* Affiliate disclosure - much more compact */
    div.mhok-ftc-disclosure {
        padding: 5px 13px !important;
        font-size: 0.65rem !important;
        margin: 5px 6px !important;
        line-height: 1.3 !important;
        border-left-width: 3px !important;
    }

    /* Companies section */
    section.mhok-companies-section,
    .mhok-companies-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .mhok-companies-section h2 {
        margin: 2px 0 3px !important;
        font-size: 1rem !important;
    }

    /* Review page - compact */
    .mhok-review-header h1 {
        font-size: 1.2rem !important;
    }
    .mhok-review-logo img {
        max-height: 70px !important;
        padding: 9px 19px !important;
    }
    .mhok-quick-facts {
        grid-template-columns: 1fr 1fr !important;
        gap: 7px !important;
        padding: 6px !important;
    }
}

/* === Review page: make BBB badge inline with rating === */
.mhok-review-meta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 19px !important;
    flex-wrap: wrap !important;
}


/* === FAQ item: ZERO padding on container, all padding on question/answer === */
.mhok-faq-section .mhok-faq-item,
section.mhok-faq-section .mhok-faq-item,
[class*="-faq-section"] .mhok-faq-item {
    padding: 0 !important;
    margin-bottom: 4px !important;
}

/* FAQ question and answer directly provide padding */
.mhok-faq-section .mhok-faq-item .mhok-faq-question,
section.mhok-faq-section .mhok-faq-item .mhok-faq-question {
    padding: 9px 18px !important;
    margin: 0 !important;
}

/* === Mobile: hide affiliate disclosure to save space, show below table === */
@media (max-width: 768px) {
    /* The green author credentials box - very compact */
    .mhok-hero > div:last-child,
    .mhok-hero div[style*="#f0fff4"] {
        font-size: 0.65rem !important;
        padding: 5px 9px !important;
    }

    /* Byline - hide on mobile to save space */
    p.mhok-byline {
        display: none !important;
    }
}
