/* =========================================================
GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7f4;
    overflow-x: hidden;
    color: #374151;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

/* =========================================================
CONTENT WRAPPER
========================================================= */

.content-wrapper,
.detail-wrapper {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* =========================================================
NAVBAR
========================================================= */

.navbar-custom {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-brand {
    text-decoration: none;
    color: inherit;
}

.navbar-custom .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #14532d;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #374151 !important;
    font-size: 14px;
    font-weight: 500;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #16a34a !important;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* =========================================================
PAGE TITLE
========================================================= */

.page-title,
.penyakit-page h3 {
    font-size: 34px;
    font-weight: 800;
    color: #14532d;
    line-height: 1.3;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    line-height: 1.8;
    color: #6b7280;
}

/* =========================================================
SEARCH BOX
========================================================= */

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
}

.search-box input {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding-left: 48px;
    font-size: 14px;
    box-shadow: none !important;
}

.search-box input:focus {
    border-color: #16a34a;
}

/* =========================================================
CARD PENYAKIT
========================================================= */

.card-link {
    text-decoration: none;
}

.card-wrapper {
    height: 100%;
}

.penyakit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    transition: .25s ease;
    height: 100%;
}

.penyakit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .06);
}

.img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-overlay {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: rgba(255, 255, 255, .95);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #16a34a;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 18px;
}

.card-body h6 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 13px;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 14px;
}

.detail-link {
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}

/* =========================================================
TENTANG
========================================================= */

.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.icon-header {
    width: 58px;
    height: 58px;

    border-radius: 18px;

    background: #dcfce7;
    color: #166534;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.tentang-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tentang-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;

    display: flex;
    gap: 18px;

    transition: .25s ease;
}

.tentang-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.card-icon {
    width: 58px;
    height: 58px;

    border-radius: 18px;

    background: #f0fdf4;
    color: #16a34a;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 22px;
}

.tentang-card h5 {
    font-size: 20px;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 10px;
}

.tentang-card p,
.tentang-card li {
    font-size: 14px;
    line-height: 1.9;
    color: #6b7280;
}

/* =========================================================
DETAIL PAGE
========================================================= */

.detail-page {
    background: #f4f7f4;
}

.breadcrumb-text {
    font-size: 13px;
    color: #9ca3af;
}

.detail-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: #14532d;
    margin-top: 16px;
    margin-bottom: 34px;
}

.detail-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.card-custom {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    transition: .25s ease;
}

.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

/* =========================================================
CHART
========================================================= */

.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* =========================================================
PANDUAN PAGE
========================================================= */

.panduan-page {
    background: #f4f7f4;
    padding: 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #14532d;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* HERO */

.guide-hero {
    position: relative;

    background: #f7f6f0;
    background-image: url('/images/petani.png');

    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    border-radius: 28px;
    padding: 40px 40px;
    min-height: 250px;
    overflow: hidden;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.guide-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: #14532d;
    line-height: 1.2;
}

.guide-hero p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
}

/* STEP CARD */

.step-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 22px;
    text-align: center;
    height: 100%;
    transition: .25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.step-number {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #16a34a;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto auto 16px;

    font-weight: 700;
    font-size: 17px;
}

.step-image {
    width: 100%;
    aspect-ratio: 4/3;

    border-radius: 18px;

    overflow: hidden;

    background: #f8faf8;

    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 14px;
}

.step-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #6b7280;
}

/* MENU CARD */

.menu-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    height: 100%;
    transition: .25s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.menu-icon {
    width: 64px;
    height: 64px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto auto 18px;

    font-size: 24px;
}

.green {
    background: #dcfce7;
    color: #166534;
}

.blue {
    background: #dbeafe;
    color: #2563eb;
}

.yellow {
    background: #fef3c7;
    color: #ca8a04;
}

.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.menu-card h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #14532d;
}

.menu-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #6b7280;
}

/* FAQ */

.faq-card,
.tips-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    height: 100%;
}

.faq-card h3,
.tips-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 22px;
}

.tips-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #4b5563;
}

.tips-item i {
    margin-top: 4px;
    color: #16a34a;
    flex-shrink: 0;
}

/* FAQ ACCORDION */

.custom-faq .accordion-item {
    border: none;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 14px;
    background: #f8faf8;
}

.custom-faq .accordion-button {
    background: #f8faf8;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    box-shadow: none !important;
}

.custom-faq .accordion-button:not(.collapsed) {
    background: #eef7ee;
    color: #14532d;
}

.custom-faq .accordion-body {
    font-size: 15px;
    line-height: 1.8;
    color: #6b7280;
    padding: 0 16px 16px;
}

/* =========================================================
TABLET
========================================================= */

@media(max-width:992px) {

    .guide-hero {
        padding: 50px 30px;
    }

    .guide-hero h1 {
        font-size: 38px;
    }

}

.btn-pakar {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 22px;
    border: 2px solid #1fa971;
    border-radius: 14px;

    background: transparent;
    color: #1fa971;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.3s ease;
}

.btn-pakar i {
    font-size: 20px;
}

.btn-pakar:hover {
    background: #1fa971;
    color: white;
    transform: translateY(-2px);
}

/* =========================================================
MOBILE
========================================================= */

@media(max-width:768px) {

    .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .content-wrapper,
    .detail-wrapper {
        padding: 18px;
        border-radius: 22px;
    }

    .panduan-page {
        padding: 14px;
    }

    /* NAVBAR */

    .navbar-custom {
        padding: 12px 14px;
    }

    .navbar-custom .container-fluid {
        flex-wrap: wrap;
    }

    .navbar-left {
        width: auto;
    }

    .logo-text {
        font-size: 17px;
    }

    .logo-img {
        width: 34px;
        height: 34px;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: 14px;
    }

    .navbar-nav {
        width: 100%;
        gap: 0;
    }

    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f3f4f6;
    }

    /* TITLE */

    .page-title,
    .penyakit-page h3 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    /* HERO */

    .guide-hero {
        padding: 34px 24px;
        min-height: auto;
        background-position: bottom right;
    }

    .guide-hero h1 {
        font-size: 30px;
    }

    .guide-hero p {
        font-size: 13px;
    }

    /* CARD */

    .step-card,
    .menu-card,
    .faq-card,
    .tips-card,
    .tentang-card,
    .card-custom {
        padding: 18px;
        border-radius: 20px;
    }

    .step-card h5,
    .menu-card h5 {
        font-size: 16px;
    }

    .step-card p,
    .menu-card p {
        font-size: 12px;
    }

    .row.g-4 {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .penyakit-card {
        border-radius: 18px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h6 {
        font-size: 14px;
        line-height: 1.4;
    }

    .card-body p {
        font-size: 11px;
        line-height: 1.6;
    }

    .detail-link {
        font-size: 11px;
    }

    .icon-overlay {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .tentang-card {
        flex-direction: column;
    }

}

/* =========================================================
SMALL MOBILE
========================================================= */

@media(max-width:480px) {

    .logo-text {
        font-size: 15px;
    }

    .page-title,
    .penyakit-page h3 {
        font-size: 24px;
    }

    .guide-hero h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 18px;
    }

    .detail-title {
        font-size: 28px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body h6 {
        font-size: 15px;
    }

    .card-body p {
        font-size: 12px;
    }

}