*,
*::before,
*::after {
    box-sizing: border-box;
}

.article-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 40px;
    line-height: 1.85;
    font-size: 1.05rem;
    color: var(--gray-dark);
}

.breadcrumb {
    padding: 20px 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--orange);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 40px;
    margin-bottom: 1.5rem;
    color: var(--black);
    line-height: 1.2;
    text-align: center;
}

.article-meta {
    text-align: center;
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.article-meta time,
.article-meta .author {
    font-weight: 500;
}

.article-cover {
    margin: 2rem 0 3rem;
    text-align: center;
}

.cover-square {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    margin: 2.5rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    max-height: 700px;
    border-radius: 3px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-image figcaption {
    margin-top: 0.8rem;
    color: var(--gray);
    font-style: italic;
    font-size: 0.95rem;
}

h2 {
    color: var(--orange);
    font-size: 30px;
    margin: 3rem 0 1.2rem;
    line-height: 1.3;
}

h3 {
    color: var(--black);
    font-size: 26px;
    margin: 2.5rem 0 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.author-box {
    background: var(--orange);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.author-box h3 {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.share-buttons {
    text-align: center;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-buttons h4 {
    margin-bottom: 1.5rem;
    color: var(--black);
    font-size: 1.3rem;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 760px;
    margin: 0 auto;
}

.share-btn {
    flex: 1 1 200px;
    max-width: 220px;
    min-width: 180px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-section {
    margin: 4rem 0 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid #eee;
}

.faq-section h2 {
    text-align: center;
    color: var(--orange);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--light-bg);
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: "▼";
    font-size: 0.9rem;
    color: var(--orange);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.faq-question:hover,
.faq-question:focus {
    background: #f0f0f0;
    outline: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background: white;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--gray-dark);
}

.faq-answer[aria-hidden="false"] {
    max-height: 1000px;
    padding: 1.5rem;
}

.related-articles {
    max-width: 1000px;
    margin: 4rem auto 3rem;
    padding: 2.5rem 2rem;
    background: #fdf6f0;
    border-radius: 20px;
}

.related-articles h3 {
    text-align: center;
    color: var(--orange);
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.8rem;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transform: rotate(var(--rotate, 0deg));
}

.related-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.related-card h4 {
    font-size: 1.25rem;
    color: var(--black);
    padding: 1rem 1rem 0;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.related-card p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    padding: 0 1rem 1rem;
    margin: 0;
    flex-grow: 1;
    line-height: 1.4;
}

.related-card:nth-child(3n+1) {
    --rotate: -1.5deg;
}

.related-card:nth-child(3n+2) {
    --rotate: 0.5deg;
}

.related-card:nth-child(3n+3) {
    --rotate: -0.7deg;
}

figure {
    margin: 1.5rem 0;
    text-align: center;
    display: block;
    width: 100%;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

figcaption {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.4;
    font-style: italic;
    text-align: center;
}

figcaption span.source {
    font-weight: 600;
    color: #333;
    font-style: normal;
}

@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
    }

    .container,
    .article-main {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .article-main {
        padding: 20px 10px;
    }

    .share-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .share-btn {
        flex: 1 1 auto;
        max-width: 90%;
        width: 90%;
        margin: 0 auto;
        padding: 16px 20px;
        font-size: 1.1rem;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    .cover-square {
        max-width: 100%;
    }

    .related-articles {
        padding: 2rem 1rem;
        border-radius: 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-card h4 {
        font-size: 1.15rem;
    }

    .related-card p {
        font-size: 0.92rem;
    }

    .related-card {
        transform: rotate(0deg);
    }

    figure,
    img {
        max-width: 100%;
        height: auto;
    }

    figcaption {
        font-size: 0.8rem;
        margin-top: 0.4rem;
    }

    .nav-menu {
        max-width: 100vw;
        padding-left: 10px;
        padding-right: 10px;
    }

    table {
        min-width: 0;
        width: 100%;
    }
}

/* Kode blok */
pre {
    background-color: #000000;
    color: #f8f8f2;
    padding: 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    max-width: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

pre code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre;
    display: block;
}

/* Highlight inline code */
code {

    color: #d6336c;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Responsive mobile */
@media (max-width: 768px) {
    pre {
        padding: 1rem;
        font-size: 0.9rem;
    }

    pre code {
        font-size: 0.9rem;
    }
}

/* Syntax highlight sederhana */
pre code .comment {
    color: #6a9955;
    /* hijau */
    font-style: italic;
}

pre code .keyword {
    color: #569cd6;
    /* biru */
    font-weight: 600;
}

pre code .string {
    color: #d69d85;
    /* coklat muda */
}

pre code .number {
    color: #b5cea8;
    /* hijau muda */
}

pre code .function {
    color: #dcdcaa;
    /* kuning */
}

/* Highlight HTML */
pre code .tag {
    color: #569cd6;
}

pre code .attr {
    color: #9cdcfe;
}

pre code .value {
    color: #ce9178;
}