/*
Theme Name: Planc Blog A
Theme URI: https://demo-01.studioplanc.com
Author: Studio Planc
Author URI: https://studioplanc.com
Description: A clean, minimal blog theme for studioplanc.com.
Version: 1.0.0
Text Domain: studioplanc-blog
*/

/* ============================================
   0. CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 17px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #1c1c1c !important;
    line-height: 1.6;
}

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

a:hover {
    color: #1c1c1c;
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1c1c1c;
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: 17px !important;
    line-height: 1.7;
}

/* ============================================
   1. HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {}

.header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 65px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo svg {
    flex-shrink: 0;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-name {
    font-size: 15px;
    font-weight: 700;
    color: rgb(30, 40, 50);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.header-account {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #1c1c1c;
    transition: opacity 0.15s ease;
}

.header-account:hover {
    opacity: 0.6;
}

.main-nav {
    display: flex;
    align-items: center;
}

/* 1차 메뉴 리스트 */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 65px;
    list-style: none;
}

/* 1차 메뉴 li — 드롭다운 기준점 */
.main-nav .nav-list>li {
    position: relative;
}

/* 1차 링크 */
.main-nav .nav-list>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1c1c1c;
    transition: opacity 0.15s ease;
    position: relative;
    white-space: nowrap;
}

/* ::after 언더라인 제거 */
.main-nav a::after {
    display: none;
}

.main-nav .nav-list>li>a:hover {
    opacity: 0.6;
    color: #1c1c1c;
}

/* has-children 화살표 */
.main-nav .nav-list>li.menu-item-has-children>a::before {
    display: none;
}

.main-nav .nav-list>li.menu-item-has-children:hover>a::before {
    display: none;
}


/* ---- 드롭다운 서브메뉴 ---- */
.main-nav .nav-list>li>.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 180px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 200;
    pointer-events: none;
}

.main-nav .nav-list>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* hover gap 브릿지 — ::after로 높이 변화 없이 마우스 이탈 방지 */
.main-nav .nav-list>li.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.main-nav .nav-list>li.menu-item-has-children>.sub-menu {
    top: calc(100% + 8px);
}

/* 서브메뉴 링크 */
.main-nav .nav-list>li>.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #1c1c1c;
    transition: background 0.12s ease;
    white-space: nowrap;
}

.main-nav .nav-list>li>.sub-menu li a:hover {
    background: rgba(0, 0, 0, 0.04);
    opacity: 1;
}





/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1c1c1c;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ============================================
   2. CONTAINER
   ============================================ */
.container {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 32px;
}

.container--narrow {
    max-width: 790px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   3. BLOG HERO / PAGE TITLE
   ============================================ */
.page-hero {
    padding: 60px 0 40px;
}

.page-hero__title {
    font-size: 32px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: -0.5px;
}

.page-hero__desc {
    font-size: 16px;
    color: rgb(141, 150, 161);
    margin-top: 8px;
}

/* ============================================
   4. CATEGORY FILTERS
   ============================================ */
/* ============================================
   4a. ARCHIVE HEADER
   ============================================ */
.archive-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 36px 0 28px;
}

.archive-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #1c1c1c;
    white-space: nowrap;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.archive-header__line {
    display: block;
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
}

.category-filters {

    display: flex;
    align-items: center;
    gap: 8px;
    padding: 28px 0 28px;
    flex-wrap: wrap;
}

.category-filters a {
    font-size: 14px;
    font-weight: 500;
    color: rgb(141, 150, 161);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-filters a:hover,
.category-filters a.active {
    color: #1c1c1c;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ============================================
   5. POST GRID
   ============================================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
    padding: 0 0 80px;
}

/* ============================================
   6. POST CARD
   ============================================ */
.post-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
    border: none;
    overflow: visible;
    transition: none;
    padding: 8px;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 1);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    z-index: 0;
}

.post-card:hover::before {
    opacity: 0.03;
    transform: scale(1);
}

.post-card>* {
    position: relative;
    z-index: 1;
}

.post-card__thumb {
    position: relative;
    padding-bottom: 60.24%;
    /* 5:3 */
    overflow: hidden;
    background: #e8e8e8;
    border-radius: 12px;
}

.post-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.post-card__body {
    padding: 12px 0 16px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 5px;
}

.post-card__category {
    font-size: 14px;
    font-weight: 500;
}

/* Category accent colors */
.cat-team-story {
    color: rgb(240, 71, 133);
}

.cat-session {
    color: rgb(207, 120, 0);
}

.cat-news {
    color: rgb(0, 122, 230);
}

.cat-tips {
    color: rgb(143, 64, 222);
}

.cat-design {
    color: rgb(0, 166, 118);
}

.cat-default {
    color: #FF6A0D;
}

.post-card__date {
    font-size: 14px;
    color: rgb(141, 150, 161);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0;
}

/* 카테고리 뒤 세로 라인 구분자 */
.post-card__category+.post-card__date::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background: rgba(141, 150, 161, 0.5);
    margin: 0 8px;
    flex-shrink: 0;
    align-self: center;
}

.post-card__title {
    font-size: 24px;
    font-weight: 600;
    color: #1c1c1c;
    line-height: 1.4;
    margin-bottom: 5px;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__excerpt {
    font-size: 16px;
    color: rgb(141, 150, 161);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

/* ============================================
   7. SINGLE POST
   ============================================ */
.single-header {
    padding: 60px 0 32px;
    text-align: center;
}

.single-header__category {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.single-header__title {
    font-size: 40px;
    font-weight: 700;
    color: #1c1c1c;
    line-height: 1.3;
    letter-spacing: -0.8px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.single-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: rgb(141, 150, 161);
}

.single-header__author {
    font-weight: 500;
    color: #1c1c1c;
}

.single-header__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgb(141, 150, 161);
}

/* Featured Image */
.single-featured {
    margin: 0 auto 48px;
    max-width: 960px;
    border-radius: 12px;
    overflow: hidden;
}

.single-featured img {
    width: 100%;
    height: auto;
}

/* Post Content */
.single-content {
    font-size: 18px;
    line-height: 1.7;
    color: #1c1c1c;
    padding-bottom: 80px;
}

.single-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 90px 0 16px;
    letter-spacing: -0.3px;
}

.single-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 12px;
}

.single-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 8px;
}

.single-content p {
    margin-bottom: 24px;
}

.single-content ul,
.single-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.single-content ul {
    list-style: disc;
}

.single-content ol {
    list-style: decimal;
}

.single-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.single-content blockquote {
    padding: 25px;
    margin: 32px 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 25px;
    color: #1c1c1c;
}

.single-content img {
    border-radius: 8px;
    margin: 32px 0;
}

.single-content a {
    color: rgb(0, 122, 230);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 122, 230, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.single-content a:hover {
    text-decoration-color: rgb(0, 122, 230);
    color: rgb(0, 122, 230);
}

.single-content pre {
    background: #1c1c1c;
    color: #f8f8f8;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.6;
}

.single-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.single-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.single-content figure {
    margin: 32px 0;
}

.single-content figcaption {
    font-size: 14px;
    color: rgb(141, 150, 161);
    text-align: center;
    margin-top: 12px;
}

/* ============================================
   8. SHARE BUTTONS
   ============================================ */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin-top: 48px;
    justify-content: center;
}

.share-bar__label {
    font-size: 14px;
    font-weight: 500;
    color: rgb(141, 150, 161);
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #1c1c1c;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

/* ============================================
   9. POST NAVIGATION
   ============================================ */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 48px 0 80px;
}

.post-nav__item {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.post-nav__item:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.01);
}

.post-nav__label {
    font-size: 12px;
    font-weight: 500;
    color: rgb(141, 150, 161);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.post-nav__title {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1c;
    line-height: 1.4;
}

.post-nav__item--next {
    text-align: right;
}

/* ============================================
   10. PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 80px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1c;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

.pagination .current {
    background: #1c1c1c;
    color: #fff;
    border-color: #1c1c1c;
}

/* ============================================
   11. FOOTER
   ============================================ */
.site-footer {
    background: #f3f4f6;
    padding: 40px 0;
}

.footer-inner {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 14px;
    color: rgb(141, 150, 161);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: rgb(141, 150, 161);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1c1c1c;
}

/* ============================================
   12. PAGE TEMPLATE
   ============================================ */
.page-content {
    padding: 60px 0 80px;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.page-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ============================================
   13. 404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 120px 0;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.06);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 18px;
    color: rgb(141, 150, 161);
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    background: #1c1c1c;
    color: #fff;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: rgb(30, 35, 40);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   14. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }

    .single-header__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .menu-toggle.active {
        display: none;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: transparent;
        pointer-events: none;
        visibility: hidden;
        transition: background 0.25s ease, visibility 0.25s;
        z-index: 999;
    }

    /* 딤 오버레이 — ::after 대신 main-nav 자체 배경 사용 */
    .main-nav.open {
        display: block;
        pointer-events: auto;
        visibility: visible;
        background: rgba(0, 0, 0, 0.35);
        transition: background 0.25s ease, visibility 0.25s;
    }

    /* 메뉴 패널 */
    .main-nav .nav-list {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* 왼쪽 정렬 */
        padding: 36px 28px 36px;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
        pointer-events: auto;
    }

    .main-nav.open .nav-list {
        transform: translateY(0);
    }

    /* 카테고리 레이블 */
    .main-nav .nav-list::before {
        content: '카테고리';
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: rgba(44, 51, 58, 0.45);
        letter-spacing: 0.5px;
        margin-bottom: 16px;
        text-align: left;
        width: 100%;
    }

    /* 1차 메뉴 아이템 */
    .main-nav .nav-list>li {
        position: static;
        width: 100%;
    }

    .main-nav .nav-list>li>a {
        display: block;
        padding: 13px 0;
        font-size: 22px;
        font-weight: 700;
        color: #1c1c1c;
        letter-spacing: -0.3px;
        text-align: left;
        opacity: 1;
        transition: opacity 0.15s;
        white-space: nowrap;
    }

    .main-nav .nav-list>li>a:hover {
        opacity: 0.5;
    }

    .main-nav a::after {
        display: none;
    }

    /* 서브메뉴 모바일에서 숨김 */
    .main-nav .nav-list>li>.sub-menu {
        display: none !important;
    }


    .container {
        padding: 0 20px;
    }

    /* 모바일 카드 그리드 → 세로 리스트 */
    .post-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 0;
    }

    /* 카드 → 가로 row 레이아웃 */
    .post-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px 0;
        gap: 0;
    }

    /* 썸네일 <a> 래퍼 — 우측 배치 */
    .post-card>a {
        order: 2;
        flex-shrink: 0;
        margin-left: 16px;
        align-self: flex-start;
    }

    /* 썸네일 — 고정 크기 */
    .post-card__thumb {
        flex-shrink: 0;
        width: 120px;
        height: 72px;
        padding-bottom: 0;
        border-radius: 8px;
        overflow: hidden;
        background: #e8e8e8;
    }

    .post-card__thumb img {
        position: static;
        width: 120px;
        height: 72px;
        object-fit: cover;
        border-radius: 8px;
    }

    /* 썸네일 내 placeholder SVG */
    .post-card__thumb>div {
        position: static !important;
        width: 120px;
        height: 72px;
    }

    /* 본문 — 좌측, flex:1 */
    .post-card__body {
        order: 1;
        flex: 1;
        padding: 0;
        min-width: 0;
    }

    /* 제목 크기 조정 */
    .post-card__title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.45;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    /* 발췌문 표시 */
    .post-card__excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    /* 마지막 카드 구분선 제거 */
    .post-card:last-child {
        border-bottom: none;
    }

    /* hover ::before 오버레이 모바일 비활성화 */
    .post-card::before {
        display: none;
    }


    .page-hero {
        padding: 40px 0 24px;
    }

    .page-hero__title {
        font-size: 26px;
    }

    .single-header {
        padding: 40px 0 24px;
    }

    .single-header__title {
        font-size: 28px;
    }

    .single-content {
        font-size: 16px;
    }

    .single-content h2 {
        font-size: 24px;
    }

    .single-content h3 {
        font-size: 20px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .category-filters {
        gap: 6px;
    }

    .category-filters a {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ============================================
   15. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.post-card:nth-child(1) {
    animation-delay: 0.05s;
}

.post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3) {
    animation-delay: 0.15s;
}

.post-card:nth-child(4) {
    animation-delay: 0.2s;
}

.post-card:nth-child(5) {
    animation-delay: 0.25s;
}

.post-card:nth-child(6) {
    animation-delay: 0.3s;
}

.post-card:nth-child(7) {
    animation-delay: 0.35s;
}

.post-card:nth-child(8) {
    animation-delay: 0.4s;
}

.post-card:nth-child(9) {
    animation-delay: 0.45s;
}

/* Smooth scroll for all transitions */
.single-content {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   16. SCREEN READER TEXT
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* AEO quick answer block */
.aeo-quick-answer {
    margin: 20px 0 36px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fafafa;
}

.aeo-quick-answer h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.aeo-quick-answer ul {
    margin: 0;
    padding-left: 18px;
    color: #1c1c1c;
}

.aeo-quick-answer li {
    margin: 8px 0;
    line-height: 1.6;
}

/* ---- 무한 스크롤 로더 ---- */
.infinite-scroll-loader {
    text-align: center;
    padding: 40px 0;
    width: 100%;
    clear: both;
}

.infinite-scroll-loader .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    border-top-color: #1c1c1c;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-inner {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 65px;
}

/* 상단: 공지사항 + 예약상담 */
.footer-top {
    background: #f3f4f6;
    padding: 64px 0 56px;
}

.footer-top-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.footer-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}

.footer-section-sub {
    font-size: 14px;
    color: #1c1c1c;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* 공지사항 kboard 영역 */
.footer-notice-board {
    border-top: 1.5px solid #d0d6dc;
}

.footer-notice-board .kboard-list-wrap table,
.footer-notice-board table {
    width: 100%;
    border-collapse: collapse;
}

.footer-notice-board .kboard-list-wrap tbody tr,
.footer-notice-board tbody tr {
    border-bottom: 1px solid #eaeef2;
}

.footer-notice-board .kboard-list-wrap tbody tr td.title a,
.footer-notice-board tbody tr td a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: #1c1c1c;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.footer-notice-board .kboard-list-wrap tbody tr td.title a:hover,
.footer-notice-board tbody tr td a:hover {
    color: #1B8EC9;
}

.footer-notice-board thead,
.footer-notice-board .kboard-list-wrap thead,
.footer-notice-board tfoot,
.footer-notice-board .kboard-pagination,
.footer-notice-board td.number,
.footer-notice-board th.number,
.footer-notice-board td.date,
.footer-notice-board th.date,
.footer-notice-board td.writer,
.footer-notice-board th.writer,
.footer-notice-board td.hit,
.footer-notice-board th.hit {
    display: none !important;
}

/* 예약 상담 */
.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 30px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
    line-height: 1;
}

.footer-phone:hover {
    color: #1B8EC9;
}

.footer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: opacity 0.15s;
}

.footer-btn:hover {
    opacity: 0.85;
}

.footer-btn-naver {
    background: #03C75A;
    color: #fff;
}

.footer-btn-talktalk {
    background: #e8e8e8;
    color: #1c1c1c;
}

/* 하단: 로고 + 사업자정보 */
.footer-bottom {
    background: #f4f6f8;
    padding: 36px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.footer-logo-name {
    font-size: 15px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: -0.3px;
}

.footer-address {
    font-size: 13px;
    color: #1c1c1c;
    margin-bottom: 6px;
    line-height: 1.5;
}

.footer-biz {
    font-size: 13px;
    color: #1c1c1c !important;
    line-height: 1.6;
}

.footer-biz strong {
    color: #1c1c1c;
    font-weight: 600;
    margin-right: 4px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.footer-nav a {
    font-size: 13px;
    color: #1c1c1c;
    white-space: nowrap;
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: #1B8EC9;
}

/* 모바일 푸터 */
@media (max-width: 768px) {
    .footer-inner {
        padding: 0 20px;
    }

    .footer-top-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-phone {
        font-size: 24px;
    }
}

/* ---- Reading Progress Bar ---- */
.reading-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: #FF6A0D;
    /* KakaoBank style color or brand color */
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ---- HR Tag ---- */
hr {
    border: none;
    border-top: 1px solid rgba(36, 42, 48, 0.06);
    /* 또는 어울리는 색상과 굵기 */
    margin: 70px 0;
    /* 위아래 여백 */
}

/* ============================================
   원장 프로필 섹션
   ============================================ */
.home-staff {
    padding: 100px 0;
    background: #fff;
}

.staff-inner {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 65px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
}

/* 좌측 */
.staff-subtit {
    font-size: 12px;
    font-weight: 700;
    color: #1B8EC9;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.staff-tit {
    font-size: 45px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: 0;
    line-height: 1.4;
    margin-bottom: 16px;
}

.staff-desc {
    font-size: 15px;
    color: #1c1c1c;
    line-height: 1.7;
    margin-bottom: 48px;
}

.staff-quote {
    font-size: 18px;
    font-weight: 500;
    color: #1c1c1c;
    line-height: 1.75;
    margin-bottom: 48px;
    font-style: normal;
}

.staff-name {
    font-size: 24px;
    font-weight: 800;
    color: #1c1c1c;
    letter-spacing: -0.4px;
    margin-bottom: 20px;
}

.staff-name span {
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1c;
    margin-left: 6px;
}

.staff-career {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
    list-style: none;
    padding: 0;
    padding-top: 20px;
}

.staff-career li {
    font-size: 17px;
    color: #1c1c1c !important;
    line-height: 1.6;
    padding-left: 12px;
    position: relative;
}

.staff-career li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #1B8EC9;
    font-weight: 700;
}

/* 우측 사진 */
.staff-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #eaeef2;
}

.staff-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

@media (max-width: 900px) {
    .staff-inner {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 48px;
    }

    .staff-right {
        order: -1;
    }

    .staff-photo img {
        max-height: 400px;
        object-fit: cover;
    }

    .staff-tit {
        font-size: 45px;
    }

    .staff-career {
        grid-template-columns: 1fr;
    }

    .home-staff {
        padding: 64px 0;
    }
}

/* ============================================
   홈 둘러보기 (Tour) 섹션
   ============================================ */
.home-tour {
    padding: 96px 0 0;
    overflow: hidden;
}

.tour-inner {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 65px;
}

.tour-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.tour-subtit {
    font-size: 13px;
    font-weight: 700;
    color: #1B8EC9;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tour-tit {
    font-size: 45px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: 0;
    line-height: 1.4;
    margin-bottom: 14px;
}

.tour-txt {
    font-size: 15px;
    color: #1c1c1c;
    line-height: 1.7;
}

.tour-paging {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 40px;
}

.tour-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid #1c1c1c;
    cursor: pointer;
    transition: background 0.25s, fill 0.25s;
    fill: #1c1c1c;
}

.tour-btn svg {
    width: 12px;
}

.tour-btn:hover {
    background: #1c1c1c;
    fill: #fff;
}

/* 슬라이드 */
.tour-slide-wrap {
    padding-left: max(calc((100% - 1408px) / 2 + 65px), 65px);
}

.tour-swiper {
    overflow: visible !important;
}

.tour-item .tour-img {
    position: relative;
    width: 100%;
    padding-top: 65%;
    border-radius: 12px;
    overflow: hidden;
    background: #eaeef2;
}

.tour-item .tour-img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 프로그레스바 */
.tour-progress {
    position: relative;
    height: 2px;
    background: #e6e9ed;
    margin-top: 36px;
    margin-bottom: 80px;
}

.tour-progress .swiper-pagination-progressbar-fill {
    background: #1B8EC9;
}

.swiper-pagination-progressbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .home-tour {
        padding: 64px 0 0;
    }

    .tour-inner {
        padding: 0 20px;
    }

    .tour-tit {
        font-size: 45px;
    }

    .tour-paging {
        display: none;
    }

    .tour-slide-wrap {
        padding-left: 20px;
    }
}

/* ============================================
   홈 FAQ 섹션
   ============================================ */
.home-faq {
    padding: 96px 0;
    background: #fff;
}

.faq-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 65px;
}

.faq-head {
    text-align: center;
    margin-bottom: 52px;
}

.faq-subtit {
    font-size: 13px;
    font-weight: 700;
    color: #1B8EC9;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.faq-tit {
    font-size: 45px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: 0;
    line-height: 1.4;
}

/* 아코디언 리스트 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-row {
    background: #f4f6f8;
    border-radius: 60px;
    transition: background 0.3s, border-radius 0.3s, color 0.3s;
    overflow: hidden;
}

.faq-row.active {
    background: #1B8EC9;
    border-radius: 16px;
    color: #fff;
}

.faq-que {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 32px;
    cursor: pointer;
}

.faq-row.active .faq-que {
    padding-bottom: 14px;
}

.faq-qtit {
    font-size: 17px;
    font-weight: 700;
    color: #1c1c1c;
    padding-left: 36px;
    position: relative;
    line-height: 1.4;
    transition: color 0.3s;
}

.faq-qtit::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    top: 0;
    color: #1B8EC9;
    font-weight: 800;
    transition: color 0.3s;
}

.faq-row.active .faq-qtit {
    color: #fff;
}

.faq-row.active .faq-qtit::before {
    color: #fff;
}

.faq-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.faq-ico {
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%238d96a1"><path d="M256 429.3l22.6-22.6 192-192L493.3 192 448 146.7l-22.6 22.6L256 338.7 86.6 169.4 64 146.7 18.7 192l22.6 22.6 192 192L256 429.3z"/></svg>') center/contain no-repeat;
    transition: transform 0.3s, background 0.3s;
}

.faq-row.active .faq-ico {
    transform: rotate(-180deg);
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%23ffffff"><path d="M256 429.3l22.6-22.6 192-192L493.3 192 448 146.7l-22.6 22.6L256 338.7 86.6 169.4 64 146.7 18.7 192l22.6 22.6 192 192L256 429.3z"/></svg>') center/contain no-repeat;
}

.faq-ans {
    display: none;
    padding: 0 32px 28px calc(32px + 36px);
}

.faq-ans p {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

/* 자세히보기 버튼 */
.faq-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.faq-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 40px;
    border: 1.5px solid #d0d6dc;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1c;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.faq-more-btn:hover {
    border-color: #1B8EC9;
    color: #1B8EC9;
}

@media (max-width: 768px) {
    .faq-inner {
        padding: 0 20px;
    }

    .home-faq {
        padding: 64px 0;
    }

    .faq-tit {
        font-size: 45px;
    }

    .faq-que {
        padding: 18px 20px;
    }

    .faq-ans {
        padding: 0 20px 22px calc(20px + 36px);
    }
}

/* ============================================
   홈 마퀴 섹션
   ============================================ */
.home-marquee {
    width: 100%;
    overflow: hidden;
    padding: 28px 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marquee-ltr 200s linear infinite;
}

.marquee-track span {
    font-family: 'Poppins', sans-serif;
    font-size: 120px;
    font-weight: 800;
    color: #eceef5;
    letter-spacing: 2%;
    text-transform: uppercase;
    line-height: 1;
    display: inline-block;
}

@keyframes marquee-ltr {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* ============================================
   오시는 길 — 홈 섹션 + 페이지 공통
   ============================================ */
.home-directions {
    padding: 80px 0 100px;
}

.directions-page {
    padding: 80px 0 100px;
}

.directions-inner {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 65px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* 좌측 */
.directions-title {
    font-size: 45px;
    font-weight: 700;
    color: #1c1c1c;
    line-height: 1.4;
    letter-spacing: 0;
    margin-bottom: 16px;
}

.directions-sub {
    font-size: 15px;
    color: #1c1c1c;
    margin-bottom: 40px;
    line-height: 1.6;
}

.directions-hours {
    border-top: 1.5px solid #d0d6dc;
    border-bottom: 1.5px solid #d0d6dc;
    padding: 8px 0;
    margin-bottom: 24px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid #eaeef2;
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table th {
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1c;
    text-align: left;
    width: 130px;
}

.hours-table td {
    padding: 14px 0;
    font-size: 15px;
    color: #1c1c1c;
}

.directions-notes {
    list-style: none;
    padding: 0;
}

.directions-notes li {
    font-size: 13px;
    color: #1c1c1c;
    line-height: 1.7;
    padding-left: 12px;
    position: relative;
}

.directions-notes li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #1c1c1c;
}

/* 우측 */
.directions-addr-title {
    font-size: 18px;
    font-weight: 700;
    color: #1c1c1c;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.directions-addr-sub {
    font-size: 14px;
    color: #1c1c1c;
    margin-bottom: 20px;
}

.directions-map {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.directions-map-links {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid #eaeef2;
    padding-top: 16px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1c1c1c;
    font-weight: 500;
    flex: 1;
    justify-content: center;
    padding: 6px 0;
    transition: color 0.15s;
}

.map-link:hover {
    color: #1B8EC9;
}

.map-link-divider {
    width: 1px;
    height: 16px;
    background: #d0d6dc;
}

/* 모바일 */
@media (max-width: 768px) {
    .directions-page {
        padding: 48px 0 64px;
    }

    .directions-inner {
        padding: 0 20px;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .directions-title {
        font-size: 45px;
    }
}
/* ============================================
   홈 장비 섹션
   ============================================ */
.home-equip {
    padding: 100px 0 0;
    background: #EAF0F7;
    overflow: hidden;
}

.equip-inner {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 65px;
}

.equip-head {
    text-align: center;
    margin-bottom: 64px;
}

.equip-tit {
    font-size: 40px;
    font-weight: 700;
    color: #1c1c1c;
    line-height: 1.3;
    margin-bottom: 16px;
}

.equip-desc {
    font-size: 15px;
    color: #5a6272;
    line-height: 1.7;
}

.equip-slide-wrap {
    padding-left: max(calc((100% - 1408px) / 2 + 65px), 65px);
    padding-bottom: 100px;
}

.equip-swiper {
    overflow: visible !important;
    padding-top: 56px !important;
}

.equip-swiper .swiper-wrapper {
    align-items: flex-start;
}

.equip-swiper .swiper-slide {
    height: auto;
    transition: transform 0.5s;
}

.equip-swiper .swiper-slide.stagger-up {
    transform: translateY(-56px);
}

.equip-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.equip-img {
    position: relative;
    width: 100%;
    padding-top: 72%;
    background: #D8E6F2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.equip-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equip-info {
    padding: 20px 22px 24px;
}

.equip-name {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 8px;
}

.equip-txt {
    font-size: 13.5px;
    color: #5a6272;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .home-equip {
        padding: 64px 0 0;
    }

    .equip-inner {
        padding: 0 20px;
    }

    .equip-tit {
        font-size: 28px;
    }

    .equip-slide-wrap {
        padding-left: 20px;
        padding-bottom: 64px;
    }

    .equip-swiper .swiper-slide.stagger-up {
        transform: translateY(-36px);
    }
}
