/* 기본 폰트 */
body {
    font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========== Hero 영역 ========== */
.hero-section {
    background: linear-gradient(90deg, #5b7fd9 0%, #4a6bc8 20%, #3a5ab8 40%, #2a4ba8 60%, #1a3c98 80%, #0D1649 100%);
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
    min-height: auto;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-section>.container {
    position: relative;
    z-index: 2;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(91, 127, 217, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(13, 22, 73, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    color: #0D1649;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 0.75rem;
}

.hero-badge .material-icons-outlined {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-actions .btn {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #0D1649;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #ebebeb 100%);
}

.hero-actions .btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-actions .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0D1649;
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.hero-image-wrapper {
    max-width: 320px;
    margin-left: auto;
    position: relative;
    animation: fadeInRight 1s ease-out 0.2s both;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(50px);
}

.hero-image {
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3));
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover {
    transform: translateY(-8px) scale(1.03);
}

/* ========== 공통 섹션 스타일 ========== */
.section-header {
    margin-bottom: 2rem;
}

.section-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0D1649 0%, #1a2d6b 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(13, 22, 73, 0.25);
    transition: transform 0.3s ease;
}

.section-icon-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 22, 73, 0.35);
}

.section-icon-wrapper .material-icons-outlined {
    font-size: 32px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0D1649;
    margin: 0;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.section-link {
    color: #0D1649;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.section-link:hover {
    color: #1a2d6b;
    transform: translateX(5px);
}

.section-link .material-icons-outlined {
    transition: transform 0.3s ease;
}

.section-link:hover .material-icons-outlined {
    transform: translateX(3px);
}

/* ========== 예약/이용안내 섹션 ========== */
.info-section {
    background: linear-gradient(90deg, #5b7fd9 0%, #4a6bc8 20%, #3a5ab8 40%, #2a4ba8 60%, #1a3c98 80%, #0D1649 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    z-index: 1;
}

.info-section>.container {
    position: relative;
    z-index: 2;
}

.info-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(91, 127, 217, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(13, 22, 73, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.info-section .section-title {
    color: #ffffff;
}

.info-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.info-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 160px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.info-card-icon .material-icons-outlined {
    font-size: 32px;
    color: #ffffff;
}

.info-card:hover .info-card-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(5deg);
}

.info-card-arrow {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
}

.info-card:hover .info-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ========== 체육시설 섹션 ========== */
.facilities-section {
    background: #ffffff;
    padding: 3rem 0;
}

.facilities-carousel-wrapper {
    position: relative;
}

.facilities-carousel-container {
    overflow: hidden;
    margin: 0 auto;
}

.facilities-carousel-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateX(0);
}

.facility-filter-buttons {
    margin-bottom: 1.5rem;
}

.facility-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.facility-filter-btn:hover {
    background: #f8fafc;
    border-color: #0D1649;
    color: #0D1649;
}

.facility-filter-btn.active {
    background: #0D1649;
    border-color: #0D1649;
    color: #ffffff;
}

.facility-carousel-controls {
    margin-top: 1.5rem;
}

.facility-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.facility-carousel-btn:hover:not(.disabled) {
    background: #0D1649;
    color: #ffffff;
    border-color: #0D1649;
    box-shadow: 0 4px 12px rgba(13, 22, 73, 0.3);
    transform: scale(1.1);
}

.facility-carousel-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.facility-carousel-btn .material-icons-outlined {
    font-size: 22px;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.facility-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 calc(16.666% - 1rem);
    min-width: 200px;
}

.facility-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #0D1649;
}

.facility-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f1f5f9;
}

.facility-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-card:hover .facility-card-image {
    transform: scale(1.1);
}

.facility-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.facility-badge {
    padding: 0.2rem 0.625rem;
    border-radius: 5px;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.facility-badge-primary {
    background: rgba(13, 22, 73, 0.9);
    color: #ffffff;
}

.facility-badge-danger {
    background: rgba(226, 6, 19, 0.9);
    color: #ffffff;
}

.facility-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.facility-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0D1649;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.facility-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.facility-card-location .material-icons-outlined {
    font-size: 1rem;
    color: #94a3b8;
}

.facility-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.facility-card-btn {
    flex: 1;
    padding: 0.4375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.facility-card-btn.btn-outline-primary {
    border: 1px solid #e2e8f0;
    color: #0D1649;
    background: #ffffff;
}

.facility-card-btn.btn-outline-primary:hover {
    background: #f8fafc;
    border-color: #0D1649;
    color: #0D1649;
}

.facility-card-btn.btn-primary {
    background: #0D1649;
    color: #ffffff;
    border: 1px solid #0D1649;
}

.facility-card-btn.btn-primary:hover {
    background: #1a2d6b;
    border-color: #1a2d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 22, 73, 0.3);
}

/* ========== 공지사항 섹션 ========== */
.notices-section {
    background: #f8fafc;
    padding: 3rem 0;
}

.notices-list {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.notice-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #0D1649, #1a2d6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notice-item:hover {
    background: linear-gradient(to right, rgba(13, 22, 73, 0.03) 0%, transparent 100%);
    padding-left: 2.5rem;
}

.notice-item:hover::before {
    opacity: 1;
}

.notice-icon {
    color: #0D1649;
    font-size: 22px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.notice-item:hover .notice-icon {
    opacity: 1;
    transform: scale(1.1);
}

.notice-text {
    color: #1e293b;
    font-weight: 500;
    font-size: 1rem;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.notice-item:hover .notice-text {
    color: #0D1649;
}

.notice-date {
    color: #94a3b8;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-left: 1.5rem;
    font-weight: 500;
}


/* 공통 hover 색 */
.hover-primary:hover {
    color: #0D1649 !important;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 반응형 조정 */
@media (max-width: 1199.98px) {
    .facility-card {
        flex: 0 0 calc(25% - 0.9375rem);
        min-width: 200px;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .notices-section {
        padding: 2.5rem 0;
    }

    .info-section {
        padding: 1.5rem 0;
    }

    .facility-card {
        flex: 0 0 calc(33.333% - 0.833rem);
        min-width: 180px;
    }

    .facilities-carousel-wrapper {
        padding: 0 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 1.25rem 0;
        min-height: auto;
    }

    .hero-image-wrapper {
        max-width: 280px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-badge {
        font-size: 0.95rem;
        padding: 0.5rem 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .btn.ms-3 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .section-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .section-icon-wrapper .material-icons-outlined {
        font-size: 20px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.875rem;
    }

    .info-section {
        padding: 1.25rem 0;
    }

    .info-card {
        min-height: 140px;
        padding: 1rem !important;
    }

    .info-card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
    }

    .info-card-icon .material-icons-outlined {
        font-size: 28px;
    }

    .info-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.375rem;
    }

    .notice-item {
        padding: 1.25rem 1.5rem;
    }

    .notice-item:hover {
        padding-left: 1.75rem;
    }

    .facilities-section {
        padding: 2rem 0;
    }

    .facility-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .facility-carousel-btn .material-icons-outlined {
        font-size: 20px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .facility-card-image-wrapper {
        height: 180px;
    }

    .facility-card-content {
        padding: 1.25rem;
    }

    .facility-card-title {
        font-size: 1rem;
    }

    .facility-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .facility-card-btn {
        width: 100%;
    }

    .facility-carousel-btn {
        width: 36px;
        height: 36px;
    }

    .facility-carousel-btn .material-icons-outlined {
        font-size: 18px;
    }

    .facility-card {
        flex: 0 0 calc(50% - 0.625rem);
        min-width: 160px;
    }

    .facility-card-image-wrapper {
        height: 100px;
    }

    .facility-card-content {
        padding: 0.875rem;
    }

    .facility-filter-buttons {
        gap: 0.5rem;
    }

    .facility-filter-btn {
        padding: 0.4375rem 1rem;
        font-size: 0.8125rem;
    }
}