/* ============================================================
   LAYANAN.CSS – Template Kategori Layanan
   Digunakan untuk halaman kategori sedot wc, saluran mampet, dll.
   ============================================================ */

/* ----- HERO SECTION ----- */
.layanan-hero {
    background: linear-gradient(135deg, #0F1A2E 0%, #1a2a4a 100%);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    border-radius: 0;
}
.layanan-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}
.layanan-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.layanan-hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.layanan-hero .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    transition: all 0.3s ease;
}
.layanan-hero .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}
.layanan-hero .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}
.layanan-hero .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* ----- KONTEN TAMBAHAN DARI META BOX ----- */
.layanan-custom-content {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px 24px;
}
.layanan-custom-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    color: #0F1A2E;
}
.layanan-custom-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}
.layanan-custom-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.layanan-custom-content ul li {
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    font-size: 0.98rem;
}

/* ----- GRID POSTINGAN ----- */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.layanan-grid .post-item {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.layanan-grid .post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.layanan-grid .post-item .post-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eef2f6;
}
.layanan-grid .post-item .post-content {
    padding: 16px 20px 20px;
}
.layanan-grid .post-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0F1A2E;
}
.layanan-grid .post-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.layanan-grid .post-item h3 a:hover {
    color: #2563eb;
}
.layanan-grid .post-item .post-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}
.layanan-grid .post-item .post-meta {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.layanan-grid .post-item .read-more {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.layanan-grid .post-item .read-more:hover {
    text-decoration: underline;
}

/* ----- PAGINASI ----- */
.layanan-pagination {
    text-align: center;
    margin: 30px 0 50px;
}
.layanan-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}
.layanan-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.layanan-pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
}

/* ----- RESPONSIF ----- */
@media (max-width: 992px) {
    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .layanan-custom-content ul {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .layanan-hero h1 {
        font-size: 2rem;
    }
    .layanan-hero p {
        font-size: 1rem;
    }
    .layanan-grid {
        grid-template-columns: 1fr;
    }
    .layanan-grid .post-item .post-thumb {
        height: 180px;
    }
}