/* ==========================================================================
   1. GLOBAL & LAYOUT UTAMA
   ========================================================================== */
body {
    background-color: #f0f2f5;
    /* Abu-abu muda elegan untuk seluruh web */
    font-family: 'Inter', sans-serif;
    color: #212529;
}

.main-content {
    margin-left: 280px;
    /* Sesuaikan dengan lebar sidebar baru */
    padding: 2rem;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.container.my-5 {
    max-width: 1100px;
}

/* Efek Hover untuk Kartu Statistik di Landing Page */
.stat-card-link .card-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-link:hover .card-custom {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   2. KOMPONEN UMUM (CARDS, TABLES, BUTTONS)
   ========================================================================== */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: #ffffff;
}

.table-custom thead {
    background-color: #198754;
    color: white;
}

.table-custom th {
    font-weight: 600;
    padding: 1rem;
}

.rounded-pill-custom {
    border-radius: 50px !important;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.hr-short {
    width: 60px;
    height: 4px;
    background: #198754;
    margin: 15px auto;
    border-radius: 2px;
}

/* ==========================================================================
   3. HALAMAN PUBLIK (KATALOG TANAMAN & ORGANISASI)
   ========================================================================== */

/* Katalog Tanaman */
.card-tanaman {
    transition: all 0.3s ease;
    border-radius: 20px !important;
    background: #ffffff;
    border: none;
}

.card-tanaman:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.img-wrapper img {
    transition: transform 0.5s ease;
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.card-tanaman:hover .img-wrapper img {
    transform: scale(1.1);
}

/* Struktur Organisasi (organisasi.php) */
.card-organisasi {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card-organisasi:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(25, 135, 84, 0.15) !important;
}

.row.justify-content-center .card-organisasi {
    border-top: 5px solid #198754;
    background: linear-gradient(to bottom, #ffffff, #fcfdfc);
}

.card-organisasi img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #198754;
    padding: 3px;
    border-radius: 50%;
}

.anggota-list {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    text-align: left;
}

.anggota-list ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: #4b5563;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.anggota-list ul li i {
    color: #198754;
    margin-right: 8px;
}


/* ==========================================================================
   4. STYLING WRAPPER PETA
   ========================================================================== */
.maps-wrapper {
    position: relative;
    width: 100%;
}

.maps-wrapper iframe {
    transition: all 0.5s ease;
}

/* Memberikan efek transisi saat kartu di-hover */
.row.g-0.shadow-lg:hover .maps-wrapper {
    filter: grayscale(0%) !important;
}

/* Responsif untuk Mobile */
@media (max-width: 991.98px) {
    .col-lg-4.bg-dark {
        padding: 30px !important;
        text-align: center;
    }

    .col-lg-4.bg-dark .d-flex {
        justify-content: center;
        text-align: left;
    }

    .maps-wrapper {
        height: 300px !important;
    }
}