/* ======================================================
   EVENTS SECTION – CLEAN ZIG-ZAG FINAL
====================================================== */

.events {
    color: var(--text-color);
    padding: 100px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.452);
}

.events-card {
    position: relative;
    margin: auto;
}

/* =========================
   WRAPPER
========================= */

.event-wrapper {
    width: 100%;
    display: flex;
    margin: 40px 0;
}

/* =========================
   EVENT ITEM BASE
========================= */

.event-item {
    position: relative;
    width: 70%;
    padding: 50px 30px;
    background-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    z-index: 1;
    overflow: visible;
}

/* layer belakang (INI YANG PENTING) */
.event-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    border-radius: inherit;
    z-index: -1;
}

/* konten di atas semua */
.event-item>* {
    position: relative;
    z-index: 2;
}

/* =========================
   ZIG-ZAG POSITION
========================= */

/* kiri */
.events-card>.event-wrapper:nth-child(odd) .event-item {
    margin-right: auto;
    border-radius: 0 150px 0 0;
}

.events-card>.event-wrapper:nth-child(odd) .event-item::after {
    transform: translate(-15px, -15px);
}

/* kanan */
.events-card>.event-wrapper:nth-child(even) .event-item {
    margin-left: auto;
    border-radius: 150px 0 0 0;
}

.events-card>.event-wrapper:nth-child(even) .event-item::after {
    transform: translate(15px, -15px);
}

/* =========================
   CONTENT
========================= */

.event-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-name {
    font-family: var(--heading-font);
    font-size: 32px;
    margin-bottom: 25px;
}

.event-date-block {
    margin-bottom: 25px;
}

.date-day {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
}

.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.date-divider span {
    width: 40px;
    height: 1px;
    background: var(--secondary-color);
    opacity: 0.6;
}

.date-month {
    font-size: 13px;
    letter-spacing: 2px;
}

.date-year {
    font-size: 14px;
    opacity: 0.7;
}

.event-time,
.event-location-info,
.event-dresscode,
.event-notes {
    margin-top: 10px;
}

.event-time i,
.event-location i {
    margin-right: 6px;
    color: var(--secondary-color);
}

/* =========================
   BUTTON
========================= */

.rustic-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 22px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    margin-bottom: 20px;
}

.rustic-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* =========================
   EMPTY
========================= */

.event-item.empty {
    background: transparent;
    box-shadow: none;
}

.no-event {
    font-style: italic;
    opacity: 0.6;
}

/* =========================
   COUNTDOWN
========================= */

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
}

.time-box {
    width: 120px;
    height: 90px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: 0.3s;
}

.time-box:hover {
    transform: translateY(-5px);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .event-wrapper {
        justify-content: flex-start !important;
    }

    .event-item {
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }

    .event-item::after {
        transform: translate(-10px, 10px);
    }
}