/* ============================================
   MHDI Cam Ranh — Article Pages Shared Styles
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    line-height: 1.8;
    background: #fff;
}

a {
    color: #b8860b;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #8b6508;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    background: #0a0f1a;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 36px;
}

.brand-gold {
    color: #d4a017;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 24px;
    font-size: 0.88rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #d4a017;
}

.btn-nav {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #64748b;
}

.breadcrumb span {
    margin: 0 8px;
}

/* Article Header */
.article-header {
    padding: 40px 0 32px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #0a0f1a;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 4px;
}

/* Article Content */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding-bottom: 60px;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0a0f1a;
    margin: 40px 0 16px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.article-content h2:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.article-content h3 {
    font-size: 1.15rem;
    color: #1a202c;
    margin: 28px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: #334155;
    font-size: 0.95rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px 20px;
    color: #334155;
}

.article-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.article-content strong {
    color: #0a0f1a;
}

/* Feature Image */
.article-hero-img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Info Box */
.info-box {
    background: #f8fafc;
    border-left: 4px solid #d4a017;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box h4 {
    color: #b8860b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.info-box p,
.info-box li {
    font-size: 0.9rem;
    color: #475569;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #0c1a2e, #1a2d4a);
    border-radius: 14px;
    padding: 28px;
    margin: 32px 0;
    color: #fff;
}

.highlight-box h3 {
    color: #d4a017;
    margin-top: 0;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.8);
}

.highlight-box strong {
    color: #f5e6c8;
}

/* Timeline */
.timeline-article {
    position: relative;
    padding-left: 32px;
    margin: 24px 0;
}

.timeline-article::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}

.tl-item {
    position: relative;
    padding-bottom: 24px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tl-done {
    background: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.tl-active {
    background: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
    animation: pulse-dot 2s infinite;
}

.tl-pending {
    background: transparent;
    border: 2px solid #cbd5e1;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.08);
    }
}

.tl-item h4 {
    font-size: 0.95rem;
    color: #1a202c;
    margin-bottom: 4px;
}

.tl-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.ps-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ps-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0a0f1a;
}

.ps-value span {
    color: #27ae60;
}

.ps-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #0c1a2e, #1a2d4a);
    border: 1.5px solid rgba(212, 160, 23, 0.3);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: #f5e6c8;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.cta-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-gold {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff;
}

.btn-outline-w {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    margin-left: 12px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 0.95rem;
    color: #0a0f1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: #334155;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    color: #b8860b;
}

.sidebar-link .tag {
    display: inline-block;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 6px;
}

.sidebar-cta {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff;
    text-align: center;
    border-radius: 14px;
    padding: 28px 24px;
}

.sidebar-cta h4 {
    color: #fff;
    border: none;
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.sidebar-cta .btn {
    display: block;
    background: #fff;
    color: #b8860b;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

/* Comparison Table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 24px 0;
}

.compare-table th {
    background: #0a0f1a;
    color: #f5e6c8;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.compare-table tr:nth-child(even) td {
    background: #f8fafc;
}

.compare-table tr.highlight td {
    background: rgba(212, 160, 23, 0.08);
    font-weight: 600;
}

/* Related */
.related-articles {
    padding: 48px 0;
    border-top: 1px solid #e2e8f0;
}

.related-articles h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-card-body {
    padding: 16px;
}

.related-card-body .tag {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.related-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-card-body h3 a {
    color: #1a202c;
}

.related-card-body h3 a:hover {
    color: #b8860b;
}

.related-card-body time {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Footer */
.footer {
    background: #0a0f1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0 20px;
    text-align: center;
    font-size: 0.85rem;
}

.footer a {
    color: #d4a017;
}

.footer p {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .progress-stats {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .compare-table {
        font-size: 0.75rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 8px 10px;
    }
}