/* 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: 27px;
    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: block;
    width: -webkit-max-content;
    width: max-content;
    margin: 12px auto 0;
    padding: 12px 28px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #fff;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.maps-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    background: linear-gradient(90deg,#ff6a00,#ff8e53);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.maps-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.event-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 30px;
    opacity: 0.8;
}

/* --- OVERRIDE GLOBAL UNTUK MOBILE --- */
@media (max-width: 1023px) {

    html,
    body {
        height: 100dvh !important;
        overflow: hidden;
    }

    .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;
        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: 10px 24px;
        font-size: 12px;
        letter-spacing: 0.12em;
    }
}

/* 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;
    }
}