* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #2b2b2b, #0f0f0f);
    color: #f5f5f5;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* --- HEADER & NAVBAR --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.nav-left { display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; }
.logo strong { font-family: 'Playfair Display', serif; font-size: 18px; color: #fff; }

.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 14px; transition: 0.3s; position: relative; padding-bottom: 5px; }
.nav-links a:hover, .nav-links a.active { color: #ffb347; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: #ffb347; transition: width 0.3s ease-out; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 25px; }
.cart-icon-btn { position: relative; color: #fff; text-decoration: none; font-size: 20px; display: flex; align-items: center; transition: 0.3s; }
.cart-icon-btn:hover { color: #ffb347; transform: scale(1.1); }
.cart-badge { position: absolute; top: -8px; right: -8px; background: #e74c3c; color: white; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; }
.auth-btn-nav { padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid #ffb347; color: #ffb347; transition: .3s; }
.auth-btn-nav:hover { background: #ffb347; color: #000; }

/* --- HERO SECTION --- */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; min-height: 85vh; gap: 50px; overflow-x: hidden; }
.hero-content { max-width: 800px; animation: fadeInUp 1s ease-out; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 54px; line-height: 1.2; margin-bottom: 20px; background: linear-gradient(to right, #fff, #ccc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { margin: 0 auto 30px auto; color: #ccc; font-size: 18px; line-height: 1.8; }
.cta { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

/* --- BOOK ANIMATION --- */
.book-wrap { perspective: 1200px; display: flex; justify-content: center; margin-bottom: 20px; }
.book { width: 220px; height: 300px; position: relative; transform-style: preserve-3d; animation: float 4s ease-in-out infinite; left: 110px; }
.cover, .page { position: absolute; width: 100%; height: 100%; background: #f5deb3; border-radius: 4px; transform-origin: left; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cover { background: linear-gradient(135deg, #8b5e34, #5a3a1e); z-index: 10; display: flex; align-items: center; justify-content: center; backface-visibility: hidden;}
.cover img, .page img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.page { background: #fff; animation: flip 6s infinite; transform-style: preserve-3d; }
.page:nth-child(2) { animation-delay: 1s; } .page:nth-child(3) { animation-delay: 2s; } .page:nth-child(4) { animation-delay: 3s; }
@keyframes flip { 0% { transform: rotateY(0); } 40% { transform: rotateY(-160deg); } 100% { transform: rotateY(-160deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- BUTTONS --- */
.btn { padding: 12px 24px; border-radius: 8px; cursor: pointer; border: none; font-weight: 600; text-decoration: none; display: inline-block;}
.btn.primary { background: #ffb347; color: #000; }
.btn.ghost { background: transparent; color: #ffb347; border: 1px solid #ffb347; }
.btn.animated-btn { position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); top: 0; }
.btn.animated-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255, 179, 71, 0.4); }
.btn.animated-btn:active { transform: translateY(-1px); box-shadow: 0 5px 10px rgba(255, 179, 71, 0.2); }

/* --- CARDS & GENERAL --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    padding: 40px 60px;
}

.card {
    background: rgba(255, 255, 255, .05);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;     
    gap: 20px;
    border: 1px solid transparent;
    transition: 0.3s;
    height: 100%; 
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 179, 71, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-img {
    width: 160px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: 100%;
    flex: 1; 
}

.card h3 {
    margin-bottom: 8px;
    color: #ffb347;
    font-size: 20px;
    line-height: 1.4;
}

.card p {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}

.card.cart-container { max-width: 900px !important; display: block !important; margin: 0 auto; text-align: left; }
.card.cart-container h3 { text-align: center; border-bottom: 1px solid #333; padding-bottom: 20px; }
#cartItems { list-style: none; padding: 0; }
#cartItems li { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.cart-summary { margin-top: 30px; text-align: center; }
.btn.btn-danger { background-color: #e74c3c; color: white; padding: 8px 16px; font-size: 14px; border-radius: 6px; cursor: pointer; border: none; margin-left: 20px;}
.btn-checkout { width: 100%; margin-top: 25px; padding: 16px; }

/* --- KHUSUS ARTIKEL HORIZONTAL (FIX BY GEMINI) --- */
.article-container-horizontal {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-card-horizontal {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    display: flex; /* Bikin konten ke samping */
    align-items: flex-start;
    gap: 25px;
    border: 1px solid rgba(255, 179, 71, 0.1);
    transition: 0.3s ease;
}

.article-card-horizontal:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 179, 71, 0.4);
    transform: translateX(10px);
}

.article-img-horizontal {
    width: 280px; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 12px;
    flex-shrink: 0; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.article-content-horizontal {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-content-horizontal h3 {
    color: #ffb347;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.article-content-horizontal p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-date {
    font-size: 12px;
    color: #ffb347;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

/* --- KHUSUS HALAMAN TENTANG KAMI (MISI DI TENGAH) --- */
/* 🔥 KODE INI SEKARANG ADA DI LUAR MEDIA QUERY AGAR JALAN DI LAPTOP JUGA */
.mission-cards {
    display: flex !important; 
    justify-content: center;  
    flex-wrap: wrap;          
    gap: 30px;
    padding: 40px 60px;
}

.mission-cards .card {
    flex: 0 1 350px; 
    width: 100%;
}

/* Admin & Forms */
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: 8px; border: none; background: white; color: #333; font-weight: bold; font-family: 'Inter', sans-serif; cursor: pointer; transition: .3s; margin-top: 10px; }
.google-btn:hover { background: #f1f1f1; transform: translateY(-2px); }
.profile-form input { background: #1a1a1a; border: 1px solid #333; color: #fff; width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 6px; }
.profile-form label { display: block; margin-bottom: 5px; color: #888; font-size: 13px; }
.btn-view-site { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #ffb347; color: #ffb347; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.3s; background: transparent; }
.btn-view-site:hover { background: #ffb347; color: #000; }
.btn-logout-nav { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid #e74c3c; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-logout-nav:hover { background: #e74c3c; color: #fff; }

/* TENTANG KAMI STYLE */
.vision-section { text-align: center; padding: 60px 20px; max-width: 800px; margin: 0 auto; }
.vision-section h2 { font-size: 48px; margin-bottom: 24px; color: #fff; font-weight: bold; }
.vision-section p { color: #ccc; font-size: 18px; line-height: 1.8; }
.section-header { text-align: center; font-size: 36px; color: #ffb347; margin-top: 20px; margin-bottom: 10px; font-weight: bold; }
.bod-container { text-align: center; margin-top: 60px; padding: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.bod-section-wrapper { padding: 60px 20px; max-width: 1000px; margin: 60px auto 0; border-top: 1px solid rgba(255,255,255,0.1); }
.bod-container-grid { display: flex; flex-direction: column; gap: 20px; }
.bod-card { display: flex; align-items: flex-start; background: rgba(255, 255, 255, 0.05); padding: 25px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s; }
.bod-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-5px); border-color: rgba(255, 179, 71, 0.3); }
.bod-img { width: 100px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; margin-right: 25px; background-color: #333; }
.bod-info { flex: 1; }
.bod-info h4 { font-family: 'Playfair Display', serif; font-size: 22px; color: #ffb347; margin-bottom: 5px; }
.bod-role { display: block; font-size: 13px; color: #888; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.bod-info p { font-size: 14px; color: #ddd; line-height: 1.6; }
@media (max-width: 600px) { .bod-card { flex-direction: column; align-items: center; text-align: center; } .bod-img { margin-right: 0; margin-bottom: 15px; width: 120px; height: 140px; } }

#toast-box { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 8px; padding: 16px; position: fixed; z-index: 99; left: 50%; bottom: 30px; transform: translateX(-50%); border-left: 5px solid #ffb347; opacity: 0; transition: 0.5s; }
#toast-box.show { visibility: visible; opacity: 1; bottom: 50px; }
.hidden { display: none !important; }
footer { text-align: center; padding: 30px; color: #aaa; font-size: 14px; }

/* MODAL POP-UP */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); align-items: center; justify-content: center; animation: fadeIn 0.3s; }
.modal-content { background: radial-gradient(circle at top, #2b2b2b, #1a1a1a); margin: 5% auto; padding: 30px; border: 1px solid #ffb347; width: 90%; max-width: 800px; border-radius: 16px; box-shadow: 0 0 20px rgba(255, 179, 71, 0.3); position: relative; max-height: 85vh; overflow-y: auto; color: #fff; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 15px; margin-bottom: 20px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 28px; color: #ffb347; margin: 0; }
.close-btn { color: #aaa; font-size: 32px; font-weight: bold; cursor: pointer; line-height: 1; transition: 0.3s; }
.close-btn:hover { color: #ffb347; }
.modal-body img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 25px; display: block; }
.modal-body p { font-size: 16px; line-height: 1.8; color: #ddd; white-space: pre-line; text-align: justify; }

/* Responsif Mobile (Update Terbaru) */
@media (max-width: 1024px) {
    header { flex-direction: column; gap: 20px; padding: 20px; height: auto; }
    .nav-left { flex-direction: column; gap: 20px; width: 100%; text-align: center; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 25px; width: 100%; }
    .nav-right { width: 100%; justify-content: center; margin-top: 10px; }
    
    .hero h1 { font-size: 32px; }
    .book { left: 0 !important; margin: 0 auto; width: 180px; height: 260px; } 
    .book-wrap { transform: scale(0.85); margin-bottom: 0; width: 100%; display: flex; justify-content: center; }
    
    /* Grid di HP */
    .cards { 
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
        padding: 30px 20px; 
    }

    /* Artikel di HP */
    .article-card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .article-img-horizontal {
        width: 100%;
        height: 200px;
    }
    .article-container-horizontal {
        padding: 20px;
    }
}

/* Responsif Khusus Misi di HP */
@media (max-width: 768px) {
    .mission-cards {
        padding: 20px;
    }
    .mission-cards .card {
        flex: 1 1 100%; /* Kalau di HP, lebarin full */
        max-width: 100%;
    }
}