/* ==========================================================================
   MYTRA PUBLIC ARTICLE DETAIL PAGE
   Clean Code & Scoped Modular CSS
   ========================================================================== */

.mytra-article-detail {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 135px;
    padding-bottom: 80px;
    color: #153243;
}

/* 1. Article Cover Wrap */
.mytra-article-cover {
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 20px -4px rgba(18, 59, 77, 0.05);
}

.mytra-article-cover img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

/* 2. Article Meta Bar (Category & Date) */
.mytra-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1;
}

.mytra-article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0284c7;
    font-weight: 600;
}


.mytra-article-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
}

.mytra-article-meta svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* 3. Article Title */
.mytra-article-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #123b4d;
    margin-top: 0;
    margin-bottom: 24px;
}

/* 4. Article Body Content */
.mytra-article-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334e5d;
    font-size: 16.5px;
    line-height: 1.85;
    letter-spacing: -0.005em;
}

.mytra-article-body p {
    margin-bottom: 1.35rem;
    line-height: 1.85;
    color: #334e5d;
}

.mytra-article-body h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 750;
    color: #123b4d;
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
}

.mytra-article-body h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #123b4d;
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.mytra-article-body h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 650;
    color: #123b4d;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.mytra-article-body ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin-bottom: 1.4rem;
    padding-left: 2rem;
    line-height: 1.8;
    color: #334e5d;
}

.mytra-article-body ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin-bottom: 1.4rem;
    padding-left: 2.2rem;
    line-height: 1.8;
    color: #334e5d;
}

.mytra-article-body li {
    display: list-item !important;
    list-style-type: inherit !important;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    text-indent: 0 !important;
}

/* Neutralize Microsoft Word / Google Docs pasted artifacts (e.g. style="text-indent: -0.25in") */
.mytra-article-body li,
.mytra-article-body li *,
.mytra-article-body li span,
.mytra-article-body li p {
    text-indent: 0 !important;
    margin-left: 0 !important;
}


.mytra-article-body li > p {
    margin-bottom: 0.25rem;
}

.mytra-article-body li > p:last-child {
    margin-bottom: 0;
}

.mytra-article-body ol ol {
    list-style-type: lower-alpha !important;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.mytra-article-body ol ul {
    list-style-type: circle !important;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.mytra-article-body ul ul {
    list-style-type: circle !important;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.mytra-article-body ul ol {
    list-style-type: decimal !important;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.mytra-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* 4.5. Article Body Tables */
.mytra-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border-radius: 8px;
}

.mytra-article-body table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
    color: #334e5d;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
}

.mytra-table-responsive table {
    margin: 0 !important;
}

.mytra-article-body th,
.mytra-article-body td {
    border: 1px solid #cbd5e1;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.mytra-article-body th {
    background-color: #f0f7fb;
    color: #065174;
    font-weight: 700;
    border-bottom: 2px solid #087ea4;
    white-space: nowrap;
}

.mytra-article-body tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

.mytra-article-body tbody tr:hover td {
    background-color: #f1f5f9;
}

/* 5. Sidebar Artikel Lainnya */
.mytra-article-sidebar {
    position: static;
}

.mytra-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mytra-sidebar-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: #065174;
    margin: 0;
}

.mytra-sidebar-link {
    font-size: 13px;
    font-weight: 600;
    color: #087ea4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.mytra-sidebar-link:hover {
    color: #065174;
}

.mytra-article-sidebar-card {
    background: #ffffff;
    border: 1px solid #e9f0f4;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px -4px rgba(18, 59, 77, 0.05);
}

.mytra-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mytra-related-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.mytra-related-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.mytra-related-thumb-wrapper {
    width: 90px;
    aspect-ratio: 16 / 11;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.mytra-related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mytra-related-info {
    flex-grow: 1;
    min-width: 0;
}

.mytra-related-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: #123b4d;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.mytra-related-meta {
    color: #8aa0ae;
    font-size: 11.5px;
    font-weight: 500;
}

.mytra-related-item:hover .mytra-related-title {
    color: #004F78;
}

.mytra-related-item:hover .mytra-related-thumb {
    transform: scale(1.05);
}

/* 6. Responsive Breakpoints */
@media (max-width: 991.98px) {
    .mytra-article-sidebar {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .mytra-article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        min-width: 100%;
        font-size: 14px;
    }

    .mytra-table-responsive table {
        display: table;
        min-width: 520px;
    }

    .mytra-article-body th,
    .mytra-article-body td {
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .mytra-article-detail {
        padding-top: 110px;
    }

    .mytra-article-meta {
        gap: 12px;
    }

    .mytra-related-thumb-wrapper {
        width: 78px;
        border-radius: 8px;
    }

    .mytra-related-title {
        font-size: 13.5px;
    }
}
