/* ============================================
   HappyBaixar - Article CSS
   Strictly scoped to .hb-article-wrap only
   Upload: public_html/public/css/article.css
   ============================================ */

.hb-article-wrap {
    background: #1a1f2e;
    border-radius: 14px;
    padding: 32px 36px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.85;
}

/* Headings — only inside wrap */
.hb-article-wrap h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #00c853 !important;
    margin: 36px 0 14px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: transparent !important;
}
.hb-article-wrap h2:first-child { margin-top: 0 !important; }

.hb-article-wrap h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    margin: 22px 0 10px !important;
    background: transparent !important;
}

.hb-article-wrap p {
    margin-bottom: 14px !important;
    color: rgba(255,255,255,0.82) !important;
    background: transparent !important;
}

.hb-article-wrap strong {
    color: #fff !important;
    background: transparent !important;
}

.hb-article-wrap ul,
.hb-article-wrap ol {
    padding-left: 22px !important;
    margin-bottom: 16px !important;
}

.hb-article-wrap li {
    margin-bottom: 7px !important;
    color: rgba(255,255,255,0.82) !important;
    background: transparent !important;
}

/* Step Boxes */
.hb-article-wrap .hb-step-box {
    background: rgba(0,200,83,0.08) !important;
    border-left: 4px solid #00c853 !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    border-radius: 0 10px 10px 0 !important;
}
.hb-article-wrap .hb-step-box h3 {
    margin-top: 0 !important;
    color: #00c853 !important;
}
.hb-article-wrap .hb-step-box p { margin-bottom: 0 !important; }

/* Feature Boxes */
.hb-article-wrap .hb-feature {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    margin: 14px 0 !important;
}
.hb-article-wrap .hb-feature h3 {
    margin-top: 0 !important;
    color: #fff !important;
    font-size: 15px !important;
}
.hb-article-wrap .hb-feature p {
    color: rgba(255,255,255,0.75) !important;
    margin-bottom: 0 !important;
}

/* Comparison Table */
.hb-article-wrap .hb-comparison-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    font-size: 14px !important;
}
.hb-article-wrap .hb-comparison-table thead th {
    background: #00c853 !important;
    color: #fff !important;
    padding: 13px 16px !important;
    text-align: left !important;
    font-weight: 700 !important;
}
.hb-article-wrap .hb-comparison-table td {
    padding: 11px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.85) !important;
    background-color: transparent !important;
}
.hb-article-wrap .hb-comparison-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.03) !important;
}
.hb-article-wrap .hb-comparison-table tr:hover td {
    background: rgba(0,200,83,0.06) !important;
}

/* FAQ Accordion */
.hb-article-wrap details {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    margin: 8px 0 !important;
    overflow: hidden;
}
.hb-article-wrap details[open] {
    background: rgba(0,200,83,0.06) !important;
    border-color: rgba(0,200,83,0.3) !important;
}
.hb-article-wrap summary {
    padding: 15px 18px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    list-style: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: transparent !important;
}
.hb-article-wrap summary::-webkit-details-marker { display: none; }
.hb-article-wrap summary::before {
    content: '+';
    width: 24px;
    height: 24px;
    background: #00c853 !important;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #fff !important;
    flex-shrink: 0;
    line-height: 1;
}
.hb-article-wrap details[open] summary::before { content: '−'; }
.hb-article-wrap details p {
    padding: 0 18px 16px 52px !important;
    margin: 0 !important;
    color: rgba(255,255,255,0.75) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    background: transparent !important;
}

/* Section spacing */
.hb-article-wrap section { margin-bottom: 8px; }

@media (max-width: 768px) {
    .hb-article-wrap { padding: 16px 14px; border-radius: 10px; }
    .hb-article-wrap h2 { font-size: 17px !important; margin: 24px 0 10px !important; }
    .hb-article-wrap h3 { font-size: 14px !important; }
    .hb-article-wrap p { font-size: 14px !important; }
    .hb-article-wrap li { font-size: 13px !important; }

    /* Table: horizontal scroll on mobile */
    .hb-article-wrap .hb-comparison-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: 8px;
        font-size: 13px !important;
    }
    .hb-article-wrap .hb-comparison-table thead th {
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-width: 100px;
    }
    .hb-article-wrap .hb-comparison-table td {
        padding: 9px 14px !important;
        font-size: 13px !important;
        min-width: 100px;
    }

    /* Step boxes */
    .hb-article-wrap .hb-step-box { padding: 12px 14px !important; margin: 10px 0 !important; }
    .hb-article-wrap .hb-feature { padding: 14px 16px !important; }

    /* FAQ */
    .hb-article-wrap summary { padding: 12px 14px !important; font-size: 13px !important; }
    .hb-article-wrap details p { padding: 0 14px 14px 14px !important; font-size: 13px !important; }
}

/* Table scroll wrapper (added by JS on mobile) */
.table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: 8px;
}
.table-scroll-wrap table {
    min-width: 500px;
}

/* Force table to not break on mobile */
@media (max-width: 768px) {
    .hb-article-wrap .hb-comparison-table,
    .hb-article-wrap table {
        min-width: 480px !important;
        white-space: normal;
    }
    .hb-article-wrap .hb-comparison-table th,
    .hb-article-wrap .hb-comparison-table td,
    .hb-article-wrap table th,
    .hb-article-wrap table td {
        min-width: 120px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        word-break: keep-all;
    }
}