/* =========================================================
   PT IAS — SINGLE POST DESIGN
   Twenty Nineteen Child Theme
   ========================================================= */

:root {
    --ias-navy: #102a43;
    --ias-blue: #1769aa;
    --ias-gold: #c79a3b;
    --ias-text: #243447;
    --ias-muted: #667085;
    --ias-light: #f6f8fb;
    --ias-border: #e5e7eb;
    --ias-white: #ffffff;
    --ias-radius: 18px;
    --ias-shadow: 0 12px 40px rgba(16, 42, 67, 0.08);
}

/* ---------------------------------------------------------
   GLOBAL
   --------------------------------------------------------- */

body {
    margin: 0 !important;
    background: #fff !important;
    color: var(--ias-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

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

.ias-single a {
    color: inherit;
    text-decoration: none;
}

.ias-single img {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   READING PROGRESS
   --------------------------------------------------------- */

.ias-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: 4px;
    background: transparent;
}

.ias-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--ias-gold);
}

/* ---------------------------------------------------------
   MAIN CONTAINER
   --------------------------------------------------------- */

.ias-single {
    width: 100%;
    background: #fff;
}

.ias-article {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 90px;
}

/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */

.ias-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 42px;
    color: var(--ias-muted);
    font-size: 14px;
    line-height: 1.6;
}

.ias-breadcrumb a {
    color: var(--ias-blue);
    font-weight: 600;
}

.ias-breadcrumb span:last-child {
    color: #98a2b3;
}

/* ---------------------------------------------------------
   ARTICLE HEADER
   --------------------------------------------------------- */

.ias-hero {
    max-width: 930px;
    margin: 0 auto 42px;
    text-align: center;
}

.ias-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: #eef5fb;
    color: var(--ias-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ias-title {
    margin: 0 0 22px !important;
    color: #102a43 !important;
    font-size: clamp(38px, 5vw, 64px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
}

.ias-excerpt {
    max-width: 800px;
    margin: 0 auto 25px !important;
    color: #667085;
    font-size: 19px;
    line-height: 1.75;
}

.ias-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #667085;
    font-size: 14px;
}

.ias-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.ias-author-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
}

.ias-author strong {
    display: block;
    color: #243447;
    font-size: 14px;
}

.ias-author small {
    display: block;
    margin-top: 2px;
    color: #98a2b3;
    font-size: 11px;
}

.ias-dot {
    color: #cbd5e1;
}

/* ---------------------------------------------------------
   FEATURED IMAGE
   --------------------------------------------------------- */

.ias-featured {
    width: 100%;
    margin: 0 auto 65px;
    overflow: hidden;
    border-radius: 22px;
    background: #f3f4f6;
    box-shadow: var(--ias-shadow);
}

.ias-featured img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

/* ---------------------------------------------------------
   ARTICLE LAYOUT
   --------------------------------------------------------- */

.ias-layout {
    position: relative;
}

.ias-content-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: 55px;
}

/* ---------------------------------------------------------
   SHARE
   --------------------------------------------------------- */

.ias-share {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 55px;
}

.ias-share > span {
    margin-bottom: 5px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.ias-share a,
.ias-share button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ias-border);
    border-radius: 50%;
    background: #fff;
    color: var(--ias-navy);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}

.ias-share a:hover,
.ias-share button:hover {
    border-color: var(--ias-blue);
    background: var(--ias-blue);
    color: #fff;
}

/* ---------------------------------------------------------
   TABLE OF CONTENTS
   --------------------------------------------------------- */

.ias-toc {
    position: relative;
}

.ias-toc__inner {
    position: sticky;
    top: 90px;
    padding: 22px;
    border: 1px solid var(--ias-border);
    border-radius: 14px;
    background: #fbfcfe;
}

.ias-toc__title {
    margin-bottom: 15px;
    color: var(--ias-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ias-toc__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ias-toc__list a {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.ias-toc__list a:hover {
    color: var(--ias-blue);
}

.ias-toc__list a.ias-toc-h3 {
    padding-left: 12px;
    font-size: 12px;
}

/* ---------------------------------------------------------
   ARTICLE CONTENT
   --------------------------------------------------------- */

.ias-content {
    min-width: 0;
    color: #29394d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.9;
}

.ias-content > *:first-child {
    margin-top: 0;
}

.ias-content p {
    margin: 0 0 25px;
}

.ias-content h2,
.ias-content h3,
.ias-content h4 {
    color: var(--ias-navy);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ias-content h2 {
    margin: 55px 0 20px;
    font-size: 32px;
    line-height: 1.25;
}

.ias-content h3 {
    margin: 40px 0 16px;
    font-size: 24px;
    line-height: 1.35;
}

.ias-content h4 {
    margin: 30px 0 12px;
    font-size: 20px;
}

.ias-content a {
    color: var(--ias-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ias-content strong {
    color: #172b4d;
}

.ias-content ul,
.ias-content ol {
    margin: 0 0 28px;
    padding-left: 28px;
}

.ias-content li {
    margin-bottom: 9px;
}

.ias-content blockquote {
    margin: 35px 0;
    padding: 25px 28px;
    border-left: 4px solid var(--ias-gold);
    border-radius: 0 12px 12px 0;
    background: #f8fafc;
    color: #475467;
    font-size: 20px;
    font-style: italic;
}

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

.ias-content img {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 35px auto;
    border-radius: 12px;
}

.ias-content figure {
    margin: 35px 0;
}

.ias-content figcaption {
    margin-top: 10px;
    color: #98a2b3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    text-align: center;
}

.ias-content table {
    width: 100%;
    margin: 35px 0;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.ias-content th,
.ias-content td {
    padding: 13px 15px;
    border: 1px solid var(--ias-border);
    text-align: left;
}

.ias-content th {
    background: #f6f8fb;
    color: var(--ias-navy);
    font-weight: 800;
}

.ias-content pre {
    overflow-x: auto;
    padding: 20px;
    border-radius: 12px;
    background: #102a43;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
}

.ias-content hr {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid var(--ias-border);
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.ias-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 85px auto 55px;
    padding: 42px 45px;
    border-radius: 22px;
    background: var(--ias-navy);
    color: #fff;
    box-shadow: var(--ias-shadow);
}

.ias-cta__content {
    max-width: 680px;
}

.ias-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--ias-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ias-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
}

.ias-cta p {
    margin: 0;
    color: #dbe5ef;
    font-size: 16px;
    line-height: 1.7;
}

.ias-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 14px;
    padding: 14px 21px;
    border-radius: 999px;
    background: #fff;
    color: var(--ias-navy) !important;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease;
}

.ias-button:hover {
    transform: translateY(-2px);
}

.ias-button span {
    color: var(--ias-gold);
    font-size: 20px;
}

/* ---------------------------------------------------------
   AUTHOR BOX
   --------------------------------------------------------- */

.ias-author-box {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 760px;
    margin: 0 auto 75px;
    padding: 28px;
    border: 1px solid var(--ias-border);
    border-radius: 18px;
    background: #fbfcfe;
}

.ias-author-box img {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
    border-radius: 50%;
    object-fit: cover;
}

.ias-author-box h2 {
    margin: 0 0 6px;
    color: var(--ias-navy);
    font-size: 20px;
}

.ias-author-box p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

/* ---------------------------------------------------------
   RELATED ARTICLES
   --------------------------------------------------------- */

.ias-related {
    padding-top: 55px;
    border-top: 1px solid var(--ias-border);
}

.ias-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.ias-section-head h2 {
    margin: 0;
    color: var(--ias-navy);
    font-size: 32px;
    line-height: 1.2;
}

.ias-section-head > a {
    color: var(--ias-blue);
    font-size: 14px;
    font-weight: 700;
}

.ias-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ias-card {
    overflow: hidden;
    border: 1px solid var(--ias-border);
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ias-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ias-shadow);
}

.ias-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f6;
}

.ias-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ias-card:hover .ias-card__image img {
    transform: scale(1.04);
}

.ias-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--ias-navy);
    color: #fff;
    font-weight: 800;
}

.ias-card__body {
    padding: 21px;
}

.ias-card__category {
    color: var(--ias-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ias-card h3 {
    margin: 10px 0 17px;
    color: var(--ias-navy);
    font-size: 19px;
    line-height: 1.35;
}

.ias-card__link {
    color: var(--ias-blue);
    font-size: 13px;
    font-weight: 800;
}

/* ---------------------------------------------------------
   REMOVE SOME PARENT THEME SPACING
   --------------------------------------------------------- */

.ias-single .entry-header,
.ias-single .entry-content,
.ias-single .entry-footer {
    max-width: none;
}

.ias-single .site-content {
    padding: 0;
}

.ias-single .content-area {
    width: 100%;
}

.ias-single .site-main {
    margin: 0;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .ias-content-wrap {
        grid-template-columns: 180px minmax(0, 760px);
        gap: 35px;
    }

    .ias-share {
        display: none;
    }

}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .ias-article {
        width: min(100% - 30px, 720px);
        padding-top: 28px;
        padding-bottom: 60px;
    }

    .ias-breadcrumb {
        margin-bottom: 30px;
        font-size: 12px;
    }

    .ias-title {
        font-size: clamp(34px, 9vw, 48px) !important;
    }

    .ias-excerpt {
        font-size: 17px;
        line-height: 1.65;
    }

    .ias-meta {
        font-size: 12px;
    }

    .ias-featured {
        margin-bottom: 42px;
        border-radius: 14px;
    }

    .ias-content-wrap {
        display: block;
    }

    .ias-toc {
        margin-bottom: 35px;
    }

    .ias-toc__inner {
        position: relative;
        top: auto;
    }

    .ias-content {
        font-size: 18px;
        line-height: 1.8;
    }

    .ias-content h2 {
        margin-top: 45px;
        font-size: 28px;
    }

    .ias-content h3 {
        font-size: 22px;
    }

    .ias-cta {
        display: block;
        margin-top: 60px;
        padding: 30px 25px;
        border-radius: 16px;
    }

    .ias-cta h2 {
        font-size: 26px;
    }

    .ias-button {
        margin-top: 25px;
    }

    .ias-author-box {
        align-items: flex-start;
        margin-bottom: 55px;
        padding: 22px;
    }

    .ias-related-grid {
        grid-template-columns: 1fr;
    }

    .ias-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* =========================================================
   PT IAS BLOG - FINAL ARTICLE WIDTH
   ========================================================= */

.ias-single .ias-content {
    display: block !important;
    width: 820px !important;
    max-width: 820px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.ias-single .ias-content p,
.ias-single .ias-content h2,
.ias-single .ias-content h3,
.ias-single .ias-content h4,
.ias-single .ias-content ul,
.ias-single .ias-content ol,
.ias-single .ias-content blockquote {
    width: 100% !important;
    max-width: 820px !important;
    box-sizing: border-box !important;
}

/* Pastikan parent tidak mempersempit content */
.ias-single .entry-content,
.ias-single .content-area,
.ias-single main {
    max-width: none !important;
}

/* Gambar artikel */
.ias-single .ias-content img {
    max-width: 100% !important;
    width: auto;
    height: auto;
}

/* TABLET */
@media (max-width: 900px) {

    .ias-single .ias-content {
        width: calc(100% - 40px) !important;
        max-width: 820px !important;
    }

}

/* MOBILE */
@media (max-width: 600px) {

    .ias-single .ias-content {
        width: calc(100% - 32px) !important;
    }

}

/* =========================================
   TEST HEADER SINGLE POST
   ========================================= */

body.single-post #masthead {
    display: block !important;
    min-height: 120px !important;
    height: 120px !important;
    max-height: 120px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================
   HAPUS HEADER BAWAAN TWENTY NINETEEN
   PADA HALAMAN SINGLE POST
   ========================================= */

body.single-post #masthead.site-header.featured-image {
    display: none !important;
}