/**
 * 정적 소개 페이지 공통 레이아웃 (greeting, federation*)
 */

.static-page {
    background: var(--gywf-surface);
}

.static-page-hero {
    min-height: var(--gywf-hero-height);
    background-image: url('/img/bg.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.static-page-hero .static-page-hero-inner {
    width: 100%;
    padding: 2rem 0 1.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
}

.static-page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0;
}

.static-page-hero .lead {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    opacity: 0.95;
    max-width: 42rem;
}

.static-page-body {
    max-width: var(--gywf-container-max);
}

.static-page-content {
    background: var(--gywf-surface-elevated);
    border: 1px solid var(--gywf-border);
    border-radius: var(--gywf-radius-lg);
    padding: 1.5rem;
    line-height: 1.75;
    font-size: 1rem;
}

.legal-document h2 {
    margin: 1.75rem 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gywf-brand-dark);
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document p {
    margin-bottom: 0.85rem;
    color: var(--gywf-text);
}

.legal-document ol {
    margin: 0 0 0.85rem;
    padding-left: 1.35rem;
}

.legal-document ol li {
    margin-bottom: 0.45rem;
}

.legal-document ol li.legal-sub {
    list-style-type: hangul;
}

.static-page-content p {
    margin-bottom: 1rem;
}

.static-page-signature {
    font-size: 1.1rem;
    text-align: right;
    font-weight: 600;
    margin-top: 1.5rem;
}

.static-page-aside img {
    width: 100%;
    height: auto;
    border-radius: var(--gywf-radius-lg);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.static-org-table {
    width: 100%;
    font-size: 0.9375rem;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.static-org-table thead th {
    background: var(--gywf-brand-dark, #146c43);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.7rem 0.85rem;
    border: 0;
    white-space: nowrap;
}

.static-org-table thead th:first-child {
    border-radius: 0.65rem 0 0 0;
}

.static-org-table thead th:last-child {
    border-radius: 0 0.65rem 0 0;
}

.static-org-table tbody th,
.static-org-table tbody td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--gywf-border, #e9ecef);
    vertical-align: middle;
}

.static-org-table tbody tr:last-child th,
.static-org-table tbody tr:last-child td {
    border-bottom: 0;
}

.static-org-table .org-th-role {
    background: var(--gywf-brand-light, #d1e7dd);
    color: var(--gywf-brand-dark, #146c43);
    font-weight: 700;
    white-space: nowrap;
    width: 7.5rem;
    text-align: center;
}

.static-org-table .org-td-name {
    color: var(--gywf-text, #212529);
    font-weight: 500;
}

.static-org-table .org-td-label {
    color: var(--gywf-text, #212529);
    font-weight: 600;
    background: var(--gywf-surface, #f8f9fa);
}

.static-org-table .org-td-note {
    width: 4.5rem;
    color: var(--gywf-text-muted, #6c757d);
}

.static-org-table--committee .org-td-label {
    min-width: 8.5rem;
}

.static-page-content--table {
    padding: 0;
    overflow: hidden;
}

.static-page-content--table .table-responsive {
    margin: 0;
}

.static-org {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.static-org-section__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gywf-brand-dark, #146c43);
    letter-spacing: -0.02em;
}

.static-org-section__title .bi {
    font-size: 1.1rem;
}

/* ── 오시는길 ── */
.static-office {
    display: grid;
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.static-office__info {
    display: grid;
    gap: 1rem;
}

.static-office-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gywf-brand-dark, #146c43);
}

.static-office-card__title .bi {
    font-size: 1.05rem;
}

.static-office-card__address {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--gywf-text, #212529);
}

.static-office-card__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gywf-brand-dark, #146c43);
    text-decoration: none;
}

.static-office-card__map-link:hover {
    color: var(--gywf-brand, #198754);
    text-decoration: underline;
}

.static-office-transport {
    display: grid;
    gap: 0.75rem;
}

.static-office-transport li {
    display: grid;
    gap: 0.25rem;
}

.static-office-transport__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gywf-brand-dark, #146c43);
}

.static-office-transport__value {
    font-size: 0.9375rem;
    color: var(--gywf-text, #212529);
    line-height: 1.5;
}

.static-office-map__card {
    background: var(--gywf-surface-elevated, #fff);
    border: 1px solid var(--gywf-border, #dee2e6);
    border-radius: var(--gywf-radius-lg, 0.85rem);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.static-office-map__card iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}

/* ── 건강정보 ── */
.static-health {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.static-health-intro {
    margin-bottom: 0.25rem;
}

.static-health-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gywf-brand-dark, #146c43);
}

.static-health-card__title .bi {
    font-size: 1.05rem;
}

.static-health-card__list {
    padding-left: 1.15rem;
    color: var(--gywf-text, #212529);
    line-height: 1.65;
}

.static-health-card__list li + li {
    margin-top: 0.45rem;
}

@media (min-width: 768px) {
    .static-office {
        max-width: none;
    }

    .static-office__info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .static-office-map__card iframe {
        min-height: 420px;
    }
}

/* legacy federation1 클래스 호환 */
table.ftable {
    width: 100%;
    font-size: 0.95rem;
    border-collapse: collapse;
}

table.ftable th,
table.ftable td {
    border: 1px solid var(--gywf-border, #dee2e6);
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

table.ftable .ftd1 {
    background: var(--gywf-brand-light, #d1e7dd);
    color: var(--gywf-brand-dark, #146c43);
    font-weight: 700;
}

table.ftable tr > td.ftd1[colspan="3"] {
    background: var(--gywf-brand-dark, #146c43);
    color: #fff;
    text-align: center;
}

table.ftable .ftd2 {
    background: var(--gywf-surface-elevated, #fff);
}

table.ftable .ftd3 {
    background: var(--gywf-surface-elevated, #fff);
    width: 18%;
}

.static-page-placeholder {
    color: var(--gywf-text-muted);
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--gywf-border);
    border-radius: var(--gywf-radius);
    background: var(--gywf-surface-elevated);
}

@media (min-width: 992px) {
    .static-page-hero {
        min-height: var(--gywf-hero-height-lg);
    }
}

@media (max-width: 991.98px) {
    .static-page-hero {
        background-image: url('/img/bgm.webp');
        padding: 0 20px;
    }

    .static-page-content {
        padding: 1.25rem;
    }
}

.bigPictureWrapper {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.bigPictureWrapper.is-open {
    display: flex;
}

.bigPictureWrapper .bigPicture {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.bigPictureWrapper .bigPicture img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 960px);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    object-fit: contain;
    touch-action: none;
}

html.course-lightbox-open,
body.course-lightbox-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

.course-page-content .img-course {
    cursor: zoom-in;
}

.course-gallery .img-course {
    max-height: 220px;
    object-fit: cover;
    width: 100%;
}
