*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --blog-primary: #ea580c;
    --blog-primary-dark: #c2410c;
    --blog-primary-light: #fff7ed;
    --blog-accent: #f97316;
    --blog-ink: #180d05;
    --blog-muted: #64748b;
    --blog-border: #fed7aa;
    --blog-card-border: rgba(234, 88, 12, 0.15);
    --blog-radius: 20px;
}

/* =========================================================
   ARTICLE HERO & BREADCRUMB
========================================================= */

.article-hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 55px;
    background:
        radial-gradient(circle at 85% 20%, rgba(232, 121, 249, 0.22), transparent 30%),
        radial-gradient(circle at 15% 80%, rgba(234, 88, 12, 0.20), transparent 35%),
        linear-gradient(135deg, #180d05 0%, #2b1408 38%, #6c240a 70%, #ea580c 100%);
    overflow: hidden;
    color: #ffffff;
}

.article-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -180px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.25), transparent 70%);
    pointer-events: none;
}

.article-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.25), transparent 70%);
    pointer-events: none;
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

/* Breadcrumb: Perfectly Aligned & Baseline-Consistent */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #fed7aa;
    margin-bottom: 22px;
}

.blog-breadcrumb a,
.blog-breadcrumb span {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1.5;
}

.blog-breadcrumb a {
    color: #fed7aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.blog-breadcrumb .sep {
    font-size: 10px;
    opacity: 0.65;
    color: #fed7aa;
    margin: 0 1px;
}

.blog-breadcrumb .current {
    color: #ffffff;
    font-weight: 600;
    max-width: none;
    white-space: normal;
    word-break: break-word;
}

/* Article Meta Header */
.article-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

.article-date,
.article-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ffedd5;
    font-weight: 500;
}

.article-hero h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.28;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
    font-weight: 800;
}

/* =========================================================
   ARTICLE MAIN CONTENT SECTION
========================================================= */

.article-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 60%, #fffaf5 100%);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 7.2fr) minmax(280px, 2.8fr);
    gap: 50px;
    align-items: start;
}

/* Card Wrapper for Article Body */
.article-main-card {
    background: #ffffff;
    border: 1px solid #ffedd5;
    border-radius: var(--blog-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(36, 16, 68, 0.04);
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 36px;
    background: #fff7ed;
    box-shadow: 0 8px 24px rgba(24, 13, 5, 0.08);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   ESTIMASI BACA (1 BARIS WAJIB)
========================================================= */

.entry-content .wp-block-yoast-seo-estimated-reading-time,
.entry-content .yoast-reading-time__wrapper {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding: 7px 18px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    border-radius: 999px !important;
    color: #c2410c !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 24px 0 !important;
    max-width: max-content !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.06) !important;
}

.entry-content .yoast-reading-time__icon {
    display: inline-flex !important;
    align-items: center !important;
    color: #ea580c !important;
}

.entry-content .yoast-reading-time__icon svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

.entry-content .yoast-reading-time__spacer {
    display: none !important;
}

.entry-content .yoast-reading-time__descriptive-text,
.entry-content .yoast-reading-time__reading-time,
.entry-content .yoast-reading-time__time-unit {
    display: inline !important;
    white-space: nowrap !important;
    font-size: 13px !important;
}

/* =========================================================
   ARTICLE TYPOGRAPHY (ENTRY-CONTENT)
========================================================= */

.entry-content {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}

.entry-content p {
    margin: 0 0 24px;
    color: #334155;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.entry-content h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 25px;
    line-height: 1.35;
    color: #180d05;
    margin: 40px 0 18px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 800;
}

.entry-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.entry-content h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 21px;
    line-height: 1.4;
    color: #180d05;
    margin: 32px 0 14px;
    font-weight: 700;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #180d05;
    margin: 24px 0 12px;
    font-weight: 700;
}

.entry-content strong,
.entry-content b {
    color: #0f172a;
    font-weight: 700;
}

.entry-content a {
    color: #ea580c;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s;
}

.entry-content a:hover {
    color: #c2410c;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.entry-content ul li::marker {
    color: #ea580c;
}

/* Figures & Images inside content */
.entry-content figure {
    margin: 32px auto;
    text-align: center;
    max-width: 100%;
}

.entry-content figure img,
.entry-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    display: inline-block;
}

.entry-content figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--blog-muted);
    font-style: italic;
}

/* Blockquotes */
.entry-content blockquote {
    margin: 28px 0;
    padding: 20px 26px;
    border-left: 4px solid #ea580c;
    background: #fffaf5;
    border-radius: 0 14px 14px 0;
    color: #1e293b;
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
}

/* Tables */
.entry-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 28px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.entry-content pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td {
    padding: 12px 16px;
    border: 1px solid #fed7aa;
    text-align: left;
}

.entry-content th {
    background: #ffedd5;
    color: #180d05;
    font-weight: 700;
}

.entry-content tr:nth-child(even) {
    background: #fffaf5;
}

/* =========================================================
   RESPONSIVE VIDEO & IFRAME EMBEDS
========================================================= */

.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper,
.entry-content .nv-iframe-embed {
    position: relative;
    width: 100% !important;
    margin: 30px auto;
    max-width: 100%;
}

.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper,
.entry-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,
.entry-content .nv-iframe-embed {
    position: relative;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(24, 13, 5, 0.12);
}

.entry-content iframe,
.entry-content .nv-iframe-embed iframe,
.entry-content .wp-block-embed__wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 16px;
}

.entry-content > iframe:not([style*="height: 90vh"]):not([style*="height:90vh"]),
.entry-content video {
    display: block;
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 16px;
    margin: 30px auto;
    box-shadow: 0 8px 30px rgba(24, 13, 5, 0.12);
}

/* =========================================================
   FAQ ACCORDION (POINT 3)
========================================================= */

.faq-accordion {
    margin: 32px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion-item {
    background: #fffaf5;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(24, 13, 5, 0.03);
}

.faq-accordion-item[open] {
    background: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.10);
}

.faq-accordion-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 16.5px;
    font-weight: 700;
    color: #180d05;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-accordion-question::-webkit-details-marker {
    display: none;
}

.faq-accordion-question:hover {
    color: #ea580c;
    background-color: rgba(234, 88, 12, 0.04);
}

.faq-accordion-question .faq-chevron {
    color: #ea580c;
    font-size: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-accordion-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-accordion-body {
    padding: 0 22px 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    border-top: 1px dashed #fed7aa;
    margin-top: 4px;
    padding-top: 14px;
}

.faq-accordion-body p {
    margin: 0;
}

/* Fallback styling for schema-faq-section */
.schema-faq-section {
    background: #fffaf5;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.schema-faq-question {
    display: block;
    color: #180d05;
    font-size: 16px;
    margin-bottom: 8px;
}

.schema-faq-answer {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

/* =========================================================
   ARTICLE CTA BANNER (IN-ARTICLE)
========================================================= */

.article-cta-box {
    margin: 45px 0 35px;
    padding: 32px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(232, 121, 249, 0.25), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(234, 88, 12, 0.2), transparent 40%),
        linear-gradient(135deg, #180d05 0%, #2e1306 45%, #6c240a 75%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 12px 35px rgba(234, 88, 12, 0.2);
}

.article-cta-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.article-cta-content p {
    margin: 0;
    font-size: 14px;
    color: #fed7aa;
    line-height: 1.6;
    max-width: 500px;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    background: #ffffff;
    color: #c2410c;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    color: #ea580c;
}

/* =========================================================
   SHARE & SOCIAL BAR
========================================================= */

.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #ffedd5;
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #180d05;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fffaf5;
    border: 1px solid #fed7aa;
    color: #180d05;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    transform: translateY(-2px);
}

.share-btn.wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.share-btn.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.share-btn.tw:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

/* =========================================================
   ARTICLE NAVIGATION (PREV / NEXT)
========================================================= */

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #ffedd5;
}

.article-nav-item {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: #fffaf5;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-nav-item:hover {
    border-color: #ea580c;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.1);
    transform: translateY(-2px);
}

.article-nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ea580c;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: #180d05;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-nav-item.next {
    text-align: right;
}

.article-nav-item.next .article-nav-label {
    justify-content: flex-end;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
========================================================= */

@media (max-width: 980px) {
    .article-hero {
        padding: 135px 0 45px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-main-card {
        padding: 30px;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .sidebar-widget:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 120px 0 40px;
    }

    .article-hero h1 {
        font-size: 25px;
        line-height: 1.3;
    }

    .article-main-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .entry-content {
        font-size: 16px;
        line-height: 1.78;
    }

    .entry-content h2 {
        font-size: 22px;
        margin: 32px 0 14px;
    }

    .entry-content h3 {
        font-size: 19px;
        margin: 26px 0 12px;
    }

    .faq-accordion-question {
        padding: 14px 16px;
        font-size: 15px;
    }

    .faq-accordion-body {
        padding: 0 16px 16px;
        font-size: 14px;
    }

    .article-cta-box {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-nav-item.next {
        text-align: left;
    }

    .article-nav-item.next .article-nav-label {
        justify-content: flex-start;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 110px 0 35px;
    }

    .article-hero h1 {
        font-size: 22px;
    }

    .article-header-meta {
        font-size: 12px;
    }

    .article-featured-image {
        max-height: 230px;
        margin-bottom: 22px;
    }
}
