@charset "UTF-8";

/**
 * 부산진지역자활센터 차세대 웹사이트 메인 스타일시트
 * 인코딩: UTF-8 Without BOM
 * 멀티 디바이스 반응형 웹 (PC, Tablet, Mobile)
 */

/* 1. 웹폰트 Pretendard 및 기본 리셋 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    --primary: #1f4089;
    --primary-dark: #162f65;
    --primary-light: #2c58b8;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --header-height: 80px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. 최상단 유틸리티 바 (PC) */
.top-util-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
}

.top-util-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-util-bar .left-info {
    display: flex;
    gap: 16px;
}

.top-util-bar .right-links {
    display: flex;
    gap: 14px;
}

.top-util-bar a:hover {
    color: var(--primary);
}

/* 3. 헤더 및 GNB */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.brand-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.brand-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.brand-logo .site-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-logo .site-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* PC GNB 메뉴 */
.main-nav {
    display: flex;
    align-items: center;
}

.gnb-list {
    display: flex;
    gap: 4px;
}

.gnb-item {
    position: relative;
}

.gnb-link {
    display: block;
    padding: 26px 18px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
    position: relative;
}

.gnb-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.gnb-item:hover .gnb-link {
    color: var(--primary);
}

.gnb-item:hover .gnb-link::after {
    width: 80%;
}

/* 드롭다운 서브메뉴 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
}

.gnb-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-link {
    display: block;
    padding: 10px 20px;
    font-size: 14.5px;
    color: var(--text-main);
    font-weight: 500;
}

.sub-link:hover {
    background-color: var(--bg-light);
    color: var(--accent);
    padding-left: 24px;
}

/* 모바일 햄버거 토글 */
.btn-mobile-nav {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn-mobile-nav span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 4. 모바일 전용 오프캔버스 메뉴 */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-body {
    padding: 16px 0;
    flex: 1;
}

.m-gnb-item {
    border-bottom: 1px solid #f1f5f9;
}

.m-gnb-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.m-sub-menu {
    background-color: var(--bg-light);
    padding: 8px 0;
    display: none;
}

.m-sub-link {
    display: block;
    padding: 10px 28px;
    font-size: 15px;
    color: var(--text-main);
}

/* 5. 메인 히어로 비주얼 배너 (2열 반응형 그리드 & 원 사이트 자산 결합) */
.hero-slider-section {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 33, 72, 0.93) 0%, rgba(31, 64, 137, 0.88) 50%, rgba(2, 132, 199, 0.82) 100%),
                url('/assets/images/main/bg_main_visual.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 70px 0 100px;
    overflow: hidden;
}

.hero-grid-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-desc {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
    word-break: keep-all;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-stats-row {
    display: flex;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

/* 우측 대표 비주얼 쇼케이스 카드 */
.hero-visual-card {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease;
}

.hero-visual-card:hover {
    transform: translateY(-4px);
}

.hero-visual-frame {
    width: 100%;
    height: 310px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.hero-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.hero-visual-card:hover .hero-visual-frame img {
    transform: scale(1.04);
}

.hero-visual-caption {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
}

.hero-visual-tag {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-visual-dots {
    display: flex;
    gap: 6px;
}

.hero-visual-dot {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
    padding: 0;
}

.hero-visual-dot.active {
    background: #38bdf8;
    width: 32px;
}

@media (max-width: 991px) {
    .hero-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-visual-frame {
        height: 240px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 15.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 6. 메인 퀵 카드 그리드 (6대 핵심 메뉴) */
.quick-menu-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

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

.quick-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 25px -5px rgba(31, 64, 137, 0.15);
    border-color: var(--accent);
}

.quick-card .card-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.quick-card .card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.quick-card:hover .card-icon img {
    transform: scale(1.15);
}

.quick-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--white);
}

.quick-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.quick-card .card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* 7. 최신 공지 & 갤러리 섹션 */
.board-preview-section {
    padding: 40px 0 70px;
    background-color: var(--bg-light);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 4px;
}

.board-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

/* 공지사항 리스트 박스 */
.notice-box {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.box-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.box-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.btn-more {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-more:hover {
    color: var(--accent);
}

.notice-list li {
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.notice-item-title {
    font-size: 15.5px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.notice-item-link:hover .notice-item-title {
    color: var(--accent);
}

.notice-item-date {
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* 갤러리 카드 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-thumb-wrap {
    height: 150px;
    background-color: var(--bg-gray);
    overflow: hidden;
    position: relative;
}

.gallery-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb-wrap img {
    transform: scale(1.06);
}

.gallery-card-body {
    padding: 14px 16px;
}

.gallery-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.gallery-card:hover .gallery-card-title {
    color: var(--accent);
}

.gallery-card-date {
    font-size: 12.5px;
    color: var(--text-light);
}

/* 8. 기관 연혁 타임라인 배너 */
.history-banner-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1f4089, #162f65);
    color: var(--white);
}

.history-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.history-banner-text h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.history-banner-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

/* 9. 푸터 영역 */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 0 30px;
    font-size: 14px;
}

.footer-top-policy {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #1e293b;
    flex-wrap: wrap;
}

.footer-policy-link {
    color: #cbd5e1;
    font-weight: 600;
}

.footer-policy-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-policy-link.highlight {
    color: #38bdf8;
}

.footer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-org-info p {
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-org-info strong {
    color: #e2e8f0;
}

.footer-family-select {
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
}

.footer-copy {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* 10. 모바일 하단 플로팅 퀵 액션바 */
.mobile-floating-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 990;
    padding: 8px 0;
}

.mobile-floating-bar ul {
    display: flex;
    justify-content: space-around;
}

.mobile-floating-bar li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-main);
    gap: 4px;
}

.mobile-floating-bar li a span.icon {
    font-size: 18px;
    color: var(--primary);
}

/* 11. 반응형 미디어 쿼리 */
@media (max-width: 1199px) {
    .quick-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .board-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .top-util-bar {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .btn-mobile-nav {
        display: flex;
    }
    .hero-title {
        font-size: 34px;
    }
    .history-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 60px; /* 플로팅바 높이 */
    }
    .mobile-floating-bar {
        display: block;
    }
    .quick-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .section-title {
        font-size: 24px;
    }
    .footer-info-row {
        flex-direction: column;
    }
}
