:root {
    --pfh-primary: #2e7d32;
    --pfh-secondary: #f9a825;
}

body {
    background-color: #f5f7f5;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Navbar & Footer ---------- */
.pfh-navbar {
    background-color: var(--pfh-primary);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.pfh-footer {
    background-color: #1b1f1b;
    color: #ccc;
}
.btn-pfh-primary {
    background-color: var(--pfh-primary);
    border-color: var(--pfh-primary);
    color: #fff;
}
.btn-pfh-primary:hover {
    filter: brightness(0.9);
    color: #fff;
}

/* ---------- Cards ---------- */
.pfh-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.pfh-title-link {
    color: #1b1f1b;
}
.pfh-title-link:hover {
    color: var(--pfh-primary);
}
.pfh-badge-category {
    background-color: var(--pfh-secondary);
    color: #1b1f1b;
}

/* ---------- Thumbnail (kartu daftar artikel) ---------- */
.pfh-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background-color: #e9ece9;
}
.pfh-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pfh-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b7bfb7;
    font-size: 2.2rem;
}

/* ---------- Thumbnail hero (halaman detail artikel) ---------- */
.pfh-article-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* ---------- Article content ---------- */
.pfh-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ---------- Galeri foto di dalam artikel (grid) ---------- */
.pfh-gallery {
    margin: 1.25rem 0;
}
.pfh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.pfh-gallery-item {
    margin: 0;
}
.pfh-gallery-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background-color: #e9ece9;
}
.pfh-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}
.pfh-gallery-item figcaption {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    margin-top: 6px;
    padding: 0 4px;
}

/* ---------- Galeri foto di dalam artikel (carousel) ---------- */
.pfh-gallery-carousel .pfh-gallery-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #e9ece9;
}
.pfh-gallery-carousel .pfh-gallery-track {
    display: flex;
    transition: transform 0.35s ease;
}
.pfh-gallery-carousel .pfh-gallery-slide {
    flex: 0 0 100%;
    max-width: 100%;
}
.pfh-gallery-carousel .pfh-gallery-img-wrap {
    aspect-ratio: 16 / 10;
}
.pfh-gallery-prev,
.pfh-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}
.pfh-gallery-prev:hover,
.pfh-gallery-next:hover {
    background: rgba(0, 0, 0, 0.7);
}
.pfh-gallery-prev { left: 10px; }
.pfh-gallery-next { right: 10px; }
.pfh-gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.pfh-gallery-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: inline-block;
}
.pfh-gallery-dots span.active {
    background: #fff;
}
.pfh-gallery-captions {
    margin-top: 6px;
}
.pfh-gallery-caption {
    display: none;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin: 0;
}
.pfh-gallery-caption.active {
    display: block;
}
.pfh-article-content blockquote {
    border-left: 4px solid var(--pfh-primary);
    padding-left: 1rem;
    color: #555;
    font-style: italic;
}
.pfh-article-content table {
    width: 100%;
    border-collapse: collapse;
}
.pfh-article-content table td,
.pfh-article-content table th {
    border: 1px solid #ddd;
    padding: 8px;
}

/* ---------- Comments ---------- */
.pfh-comment {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pfh-comment-reply {
    margin-left: 24px;
    border-left: 3px solid var(--pfh-secondary);
}
.pfh-reply-indicator {
    margin-bottom: 4px;
}

/* ---------- Admin Layout ---------- */
.pfh-admin-body {
    background-color: #f0f2f0;
}
.pfh-sidebar {
    width: 240px;
    min-height: 100vh;
    background-color: #1b1f1b;
    color: #fff;
    padding: 1rem;
}
.pfh-sidebar-brand {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem 1.5rem;
}
.pfh-sidebar .nav-link {
    color: #cfd8cf;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 2px;
}
.pfh-sidebar .nav-link:hover,
.pfh-sidebar .nav-link.active {
    background-color: var(--pfh-primary);
    color: #fff;
}
.pfh-admin-content {
    padding: 1.5rem 2rem;
}
.pfh-admin-topbar {
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pfh-stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
