/* =========================================
   TRASHBANK HERO SECTION STYLING
   ========================================= */
.trashbank-hero {
    background-color: #f4f7f5;
    position: relative;
    font-family: "Plus Jakarta Sans", sans-serif;
    overflow-x: hidden;
    width: 100%;

    background-image:
        radial-gradient(
            circle at 10% 20%,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.4) 50%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(212, 235, 220, 0.4) 0%,
            transparent 50%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075) 0%,
            rgba(244, 247, 245, 0.336) 60%,
            rgba(18, 74, 47, 0.05) 100%
        ),
        url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=1920&auto=format&fit=crop");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.trashbank-bg-lines::before,
.trashbank-bg-lines::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.35); /* Gold */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.trashbank-bg-lines::before {
    width: 600px;
    height: 600px;
    left: -200px;
    bottom: -100px;
    border-width: 1.5px 0 0 1.5px;
}
.trashbank-bg-lines::after {
    width: 800px;
    height: 800px;
    right: -250px;
    top: -150px;
    border-width: 0 1.5px 1.5px 0;
}

/* =========================================
   TEKS, TIPOGRAFI & TOMBOL
   ========================================= */
.trashbank-title {
    font-family: "Playfair Display", "Merriweather", serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.text-trashbank-primary {
    color: #124a2f !important; /* Dominan Hijau Gelap */
}
.text-trashbank-gold {
    color: #d4af37 !important; /* Aksen Gold */
}

.trashbank-desc {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Tombol Kustom */
.trashbank-btn-primary {
    background-color: #124a2f;
    color: #ffffff;
    border: 1px solid #124a2f;
    transition: all 0.3s ease;
}
.trashbank-btn-primary:hover {
    background-color: #0f3e68; /* Hover aksen Biru Elegan */
    border-color: #0f3e68;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 62, 104, 0.25);
}

.trashbank-btn-outline {
    background-color: transparent;
    color: #124a2f;
    border: 1px solid #124a2f;
    transition: all 0.3s ease;
}
.trashbank-btn-outline:hover {
    background-color: rgba(18, 74, 47, 0.05);
    color: #124a2f;
}

/* =========================================
   LOGO HERO SECTION (Kanan)
   ========================================= */
.trashbank-hero-logo-wrapper {
    display: inline-block;
    padding: 20px;
    /* Efek melayang halus */
    animation: floatLogo 6s ease-in-out infinite;
}

.trashbank-hero-logo {
    max-width: 80%; /* Atur ukuran maksimal logo */
    height: auto;
    position: relative;
    z-index: 2;
    /* Memberikan bayangan elegan pada logo */
    filter: drop-shadow(0 15px 25px rgba(18, 74, 47, 0.25));
}

.trashbank-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    /* Pendaran emas di belakang logo */
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.25) 0%,
        transparent 65%
    );
    z-index: 1;
    filter: blur(15px);
    border-radius: 50%;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   INFO BAR BAWAH (Benefit)
   ========================================= */
.trashbank-info-bar {
    background-color: #124a2f; /* Hijau Utama */
}
.trashbank-icon-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    flex-shrink: 0;
}
.trashbank-icon-box i {
    color: #d4af37 !important; /* Ikon warna emas */
}

/* =========================================
   RESPONSIVE DESIGN 
   ========================================= */
@media (max-width: 991.98px) {
    .trashbank-title {
        font-size: 2.8rem;
    }
    .trashbank-hero-logo {
        max-width: 70%;
    }
}

@media (max-width: 767.98px) {
    .trashbank-title {
        font-size: 2.4rem;
    }
    .trashbank-hero-logo {
        max-width: 60%;
    }
    .trashbank-logo-glow {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 575.98px) {
    .trashbank-title {
        font-size: 2.1rem;
    }
    .trashbank-hero-logo {
        max-width: 75%;
    }
    .trashbank-info-bar .row > div {
        margin-bottom: 0.5rem;
    }
}

/* =========================================
   GLOBAL & UTILITIES
   ========================================= */
.trashbank-section {
    font-family: "Plus Jakarta Sans", sans-serif;
    overflow-x: hidden;
}

.trashbank-bg-light {
    background-color: #f8faf9;
}
.trashbank-bg-primary {
    background-color: #124a2f;
} /* Hijau Utama */
.trashbank-text-gold {
    color: #d4af37 !important;
}
.text-trashbank-primary {
    color: #124a2f !important;
}

.trashbank-heading {
    font-family: "Playfair Display", serif;
}

.trashbank-badge-gold {
    background-color: #d4af37;
    color: #124a2f;
}
.trashbank-badge-blue {
    background-color: rgba(15, 62, 104, 0.1);
    color: #0f3e68;
}

/* =========================================
   SECTION TENTANG KAMI
   ========================================= */
.trashbank-info-card {
    background: #ffffff;
    border: 1px solid #eef2f0;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border-left: 4px solid #124a2f; /* Aksen hijau di kiri */
}
.trashbank-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(18, 74, 47, 0.08);
}

/* =========================================
   ALUR KERJA SAMA (STEPS)
   ========================================= */
.trashbank-step-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}
.trashbank-step-card:hover {
    border-color: #d4af37;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.step-number {
    width: 45px;
    height: 45px;
    background-color: #f4f7f5;
    color: #124a2f;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid #124a2f;
}
.trashbank-step-card:hover .step-number {
    background-color: #124a2f;
    color: #ffffff;
    border-color: #d4af37;
}

.trashbank-alert-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 5px solid #2e7d32;
}

/* Scroll Mobile untuk Alur */
@media (max-width: 767.98px) {
    .trashbank-steps-container {
        display: grid !important;
        grid-template-rows: 1fr;
        grid-auto-flow: column;
        grid-auto-columns: 75%;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        flex-wrap: nowrap;
    }
    .trashbank-step-col {
        width: 100% !important;
        padding: 0;
        scroll-snap-align: center;
    }
    .trashbank-steps-container::-webkit-scrollbar {
        display: none;
    }
}

/* =========================================
   LOKASI MAPS (HOVER OVERLAY)
   ========================================= */
.trashbank-map-wrapper {
    position: relative;
    background-color: #eaeaea;
}
.trashbank-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 74, 47, 0.85); /* Hijau transparan */
    backdrop-filter: blur(3px);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.trashbank-map-wrapper:hover .trashbank-map-overlay {
    opacity: 1;
}

/* =========================================
   MARKETPLACE CATALOG
   ========================================= */
/* Grid Khusus: 1 Baris, 5 Kolom di Desktop */
.trashbank-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.trashbank-product-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.trashbank-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Filter Buttons */
.trashbank-filter-btn {
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.trashbank-filter-btn:hover,
.trashbank-filter-btn.active {
    background-color: #124a2f;
    color: #ffffff;
    border-color: #124a2f;
}

/* Responsif Catalog Grid */
@media (max-width: 1199px) {
    .trashbank-catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 991px) {
    .trashbank-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    /* Scroll Horizontal untuk mobile seperti di langkah (Alur) */
    .trashbank-catalog-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
    }
    .trashbank-product-card {
        min-width: 60%;
        scroll-snap-align: start;
    }
    .trashbank-catalog-grid::-webkit-scrollbar {
        display: none;
    }
}
@media (max-width: 450px) {
    .trashbank-product-card {
        min-width: 75%;
    }
}

/* Utility Class untuk Filter JS */
.d-none-filter {
    display: none !important;
}

/* =========================================
   HERO SECTION T&C
   ========================================= */
.trashbank-tnc-hero {
    background: linear-gradient(135deg, #124a2f 0%, #0f3e68 100%);
    padding: 6rem 0 8rem 0; /* Padding bawah lebih besar untuk overlapping card */
    font-family: "Plus Jakarta Sans", sans-serif;
    background-image:
        linear-gradient(135deg, #124a2f85 0%, #0f3e6862 100%),
        url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=1920&auto=format&fit=crop");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.trashbank-tnc-title {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    letter-spacing: -0.01em;
}

/* Ornamen Latar Belakang Hero */
.trashbank-tnc-shapes::before,
.trashbank-tnc-shapes::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.trashbank-tnc-shapes::before {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}
.trashbank-tnc-shapes::after {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -150px;
}

/* =========================================
   T&C CARD & CONTENT
   ========================================= */
.trashbank-tnc-section {
    font-family: "Plus Jakarta Sans", sans-serif;
    margin-top: -5rem; /* Menarik kartu ke atas agar menimpa Hero */
    position: relative;
    z-index: 2;
}

.trashbank-tnc-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom Numbered List Styling */
.trashbank-tnc-list {
    counter-reset: custom-counter;
    list-style: none; /* Hilangkan list bawaan browser */
    padding-left: 0;
}

.trashbank-tnc-list li {
    position: relative;
    padding-left: 3.5rem; /* Memberi ruang untuk nomor */
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Lingkaran nomor elegan */
.trashbank-tnc-list li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 35px;
    height: 35px;
    background-color: rgba(212, 175, 55, 0.15); /* Soft Gold Background */
    color: #d4af37; /* Text Gold */
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* Hover effect pada list */
.trashbank-tnc-list li:hover::before {
    background-color: #d4af37;
    color: #fff;
    transition: all 0.3s ease;
}

/* =========================================
   AGREEMENT BOX & CHECKBOX
   ========================================= */
.trashbank-agreement-box {
    transition: all 0.3s ease;
}
.trashbank-agreement-box.active {
    background-color: rgba(18, 74, 47, 0.05) !important;
    border-color: rgba(18, 74, 47, 0.2) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Kustomisasi Checkbox */
.trashbank-checkbox {
    width: 1.5em;
    height: 1.5em;
    border: 2px solid #ced4da;
}
.trashbank-checkbox:checked {
    background-color: #124a2f; /* Hijau Utama */
    border-color: #124a2f;
}
.trashbank-checkbox:focus {
    box-shadow: 0 0 0 0.25rem rgba(18, 74, 47, 0.25);
}

/* Tombol Transisi Animasi saat muncul */
.transition-fade {
    animation: fadeInBtn 0.4s ease-out forwards;
}

@keyframes fadeInBtn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE OVERRIDES
   ========================================= */
@media (max-width: 767.98px) {
    .trashbank-tnc-hero {
        padding: 4rem 0 6rem 0;
    }
    .trashbank-tnc-title {
        font-size: 2.2rem;
    }
    .trashbank-tnc-card {
        padding: 1.5rem !important;
    }
    .trashbank-tnc-list li {
        font-size: 0.9rem;
        padding-left: 3rem;
    }
    .trashbank-tnc-list li::before {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .trashbank-agreement-box {
        padding: 1.25rem !important;
    }
}

/* =========================================
   MARKETPLACE HERO SECTION STYLING
   ========================================= */
.marketplace-hero {
    background: linear-gradient(135deg, #124a2f 0%, #0f3e68 100%);
    font-family: "Plus Jakarta Sans", sans-serif;
    background-image:
        linear-gradient(
            135deg,
            rgba(18, 74, 47, 0.88) 0%,
            rgba(15, 62, 104, 0.85) 100%
        ),
        url("https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=1920&auto=format&fit=crop");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.marketplace-hero-title {
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
    letter-spacing: -0.01em;
}

/* Ornamen Latar Belakang Hero Marketplace (Konsisten dengan style tnc-shapes) */
.marketplace-hero-shapes::before,
.marketplace-hero-shapes::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08); /* Aksen emas tipis */
    pointer-events: none;
}
.marketplace-hero-shapes::before {
    width: 450px;
    height: 450px;
    top: -120px;
    left: -120px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.marketplace-hero-shapes::after {
    width: 650px;
    height: 650px;
    bottom: -200px;
    right: -150px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Kartu Kategori Unggulan di Kolom Kanan */
.marketplace-highlight-card {
    background: rgba(18, 74, 47, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.marketplace-highlight-card:hover {
    transform: translateY(-5px);
    background: rgba(18, 74, 47, 0.85);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.marketplace-highlight-card .marketplace-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #d4af37;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Penyesuaian Responsif untuk Perangkat Mobile */
@media (max-width: 991.98px) {
    .marketplace-hero-title {
        font-size: 2.6rem;
    }
    .marketplace-hero {
        padding: 4rem 0;
    }
}

@media (max-width: 575.98px) {
    .marketplace-hero-title {
        font-size: 2.1rem;
    }
}

/* =========================================
   MARKETPLACE CATALOG & SEARCH STYLING
   ========================================= */
.trashbank-catalog-section {
    background-color: #f8faf9;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.trashbank-section-title {
    font-family: "Playfair Display", serif;
    color: #124a2f;
}

/* Pencarian */
.trashbank-search-wrapper {
    position: relative;
}

.trashbank-search-icon {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
}

.trashbank-search-input {
    border: 1px solid #dee2e6;
    padding-left: 45px !important;
    height: 45px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.trashbank-search-input:focus {
    border-color: #124a2f;
    box-shadow: 0 0 0 0.25rem rgba(18, 74, 47, 0.15) !important;
}

/* Tombol Filter Kategori */
.trashbank-filter-btn {
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    border-radius: 50rem;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.trashbank-filter-btn:hover,
.trashbank-filter-btn.active {
    background-color: #124a2f;
    color: #ffffff;
    border-color: #124a2f;
}

/* Grid Kartu Produk Marketplace (Konsisten dengan tema trashbank) */
.trashbank-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.trashbank-product-card {
    background: #ffffff;
    border: 1px solid #eef2f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.trashbank-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(18, 74, 47, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.4);
}

/* =========================================
   UPDATE CSS RASIO GAMBAR 4:5
   ========================================= */
.product-img-box {
    aspect-ratio: 4 / 5; /* Mengubah aspek rasio kotak menjadi 4:5 */
    overflow: hidden;
    background-color: #f1f4f2;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trashbank-product-card:hover .product-img-box img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    background-color: #d4af37 !important;
    color: #124a2f !important;
}

/* Responsif Grid Katalog Produk */
@media (max-width: 1199.98px) {
    .trashbank-catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {
    .trashbank-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .trashbank-catalog-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        gap: 1rem;
    }
    .trashbank-product-card {
        min-width: 65%;
        scroll-snap-align: start;
    }
    .trashbank-catalog-grid::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .trashbank-product-card {
        min-width: 75%;
    }
}
