/* =================================================
   DESIGN FINAL: LOGO CENTER + MENU 'MAGAZINE STYLE'
   ================================================= */
@media screen and (max-width: 768px) {

    /* --- 1. NAVBAR (LOGO TENGAH & NIPIS) --- */
    .story-navbar {
        height: 60px; /* Nipis & Kemas */
        padding: 0 20px;
        
        display: flex;
        align-items: center; 
        justify-content: center; /* Center logo secara melintang */
        
        position: relative; 
        
        /* Background Kaca */
        background-color: rgba(254, 250, 222, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* Logo (Duduk betul-betul tengah) */
    .nav-logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        height: 100%;
    }

    .nav-logo {
        height: 45px; 
        width: auto;
    }

    /* Hamburger (Duduk KANAN) */
    .hamburger {
        position: absolute;
        right: 20px; /* Rapatkan ke kanan */
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #c32c53; /* Warna Pink */
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* --- 2. MENU DESIGN BARU (BACKGROUND CERAH & TULISAN BESAR) --- */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        /* Guna background Cream/Putih (Bukan lagi gradient gelap) */
        background-color: rgba(254, 250, 222, 0.98); 
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px; /* Jarak luas */
        
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 998;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* --- 3. STYLE TULISAN (YANG LAWA TU) --- */
    /* Kita reset button style lama dan masukkan style baru */
    .nav-btn {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: auto !important;
        padding: 0 !important;
        
        /* Typography Besar & Tebal */
        font-family: 'Lexend Deca', sans-serif;
        font-size: 32px;  /* Saiz Besar */
        font-weight: 800; /* Sangat Tebal */
        color: #c32c53;   /* Warna Pink Gelap */
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
    }

    /* Garis Kuning Bawah (Animasi) */
    .nav-btn::after {
        content: '';
        display: block;
        width: 0;
        height: 6px;
        background: #f5d34b; /* Kuning */
        transition: width 0.3s;
        margin: 5px auto 0;
        border-radius: 4px;
    }

    .nav-btn:hover::after,
    .nav-btn.active::after {
        width: 100%;
    }
    
    .nav-menu li {
        list-style: none;
    }

    /* --- 4. ANIMASI HAMBURGER --- */
    /* Bila menu buka, hamburger jadi 'X' tapi kekal warna PINK (sebab background cerah) */
    .hamburger.active .bar { 
        background-color: #c32c53; /* Kekal pink */
    } 
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================================
   D.I.V.E OUR STORY: MOBILE LAYOUT FIX (CONTENT ONLY)
   ========================================================================== */

/* 1. KUNCI UTAMA: ANTI-OVERFLOW & CENTER */
* {
    box-sizing: border-box !important;
}

html, body {
    overflow-x: hidden !important; /* Elak skrol ke tepi */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. HERO & CONCEPT IMAGES (Penuh Skrin) */
.bumee-image img, 
.sdg-image img, 
.concept3-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 10px !important;
}

/* 3. BUMEE SECTION (Imej Atas, Teks Bawah) */
.image-text-container {
    display: flex !important;
    flex-direction: column !important; /* Paksa susun menegak */
    align-items: center !important;
    padding: 30px 15px !important;
    gap: 20px !important;
}

.custom-image-wrapper, .text-box {
    width: 100% !important;
    text-align: center !important;
}

.custom-image {
    width: 60% !important; /* Kecilkan sikit di phone */
    max-width: 200px !important;
}

.title-image {
    width: 130px !important; /* Imej perkataan 'Bumee' */
    margin: 0 auto 10px !important;
}

/* 4. RECYCLING / FOOD WASTE / UPCYCLING (Satu-Satu Atas Bawah) */
.imagebox-wrapper {
    display: flex !important;
    flex-direction: column !important; /* Tukar dari Kiri-Kanan ke Atas-Bawah */
    width: 100% !important;
    padding: 20px !important;
    gap: 15px !important;
}

.imagebox, .content-box {
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
}

.imagebox img {
    width: 100% !important;
    height: auto !important;
    border-radius: 15px !important;
}

.image-title {
    width: 160px !important; /* Tajuk Imej (Recycling dll) */
    margin: 0 auto 10px !important;
}

.image-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    padding: 0 5px !important;
}

/* 5. PROJECT ADVISOR SECTION (Madam Noorazura) */
.custom-section {
    padding: 40px 15px !important;
}

.section-title {
    width: 200px !important;
    margin: 0 auto 20px !important;
    display: block !important;
}

.section-wrapper {
    display: flex !important;
    flex-direction: column !important; /* Gambar Atas, Teks Bawah */
    align-items: center !important;
    gap: 20px !important;
}

/* Padam kotak hiasan belakang di phone supaya tak senget */
.imagebox-bg-left {
    display: none !important;
}

.imagebox-left {
    width: 100% !important;
    max-width: 260px !important;
}

.imagebox-left img {
    width: 100% !important;
    border-radius: 20px !important;
    border: 3px solid #c32c53 !important; /* Warna tema D.I.V.E */
}

.text-box-right {
    width: 100% !important;
    padding: 15px !important;
    background-color: rgba(254, 250, 222, 0.95) !important;
    border-radius: 15px !important;
    text-align: center !important;
}
/* ==========================================================
   MOBILE FOOTER FIX (DIJAMIN TAK KACAU DESKTOP)
   ========================================================== */
@media screen and (max-width: 768px) {

    /* 1. Reset Container Utama */
    .collaboration-section {
        padding: 40px 20px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 2. KOTAK PINK (Makeover jadi 'Card' Cantik) */
    .collab-box {
        /* PENTING: Override width 250% desktop tu */
        width: 100% !important; 
        max-width: 100% !important;
        height: auto !important; /* Biar tinggi ikut isi kandungan */
        
        /* Susun Menegak (Atas ke Bawah) */
        display: flex;
        flex-direction: column; 
        align-items: center;
        justify-content: center;
        
        /* Padding dalam kotak */
        padding: 30px 20px;
        
        /* Bagi curve sikit bucu dia */
        border-radius: 25px;
        
        /* Shadow supaya nampak timbul */
        box-shadow: 0 10px 25px rgba(196, 39, 84, 0.3);
        
        /* Pastikan background pink kekal */
        background-color: #c42754; 
        margin: 0 auto;
    }

    /* 3. Susun Isi Dalam (Logo & Social) */
    .footer-content-wrapper {
        flex-direction: column; /* Susun menegak */
        gap: 25px; /* Jarak antara logo partner & social icons */
        width: 100%;
        align-items: center;
    }

    /* --- BAHAGIAN PARTNER LOGOS (Atas) --- */
    .collab-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    /* Tajuk "In Collaboration With" */
    .collab-title-img {
        width: 180px !important; /* Saiz sederhana */
        height: auto;
        margin-bottom: 15px; /* Jarak dengan logo bulat */
    }

    /* Bekas Logo Bulat-Bulat */
    .partner-logos {
        display: flex;
        flex-wrap: wrap; /* Kalau tak muat, turun bawah */
        justify-content: center;
        gap: 15px; /* Jarak antara logo */
        width: 100%;
    }

    .partner-logos img {
        height: 50px !important; /* Besar sikit supaya jelas */
        width: auto;
        background-color: white; /* Letak background putih pada logo */
        border-radius: 50%; /* Jadikan bulat */
        padding: 5px; /* Ruang dalam logo */
        box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Shadow sikit */
    }

    /* --- BAHAGIAN SOCIAL ICONS (Bawah) --- */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
        margin-top: 10px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.3); /* Garis putih nipis pemisah */
    }

    .social-icons img {
        width: 45px !important; /* Ikon besar sikit senang tekan */
        height: 45px !important;
        margin: 0;
        transition: transform 0.2s;
    }
    
    /* Effect bila tekan ikon di phone */
    .social-icons img:active {
        transform: scale(0.9);
    }
    
    /* Footer Copyright */
    .site-footer {
        margin-top: 0;
        padding-bottom: 20px;
    }
    
    .site-footer p {
        color: #c42754;
        font-size: 12px;
        margin-top: 15px;
    }

} /* <--- Tanda tutup kurungan ini MENJAMIN desktop takkan kacau */

