
/* ===== iBET Blog beautification v2 ===== */
/* Scoped to .ibet-article wrapper so it can't affect other parts of the theme */

.ibet-article { color: #1f2937; line-height: 1.7; font-size: 16px; }
.ibet-article p { margin: 0 0 16px; }
.ibet-article h2,
.ibet-article h3,
.ibet-article h4 { color: #0a2540; line-height: 1.3; letter-spacing: -0.01em; margin: 28px 0 12px; }
.ibet-article h2 { font-size: 26px; padding-bottom: 8px; border-bottom: 2px solid #ffcc00; display: inline-block; }
.ibet-article h3 { font-size: 21px; }
.ibet-article h4 { font-size: 18px; }
.ibet-article a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ibet-article a:hover { color: #d97706; }

/* ===== Tables ===== */
.ibet-article table.ibet-table,
.ibet-article .wp-block-table table {
    border-collapse: separate !important; border-spacing: 0 !important; width: 100%;
    margin: 24px 0; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
    font-size: 15px; background: #fff;
}
/* Force readable header \u2014 many themes paint thead white. We win specificity with body chain + !important. */
body .ibet-article table.ibet-table thead,
body .ibet-article table.ibet-table thead tr,
body .ibet-article table.ibet-table thead th,
body .ibet-article .wp-block-table thead,
body .ibet-article .wp-block-table thead tr,
body .ibet-article .wp-block-table thead th {
    background: #0a2540 !important;
    background-image: linear-gradient(135deg, #0a2540 0%, #0e3b6b 100%) !important;
    color: #ffffff !important;
    border-color: #0a2540 !important;
}
body .ibet-article table.ibet-table thead th,
body .ibet-article .wp-block-table thead th {
    padding: 13px 14px !important;
    text-align: left !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 13px;
}
.ibet-article table.ibet-table td,
.ibet-article .wp-block-table td { padding: 12px 14px; border-bottom: 1px solid #eef1f5; vertical-align: top; color: #1f2937; }
.ibet-article table.ibet-table tbody tr:nth-child(even) td,
.ibet-article .wp-block-table tbody tr:nth-child(even) td { background: #fafbfd; }
.ibet-article table.ibet-table tbody tr:hover td,
.ibet-article .wp-block-table tbody tr:hover td { background: #fff7d1; transition: background 0.15s ease; }
.ibet-article table.ibet-table tbody tr:last-child td,
.ibet-article .wp-block-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
    .ibet-article .ibet-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ibet-article table.ibet-table { min-width: 560px; font-size: 14px; }
}

/* ===== Step boxes ===== */
/* Markup supported: <div class="step-card"><span class="step-num">N</span><h4>Title</h4><p>...</p></div> */
.ibet-article .step-card,
.ibet-article .ibet-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-auto-rows: min-content;
    column-gap: 16px;
    align-items: start;
    margin: 18px 0;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(10,37,64,.05);
}
.ibet-article .step-card > .step-num,
.ibet-article .ibet-step > .ibet-step-num,
.ibet-article .step-card > span:first-child {
    grid-column: 1; grid-row: 1;
    width: 44px; height: 44px; align-self: center;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a2540 0%, #0e3b6b 100%);
    color: #ffffff !important; font-weight: 800; font-size: 18px;
    box-shadow: 0 4px 12px rgba(10,37,64,.22);
    border: 2px solid #ffcc00;
}
.ibet-article .step-card > h2,
.ibet-article .step-card > h3,
.ibet-article .step-card > h4,
.ibet-article .ibet-step > h2,
.ibet-article .ibet-step > h3,
.ibet-article .ibet-step > h4 {
    grid-column: 2; grid-row: 1;
    margin: 0; padding: 0; border: 0; display: block;
    font-size: 18px; color: #0a2540; align-self: center;
}
.ibet-article .step-card > p,
.ibet-article .step-card > ul,
.ibet-article .step-card > ol,
.ibet-article .ibet-step > p,
.ibet-article .ibet-step > ul,
.ibet-article .ibet-step > ol {
    grid-column: 2;
    margin: 8px 0 0; color: #374151;
}
.ibet-article .step-card > p:first-of-type,
.ibet-article .ibet-step > p:first-of-type { margin-top: 8px; }
.ibet-article .step-card > p:last-child,
.ibet-article .ibet-step > p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
    .ibet-article .step-card,
    .ibet-article .ibet-step { grid-template-columns: 40px 1fr; column-gap: 10px; padding: 14px 14px; }
    .ibet-article .step-card > .step-num,
    .ibet-article .ibet-step > .ibet-step-num { width: 34px; height: 34px; font-size: 15px; }
}

/* Generic callouts used in some articles */
.ibet-article .callout {
    margin: 22px 0; padding: 16px 20px; border-radius: 10px;
    border-left: 4px solid #1d4ed8; background: #eff6ff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ibet-article .callout-tip { border-left-color: #0ea5e9; background: #eff8ff; }
.ibet-article .callout-tip::before {
    content: "\1F4A1  Tip"; display: block; font-weight: 700; color: #075985;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.ibet-article .callout-warning { border-left-color: #dc2626; background: #fef2f2; }
.ibet-article .callout-warning::before {
    content: "\26A0  Important"; display: block; font-weight: 700; color: #991b1b;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.ibet-article .callout-success { border-left-color: #16a34a; background: #f0fdf4; }
.ibet-article .callout-success::before {
    content: "\2713  Best practice"; display: block; font-weight: 700; color: #14532d;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}

/* ===== Callouts / boxes ===== */
.ibet-article .expert-tip,
.ibet-article .casino-tip-box,
.ibet-article .casino-bonus-box,
.ibet-article .casino-warning-box,
.ibet-article .ibet-callout {
    margin: 22px 0; padding: 16px 20px; border-radius: 10px;
    border-left: 4px solid #1d4ed8; background: #eff6ff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ibet-article .expert-tip { border-left-color: #f5b400; background: #fffbeb; }
.ibet-article .expert-tip::before {
    content: "\1F4A1  Expert tip"; display: block; font-weight: 700; color: #92400e;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.ibet-article .casino-bonus-box { border-left-color: #16a34a; background: #f0fdf4; }
.ibet-article .casino-bonus-box::before {
    content: "\1F381  Featured bonus"; display: block; font-weight: 700; color: #14532d;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.ibet-article .casino-tip-box { border-left-color: #0ea5e9; background: #eff8ff; }
.ibet-article .casino-tip-box::before {
    content: "\2139  Quick tip"; display: block; font-weight: 700; color: #075985;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.ibet-article .casino-warning-box { border-left-color: #dc2626; background: #fef2f2; }
.ibet-article .casino-warning-box::before {
    content: "\26A0  Important"; display: block; font-weight: 700; color: #991b1b;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.ibet-article .ibet-callout { border-left-color: #6366f1; background: #eef2ff; }

/* Key takeaway pill */
.ibet-article .ibet-key-takeaway {
    margin: 22px 0; padding: 18px 22px; border-radius: 12px;
    background: linear-gradient(135deg, #0a2540 0%, #0e3b6b 100%);
    color: #fff; box-shadow: 0 6px 18px rgba(10,37,64,.18);
}
.ibet-article .ibet-key-takeaway::before {
    content: "\2605  Key takeaway"; display: block; font-weight: 700;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: #ffcc00; margin-bottom: 8px;
}
.ibet-article .ibet-key-takeaway p { color: #fff; margin: 0; }

/* ===== Citations ===== */
.ibet-article a.ibet-citation,
.ibet-article a[rel~="external"] {
    background: #f1f5f9; color: #1e3a8a !important; padding: 1px 8px; border-radius: 999px;
    text-decoration: none; font-size: 0.9em; border: 1px solid #e2e8f0;
    transition: all 0.15s; text-underline-offset: 0;
}
.ibet-article a.ibet-citation:hover,
.ibet-article a[rel~="external"]:hover { background: #1e3a8a; color: #fff !important; border-color: #1e3a8a; }

/* ===== Table of contents ===== */
.ibet-article .table-of-contents {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 20px 26px; margin: 28px 0;
}
.ibet-article .table-of-contents h2 {
    font-size: 18px; margin: 0 0 14px; color: #0a2540; border: 0; padding: 0; display: block;
}
.ibet-article .table-of-contents ul { list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.ibet-article .table-of-contents ul li { margin: 0; padding: 0; }
.ibet-article .table-of-contents ul li a {
    display: block; padding: 6px 0; color: #1d4ed8; text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.ibet-article .table-of-contents ul li a:hover { color: #d97706; border-bottom-color: #ffcc00; }
@media (max-width: 700px) { .ibet-article .table-of-contents ul { grid-template-columns: 1fr; } }

/* Article meta */
.ibet-article p.article-meta {
    color: #64748b; font-size: 14px; margin: 0 0 18px;
    padding: 8px 14px; background: #f1f5f9; border-radius: 8px; display: inline-block;
}

/* Lists */
.ibet-article ul, .ibet-article ol { padding-left: 24px; margin: 12px 0 18px; }
.ibet-article ul li, .ibet-article ol li { margin: 6px 0; }
.ibet-article ul li::marker { color: #ffcc00; }

/* Blockquotes */
.ibet-article blockquote {
    margin: 22px 0; padding: 14px 20px; border-left: 4px solid #ffcc00;
    background: #fffdf3; color: #1f2937; font-style: italic; border-radius: 8px;
}

/* Figures / images */
.ibet-article figure.wp-block-image { margin: 22px 0; }
.ibet-article figure.wp-block-image img { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ibet-article figure.wp-block-image figcaption { font-size: 14px; color: #64748b; margin-top: 8px; text-align: center; }

/* ===== Plain FAQ markup: <div class="faq-item"><div class="faq-question">Q</div><p>A</p></div> ===== */
.ibet-article .faq-item {
    border: 1px solid #e0e0e0; border-radius: 10px; margin: 0 0 12px;
    overflow: hidden; background: #ffffff; box-shadow: 0 2px 6px rgba(10,37,64,.05);
}
.ibet-article .faq-item .faq-question {
    padding: 16px 22px; font-size: 17px; font-weight: 600;
    background: #f8f9fa; color: #0a2540; line-height: 1.4;
    border-bottom: 1px solid #e8eaed; position: relative;
}
.ibet-article .faq-item .faq-question::before {
    content: "Q"; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%; margin-right: 10px;
    background: #1d4ed8; color: #fff; font-size: 13px; font-weight: 700;
    vertical-align: middle;
}
.ibet-article .faq-item > p,
.ibet-article .faq-item .faq-answer {
    margin: 0; padding: 16px 22px; color: #374151; font-size: 15px; line-height: 1.7;
}
.ibet-article .faq-item > p::before,
.ibet-article .faq-item .faq-answer::before {
    content: "A"; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%; margin-right: 10px;
    background: #ffcc00; color: #0a2540; font-size: 13px; font-weight: 700;
    vertical-align: middle;
}

/* ===== Related articles ===== */
.ibet-article .ibet-related {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 18px 22px; margin: 28px 0;
}
.ibet-article .ibet-related h3 {
    font-size: 18px; margin: 0 0 12px; color: #0a2540;
    border-bottom: 2px solid #ffcc00; padding-bottom: 6px; display: inline-block;
}
.ibet-article .ibet-related a {
    display: inline-block; margin: 6px 8px 6px 0; padding: 8px 14px;
    background: #ffffff; color: #1d4ed8 !important; text-decoration: none;
    border: 1px solid #dbeafe; border-radius: 999px; font-size: 14px;
    transition: all 0.15s ease;
}
.ibet-article .ibet-related a:hover {
    background: #1d4ed8; color: #fff !important; border-color: #1d4ed8;
    box-shadow: 0 4px 10px rgba(29,78,216,.25);
}

/* ===== FAQ \u2014 matches reference article best-mobile-casino-apps-malaysia-2026 ===== */
.ibet-article .ibet-faq-container { max-width: 100%; margin: 40px 0; font-family: inherit; }
.ibet-article .ibet-faq-container h2 {
    font-size: 26px; font-weight: 700; margin-bottom: 18px; color: #0a2540;
    border-bottom: 2px solid #ffcc00; padding-bottom: 8px; display: inline-block;
}
.ibet-article .ibet-faq-item {
    border: 1px solid #e0e0e0; border-radius: 10px; margin-bottom: 12px;
    overflow: hidden; background: #ffffff; box-shadow: 0 2px 6px rgba(10,37,64,.05);
}
.ibet-article .ibet-faq-question {
    width: 100%; padding: 18px 50px 18px 20px; font-size: 17px; font-weight: 600;
    text-align: left; background: #f8f9fa; border: none; cursor: pointer;
    position: relative; color: #0a2540; line-height: 1.4;
    transition: background 0.2s ease;
}
.ibet-article .ibet-faq-question:hover { background: #eef4fc; }
.ibet-article .ibet-faq-question::after {
    content: '+'; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); font-size: 26px; font-weight: 300;
    color: #1d4ed8; transition: transform 0.3s ease;
}
.ibet-article .ibet-faq-item.active .ibet-faq-question::after { content: "\2212"; }
.ibet-article .ibet-faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #ffffff;
}
.ibet-article .ibet-faq-item.active .ibet-faq-answer {
    max-height: 1200px; padding: 18px 22px;
}
.ibet-article .ibet-faq-answer p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: #374151; }
.ibet-article .ibet-faq-answer p:last-child { margin-bottom: 0; }

/* Fallback: native <details> if used */
.ibet-article details {
    border: 1px solid #e0e0e0; border-radius: 10px; padding: 0;
    margin: 10px 0; background: #fff; overflow: hidden;
    box-shadow: 0 2px 6px rgba(10,37,64,.05);
}
.ibet-article details summary {
    cursor: pointer; font-weight: 600; color: #0a2540; padding: 18px 50px 18px 20px;
    background: #f8f9fa; list-style: none; position: relative;
    font-size: 17px; line-height: 1.4;
}
.ibet-article details summary::-webkit-details-marker { display: none; }
.ibet-article details summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); font-size: 26px; font-weight: 300; color: #1d4ed8;
}
.ibet-article details[open] summary::after { content: "\2212"; }
.ibet-article details summary:hover { background: #eef4fc; }
.ibet-article details > *:not(summary) { padding: 0 22px 18px; }

