/* components.css - notices, events, albums, gallery, lightbox (2026 redesign) */
.hero__slide { isolation: isolate; }
.hero__dots { bottom: 64px; }
@media (max-width: 575px) { .hero__dots { bottom: 46px; } }

/* Section header with action on the right */
.h-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.h-row-head .h-title { margin-bottom: 0; }

/* Notice board extras */
.notice__list a { color: var(--c-text) !important; font-weight: 600; }
.notice__list a:hover { color: var(--c-primary) !important; }
.notice__date { display: block; color: var(--c-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.notice__all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 700; border-top: 1px solid var(--c-line); color: var(--c-primary) !important; }
.notice__all:hover { background: var(--c-primary-soft); }
.nb-new { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--c-primary); padding: 2px 7px; border-radius: 6px; vertical-align: middle; animation: dps-blink 1.6s infinite; }

/* Filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--c-line); color: var(--c-text) !important; font-weight: 700; font-size: 14px; font-family: var(--f-head), sans-serif; transition: all .2s; }
.chip span { background: var(--c-primary-soft); color: var(--c-primary); border-radius: var(--r-pill); padding: 1px 8px; font-size: 12px; }
.chip:hover { border-color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff !important; }
.chip.is-active span { background: rgba(255,255,255,.25); color: #fff; }

/* Notice / event cards */
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.nb-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.nb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.nb-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-primary-soft); }
.nb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.nb-card:hover .nb-card__img img { transform: scale(1.05); }
.nb-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nb-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nb-date { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--c-muted); font-weight: 600; }
.nb-date b { font-size: 22px; color: var(--c-text); font-family: var(--f-head), sans-serif; font-weight: 800; }
.nb-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--c-primary-soft); color: var(--c-primary); }
.nb-tag--event { background: color-mix(in srgb, var(--c-secondary) 12%, white); color: var(--c-secondary); }
.nb-tag--activity, .nb-tag--achievement { background: var(--c-accent-soft); color: color-mix(in srgb, var(--c-accent) 55%, black); }
.nb-pin { font-size: 12px; font-weight: 700; color: var(--c-primary); }
.nb-card h3 { font-size: 18px; line-height: 1.35; margin: 0; }
.nb-card p { color: var(--c-muted); font-size: 15px; margin: 0; }
.nb-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.nb-card__actions .dps-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nb-empty, .g-none { text-align: center; color: var(--c-muted); padding: 40px 0; grid-column: 1 / -1; }
.nb-grid--home { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.albums--home { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 220px); }
.albums--home .album { aspect-ratio: auto; height: 100%; }
.albums--home .album:first-child { grid-column: span 2; grid-row: span 2; }
.album { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-primary-soft); box-shadow: var(--shadow-sm); isolation: isolate; }
.albums--home .album:first-child { aspect-ratio: auto; }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -2; }
.album:hover img { transform: scale(1.07); }
.album__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(10,15,30,.85)); transition: background .3s; }
.album:hover .album__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-primary) 20%, transparent) 20%, rgba(10,15,30,.9)); }
.album__label { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.album__label b { font-family: var(--f-head), sans-serif; font-size: 18px; line-height: 1.25; }
.albums--home .album:first-child .album__label b { font-size: 26px; }
.album__label small { color: var(--c-accent); font-weight: 700; font-size: 13px; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); }
.album:hover .album__label small, .album:focus-visible .album__label small { opacity: 1; transform: none; }
@media (max-width: 991px) { .albums--home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) {
    .albums { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .album__label b { font-size: 14.5px; } .album__label { left: 10px; right: 10px; bottom: 10px; }
    .album__label small { opacity: 1; transform: none; font-size: 11.5px; }
    .albums--home .album:first-child .album__label b { font-size: 20px; }
}

/* Gallery toolbar + masonry */
.g-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.g-count { margin: 0; color: var(--c-muted); }
.g-count b { color: var(--c-text); font-size: 18px; }
.g-search { margin-left: auto; position: relative; flex: 0 1 340px; }
.g-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.g-search input { width: 100%; padding-left: 42px !important; border-radius: var(--r-pill) !important; }
.g-toolbar #playAll { margin-left: auto; }
.masonry { columns: 4 260px; column-gap: 14px; }
.masonry__item { position: relative; display: block; margin-bottom: 14px; break-inside: avoid; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--c-primary-soft); }
.masonry__item img { width: 100%; display: block; transition: transform .5s var(--ease), filter .3s; }
.masonry__item:hover img { transform: scale(1.04); filter: brightness(.85); }
.masonry__zoom { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--c-text); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.masonry__item:hover .masonry__zoom { opacity: 1; }
@media (max-width: 575px) { .masonry { columns: 2; column-gap: 8px; } .masonry__item { margin-bottom: 8px; border-radius: 10px; } .g-search { flex-basis: 100%; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 4000; background: rgba(8,10,18,.96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .25s; }
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; }
.lb__count { font-weight: 700; color: rgba(255,255,255,.8); }
.lb__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff !important; display: inline-grid; place-items: center; font-size: 18px; margin-left: 6px; cursor: pointer; }
.lb__btn:hover { background: rgba(255,255,255,.25); }
.lb__stage { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 70px; }
.lb__stage img { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: scale(.98); transition: opacity .3s, transform .3s; }
.lb__stage img.is-in { opacity: 1; transform: none; }
.lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.lb__nav:hover { background: rgba(255,255,255,.28); }
.lb__nav--prev { left: 14px; } .lb__nav--next { right: 14px; }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 16px; scrollbar-width: thin; }
.lb__thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .5; cursor: pointer; background: #222; }
.lb__thumbs button.is-active { border-color: var(--c-accent); opacity: 1; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575px) { .lb__stage { padding: 0 8px; } .lb__nav { display: none; } .lb__thumbs button { width: 56px; height: 42px; } }
