/* ===/* Main article wrapper with two-column layout */
.article-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Sidebar - Table of Contents */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.article-sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--rule);
}

.article-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    margin: 0;
}

.arricle-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-sidebar-link {
    display: block;
    padding: 0.7rem 0.9rem;
    color: var(--cream-dim);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    padding-left: 0.85rem;
}

.arricle-sidebar-link:hover {
    color: var(--teal);
    background-color: rgba(95, 184, 168, 0.1);
    padding-left: 1rem;
    border-left-color: var(--teal);
}

.article-sidebar-link.active {
    color: var(--yellow);
    background-color: rgba(227, 179, 65, 0.15);
    border-left-color: var(--yellow);
    font-weight: 600;
    padding-left: 1rem;
}

/* Scrollbar styling for sidebar */
.article-sidebar::-webkit-scrollbar {
    width: 6px;
}

.article-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.article-sidebar::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 3px;
}

.article-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--cream-dim);
}

/* Main content area */
.article-main {
    min-height: 100vh;
}

/* Article header */
.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--rule);
}

.article-header-content {
    background: linear-gradient(135deg, rgba(95, 184, 168, 0.08), rgba(227, 179, 65, 0.08));
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--rule);
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cream);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--cream-dim);
    margin: 0 0 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Article content sections */
.article-content {
    line-height: 1.8;
}

.content-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 2rem;
}

.content-section h2 {
    font-size: 2rem;
    margin: 0 0 1.2rem;
    color: var(--cream);
    border-bottom: 2px solid rgba(95, 184, 168, 0.2);
    padding-bottom: 0.8rem;
}

.content-section h3 {
    font-size: 1.4rem;
    margin: 1.8rem 0 0.8rem;
    color: var(--cream);
}

.content-section p {
    margin-bottom: 1.3rem;
    color: var(--cream-dim);
    line-height: 1.9;
}

.content-section ul,
.content-section ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    color: var(--cream-dim);
}

.content-section strong {
    color: var(--cream);
    font-weight: 700;
}

.content-section em {
    font-style: italic;
    color: var(--cream-dim);
}

/* Callout boxes */
.callout-info,
.callout-warning {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    background: var(--panel);
}

.callout-info {
    border-left-color: var(--blue);
}

.callout-info strong {
    color: var(--blue);
}

.callout-warning {
    border-left-color: var(--yellow);
}

.callout-warning strong {
    color: var(--yellow);
}

.callout-info p,
.callout-warning p {
    margin-bottom: 0.8rem;
}

.callout-info p:last-child,
.callout-warning p:last-child {
    margin-bottom: 0;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.comparison-table thead {
    background: var(--panel-2);
}

.comparison-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    color: var(--cream);
    font-weight: 700;
    border: 1px solid var(--rule);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    padding: 1.2rem;
    color: var(--cream-dim);
    border: 1px solid var(--rule);
    line-height: 1.7;
}

.comparison-table tbody tr:nth-child(odd) {
    background: rgba(95, 184, 168, 0.05);
}

.comparison-table tbody tr:hover {
    background: rgba(95, 184, 168, 0.1);
}

/* FAQ section */
.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin: 0 0 0.8rem;
    color: var(--teal);
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-item h3:hover {
    color: var(--yellow);
}

.faq-item p {
    margin: 0;
    color: var(--cream-dim);
}

/* CTA button in content */
.content-cta {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(95, 184, 168, 0.12), rgba(227, 179, 65, 0.08));
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    text-align: center;
}

.content-cta .btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Article footer and tags */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--rule);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.article-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(95, 184, 168, 0.15);
    color: var(--teal);
    border: 1px solid rgba(95, 184, 168, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-tag:hover {
    background: rgba(95, 184, 168, 0.25);
    border-color: var(--teal);
    color: var(--cream);
}

/* ============================= */
/* RESPONSIVE DESIGN             */
/* ============================= */

@media (max-width: 1024px) {
    .article-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 2.2rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .article-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 1rem;
    }

    .article-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }

    .article-sidebar::-webkit-scrollbar {
        display: none;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-subtitle {
        font-size: 1rem;
    }

    .article-header-content {
        padding: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.15rem;
    }

    .sidebar-link {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .article-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .article-wrapper {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-subtitle {
        font-size: 0.95rem;
    }

    .article-meta {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .article-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .content-section {
        margin-bottom: 2.5rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
        margin: 0 0 0.8rem;
    }

    .content-section h3 {
        font-size: 1.05rem;
        margin: 1.2rem 0 0.6rem;
    }

    .content-section p {
        font-size: 0.95rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem;
    }

    .callout-info,
    .callout-warning {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

/* === PENGAMAN LAYOUT DESKTOP HALAMAN ARTIKEL === */
/* Paksa ukuran logo tetap kecil, apapun yang terjadi */
.brand-logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Paksa navbar tetap rapi di desktop */
.navbar-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
  height: 68px !important;
}

.navbar-brand {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

.brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1 !important;
  max-width: 180px !important;
  overflow: hidden !important;
}

.nav-menu {
  flex: 1 !important;
  min-width: 0 !important;
}

.navbar-actions {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Pastikan gambar di navbar/footer tidak meledak */
.navbar img,
.footer img {
  max-width: 100% !important;
  height: auto !important;
}