/* ========================================
   홈 페이지
   ======================================== */

/* 히어로 이미지 슬라이더 — 사이트 가로(980px) 기준 */
.hero-section {
    padding: 24px 0 0;
}

.hero-section .container {
    max-width: var(--site-width);
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e8e8e8;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 36.73%; /* 360 / 980 비율 */
}

.hero-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.hero-prev { left: 12px; }
.hero-next { right: 12px; }

.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
    background: var(--color-white);
    transform: scale(1.2);
}

/* 공지 티커 — 배너와 동일 가로 맞춤 */
.notice-ticker {
    margin-top: 16px;
}

.notice-ticker .container {
    max-width: var(--site-width);
}

.ticker-box {
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    overflow: hidden;
    width: 100%;
}

.ticker-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.ticker-track {
    display: inline-flex;
    gap: 40px;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 0.875rem;
    color: var(--color-text-light);
    position: relative;
    padding-right: 40px;
    flex-shrink: 0;
}

.ticker-item::after {
    content: '|';
    position: absolute;
    right: 16px;
    color: #ddd;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 바로가기 카드 */
.quick-menu-section {
    padding: 32px 0 16px;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quick-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.quick-card-emoji {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 16px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.quick-card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.quick-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.btn-quick {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 36px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    margin-top: auto;
}

.btn-quick:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
    .hero-slides {
        padding-bottom: 42%; /* 모바일에서 약간 낮은 비율 */
    }

    .hero-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .quick-menu-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quick-card-emoji {
        font-size: 2.8rem;
        width: 80px;
        height: 80px;
    }

    .ticker-track {
        animation-duration: 15s;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .quick-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .quick-card {
        padding: 24px 14px 24px;
    }

    .quick-card-title {
        font-size: 1.05rem;
    }

    .quick-card-emoji {
        font-size: 2.8rem;
        width: 84px;
        height: 84px;
    }
}
