/* Explain: Styles for homepage hero carousel, news/schedule panels, and quick links. */
.hero-carousel {
    position: relative;
    min-height: clamp(33rem, 72vh, 44rem);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-top: 9rem;
    padding-bottom: 5.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 900ms;
}

/* ── 슬라이드 문구 위계 ──
   배지 → 제목 → 설명 → 버튼의 세로 간격과 글자 크기를 모든 슬라이드에서 동일하게 유지해
   슬라이드가 바뀌어도 같은 위치에서 같은 리듬으로 읽히도록 합니다. */
.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 42rem;
    color: #ffffff;
}

.hero-title {
    margin: 1.15rem 0 0;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(15, 36, 68, 0.35);
    overflow-wrap: anywhere;
}

.hero-desc {
    margin: 1.15rem 0 0;
    max-width: 36rem;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 12px rgba(15, 36, 68, 0.32);
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
    }
}

.hero-btn {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0 1.9rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition: transform 240ms ease, background 240ms ease, border-color 240ms ease, color 240ms ease;
}

.hero-btn-primary {
    background: #ffffff;
    color: var(--primary-color);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
}

.hero-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* ── 하단 점 표시·빠른 이동 카드 ──
   화면 크기와 관계없이 점 표시는 왼쪽, 빠른 이동 카드는 오른쪽(좁은 화면에서는 아래)에
   같은 위치로 정렬되도록 하나의 규칙으로 통일합니다. */
.hero-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-bottom-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.hero-slide img {
    transform: scale(1.06);
    transition: transform 8s ease-out;
}

.hero-slide.is-active img {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active {
        transition: none;
    }

    .hero-slide img,
    .hero-slide.is-active img {
        transform: none;
        transition: none;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(4px);
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-50%);
    transition: background 200ms ease;
    backdrop-filter: blur(6px);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-nav-prev {
    left: 0.75rem;
}

.hero-nav-next {
    right: 0.75rem;
}

.hero-bottom {
    position: absolute;
    inset-inline: 0;
    bottom: 1.25rem;
    z-index: 6;
}

.hero-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-quicklinks {
        width: auto;
        justify-content: flex-end;
    }
}

.hero-quicklink {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    background: rgba(15, 36, 68, 0.58);
    padding: 0.55rem 0.9rem;
    transition: background 220ms ease, transform 220ms ease;
    backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .hero-quicklink {
        flex: 0 0 auto;
    }
}

.hero-quicklink:hover {
    background: rgba(15, 36, 68, 0.82);
    transform: translateY(-2px);
}

.hero-quicklink-mark {
    display: inline-flex;
    height: 2.1rem;
    width: 2.1rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-dot {
    height: 0.55rem;
    width: 0.55rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 250ms ease, background 250ms ease;
}

.hero-dot.is-active {
    width: 1.7rem;
    background: #ffffff;
}

.quick-grid-8 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.4rem;
}

@media (min-width: 640px) {
    .quick-grid-8 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .quick-grid-8 {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    min-height: 6.25rem;
    border-radius: 1rem;
    padding: 0.9rem 0.35rem;
    color: var(--text-color);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    transition: background 220ms ease, color 220ms ease;
}

.quick-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.8rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.quick-item span {
    display: flex;
    width: 100%;
    height: 2.6em;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.quick-item:hover {
    background: var(--surface-color);
    color: var(--accent-color);
}

@media (min-width: 1024px) {
    .quick-item + .quick-item {
        border-left: 1px solid var(--border-color);
    }
}

.news-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.notice-tag-alt {
    background: rgba(112, 72, 232, 0.12);
    color: var(--net-purple);
}

.schedule-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    border-radius: 1.25rem;
    background: var(--accent-soft);
    padding: 0.7rem 0.5rem;
    line-height: 1;
}

.schedule-date span:first-child {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-color);
}

.schedule-date span:last-child {
    margin-top: 0.2rem;
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary-color);
}

/* ── 주요 소식·공지 · 회의 일정 패널 ──
   대표 카드의 이미지·분류·제목·요약·날짜 높이를 고정하고,
   아래 목록 행의 분류 태그·제목·날짜 위치를 모든 행에서 동일하게 맞춥니다.
   두 패널은 같은 안쪽 여백과 같은 톤을 사용합니다. */
.news-featured {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: #ffffff;
}

.news-featured-media {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: var(--surface-color);
}

.news-featured-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.news-featured-fallback {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.75rem;
}

.news-featured-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.15rem;
}

/* 분류 줄 — 카드마다 같은 높이를 차지해 제목 시작 위치가 흔들리지 않습니다. */
.news-featured-head {
    display: flex;
    min-height: 1.6rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* 제목 — 최대 두 줄, 카드마다 같은 높이 */
.news-featured-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.6em * 2);
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.6;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

/* 요약 — 최대 두 줄, 카드마다 같은 높이 */
.news-featured-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.7em * 2);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

/* 날짜 — 카드 아래쪽 같은 자리에 고정 */
.news-featured-date {
    display: flex;
    min-height: 1.25rem;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.news-featured-date i {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ── 목록 행 — 분류 태그·제목·날짜 위치 통일 ── */
.notice-row {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.75rem 1.1rem;
}

/* 분류 태그 자리 — 태그가 없어도 같은 폭을 차지해 제목 시작 위치를 고정합니다. */
.notice-row-tag {
    display: inline-flex;
    width: 4.25rem;
    flex-shrink: 0;
    align-items: center;
}

.notice-row-title {
    min-width: 0;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.notice-row-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ── 회의 일정 대표 카드 ── */
.schedule-next {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 1.15rem;
}

.schedule-next-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
}

.schedule-next-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.6em * 2);
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.6;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.schedule-next-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.schedule-next-meta i {
    flex-shrink: 0;
    opacity: 0.8;
}

/* 회의록 안내 박스 — 두 패널과 같은 안쪽 여백·모서리를 사용합니다. */
.schedule-cta {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--surface-color);
    padding: 1.25rem;
}