/* ========================================
   ARTICLE PAGE STYLES
   Max-width 1200px, centered layout
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #203e78;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Article Container */
.article-page {
    padding: 20px 0;
}

.article-page .article-container {
    display: grid !important;
    grid-template-columns: 7fr 3fr !important;
    gap: 25px !important;
    margin-bottom: 40px;
    align-items: start;
    width: 100% !important;
    max-width: 100% !important;
}

/* Default Order (Content Left, Sidebar Right) */
.article-main {
    order: 1;
    width: 100%;
}

.article-sidebar {
    order: 2;
    width: 100%;
}

/* Main Article */
.article-main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-category {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #203e78 0%, #1a3366 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge:hover {
    background: linear-gradient(135deg, #1a3366 0%, #203e78 100%);
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin: 0 0 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    font-size: 13px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item a {
    color: #203e78;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.article-image {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-summary {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #203e78;
    margin: 25px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-weight: 500;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 25px 0;
}

.article-content p {
    margin-bottom: 15px;
}

.article-tags {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.article-tags strong {
    color: #222;
    margin-right: 10px;
}

.tag-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #203e78;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.tag-badge:hover {
    background: #203e78;
    color: #fff;
}

.article-share {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.article-share strong {
    color: #222;
    margin-right: 15px;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    transition: all 0.2s;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #145dbf;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0c85d0;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #203e78;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.related-item a:hover {
    opacity: 0.8;
}

.related-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #222;
}

.related-category {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.sidebar-ad {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.sidebar-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Recommendation Grid */
.rec-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.rec-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.rec-header a {
    color: #203e78;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.rec-header a:hover {
    color: #0f2847;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.rec-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 0;
}

.rec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rec-item a {
    text-decoration: none;
    color: inherit;
}

.rec-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.rec-cat {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.rec-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s;
}

.rec-title:hover {
    color: #203e78;
}

/* Responsive */
@media (min-width: 769px) {
    .article-page .article-container {
        grid-template-columns: 7fr 3fr !important;
    }
}

@media (max-width: 768px) {
    .article-page .article-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .article-main {
        padding: 20px;
        order: 1;
    }

    .article-sidebar {
        position: static;
        order: 2;
    }

    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .breadcrumb {
        font-size: 12px;
    }
}