@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap");

.ai-events-wrapper {
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

.ai-event-item {
    padding: 24px 0;
    border-bottom: 1px solid #e0dbd5;
}

.ai-event-item:first-child {
    border-top: 1px solid #e0dbd5;
}

/* ── Title link ─────────────────────────────── */
.ai-event-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none !important;
}

.ai-event-title .ai-event-title-text {
    flex: 1;
    color: var(--fill-pink, #e837ac);
    font-family: "Nunito Sans", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.ai-event-title:hover .ai-event-title-text {
    opacity: 0.9;
}

/* ── Arrow icon ─────────────────────────────── */
.ai-event-title .arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    aspect-ratio: 1 / 1;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.ai-event-title:hover .arrow {
    transform: translate(2px, -2px);
}
/* ── Meta row ───────────────────────────────── */
.ai-event-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.ai-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--text-icon-primary, #37023c);
    font-family: "Nunito Sans", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.ai-event-meta svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ===== Start Modal Style ===== */

.ai-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.ai-modal.active {
    display: block;
}

body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* adjust sesuai scrollbar */
}

.ai-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Modal popup container */
.ai-modal-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* gap: 20px; */

    max-width: 930px;
    width: calc(100% - 48px);
    margin: 40px auto;
    /* padding: 32px; */
    box-sizing: border-box;

    border-radius: var(--radius-xl, 12px);
    background: var(--base-white, #fff);
    box-shadow: 0 16px 48px 0 rgba(85, 40, 89, 0.16);

    position: relative;
    z-index: 2;

    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(2%);
}

.ai-modal-header {
    position: sticky;
    top: 0px;
    background: #fff;
    padding: 32px  32px 10px 32px;
    /* border-bottom: 1px solid #e5e5e5; */
}

/* Close button */
.ai-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

/* 1. Title */
.ai-modal-content h2 {
    color: #37023c !important;
    font-size: 28px !important;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 115%;
    margin: 0;
    /* margin-bottom: 32px; */
}

/* 2. Tags wrapper */
.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 32px;
    margin-top: 22px;
}

/* 3. Tag default (K-12, Stand-Alone, Integrated) */
.ai-tags span {
    display: flex;
    padding: 4px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 99px;
    background: var(--fill-secondary, #f0ebeb);
    border: none;
    color: var(--text-icon-primary, #37023c);
    font-family: var(--font-family-primary, "Nunito Sans");
    font-size: 16px;
    font-style: normal;
    font-weight: var(--font-weight-Medium, 500);
    line-height: 120%;
    letter-spacing: 0.8px;
}

/* 4. Active tag */
.ai-tags span.active {
    border-radius: 99px;
    background: linear-gradient(90deg, #901e69 0%, #e837ac 100%);
    color: var(--base-white, #fff);
    font-size: 16px;
    font-weight: var(--font-weight-Medium, 500);
    letter-spacing: 0.8px;
}

/* 5. Description */
.ai-desc {
    color: var(--text-icon-primary, #37023c);
    font-family: "Nunito Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    margin: 0;
    margin-bottom: 24px;
    padding: 0 32px;
}

/* 6. Stats */
/* Stats */
.ai-stats {
    display: flex;
    align-self: stretch;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;

    /* Hapus ini semua */
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow: visible;
    margin-bottom: 32px;
    padding: 0 32px;
}

.ai-stats > div {
    flex: 1;
    padding: 20px 16px;
    border-right: 1px solid #e5e5e5;
}

.ai-stats > div:last-child {
    border-right: none;
}

.ai-stats strong {
    display: block;
    font-family: "Nunito Sans";
    font-size: 36px;
    font-weight: 700;
    color: #e837ac;
    line-height: 1.1;
    text-align: center !important;
}

.ai-stats span {
    display: block;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 400;
    color: #37023c;
    margin-top: 6px;
}

/* 7. Two columns */
.ai-columns {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0 32px;
}

.ai-box {
    flex: 1;
    background: #f5f5f7;
    padding: 32px;
    border-radius: 12px;
}

.ai-box h4 {
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.ai-box ul {
    margin: 0;
    padding-left: 18px;
}

.ai-box ul li {
    font-family: "Nunito Sans";
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ai-box ul li:last-child {
    margin-bottom: 0;
}

/* 8. Footer */
.ai-footer {
    display: flex;
    justify-content: flex-end;
    padding: 32px;
    border-top: 1px solid #e5e5e5;
}

.ai-btn {
    display: flex;
    padding: var(--padding-8px, 8px) var(--padding-12px, 12px)
        var(--padding-8px, 8px) var(--padding-16px, 16px);
    justify-content: center;
    align-items: center;
    gap: var(--gap-sm, 8px);
    border-radius: var(--radius-full, 999px);
    background: var(--button-fill-primary-normal, #37023c);
    /* Text */
    color: #f9f5f9 !important;
    font-family: var(--font-family-primary, "Nunito Sans");
    font-size: var(--font-size-base, 16px);
    font-style: normal;
    font-weight: var(--font-weight-Medium, 500);
    line-height: 150%;
    letter-spacing: var(--font-letter-spacing-Normal, 0);
    text-decoration: none;
    transition: opacity 0.2s;
}
.ai-btn:hover {
    color: #F7D35F !important;
}

/* ===== Responsive Modal ===== */
@media (max-width: 600px) {
    .ai-modal-content {
        margin: 16px auto;
        max-height: calc(100vh - 55px);
    }

    .ai-modal-header {
        padding: 24px 20px 10px 20px;
    }

    .ai-modal-content h2 {
        font-size: 22px !important;
    }

    .ai-tags {
        padding: 0 20px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .ai-tags span {
        font-size: 13px;
        padding: 4px 14px;
    }

    .ai-desc {
        font-size: 16px;
        padding: 0 20px;
        margin-bottom: 16px;
    }

    .ai-stats {
        padding: 0 20px;
        margin-bottom: 24px;
    }

    .ai-stats strong {
        font-size: 28px;
    }

    .ai-stats span {
        font-size: 13px;
    }

    .ai-columns {
        flex-direction: column;
        padding: 0 20px;
        margin-bottom: 24px;
    }

    .ai-box {
        padding: 20px;
    }

    .ai-footer {
        padding: 20px;
    }
}

/* ===== End Modal Style ===== */
