/* ==========================================================================
   1. VARIABLES, RESET & GLOBAL UTILITIES
   ========================================================================== */
:root {
  --col-pri: #1b5e20; /* Hijau Tua */
  --col-sec: #e65100; /* Orange */
  --col-cta: #c62828; /* Merah Bata */
  --col-txt: #212121; /* Hitam Arang */
  --bg-yell: #F4C430; 
  --bg-cream: #FFF8E1; 
  --bg-brown: #4B3621;
}

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

html, body { 
    font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--col-txt); 
    background: #fff; width: 100%; max-width: 100%; overflow-x: hidden !important; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; width: 100%; position: relative; }

/* --- TYPOGRAPHY --- */
.section-title { 
    text-align: center; margin: 0 auto 20px; font-size: 2.2em; color: var(--col-pri); 
    border-bottom: 3px solid var(--col-sec); display: table !important; 
    padding-bottom: 10px; line-height: 1.1; 
}
.section-subtitle { text-align: center; margin: 0 auto 40px; font-size: 1.1em; color: #444; max-width: 800px; }

/* ==========================================================================
   2. COMPONENTS (BUTTONS, CARDS, DECORATION)
   ========================================================================== */

/* --- DEKORASI SOBEKAN KERTAS --- */
.hero-section::after, .faq-section::after, .research-proof::before, .research-proof::after,
.single-product-catalog::before, .single-product-catalog::after, .bulk-order::before, .bulk-order::after,
.testimonial-section::before, .testimonial-section::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 100px;
  background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; z-index: 5;
}
.research-proof::before, .single-product-catalog::before, .bulk-order::before, .testimonial-section::before {
  top: -1px; background-image: url('images/sobekan-kertas-terbalik.webp');
}
.research-proof::after, .single-product-catalog::after, .bulk-order::after, .testimonial-section::after, .faq-section::after {
  bottom: -1px; background-image: url('images/sobekan-kertas.webp');
}
.hero-section::after { bottom: -1px !important; height: 60px !important; background-image: url('images/sobekan-kertas.webp'); }
.single-product-catalog::after { bottom: -2px !important; height: 60px !important; background-size: 101% 100% !important; }

/* --- BUTTONS --- */
.cta-button, .bs-btn {
  background: var(--col-cta); color: #fff !important; padding: 12px 25px;
  text-decoration: none; font-weight: 700; border-radius: 50px; display: inline-block;
  transition: 0.3s; text-transform: uppercase; border: none; cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; width: 100%;
}
.cta-button:hover, .bs-btn:hover { background: #b71c1c; transform: translateY(-2px); }
.bs-btn { background: var(--col-sec); margin-top: auto; font-size: 0.9em; padding: 10px; border-radius: 6px; }

/* --- BEST SELLER CARDS (INDEX ONLY) --- */
.best-seller-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; width: 100% !important; align-items: stretch !important; }

.bs-card {
    background: #fff !important; border: 1px solid #e0e0e0 !important; border-radius: 12px !important;
    overflow: hidden !important; box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important; transition: transform 0.3s !important;
    display: flex !important; flex-direction: column !important; justify-content: flex-start !important;
    height: 100% !important; min-height: 0 !important; padding-bottom: 15px !important;
}
.bs-card:hover { transform: translateY(-5px) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.12) !important; border-color: var(--col-pri) !important; }

.bs-img-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid #eee; position: relative; }
.bs-img { width: 100%; height: 100% !important; object-fit: cover; position: absolute; top: 0; left: 0; display: block; margin: 0 !important; }

.bs-info { padding: 12px !important; flex-grow: 1 !important; display: flex !important; flex-direction: column !important; }
.bs-name { font-size: 1.05em !important; font-weight: 700 !important; color: #333 !important; margin-bottom: 4px !important; line-height: 1.2 !important; min-height: 38px; display: flex; align-items: center; justify-content: center; text-align: center; }
.bs-price { margin-bottom: 8px !important; font-weight: 800 !important; color: var(--col-cta) !important; font-size: 1.3em; }
.bs-desc { font-size: 0.85em; color: #666; margin-bottom: 10px; line-height: 1.3; }

.bs-wholesale-box { background: #f1f8e9; padding: 10px; border-radius: 6px; margin-top: auto; border: 1px solid #c8e6c9; margin-bottom: 15px; }
.bs-wholesale-row { display: flex; justify-content: space-between; font-size: 0.8em; margin-bottom: 3px; color: #444; }

/* Luxury Partner Table (Tier Compact) */
.tier-table-compact {
    width: 100% !important; max-width: 600px !important; margin: 30px auto !important; min-width: 0 !important;
    display: table !important; border-collapse: separate !important; border-spacing: 0 !important;
    border: 2px solid #4B3621 !important; border-radius: 12px !important; overflow: hidden !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important; background-color: #fff !important;
}
.tier-table-compact thead th {
    background: linear-gradient(135deg, #4B3621 0%, #3E2723 100%) !important; color: #FFD700 !important;
    padding: 15px !important; font-size: 1.1em !important; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 4px solid #FFD700 !important; text-align: center !important;
}
.tier-table-compact td { padding: 15px !important; text-align: center !important; border-bottom: 1px solid #eee !important; font-size: 1em !important; color: #333 !important; }
.tier-table-compact tbody tr:nth-child(even) td { background-color: #fcfcfc !important; }
.tier-table-compact tbody tr:last-child td { background-color: #FFF8E1 !important; font-weight: bold !important; color: #c62828 !important; border-bottom: none !important; }
.tier-table-compact td:last-child { font-weight: 800 !important; font-size: 1.1em !important; }

/* ==========================================================================
   3. SECTIONS LAYOUT (INDEX SPECIFIC)
   ========================================================================== */

/* Hero */
.hero-section {
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;
  padding-top: 20px !important; padding-bottom: 80px !important; background-color: var(--bg-yell); margin-top: -2px;
}
.hero-section img { margin-bottom: 10px !important; width: 120px !important; height: 120px !important; }
.hero-title { margin: 0 0 5px 0 !important; line-height: 1.1 !important; font-weight: 800; color: var(--bg-brown) !important; padding: 0 10px; }
.hero-subtitle { color: #c62828 !important; font-weight: 700 !important; margin: 5px auto 15px auto !important; max-width: 800px; padding: 0 10px; }
.hero-section p { color: #333 !important; line-height: 1.4 !important; margin-top: 5px !important; }

/* Standard Sections */
.research-proof, .single-product-catalog, .bulk-order, .testimonial-section { background: var(--bg-yell); padding: 150px 0; margin-top: -2px; }
.single-product-catalog { position: relative; z-index: 1; }
.problem-solution, .production-video, .faq-section { background: var(--bg-cream); margin-top: -2px; padding: 60px 0 80px; }
.problem-solution { padding: 40px 0 60px; }
.package-mix { background-color: #FFF8E1 !important; margin-top: -40px !important; padding: 80px 0; position: relative; z-index: 2; }

/* Benefit & Video Widgets */
.expert-quote-problem { background: #fff; border-left: 5px solid var(--col-cta); padding: 20px; margin: 25px auto; border-radius: 8px; font-style: italic; max-width: 750px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.white-paper-box { background: #fff; border-radius: 15px; border: 3px solid var(--bg-brown); padding: 30px; max-width: 1000px; margin: 0 auto 50px; }
.vertical-video-box {
  max-width: 360px !important; aspect-ratio: 9 / 16 !important; margin: 0 auto;
  border-radius: 20px !important; border: 8px solid #000; background: #000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important; position: relative; z-index: 50 !important; overflow: hidden;
}
.vertical-video-box video, .vertical-video-box iframe { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }

/* Selling Points (Rotated Cards) */
.benefit-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 50px; padding: 0 10px; }
.benefit-card {
  background: #fff; width: 320px; padding: 25px; border: 3px solid #4B3621;
  border-radius: 15px; box-shadow: 8px 8px 0px rgba(0,0,0,0.15); transition: transform 0.3s; position: relative; z-index: 10;
}
.benefit-card:hover { transform: rotate(0deg) scale(1.05) !important; z-index: 50; box-shadow: 10px 10px 0px rgba(0,0,0,0.2); }
.rotate-left { transform: rotate(-3deg); }
.rotate-right { transform: rotate(3deg); margin-top: 20px; }
.benefit-card h3 { color: var(--col-pri); border-bottom: 2px dashed #ccc; padding-bottom: 10px; margin-bottom: 15px; font-size: 1.3em; }
.highlight-text { background-color: #ffebee; color: #c62828; font-weight: 800; padding: 0 4px; border-radius: 4px; }
.card-quote { font-style: italic; background: #FFF8E1; padding: 10px; border-radius: 8px; font-size: 0.85em !important; color: #795548 !important; border-left: 4px solid var(--col-sec); }

/* Benefit Box List */
.benefit-box { background: #fff; border-radius: 12px; padding: 30px 40px; text-align: left; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-left: 6px solid var(--col-pri); margin: 0 auto; max-width: 700px; position: relative; }
.benefit-list { list-style: none; margin: 0; padding: 0; }
.benefit-list li { margin-bottom: 20px; padding-left: 35px; position: relative; font-size: 1.05em; line-height: 1.5; color: #444; }
.benefit-list li::before { content: "✅"; position: absolute; left: 0; top: 2px; font-size: 1.2em; }
.benefit-list li strong { color: var(--col-pri); font-size: 1.1em; }

/* Testimonials (Slider & Card) */
.testimonial-section { background-color: var(--bg-yell) !important; padding: 150px 0 !important; position: relative; z-index: 2; margin-top: -2px; }
.testimonial-section .section-title, .testimonial-section .section-subtitle { color: #4B3621 !important; }
.testimonial-section .section-title { border-bottom-color: #e65100 !important; }
.testimonial-slider { position: relative; max-width: 900px; margin: 50px auto 0; overflow: hidden; padding: 20px; }
.testimonial-track { display: flex; transition: transform 0.5s ease-in-out; gap: 30px; }
.testimonial-card {
    background: #ffffff; flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); padding: 40px 30px; border-radius: 15px;
    text-align: center; position: relative; border: 3px solid #4B3621; box-shadow: 0 10px 0px rgba(75, 54, 33, 0.2); transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 0px rgba(75, 54, 33, 0.3); }
.quote-icon { font-size: 4em; color: rgba(230, 81, 0, 0.15); position: absolute; top: 10px; left: 20px; line-height: 1; }
.testi-text { font-size: 1.1em; font-style: italic; color: #444; margin-bottom: 25px; position: relative; z-index: 2; line-height: 1.5; }
.testi-author { font-weight: 800; color: #4B3621; font-size: 1.05em; }
.testi-role { display: block; font-weight: 600; color: #e65100; font-size: 0.9em; margin-top: 5px; text-transform: uppercase; }
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: #4B3621; color: #fff; border: 2px solid #fff;
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.5em; cursor: pointer; z-index: 10; transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: #e65100; }
.prev-btn { left: -10px; } .next-btn { right: -10px; }
.slider-dots { display: flex; justify-content: center; margin-top: 30px; gap: 10px; }
.dot { width: 12px; height: 12px; background: rgba(75, 54, 33, 0.3); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: #4B3621; transform: scale(1.3); }

/* FAQ Section */
.faq-section { background-color: var(--bg-cream) !important; padding: 80px 0 !important; }
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: #fff; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e0e0e0; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover, .faq-item.active { box-shadow: 0 10px 20px rgba(46, 125, 50, 0.1); border-color: var(--col-pri); }
.faq-question { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: #fff; }
.faq-question h3 { margin: 0; font-size: 1.1em; font-weight: 700; color: #4B3621; line-height: 1.4; text-align: left; flex: 1; padding-right: 15px; }
.faq-toggle { font-size: 1.5em; font-weight: 300; color: var(--col-pri); transition: transform 0.3s ease; line-height: 1; }
.faq-item.active .faq-toggle { transform: rotate(45deg); color: #c62828; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background-color: #fbfbfb; }
.faq-answer p { padding: 0 20px 20px 20px; margin: 0; font-size: 0.95em; color: #555; line-height: 1.6; text-align: justify; }

/* Contact Form Section */
.form-section-cream { background-color: #FFF8E1; padding: 60px 0; }
.contact-form { background: #ffffff; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #e0e0e0; max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 600; color: #333; font-size: 0.95em; }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form textarea, .contact-form select {
    width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 1em;
    font-family: 'Poppins', sans-serif; transition: 0.3s; background-color: #fcfcfc;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--col-pri); background-color: #fff; outline: none; box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); }
.product-item { background: #f1f8e9; border: 1px dashed #a5d6a7; padding: 15px; border-radius: 8px; margin-bottom: 15px; position: relative; }
.remove-product-btn { padding: 5px 10px; font-size: 0.8em; border-radius: 4px; border: none; color: #fff; cursor: pointer; font-weight: 600; }

/* Struk Belanja */
.summary-struk { background: #fff; border: 2px dashed #bbb; padding: 20px; border-radius: 10px; margin-top: 30px; }
.struk-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.95em; color: #444; }
.struk-label { font-weight: 500; }
.struk-nominal { font-weight: 700; color: #212121; }
.discount-amount .struk-nominal { color: #c62828; }
.struk-grand-total { background-color: #E8F5E9; padding: 15px; border-radius: 8px; border: 1px solid #C8E6C9; margin-bottom: 20px; }
.grand-total-line .struk-nominal { font-size: 1.4em; color: #2e7d32; font-weight: 800; }
#flash-sale-banner { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* Footer */
.site-footer { 
    background-color: #2E1A11 !important; 
    color: #F5F5F5 !important; 
    padding: 70px 0 30px !important; 
    position: relative; 
    z-index: 5; 
    border-top: 5px solid #FFD700; 
    font-size: 0.95em; 
}

.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-col { flex: 1; min-width: 280px; }

.footer-heading { 
    color: #FFD700 !important; font-size: 1.3em; margin-bottom: 20px; 
    border-bottom: 2px solid rgba(255, 215, 0, 0.3); padding-bottom: 10px; 
    display: inline-block; letter-spacing: 0.5px; 
}

.footer-address strong { color: #fff !important; font-size: 1.1em; }
.footer-address span[style*="color: #aaa"] { color: #FFECB3 !important; font-weight: 500 !important; opacity: 1 !important; }

.map-container-small { width: 100%; height: 180px; border: 2px solid #5D4037; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.map-link-text { color: #4FC3F7 !important; text-decoration: none; font-size: 0.9em; font-weight: 600; }
.map-link-text:hover { text-decoration: underline; color: #fff !important; }

.action-buttons { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-flat { flex: 1; padding: 10px; text-align: center; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.9em; transition: 0.3s; }

.wa-btn { background-color: #1b5e20; color: #fff !important; border: 1px solid #1b5e20; }
.tokped-btn { background-color: #00600f; color: #fff !important; border: 1px solid #00600f; }
.btn-flat:hover { transform: translateY(-3px); filter: brightness(1.1); }

.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-box { background: rgba(255,255,255,0.1); color: #fff !important; padding: 8px; text-align: center; border-radius: 5px; text-decoration: none; font-size: 0.85em; transition: 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.social-box:hover { background: #fff; color: #2E1A11 !important; font-weight: bold; }

.footer-copyright { 
    text-align: center; margin-top: 50px; padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.85em; 
    color: #F5F5F5 !important; opacity: 0.9;
}

/* ==========================================================================
   4. MOBILE RESPONSIVE (INDEX SPECIFIC)
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout & Section Adjustments */
    .hero-section { padding-top: 15px !important; padding-bottom: 50px !important; }
    .benefit-wrapper { gap: 30px; }
    .benefit-card { width: 100%; max-width: 350px; }
    .rotate-left { transform: rotate(-2deg); }
    .rotate-right { transform: rotate(2deg); margin-top: 0; }
    .vertical-video-box { max-width: 300px !important; }
    
    /* Best Seller Cards Mobile */
    .best-seller-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 0 5px; }
    .bs-card { width: 100% !important; margin: 0 !important; padding: 8px !important; }
    .bs-name { font-size: 0.9em !important; min-height: 35px; line-height: 1.2; }
    .bs-desc { display: none !important; }
    .bs-price { font-size: 1em !important; margin-bottom: 5px; }

    /* Tables in HP */
    .tier-table-compact { width: 100% !important; font-size: 0.9em !important; box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; }
    .tier-table-compact td, .tier-table-compact th { padding: 10px 5px !important; }

    .bs-card .mini-tier-table, .bs-card .bs-wholesale-box { font-size: 0.65em !important; padding: 5px !important; margin-top: 5px !important; }
    .bs-card .mini-tier-table td { padding: 1px 2px !important; }
    
    /* Testimonials */
    .testimonial-section { padding: 80px 0 !important; }
    .testimonial-card { flex: 0 0 100% !important; max-width: 100% !important; padding: 30px 20px; }
    .testimonial-track { gap: 0; }
    .slider-btn { width: 40px; height: 40px; font-size: 1.2em; }
    .prev-btn { left: 0; } .next-btn { right: 0; }

    /* FAQ */
    .faq-question { padding: 15px; }
    .faq-question h3 { font-size: 0.95em; }

    /* Form */
    .contact-form { padding: 20px; }
    .struk-line { font-size: 0.9em; }
    .grand-total-line .struk-nominal { font-size: 1.2em; }

    /* Footer & Others */
    .benefit-box { padding: 20px; border-left-width: 4px; }
    .benefit-list li { font-size: 0.95em; margin-bottom: 15px; }
    .site-footer { padding: 50px 0 80px !important; text-align: center; }
    .footer-row { flex-direction: column; gap: 40px; }
    .footer-heading { border-bottom: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #FFD700; }
    .social-grid { grid-template-columns: 1fr 1fr; }
}
/* Container Tabel agar bisa scroll di HP */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.catalog-table {
    width: 100%;
    min-width: 700px; /* Paksa lebar agar kolom tidak tergencet */
    border-collapse: collapse;
    font-size: 0.9em;
}

.catalog-table th, .catalog-table td {
    padding: 12px 8px;
    border: 1px solid #eee;
    text-align: center;
}

.catalog-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 700;
}

/* Tombol Kategori */
.category-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}
.category-btn.active {
    background-color: #1b5e20; /* Warna Hijau Utama Anda */
    color: #fff;
    border-color: #1b5e20;
}

/* --- CSS UNTUK LAYOUT MIX 2 KOLOM (HP) & 6 KOLOM (PC) --- */
.mix-grid-wrapper {
    display: grid;
    gap: 10px; /* Jarak antar kartu lebih rapat */
    width: 100%;
}

/* TAMPILAN HP & TABLET KECIL (Default) -> 2 Kolom */
.mix-grid-wrapper {
    grid-template-columns: repeat(2, 1fr); 
}

/* TAMPILAN DESKTOP/LAPTOP (Layar > 1024px) -> 6 Kolom */
@media (min-width: 1024px) {
    .mix-grid-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Penyesuaian Kartu agar muat di kolom kecil */
.mix-card {
    background: white;
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Agar tinggi kartu sama rata */
    overflow: hidden;
}

/* Font lebih kecil agar tidak pecah di 6 kolom */
.mix-card h3 { font-size: 0.9em !important; margin: 8px 0 5px 0 !important; line-height: 1.2; }
.mix-card p { font-size: 0.8em !important; line-height: 1.3; }
.mix-card .cta-button { font-size: 0.8em !important; padding: 8px 5px !important; }
.mix-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.mix-desc { display: none; } /* Sembunyikan deskripsi panjang di grid sempit agar rapi */

/* Di HP, Padding kartu dikurangi */
@media (max-width: 768px) {
    .mix-card { padding: 8px !important; }
}
@media (min-width: 769px) {
    .mix-card { padding: 10px !important; }
}

/* =========================================
   UPDATE: TUMPUKAN GAMBAR RAPAT (CLUSTERED)
   ========================================= */

/* Container Gambar Kanan */
.hero-img-stack {
    flex: 0 0 55%;
    max-width: 55%;
    position: relative;
    height: 450px; /* Tinggi ditambah sedikit agar gambar besar muat */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Pastikan tidak ada overflow yang terpotong */
    perspective: 1000px; 
}

/* Style Dasar Kartu - PUSAT DI TENGAH */
.img-card {
    position: absolute;
    width: 75%; /* UKURAN GAMBAR DIPERBESAR */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 6px solid #fff; /* Border dipertebal */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* Bayangan lebih tebal */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efek membal saat hover */
    
    /* KUNCI: Posisikan titik pusat gambar tepat di tengah container */
    top: 50%;
    left: 50%;
}

/* Hover Effect: Zoom & Lurus */
.img-card:hover {
    z-index: 50 !important;
    transform: translate(-50%, -50%) scale(1.15) rotate(0deg) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* POSISI TUMPUKAN "NGUMPUL" DI TENGAH
   Rumus: translate(-50%, -50%) adalah titik tengah murni.
   Kita ubah % nya sedikit-sedikit untuk menggeser.
*/

/* Kartu 1 (Paling Belakang - Geser Kiri Atas Dikit) */
.pos-1 {
    z-index: 1;
    /* Geser ke kiri (60%) dan atas (60%) + Putar Kiri */
    transform: translate(-65%, -60%) rotate(-15deg);
}

/* Kartu 2 (Tengah Belakang - Geser Kanan Atas Dikit) */
.pos-2 {
    z-index: 2;
    /* Geser ke kanan (35%) dan atas (58%) + Putar Kanan */
    transform: translate(-35%, -58%) rotate(10deg);
}

/* Kartu 3 (Depan Kiri - Geser Bawah Dikit) */
.pos-3 {
    z-index: 3;
    /* Geser ke kiri (60%) dan bawah (40%) + Putar Dikit */
    transform: translate(-60%, -40%) rotate(-5deg);
}

/* Kartu 4 (Paling Depan - Geser Kanan Bawah Dikit) */
.pos-4 {
    z-index: 4;
    /* Geser ke kanan (40%) dan bawah (45%) + Putar Kanan */
    transform: translate(-40%, -45%) rotate(8deg);
}


/* =========================================
   RESPONSIVE HP (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .hero-img-stack {
        height: 350px; /* Tinggi di HP */
    }
    
    .img-card {
        width: 65%; /* Di HP jangan terlalu besar agar tidak keluar layar */
        border-width: 3px;
    }

    /* Penyesuaian posisi di HP agar tetap di tengah */
    .pos-1 { transform: translate(-65%, -60%) rotate(-10deg); }
    .pos-2 { transform: translate(-35%, -60%) rotate(8deg); }
    .pos-3 { transform: translate(-60%, -40%) rotate(-5deg); }
    .pos-4 { transform: translate(-40%, -45%) rotate(5deg); }
}
