/* public/css/event.css */

.wedding-event-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px;
    margin: 0;
}

.event-bg-image {
    position: absolute;
    /* Menghilangkan celah di pinggir layar */
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: url('/images/SLM09131.JPG') no-repeat center;
    background-size: cover;
    z-index: 1;
    /* Sedikit zoom agar benar-benar penuh */
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Mengatur kegelapan agar teks putih menonjol */
    z-index: 2;
}

.event-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    text-align: center;
    color: white;
}

.section-title {
    font-size: 12px;
    letter-spacing: 0.5em;
    margin-bottom: 50px;
    opacity: 0.8;
}

.event-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 50px;
}

.event-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.event-details p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
    font-weight: 300;
}

.event-divider {
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 15px auto;
}

.event-location {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.9;
}

.maps-btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 15px 45px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-decoration: none;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.maps-btn:hover {
    background: white;
    color: #111;
}

/* --- OVERRIDE GLOBAL UNTUK MOBILE --- */
@media (max-width: 1023px) {

    .wedding-event-section {
        /* Paksa tinggi penuh viewport mobile */
        height: 100dvh !important;
        min-height: 100dvh !important;
        width: 100% !important;
        padding: 40px 20px !important;
        /* Kurangi padding luar di mobile */
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .event-bg-image {
        height: 100% !important;
        width: 100% !important;
        position: absolute;
        inset: 0;
        transform: scale(1.15);
        /* Sedikit lebih besar untuk coverage aman */
        background-size: cover !important;
        background-position: center center !important;
        z-index: 1;
    }

    .event-overlay {
        z-index: 2;
        background: rgba(0, 0, 0, 0.65);
        /* Sedikit lebih gelap agar teks info terbaca */
    }

    .event-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Konten tetap di tengah secara vertikal */
        max-width: 100%;
        z-index: 10;
    }

    .section-title {
        font-size: 10px;
        letter-spacing: 0.4em;
        margin-bottom: 30px;
        /* Kurangi jarak dari judul ke konten */
    }

    .event-grid {
        /* Jaga styling desktop: vertikal grid */
        gap: 40px;
        /* Perkecil jarak antar item (Akad & Resepsi) */
        margin-bottom: 30px;
    }

    .event-name {
        font-size: 26px;
        /* Ukuran font disesuaikan untuk mobile */
        letter-spacing: 0.1em;
        margin-bottom: 10px;
    }

    .event-details p {
        font-size: 13px;
        /* Sedikit lebih kecil agar tidak makan tempat */
        margin-bottom: 3px;
    }

    .event-divider {
        margin: 12px auto;
        width: 40px;
    }

    .event-location {
        font-size: 12px !important;
        padding: 0 10px;
        line-height: 1.5;
    }

    .maps-btn {
        padding: 12px 35px;
        font-size: 10px;
        letter-spacing: 0.2em;
    }
}

/* Fix khusus untuk layar HP yang sangat pendek */
@media (max-height: 700px) and (orientation: portrait) {
    .event-grid {
        gap: 25px;
    }

    .event-name {
        font-size: 22px;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .event-location {
        font-size: 11px !important;
    }
}