@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700&display=swap');

/* Variabel Warna Tema */
:root {
    --primary-color: #FFB6C1;
    /* Warna pink lembut */
    --secondary-color: #FFF5EE;
    /* Warna cream hangat */
    --accent-color: #FF69B4;
    /* Warna pink cerah untuk aksen */
    --text-color: #333;
    --bg-nav: #FFE4E1;
    /* Warna latar navbar */
    --bg-dropdown: #FFF0F5;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--secondary-color);
    font-family: 'Baloo 2', cursive;
}

/* Header */
.header-bottom {
    background-color: var(--bg-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    /* Pastikan tidak ada margin di atas header */
    padding: 0 20px;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    position: absolute;
    left: 15px;
}

.logo-container a {
    display: inline-block;
    text-decoration: none;
    /* Menghilangkan underline default */
    background: none;
    /* Pastikan tidak ada background */
    border: none;
    /* Menghindari border yang mungkin muncul */
    transition: transform 0.2s ease-in-out;
}

.logo-container a:hover {
    transform: scale(1.1);
    /* Efek timbul */
    background: none !important;
    /* Pastikan tidak ada background */
    box-shadow: none;
    /* Hilangkan efek shadow jika ada */
}

.logo-container img {
    max-width: 165px;
    max-height: 165px;
    transform: translateY(5px);
    /* Geser ke bawah */
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 40px;
    font-weight: bold;
    color: var(--accent-color);
    margin-left: 25px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a,
.dropdown-btn {
    text-decoration: none;
    font-family: 'Baloo 2', cursive;
    color: var(--text-color);
    font-size: 22px;
    padding: 10px 15px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    border-radius: 10px;
    border: none;
    background: none;
    outline: none;
}

nav a:hover,
.dropdown-btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: var(--bg-dropdown);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1;
    overflow: hidden;
}

.dropdown-menu a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .header-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .logo-container img {
        max-width: 100px;
        max-height: 100px;
    }

    .logo-text {
        font-size: 28px;
        margin-left: 15px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
}


/* GARIS TIGA DI HEADER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    /* Menempatkan hamburger di tengah secara vertikal */
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--bg-dropdown);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
}

.mobile-menu a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

/* DROPDOWN TENTANG */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 12px 20px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.mobile-dropdown-btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 10px;
    background-color: var(--bg-dropdown);
}

.mobile-submenu a {
    padding: 10px 20px;
    font-size: 15px;
    text-decoration: none;
    color: var(--text-color);
}

.mobile-submenu a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.mobile-submenu.show {
    display: flex;
}


/* Responsif untuk Hamburger */
@media (max-width: 768px) {
    .header-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .logo-container {
        position: absolute;
        left: 15px;
    }

    .mobile-menu.show {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        background-color: var(--bg-dropdown);
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu a {
        padding: 12px 20px;
        color: var(--text-color);
        text-decoration: none;
        font-size: 16px;
    }
}



/* SELAMAT DATANG Section */
.welcome-section {
    background-image: url('../foto/BG MainMenu.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.welcome-overlay {
    padding: 40px;
    margin-bottom: 100px;
}

.welcome-overlay h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.download-btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    background-color: #fbffca;
    color: rgb(0, 0, 0);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background-color: #fa7ebc;
}


@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .welcome-text h2 {
        font-size: 35px;
    }

    .download-btn {
        margin-left: 0;
    }
}


/* GALERI */
#gallery h2 {
    text-align: center;
    /* Memusatkan teks */
    font-size: 24px;
    /* Ukuran font judul */
    color: #333;
    /* Warna teks */
    margin-bottom: 20px;
    /* Memberikan jarak bawah */
    margin-top: 30px;
}

.gallery-container {
    display: flex;
    justify-content: center;
    /* Memusatkan card galeri secara horizontal */
    flex-wrap: wrap;
    /* Membuat card galeri terbungkus ke baris baru jika ruang tidak cukup */
    gap: 20px;
    /* Jarak antar card */
    margin-top: 20px;
    /* Memberikan jarak atas pada container */
    justify-content: center;
    /* Memusatkan container galeri secara keseluruhan */
}

/* Card Galeri */
.galeri-card {
    padding: 10px;
}

.galeri-card .card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.galeri-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.gambar-galeri {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.judul-galeri {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 10px;
    color: #333;
    margin: 0;
    text-align: center;
}

.gambar-placeholder {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

/* Gambar dalam Card */
.gallery-item img {
    width: 100%;
    /* Mengikuti lebar card */
    max-width: 180px;
    /* Ukuran gambar maksimal agar sesuai dengan lebar card */
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    /* Memusatkan gambar */
}

.owl-carousel .item {
    padding: 10px;
    text-align: center;
}

.owl-carousel .item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.judul-galeri {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

/* Tombol lihat semua */
.lihat-semua-btn {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 10px 20px;
    background-color: #ff69b4;
    color: white;
    border-radius: 30px;
    font-family: 'Comic Sans MS', cursive;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Tambahkan sedikit efek hover pada tombol */
.lihat-semua-btn:hover {
    background-color: #ff4d94;
    cursor: pointer;
}



/* SECTION BERITA */
.news-section {
    background-color: #fdf6e3;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.card-berita {
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 10px;
    transition: transform 0.3s;
}

.card-berita:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 10px 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
}

.card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.btn-more {
    display: inline-block;
    background-color: #ff7ea5;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
    align-items: center;
}

.btn-more:hover {
    background-color: #ff5277;
}



/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

/* Slider viewport */
.slider {
    overflow: hidden;
    width: 100%;
}

/* Slider Track */
.slider-track {
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* News Card – atur ukuran sehingga 2 card terlihat pada viewport */
.news-card {
    min-width: calc(50% - 20px);
    /* 2 card sekaligus: lebar 50% dikurangi margin */
    margin: 0 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: scale(1.05);
}

/* Tombol Panah */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Indikator Slide */
.slider-indicators {
    text-align: center;
    margin-top: 15px;
}

.slider-indicators .indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-indicators .indicator.active {
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .news-card {
        min-width: 100%;
        margin: 0;
    }

    .slider-container {
        width: 100%;
    }
}


/* SECTION MERCHANDISE */
.merchandise-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.merchandise-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.merchandise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.merch-card {
    background: #fff;
    border-radius: 10px;
    width: 250px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.merch-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.merch-name {
    font-size: 18px;
    margin: 10px 0 5px;
}

.merch-price {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.see-btn {
    padding: 8px 15px;
    background-color: #ff7ea5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.see-btn:hover {
    background-color: #ff5277;
}

/* Modal */
.merch-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.merch-modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.merch-modal-body {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-merch-img {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-merch-info {
    flex: 1;
}

.close-merch-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.wa-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background-color: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}



/* Footer */
footer {
    background-color: var(--bg-nav);
    text-align: center;
    padding: 20px;
    font-family: 'Baloo 2', cursive;
    color: var(--text-color);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    footer {
        padding: 15px 10px;
    }
}


/* KOMENTAR */
.komentar-container {
    padding: 20px;
    background: #fdf6e3;
    border-radius: 12px;
    margin: 20px auto;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.komentar-title {
    text-align: center;
    font-family: 'Comic Sans MS', cursive;
    color: #d17b88;
    margin-bottom: 25px;
}

.komentar-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.komentar-input,
.komentar-textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #d17b88;
    border-radius: 8px;
}

.komentar-button {
    background: #d17b88;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.komentar-button:hover {
    background: #b86575;
}

/* Opsional: animasi untuk transisi container komentar */
.komentar-list {
    transition: max-height 0.5s ease;
    overflow: hidden;
}

/* Gaya untuk toggle button */
.komentar-toggle {
    color: var(--accent-color);
    cursor: pointer;
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
}

.komentar-toggle:hover {
    color: var(--primary-color);
}

.komentar-item {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.komentar-nama_tamu {
    font-weight: bold;
    color: #d17b88;
}

.komentar-komentar {
    font-style: italic;
}

.komentar-tgl_komentar {
    font-size: 0.8em;
    color: gray;
}

@media (max-width: 768px) {
    .komentar-container {
        width: 90%;
    }

    .komentar-input,
    .komentar-textarea {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .download-btn,
    .lihat-semua-btn {
        width: 100%;
        text-align: center;
    }

    .komentar-button {
        width: 100%;
    }

    .slider-btn {
        padding: 8px;
    }
}


@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}