/* ========================================
   COMMON PAGE STYLES
   For all frontend pages (kategori, tag, daerah, biro, etc)
   Max-width 1200px, centered layout
   ======================================== */

/* Page Wrapper */
.page-wrapper {
    padding: 20px 0 40px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.breadcrumb a {
    color: #203e78;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #203e78 0%, #1a3366 100%);
    color: #fff;
    border-radius: 8px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
}

.page-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-image {
    display: block;
    position: relative;
    overflow: hidden;
    padding-top: 66.67%;
    /* 3:2 aspect ratio */
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.card-date {
    color: #203e78;
    font-weight: 600;
}

.card-views {
    color: #999;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #203e78;
}

.card-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border-left: 4px solid #203e78;
}

.category-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left-color: #ff6b35;
}

.category-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #203e78;
    margin: 0 0 10px;
}

.category-box p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}

.category-count {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.page-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    color: #203e78;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #203e78;
    color: #fff;
    border-color: #203e78;
}

.page-btn.active {
    background: #203e78;
    color: #fff;
    border-color: #203e78;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.empty-state h3 {
    font-size: 24px;
    color: #666;
    margin: 0 0 10px;
}

.empty-state p {
    font-size: 16px;
    color: #999;
    margin: 0 0 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #203e78;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1a3366;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.tag-item {
    display: inline-block;
    background: #f0f0f0;
    color: #203e78;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.tag-item:hover {
    background: #203e78;
    color: #fff;
}

.tag-item.large {
    font-size: 18px;
    padding: 10px 20px;
}

.tag-item.medium {
    font-size: 16px;
    padding: 9px 18px;
}

.tag-item.small {
    font-size: 14px;
    padding: 8px 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }

    .page-description {
        font-size: 14px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}