/* ==========================================================
   MASALAH PERTANIAN — Listing & Detail
   PabrikTani
========================================================== */

.problems-page,
.problem-detail-body {
    background: var(--background, #F7FAF7);
}

/* Hero — listing */
.problems-page-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: #fff;
    text-align: center;
}

.problems-page-hero .section-subtitle {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.problems-page-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
}

.problems-page-hero p {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* Listing cards */
.problems-page-list {
    padding: 60px 0 90px;
}

.problems-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.problem-card-lg {
    background: #fff;
    border: 1px solid #E8EFE6;
    border-radius: 24px;
    padding: 32px;
    transition: 0.35s;
}

.problem-card-lg:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(46, 125, 50, 0.12);
    border-color: var(--primary, #2E7D32);
}

.problem-card-lg-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.problem-card-lg-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #EDF8EA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.problem-card-lg h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}

.problem-card-lg h2 a {
    color: #222;
    text-decoration: none;
}

.problem-card-lg h2 a:hover {
    color: var(--primary, #2E7D32);
}

.problem-card-lg-desc {
    font-size: 14px;
    color: var(--primary, #2E7D32);
    font-weight: 600;
    margin: 0;
}

.problem-card-lg-overview {
    color: #555;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 15px;
}

.problem-card-lg-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
    line-height: 1.6;
}

.problem-card-lg-meta strong {
    color: #333;
}

.problem-card-lg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.problem-card-lg-tags span {
    padding: 5px 12px;
    background: #F0F7EE;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.problem-card-lg-link {
    font-weight: 700;
    color: var(--primary, #2E7D32);
    font-size: 15px;
}

.problem-card-lg-link:hover {
    color: var(--primary-dark, #1B5E20);
}

.problems-page-cta {
    margin-top: 60px;
    text-align: center;
    background: #EAF6E6;
    border-radius: 24px;
    padding: 48px 32px;
    border: 1px solid #C8E6C9;
}

.problems-page-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #222;
}

.problems-page-cta p {
    color: #555;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Hero — detail */
.problem-detail-hero {
    padding: 40px 0 36px;
    background: #fff;
    border-bottom: 1px solid #ECECEC;
}

.problem-breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

.problem-breadcrumb a {
    color: var(--primary, #2E7D32);
}

.problem-breadcrumb span {
    margin: 0 8px;
}

.problem-detail-hero-inner {
    display: flex;
    gap: 24px;
    align-items: center;
}

.problem-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #EDF8EA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.problem-detail-hero .section-subtitle {
    display: inline-block;
    padding: 8px 18px;
    background: #EAF6E6;
    color: var(--primary, #2E7D32);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.problem-detail-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
}

.problem-detail-hero p {
    color: #666;
    font-size: 17px;
    margin: 0;
}

/* Detail body */
.problem-detail-body {
    padding: 50px 0 80px;
}

.problem-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.problem-block {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid #E8EFE6;
}

.problem-block h2 {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin-bottom: 16px;
}

.problem-block p {
    color: #555;
    line-height: 1.85;
    margin: 0;
}

.problem-list,
.problem-steps {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.problem-list li,
.problem-steps li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: #555;
    line-height: 1.75;
    border-bottom: 1px solid #F5F5F5;
}

.problem-list li:last-child,
.problem-steps li:last-child {
    border-bottom: none;
}

.problem-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary, #2E7D32);
    font-weight: 700;
}

.problem-list-check li::before {
    content: "✓";
}

.problem-steps {
    counter-reset: step;
}

.problem-steps li {
    counter-increment: step;
    padding-left: 40px;
}

.problem-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 10px;
    width: 26px;
    height: 26px;
    background: var(--primary, #2E7D32);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-products .btn {
    margin-top: 20px;
}

/* Sidebar */
.problem-sidebar-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #E8EFE6;
}

.problem-sidebar-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #222;
}

.problem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.problem-tag {
    padding: 6px 14px;
    background: #F0F7EE;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

a.problem-tag {
    text-decoration: none;
    color: #1B5E20;
}

a.problem-tag:hover {
    background: #E0F0DC;
}

.problem-sidebar-cta {
    background: linear-gradient(145deg, #1B5E20, #2E7D32);
    color: #fff;
    border: none;
}

.problem-sidebar-cta h3 {
    color: #fff;
}

.problem-sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 14px;
}

.problem-sidebar-cta .btn {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
    justify-content: center;
}

.problem-sidebar-cta .btn-primary {
    background: #fff;
    color: var(--primary-dark, #1B5E20);
}

.problem-sidebar-cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

.problem-sidebar-cta .btn-outline:hover {
    background: #fff;
    color: var(--primary-dark, #1B5E20);
}

.problem-related {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-related li {
    border-bottom: 1px solid #F0F0F0;
}

.problem-related li:last-child {
    border-bottom: none;
}

.problem-related a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #444;
    font-weight: 600;
    font-size: 14px;
}

.problem-related a:hover {
    color: var(--primary, #2E7D32);
}

.problem-related span {
    font-size: 20px;
}

/* Homepage card hint */
.cp-card-sm .cp-card-desc {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .problems-cards-grid {
        grid-template-columns: 1fr;
    }

    .problem-detail-grid {
        grid-template-columns: 1fr;
    }

    .problem-detail-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .problems-page-hero h1 {
        font-size: 28px;
    }

    .problem-detail-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .problem-block {
        padding: 22px;
    }
}
