/* IAUI Events — shared visual theme
   Used by templates/events/*.html, which all extend events/base.html -> base.html */

:root {
    --ev-navy-deep: #16233f;
    --ev-navy: #203864;
    --ev-navy-soft: #33508c;
    --ev-gold: #e8b923;
    --ev-lemon: #ffea00;
    --ev-paper: #f6f7fb;
    --ev-line: #e3e7f0;
    --ev-ink: #1d2740;
    --ev-muted: #5b667e;
}

a:hover {
    text-decoration: none;
}

/* still used by 0_index / 3_asmiua18 / 4_asmiua19 */
.judul {
    text-decoration: underline;
    text-decoration-color: var(--ev-lemon);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: bold;
    color: var(--ev-ink);
}

#section {
    background: var(--ev-paper);
    padding: 26px 0 56px;
}

/* keep unscoped `li { margin-bottom: … }` rules from other pages out of here */
.ev-nav ul,
.ev-nav li {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* ---------- breadcrumb ---------- */

.ev-crumb {
    font-size: 13px;
    color: var(--ev-muted);
    letter-spacing: .2px;
    margin-bottom: 14px;
}

.ev-crumb a {
    color: var(--ev-navy);
    font-weight: 600;
}

.ev-crumb .current {
    color: var(--ev-ink);
    font-weight: 600;
}

/* ---------- sidebar menu ---------- */

.ev-nav {
    background: linear-gradient(180deg, var(--ev-navy-deep), var(--ev-navy));
    border-radius: 14px;
    padding: 22px 16px;
}

.ev-nav .kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ev-lemon);
    font-weight: 700;
    margin-bottom: 14px;
}

.ev-nav .kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--ev-lemon);
    border-radius: 2px;
}

#navv a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 13.5px;
    line-height: 1.35;
    padding: 9px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
    border-left: 3px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

#navv a i {
    font-size: 10px;
    opacity: .65;
    width: 12px;
    flex-shrink: 0;
}

#navv a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
}

/* base.html has a global `.active { color:#fff !important }` — beat it here */
#navv a.active {
    background: rgba(255, 234, 0, .1);
    color: var(--ev-lemon) !important;
    border-left-color: var(--ev-lemon);
    font-weight: 600;
}

@media (min-width: 768px) {
    #navv .ev-nav {
        position: sticky;
        /* clear the sticky site navbar (--site-nav-h comes from navbar.html) */
        top: calc(var(--site-nav-h, 0px) + 20px);
    }
}

/* ---------- content panel ---------- */

.ev-panel {
    background: #fff;
    border: 1px solid var(--ev-line);
    border-radius: 14px;
    padding: 28px;
}

/* ---------- hero ---------- */

.ev-hero {
    background: linear-gradient(135deg, var(--ev-navy-deep), var(--ev-navy) 60%, var(--ev-navy-soft));
    border-radius: 12px;
    padding: 28px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
}

.ev-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 234, 0, .16), transparent 70%);
}

.ev-hero .kicker,
.ev-hero h1,
.ev-hero .subtitle,
.ev-hero .rule {
    position: relative;
    z-index: 1;
}

.ev-hero .kicker {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    font-weight: 700;
    margin-bottom: 8px;
}

.ev-hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0;
}

.ev-hero .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
    margin-top: 6px;
    max-width: 620px;
}

.ev-hero .rule {
    width: 46px;
    height: 3px;
    background: var(--ev-lemon);
    margin: 16px 0 0;
}

/* ---------- section label ---------- */

.ev-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #a8862c;
    margin: 0 0 16px;
}

.ev-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--ev-gold);
    border-radius: 2px;
}

/* ---------- gallery: album cards ---------- */

.ev-album {
    display: block;
    background: #fff;
    border: 1px solid var(--ev-line);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ev-album:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(16, 26, 48, .16);
    text-decoration: none;
}

.ev-album-cover {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 84px;
    gap: 2px;
    background: var(--ev-line);
}

.ev-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* first cover photo spans the tall left column */
.ev-album-cover img:first-child {
    grid-row: span 2;
}

/* a single cover photo fills the whole area */
.ev-album-cover.single {
    grid-template-columns: 1fr;
}

.ev-album-cover.single img:first-child {
    grid-row: span 2;
}

/* two covers: split the area evenly instead of leaving a hole */
.ev-album-cover.duo {
    grid-template-columns: 1fr 1fr;
}

.ev-album-cover.duo img {
    grid-row: span 2;
}

.ev-album-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 170px;
    background: var(--ev-paper);
    border-bottom: 1px solid var(--ev-line);
    color: var(--ev-muted);
    font-size: 13px;
}

.ev-album-empty i {
    font-size: 22px;
    opacity: .5;
}

.ev-album-body {
    padding: 14px 16px 16px;
}

.ev-album-body h3 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ev-ink);
    margin: 0;
    line-height: 1.4;
}

.ev-album-body .desc {
    margin: 5px 0 0;
    font-size: 12.5px;
    color: var(--ev-muted);
    line-height: 1.5;
}

.ev-album-body .go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ev-navy);
}

.ev-album:hover .go i {
    transform: translateX(3px);
}

.ev-album-body .go i {
    font-size: 10px;
    transition: transform .15s ease;
}

/* ---------- gallery detail: photo grid ---------- */

.ev-photo {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ev-line);
    background: #fff;
}

.ev-photo img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.ev-photo:hover img {
    transform: scale(1.06);
}

.ev-empty {
    text-align: center;
    color: var(--ev-muted);
    background: #fff;
    border: 1px dashed var(--ev-line);
    border-radius: 12px;
    padding: 40px 20px;
}

.ev-empty i {
    font-size: 34px;
    opacity: .45;
    margin-bottom: 12px;
    display: block;
}

/* ---------- calendar ---------- */

.ev-calendar-card {
    background: #fff;
    border: 1px solid var(--ev-line);
    border-radius: 12px;
    padding: 16px;
}

.fc-col-header,
.fc-daygrid-body,
.fc-scrollgrid-sync-table {
    width: 100% !important;
}

.fc-toolbar-title {
    font-family: 'Fraunces', serif;
    font-size: 20px !important;
    font-weight: 600;
    color: var(--ev-ink);
}

.fc-theme-standard th {
    color: #fff;
    background-color: var(--ev-navy);
    font-size: 12px;
    letter-spacing: .4px;
    font-weight: 600;
    padding: 8px 0 !important;
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
    border-color: var(--ev-line);
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(255, 234, 0, .16);
}

.fc-event {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 12px;
}

.fc-event:hover {
    box-shadow: 0 2px 8px rgba(16, 26, 48, .25);
}

.fc .fc-button-primary {
    background-color: var(--ev-navy);
    border-color: var(--ev-navy);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: none !important;
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--ev-navy-deep);
    border-color: var(--ev-navy-deep);
}

.fc .fc-button-primary:disabled {
    background-color: #8b96ab;
    border-color: #8b96ab;
}

/* calendar event modal */
#modalcalendar .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

#modalcalendar .modal-header {
    background: linear-gradient(135deg, var(--ev-navy-deep), var(--ev-navy));
    border-bottom: 2px solid var(--ev-lemon);
    color: #fff;
    padding: 18px 24px;
}

#modalcalendar .modal-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 19px;
}

#modalcalendar .modal-body {
    padding: 22px 24px 24px;
    color: #26314d;
    font-size: 14px;
}

#modalcalendar .modal-body a {
    color: var(--ev-navy);
    font-weight: 600;
}

#modalcalendar .btn-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    background: var(--ev-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 26px;
}

#modalcalendar .btn-ok:hover {
    background: var(--ev-navy-deep);
    color: #fff;
}

@media (max-width: 767.98px) {
    .ev-panel {
        padding: 20px 18px;
    }

    .ev-hero {
        padding: 22px 20px;
    }

    .ev-photo img {
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ev-album,
    .ev-photo img,
    .ev-album-body .go i,
    #navv a {
        transition: none;
    }
}
