/* ============================================= */
/* ==          STYLE UNTUK STORYBOOK          == */
/* ============================================= */

/* Import Font dari Google Fonts (Opsional, tapi membuat tampilan lebih baik) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Lato:wght@400;700&display=swap');

/* Kontainer Utama Storybook */
.storybook-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden; /* Penting untuk border-radius */
}

/* Styling Swiper Slider */
.myStorybook {
    width: 100%;
    height: 600px; /* Atur tinggi sesuai kebutuhan */
    background: #f0f0f0;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    background: #fff;
    overflow: hidden; /* Agar konten tidak keluar dari slide */
}

/* Layout khusus untuk Halaman Cover */
.swiper-slide.storybook-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Membuat gambar memenuhi slide tanpa distorsi */
}

/* Layout untuk Halaman Cerita (Desktop) */
.story-page-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.storybook-image {
    flex: 1; /* Mengambil 50% lebar */
    overflow: hidden;
}

.storybook-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storybook-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background-color: #f8f9fa;
    color: #000000 !important;
}

.storybook-text h2 {
    font-family: 'Merriweather', serif;
    font-size: 2em;
    margin-bottom: 20px;
    color: #000000 !important;
}

.storybook-text p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Kustomisasi Tombol Navigasi Swiper */
.storybook-container .swiper-button-next,
.storybook-container .swiper-button-prev {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}
.storybook-container .swiper-button-next::after,
.storybook-container .swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
}

/* Kustomisasi Paginasi (titik-titik di bawah) */
.storybook-container .swiper-pagination-bullet-active {
    background-color: #007bff;
}

/* Responsif untuk Mobile (Layar di bawah 768px) */
@media (max-width: 768px) {
    .myStorybook {
        height: auto; /* Tinggi otomatis di mobile */
    }
    .story-page-layout {
        flex-direction: column; /* Ubah layout jadi vertikal */
    }
    .storybook-image {
        height: 300px; /* Tinggi gambar tetap */
    }
    .storybook-text {
        padding: 25px;
    }
    .storybook-text h2 {
        font-size: 1.5em;
    }
    .storybook-text p {
        font-size: 1em;
    }
}