/*
Theme Name: Arbutus Child
Theme URI: http://themes.halsey.co/arbutus/
Template: arbutus
Author: Nick Halsey
Author URI: https://celloexpressions.com/
Description: Arbutus is a minimalist photography theme...
Tags: one-column,custom-colors,...
Version: 1.6.1761534212
Updated: 2026-01-03 23:30:00
*/

/* ========================================
   1. 전체 레이아웃 & 가운데 정렬 강제화
   ======================================== */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #ffffff !important;
}

#page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 본문 스크롤 영역 */
#content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 0 120px;
    width: 100%;
}

/* 부모 테마의 float를 깨고 
   모든 포스트 컨테이너를 중앙으로 정렬 
*/
#primary {
    float: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}
/*
.site-main {
    float: none !important;
    margin: 0 auto !important;
    max-width: 800px;
    padding: 0 20px;
    display: block !important;
}
*/

.site-main {
    max-width: 100%;
    padding: 0;
	display: flex !important;
    flex-direction: column;
    align-items: center;
}


/* ========================================
   2. 개별 포스트 아이템 (가운데 정렬)
   ======================================== */
.post-item {
    max-width: 680px;          /* Surf 카드 폭 */
    width: 100%;
    margin: 0 auto 80px;       /* 가운데 정렬 + 카드 간격 */
    
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;

    margin-left: auto !important;
    margin-right: auto !important;

    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/*
.post-image {
    display: block;
    margin: 0 auto !important;
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
    background: #f9f9f9;
}
*/
.post-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    border-radius: 14px;
    overflow: hidden;
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.post-text {
    margin-top: 5px;
    padding: 0 4px;
    text-align: center;
}

/* ========================================
   Post Separator (between cards)
   ======================================== */
.post-separator {
    display: block;
    width: 100%;
    max-width: 680px;

    height: 1px;
    border: 0;
    background: #eaeaea;

    margin: 0 auto 80px; /* 카드 아래 여백 대체 */
}


.first-image { position: relative; z-index: 2; }
.second-image { position: absolute; top: 0; left: 0; z-index: 1; opacity: 0; }

/* 호버 리액션 제거: .active(클릭) 시에만 작동 */
.post-image.active .first-image { opacity: 0; }
.post-image.active .second-image { opacity: 1; z-index: 3; }

.post-text {
    width: 100%;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 1px 0; /* margin collapse 방지 */
}

.post-text h2 {
    font-weight: bold !important;
    font-family: 'Arial', sans-serif !important;
    font-size: 1.1em !important;
    color: #222 !important;
    margin: 0px 0 !important;
}

.post-text p {
    margin-top: 0;
}

/* ========================================
   3. K-pop SAGA (리스트 & 상세 페이지)
   ======================================== */
.saga-archive { max-width: 850px; margin: 0 auto; padding: 40px 20px; }
.saga-item { display: flex; gap: 30px; margin-bottom: 40px; text-decoration: none; color: inherit; align-items: flex-start; }
.saga-thumbnail { flex: 0 0 35%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; }
.saga-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.saga-content { flex: 1; text-align: left; }
.saga-content h2 { font-size: 1.4em !important; font-weight: 800 !important; margin: 0 0 12px 0 !important; line-height: 1.3; }
.saga-excerpt { font-size: 0.95em; color: #666; line-height: 1.7; }

/* SAGA 상세 페이지 */
body.single-saga { background: #ffffff !important; }
.single-saga .entry-header, .single-saga .entry-meta { display: none !important; }
.single-saga .entry-content { max-width: 700px; margin: 60px auto !important; padding: 0 20px; float: none !important; }

/* K-pop SAGA 상세 페이지에서 이전/다음 글 네비게이션 제거 */
body.single-saga .post-navigation,
body.single-saga .navigation.post-navigation,
body.single-saga nav.navigation {
    display: none !important;
}

/* ========================================
   4. Surf, Memo & 공통 요소
   ======================================== */
.surf-container { max-width: 700px; margin: 40px auto; padding: 0 20px; }
.post-separator { border: 0; height: 1px; background: #eee; margin: 60px auto; width: 100%; max-width: 800px; }

@media (max-width: 600px) {
    .saga-item { flex-direction: column; gap: 15px; }
    .saga-thumbnail { flex: 0 0 100%; width: 100%; }
}
@media (max-width: 768px) {
    .post-item {
        max-width: 92vw;
        padding: 22px;
    }
}
/* ========================================
   Post Board Footer Bar (Fixed)
   ======================================== */
.post-board-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    height: 64px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

.board-footer-text {
    font-size: 0.8em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777;
    white-space: nowrap;
}

.board-footer-btn {
    padding: 10px 28px;
    border-radius: 999px;

    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;

    background: #111;
    color: #fff;
    border: 1px solid #111;

    transition: all 0.25s ease;
}

.board-footer-btn:hover {
    background: #000;
}


/* 콘텐츠 가림 방지 */
#content {
    padding-bottom: 100px;
}

.site-footer,
footer {
    display: none !important;
}

/* ========================================
   Surf Page
   ======================================== */
body.page-id-297 .surf-container {
    margin-top: 0px;   /* 기존 40px → 10px */
	margin-bottom: 0px;
}

body.page-id-297 .post-item {
    margin-top: 10px;      /* 첫 카드 위 여백 제거 */
	margin-bottom: 10px;
}

/* ========================================
   Surf Page: Keep Surfing Button
   ======================================== */
.surf-keep-button-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.surf-keep-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 999px;

    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;

    color: #fff;
    background: #111;
    border: 1px solid #ddd;

    transition: all 0.25s ease;
}

.surf-keep-btn:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* ========================================
   Memo Page (Contact Us)
   ======================================== */

.memo-container {
    max-width: 680px;
    margin: 80px auto 120px;
    padding: 0 20px;
}

.memo-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px 40px;

    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    text-align: center;
}

/* Title & description */
.memo-title {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.memo-desc {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 32px;
}

/* Success message */
.memo-success {
    margin-bottom: 24px;
    font-size: 0.9em;
    color: #2e7d32;
    font-weight: 600;
}

/* Form fields */
.memo-field {
    margin-bottom: 24px;
    text-align: left;
}

.memo-field label {
    display: block;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}

.memo-field input,
.memo-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 0.95em;
    font-family: inherit;
    background: #fafafa;

    transition: border-color 0.2s ease, background 0.2s ease;
}

.memo-field textarea {
    resize: vertical;
}

.memo-field input:focus,
.memo-field textarea:focus {
    outline: none;
    border-color: #111;
    background: #fff;
}

/* Submit button */
.memo-submit {
    margin-top: 12px;

    padding: 14px 36px;
    border-radius: 999px;
    border: 1px solid #111;

    background: #111;
    color: #fff;

    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;

    transition: all 0.25s ease;
}

.memo-submit:hover {
    background: #fff;
    color: #111;
}

/* Mobile */
@media (max-width: 768px) {
    .memo-card {
        padding: 28px 22px 32px;
    }
}
/* =================================================
   Vocab
   ================================================= */
/* Vocab Single Page */
.vocab-single-container {
    max-width: 800px;
    margin: 80px auto 140px;
    padding: 0 20px;
}

.vocab-word {
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
    font-size: 1.8em;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: #111;
    letter-spacing: -0.02em;
    text-align: left;
}

.vocab-description {
    font-size: 1.25em;
    line-height: 1.75;
    color: #222;
    text-align: left;
    margin-bottom: 40px;
}

.vocab-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 80px 0 140px;
    width: 100%;
    gap: 20px;
}

.vocab-navigation .prev-wrap,
.vocab-navigation .next-wrap {
    flex: 1;
}

.vocab-navigation .prev-wrap { text-align: left; }
.vocab-navigation .next-wrap { text-align: right; }

.vocab-navigation a,
.vocab-navigation span.disabled {
    padding: 14px 36px;
    min-width: 140px;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: #111;
    color: #fff !important;
    transition: all 0.25s ease;
    display: inline-block;
}

.vocab-navigation a:hover {
    background: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.vocab-navigation span.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #333;
}

/* 모바일 (iPhone SE 2 기준으로 375px 이하 조정) */
@media (max-width: 480px) {  /* 375px 포함해서 넉넉히 */
    .vocab-single-container {
        padding: 0 16px;
        margin: 60px auto 100px;
    }
    .vocab-word {
        font-size: 1.8em;
    }
    .vocab-description {
        font-size: 1.1em;
        line-height: 1.6;
    }
    .vocab-navigation a,
    .vocab-navigation span.disabled {
        padding: 12px 24px;
        min-width: 110px;
        font-size: 0.9em;
    }
}
/* =================================================
   HEADER RESET & BASE
   ================================================= */


.site-header {
    position: relative;
    width: 100%;
    background: #000;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    white-space: nowrap; /* 🔥 줄바꿈 방지 */
}

/* =================================================
   SITE BRANDING
   ================================================= */

.site-branding {
    display: block;
}

.site-title {
    margin: 0;
}

.site-title a {
    font-family: Raleway, sans-serif;
    font-size: 32px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

/* =================================================
   DESKTOP NAV (DEFAULT)
   ================================================= */

.main-nav {
    display: block;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    display: inline-block;
    margin-left: 24px; /* ✅ gap 대신 margin */
    white-space: nowrap;
}

.main-nav li:first-child {
    margin-left: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    padding: 6px 0;
    display: inline-block;
}

/* 햄버거 버튼 기본 숨김 (데스크탑) */
#mobile-menu-toggle {
    display: none;
}

/* =================================================
   MOBILE ONLY (모든 중복 통합 & 세로 메뉴 강제)
   ================================================= */
@media (max-width: 768px) {
    body {
        overflow: visible;
    }

    .site-header,
    .site-header-inner {
        overflow: visible;
        position: relative;
    }

    .site-header-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* 왼쪽부터 시작 */
        gap: 12px;                   /* 버튼-로고 간격 적당히 */
        padding: 12px 16px;
    }

    /* 햄버거 버튼 왼쪽 고정 */
    #mobile-menu-toggle {
        display: block;
        margin-right: 12px;
        font-size: 28px;
        background: none;
        border: 0;
        color: #fff;
        cursor: pointer;
        line-height: 1;
        padding: 0;
    }

    .site-branding {
        flex: 1;
        text-align: left;
        margin: 0;
    }

    .site-title {
        margin: 0;
        text-align: left;
    }

    /* 데스크탑 메뉴 숨기기 */
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px); /* border-top과 겹치지 않게 */
        left: 0;
        width: 100%;
        background: #000;
        border-top: 1px solid rgba(255,255,255,0.15);
        z-index: 9999;
        padding: 0;
    }

    .main-nav.open {
        display: block;
    }

    /* 메뉴 세로 정렬 강제 적용 */
    .main-nav.open ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px;                     /* 메뉴 아이템 간격 */
        margin: 0;
        padding: 20px 0;
        list-style: none;
    }

    .main-nav.open li {
        display: block !important;
        margin: 0 !important;
        width: 100%;
        padding: 0 20px;
    }

    .main-nav.open a {
        display: block !important;
        padding: 14px 0;
        font-size: 1.1em;
        color: #fff;
        text-decoration: none;
    }
}
/*
   QUIZ – Layout
 

.quiz-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.quiz-card {
    padding: 30px 28px;
    border-radius: 18px;

    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

 제목 박스 제거 느낌 
.quiz-title {
    display: none;
} */

/* =================================================
   QUIZ
   ================================================= */

/* ===============================
   QUIZ – Layout
   =============================== */

.quiz-container {
    max-width: 700px;
    /* margin: 60px auto; */
    padding: 0 20px;
}

.quiz-card {
    padding: 30px 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.quiz-title {
    display: none;
}

/* ===============================
   QUIZ – Question
   =============================== */

#quiz-question {
    margin-bottom: 24px;
}

#quiz-description {
    text-align: left;
    font-size: 1.05em;
    line-height: 1.65;
    color: #222;
    margin-bottom: 18px;
}

/* ===============================
   QUIZ – Input
   =============================== */

.quiz-input-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto 20px;
}

#quiz-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-size: 1.4em;
    text-align: center;

    border: 2px solid #111;
    border-radius: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

#quiz-input.correct {
    border-color: #2ecc71;
}

#quiz-input.wrong {
    border-color: #e74c3c;
}

/* ===============================
   Backspace
   =============================== */

#quiz-backspace {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    padding: 6px;
    z-index: 2;
}

#quiz-backspace:hover {
    color: #111;
}

/* ===============================
   Shake Animation
   =============================== */

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-6px); }
}

.shake {
    animation: shake 0.45s;
}

/* ===============================
   Keyboard Wrapper (NEW)
   =============================== */

.keyboard-wrapper {
    position: relative;
}

/* ===============================
   Correct Overlay (Overlay Mode)
   =============================== */

.correct-overlay {
    display: none;

    position: absolute;
    inset: 0;

    background: rgba(46, 204, 113, 0.85); /* 반투명 초록 */
    backdrop-filter: blur(3px);

    color: #fff;
    font-weight: 700;
    font-size: 1.4em;

    align-items: center;
    justify-content: center;

    border-radius: 16px;
    z-index: 10;
}

/* ===============================
   Keyboard
   =============================== */

.quiz-keyboard {
    margin-top: 20px;
}

.quiz-keyboard .kb-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
}

@media (max-width: 640px) {
    .quiz-keyboard .kb-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

.quiz-keyboard .kb-btn {
    padding: 12px 0;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0,0,0,0.06);
    color: #111;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-keyboard .kb-btn:hover {
    background: #111;
    color: #fff;
}

/* ===============================
   Buttons
   =============================== */

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.quiz-main-btn,
.quiz-sub-btn {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quiz-main-btn:hover,
.quiz-sub-btn:hover {
    background: #fff;
    color: #111;
    transform: translateY(-1px);
}

.quiz-sub-btn {
    opacity: 0.75;
}

.quiz-sub-btn:hover {
    opacity: 1;
}