/*
Theme Name: Planc Basic
Theme URI: https://example.com/planc-basic
Author: Planc
Author URI: https://example.com
Description: 플랜씨 기본 테마 - 커스터마이징 베이스 테마입니다.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: planc-basic
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Pretendard 웹폰트 CDN */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ==================== 기본 리셋 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* ==================== 블로그 폰트 시스템 ==================== */
:root {
    /* 블로그 기준 폰트 크기 (고정 픽셀) */
    --font-size-xs: 12px;
    /* 메타 정보 */
    --font-size-sm: 13px;
    /* 작은 텍스트 */
    --font-size-base: 16px;
    /* 기본/요약 */
    --font-size-md: 18px;
    /* 본문/카테고리 */
    --font-size-lg: 17px;
    /* 활성 카테고리 */
    --font-size-xl: 20px;
    /* 포스트 제목 */
    --font-size-2xl: 24px;
    /* 섹션 제목 */
    --font-size-3xl: 32px;
    /* 페이지 제목 */
    --font-size-4xl: 40px;
    /* 히어로 제목 */

    /* 브랜드 색상 */
    --color-primary: #2F75FF;
    --color-primary-hover: #1B64DA;

    /* 텍스트 색상 (블로그) */
    --text-color: #191F28;
    --text-secondary: #4E5968;
    --text-tertiary: #8B95A1;

    /* 배경 색상 */
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --border-color: #e5e8eb;

    /* 레거시 호환 */
    --primary-color: #191F28;
    --secondary-color: #4E5968;
    --accent-color: #2F75FF;
    --light-text: #8B95A1;
    --bg-light: #F9FAFB;
}

/* 기본 body 스타일 */
body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 폰트 크기 조절 클래스 - CSS 변수 재정의 방식 */
body.font-scale-0 {
    --font-size-xs: 9.6px;
    --font-size-sm: 10.4px;
    --font-size-base: 13.2px;
    --font-size-md: 13.8px;
    --font-size-lg: 13.6px;
    --font-size-xl: 16px;
    --font-size-2xl: 19.2px;
    --font-size-3xl: 25.6px;
    --font-size-4xl: 32px;
}

body.font-scale-1 {
    --font-size-xs: 10.8px;
    --font-size-sm: 11.7px;
    --font-size-base: 14.6px;
    --font-size-md: 15.4px;
    --font-size-lg: 15.3px;
    --font-size-xl: 18px;
    --font-size-2xl: 21.6px;
    --font-size-3xl: 28.8px;
    --font-size-4xl: 36px;
}

body.font-scale-2 {
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 16px;
    --font-size-md: 17px;
    --font-size-lg: 17px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
}

body.font-scale-3 {
    --font-size-xs: 13.2px;
    --font-size-sm: 14.3px;
    --font-size-base: 17.4px;
    --font-size-md: 18.6px;
    --font-size-lg: 18.7px;
    --font-size-xl: 22px;
    --font-size-2xl: 26.4px;
    --font-size-3xl: 35.2px;
    --font-size-4xl: 44px;
}

body.font-scale-4 {
    --font-size-xs: 15px;
    --font-size-sm: 16.25px;
    --font-size-base: 19.5px;
    --font-size-md: 21px;
    --font-size-lg: 21.25px;
    --font-size-xl: 25px;
    --font-size-2xl: 30px;
    --font-size-3xl: 40px;
    --font-size-4xl: 50px;
}

/* ==================== 타이포그래피 - 블로그 스타일 ==================== */

/* 제목들 */
h1,
.h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2,
.h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
}

h3,
.h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4,
.h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.625rem;
}

h5,
.h5 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h6,
.h6 {
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* 본문 텍스트 */
p {
    font-size: var(--font-size-md);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* 리스트 */
ul,
ol {
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 15px;
}

li {
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 인용문 */
blockquote {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    font-style: italic;
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-light);
}

/* 테이블 */
table {
    font-size: var(--font-size-base);
}

th,
td {
    font-size: var(--font-size-base);
    line-height: 1.5;
    padding: 0.75rem;
}

/* 버튼 */
button,
.btn {
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.4;
}

/* 폼 요소들 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
select {
    font-size: var(--font-size-md);
    line-height: 1.4;
}

/* 라벨 */
label {
    font-size: var(--font-size-base);
    line-height: 1.4;
}

/* 작은 텍스트 */
small,
.small,
.caption {
    font-size: var(--font-size-xs);
    line-height: 1.4;
    color: var(--text-tertiary);
}

/* 큰 텍스트 */
.large,
.large-text {
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

/* ==================== 헤더 스타일 ==================== */
.header {
    position: relative;
    width: 100%;
    background: #fff;
}

.header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* 폰트 크기 조절 컨트롤 */
.zoom_font {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.zoom_font .btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: #f8f9fa;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-md);
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
}

.zoom_font .btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.zoom_font .btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 최대/최소 상태 시각적 표시 (선택사항) */
.zoom_font .btn.at-minimum,
.zoom_font .btn.at-maximum {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.zoom_font .btn.at-minimum:hover,
.zoom_font .btn.at-maximum:hover {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.zoom_font .btn svg {
    width: 14px;
    height: 14px;
}

/* '가' 글자 */
.zoom_font .txt {
    min-width: 20px;
    text-align: center;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-color);
    user-select: none;
    margin: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

/* ==================== 레이아웃 ==================== */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    min-width: 0;
    /* grid 아이템이 콘텐츠보다 작아질 수 있게 함 */
    overflow: visible;
}

.section {
    padding: 3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

/* ==================== 데모 스타일 ==================== */
.demo-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.instruction-box {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.instruction-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.font-scale-display {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

.scale-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* ==================== 버튼 ==================== */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #222;
}

/* ==================== 검색 패널 (확장형) ==================== */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: inherit;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-panel.show {
    max-height: 120px;
    padding: 24px 0;
    opacity: 1;
    visibility: visible;
}

.search-panel-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 8px 16px;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 0;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-submit-btn,
.search-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.search-submit-btn:hover,
.search-close-btn:hover {
    background: #f0f0f0;
}

.search-submit-btn svg,
.search-close-btn svg {
    color: #666;
}

.search-submit-btn:hover svg,
.search-close-btn:hover svg {
    color: #333;
}

/* ==================== 모바일 반응형 ==================== */

/* 데스크탑에서 모바일 헤더 숨김 */
.header-mobile {
    display: none !important;
}

/* 모바일에서 데스크탑 헤더 숨김, 모바일 헤더 표시 */
@media (max-width: 768px) {
    :root {
        --font-size-base: 13px;
        --font-size-xl: 16px;
    }

    .header-desktop {
        display: none !important;
    }

    .header-mobile {
        display: flex !important;
        padding: 12px 16px;
        justify-content: space-between;
        align-items: center;
    }

    .header-mobile .logo {
        font-size: 18px;
        font-weight: 700;
    }

    .container {
        padding: 0 1rem;
    }

    .main-content {
        margin-top: 0;
    }
}

/* 모바일 헤더 액션 버튼들 */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mobile-header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
    color: var(--text-color);
}

.mobile-header-btn:hover {
    background: var(--bg-gray);
}

/* 폰트 크기 인라인 컨트롤 (모바일 헤더용) */
.mobile-font-inline {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 4px;
}

.mobile-font-inline-btn {
    width: 18px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mobile-font-inline-btn span {
    font-size: 14px;
    font-weight: 400;
    color: #191F28;
    line-height: 1;
}

.mobile-font-inline-btn:hover,
.mobile-font-inline-btn:active {
    background: #e0e0e0;
}

.mobile-font-inline-label {
    width: 24px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #191F28;
}

/* 햄버거 메뉴 버튼 */
.mobile-menu-btn {
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 모바일 폰트 크기 조절 패널 */
.mobile-font-panel {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 9998;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-font-panel.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-font-panel-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-font-btn-control {
    width: 80px;
    height: 60px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-font-btn-control span {
    font-size: 24px;
    font-weight: 300;
    color: #191F28;
}

.mobile-font-btn-control:hover {
    background: #e8e8e8;
}

.mobile-font-btn-control:active {
    background: #ddd;
}

.mobile-font-display {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.mobile-font-display span {
    font-size: 22px;
    font-weight: 600;
    color: #191F28;
}

/* 모바일 드롭다운 메뉴 (아코디언 스타일) */
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.header.menu-open .mobile-dropdown-menu {
    max-height: 500px;
    /* 충분한 높이 */
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 0 24px 32px;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
}

.mobile-menu-main-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    color: #191F28;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mobile-menu-main-item span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-main-item svg {
    color: #adb5bd;
}

/* 하단 버튼 영역 */
.mobile-menu-footer {
    margin-top: 12px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: #2F75FF;
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-cta-btn.secondary {
    background: #f2f4f6;
    color: #4E5968;
}

.mobile-cta-btn:active {
    transform: scale(0.98);
}

.mobile-cta-btn>a:hover {
    color: inherit !important;
}


/* ==================== 유틸리티 클래스 ==================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* 디버그 정보 */
.debug-info {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: var(--font-size-xs);
    font-family: monospace;
    z-index: 9999;
    display: none;
}

.debug-info.show {
    display: block;
}

/* ==================== 알림 모달창 스타일 ==================== */
.font-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.font-alert-modal.show {
    opacity: 1;
    visibility: visible;
}

.font-alert-modal .modal-content {
    background: white;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90vw;
    min-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.font-alert-modal.show .modal-content {
    transform: scale(1);
}

.font-alert-modal .modal-message {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.font-alert-modal .modal-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.font-alert-modal .modal-button:hover {
    background: #222;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .font-alert-modal .modal-content {
        padding: 30px 25px;
        min-width: 300px;
        margin: 20px;
    }

    .font-alert-modal .modal-message {
        font-size: var(--font-size-md);
        margin-bottom: 25px;
    }

    .font-alert-modal .modal-button {
        padding: 12px 24px;
        font-size: var(--font-size-md);
    }
}

/* ==================== 로그인 모달 스타일 (ludental.co.kr 레퍼런스) ==================== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.show {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.login-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 80px 60px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.login-modal.show .login-modal-content {
    transform: scale(1) translateY(0);
}

.login-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-color);
}

.login-modal-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
}

/* 입력 필드 래퍼 - 아이콘 포함 */
.login-input-wrapper {
    position: relative;
    width: 100%;
}

.login-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    height: 72px;
    padding: 0 20px 0 56px;
    border: 1px solid #BCBFC7;
    border-radius: 8px;
    font-size: var(--font-size-md);
    color: var(--text-color);
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.login-input-wrapper input:focus {
    outline: none;
    border-color: #232323;
    box-shadow: none;
}

.login-input-wrapper input::placeholder {
    color: #B0B8C1;
}

.login-form-error {
    padding: 16px 20px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #DC2626;
    font-size: var(--font-size-base);
    text-align: center;
}

.login-submit-btn {
    width: 100%;
    height: 72px;
    margin-top: 16px;
    background: #232323;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-submit-btn:hover {
    background: #000;
}

.login-submit-btn:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
}

.login-submit-btn.loading {
    position: relative;
    color: transparent;
}

.login-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 하단 링크 영역 */
.login-modal-links {
    margin-top: 28px;
    text-align: center;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.login-modal-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-modal-links a:hover {
    color: var(--color-primary);
}

.login-modal-links .separator {
    margin: 0 16px;
    color: #E5E8EB;
}

/* SNS 소셜 로그인 영역 */
.login-modal-social {
    margin-top: 40px;
}

/* 구분선과 텍스트 */
.social-login-divider {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-login-divider span {
    padding: 0 20px;
    font-size: var(--font-size-base);
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* 소셜 로그인 버튼 */
.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* 기본 소셜 버튼 스타일 */
.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.social-btn svg {
    width: 56px;
    height: 56px;
    padding: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-btn span {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

/* 네이버 버튼 */
.social-btn-naver svg {
    background: #03C75A;
    color: #fff;
}

.social-btn-naver:hover svg {
    background: #02A94D;
}

/* 카카오 버튼 */
.social-btn-kakao svg {
    background: #FEE500;
    color: #3C1E1E;
}

.social-btn-kakao:hover svg {
    background: #F0D800;
}

/* 코스모스팜 소셜 버튼 스타일 오버라이드 */
.login-modal-social .cosmosfarm-members-social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.login-modal-social .cosmosfarm-members-social-buttons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.login-modal-social .cosmosfarm-members-social-buttons a:hover {
    opacity: 0.85;
}

/* 로그인 모달 모바일 반응형 */
@media (max-width: 768px) {
    .login-modal-content {
        margin: 16px;
        padding: 48px 28px;
        max-width: calc(100% - 32px);
        border-radius: 16px;
    }

    .login-modal-title {
        font-size: var(--font-size-xl);
        margin-bottom: 32px;
    }

    .login-input-wrapper input {
        height: 56px;
        font-size: var(--font-size-base);
        padding-left: 48px;
    }

    .login-input-icon {
        left: 16px;
    }

    .login-input-icon svg {
        width: 18px;
        height: 18px;
    }

    .login-submit-btn {
        height: 56px;
        font-size: var(--font-size-md);
    }

    .login-modal-links {
        font-size: var(--font-size-base);
    }

    .login-modal-links .separator {
        margin: 0 12px;
    }

    .social-btn svg {
        width: 48px;
        height: 48px;
        padding: 12px;
    }

    .social-login-buttons {
        gap: 20px;
    }
}

/* ==================== 링크 스타일 ==================== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

/* 제목 내 링크 */
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
.entry-title a,
.post-title a {
    color: var(--text-color);
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover,
.entry-title a:hover,
.post-title a:hover {
    color: var(--color-primary);
}

/* ==================== 메타 정보 스타일 ==================== */
.entry-meta,
.post-meta,
time,
.date,
.author,
.category,
.tag {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    font-weight: 400;
}

/* ==================== 카드/포스트 스타일 ==================== */
article,
.post,
.card {
    background: var(--bg-white);
    border-radius: 12px;
    transition: all 0.2s ease;
}

article:hover,
.post:hover,
.card:hover {
    opacity: 0.9;
}

/* 썸네일 이미지 */
.post-thumbnail img,
.entry-thumbnail img,
.featured-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img,
.entry-thumbnail:hover img {
    transform: scale(1.02);
}

/* ==================== 위젯/사이드바 스타일 ==================== */
.widget-title,
.sidebar-title {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.widget li,
.sidebar li {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.widget li:last-child,
.sidebar li:last-child {
    border-bottom: none;
}

/* ==================== 푸터 스타일 ==================== */
footer,
.site-footer {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* ==========================================================================
   BLOG LAYOUT - Tech Blog Style
   ========================================================================== */

/* ==================== Sticky 헤더 ==================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
}

.logo:hover {
    color: var(--color-primary);
}

/* 헤더 네비게이션 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--color-primary);
}

/* 헤더 버튼 그룹 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 외부 링크 (치료후기, 오시는길) */
.header-external-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-right: 38px;
    display: none;
}

.header-external-links .external-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: var(--font-size-md);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-external-links .external-link:hover {
    color: var(--color-primary);
}

.header-external-links .external-link svg {
    stroke: var(--text-tertiary);
    transition: stroke 0.2s ease;
}

.header-external-links .external-link:hover svg {
    stroke: var(--color-primary);
}

/* 헤더 계정 링크 (코스모스팜 숏코드) */
.header-account-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-account-links a {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-account-links a:hover {
    color: var(--color-primary);
    background: var(--bg-gray);
}

/* 로그인 링크 강조 */
.header-account-links a[href*="login"],
.header-account-links a[href*="a=login"] {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.header-account-links a[href*="login"]:hover,
.header-account-links a[href*="a=login"]:hover {
    background: var(--bg-gray);
    color: var(--text-color);
}

/* 문의하기 버튼 (파란색) */
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

/* 로그인 버튼 (회색 테두리) */
.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background: var(--bg-gray);
    color: var(--text-color);
}

.btn-search {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-search:hover {
    background: var(--border-color);
}

.btn-search svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* ==================== 메인 레이아웃 ==================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

/* 홈 페이지 레이아웃 */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 2-column 레이아웃 wrapper */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

/* ==================== 히어로 배너 ==================== */
.hero-banner .hero-content {
    text-align: center;
    z-index: 2;
    padding: 20px 24px;
}

.hero-banner .hero-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-banner .hero-title {
        font-size: 20px;
    }
}

/* ==================== 카테고리 탭 ==================== */
.category-tabs {
    display: flex;
    gap: 24px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    touch-action: pan-x;
}

.category-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-tab {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 5px 15px;
    position: relative;
    transition: color 0.2s ease;
    line-height: 1.5;
    white-space: nowrap;
}

.category-tab:hover {
    color: var(--text-color);
}

.category-tab.active {
    font-size: var(--font-size-lg);
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.6;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-color);
}

/* ==================== 포스트 리스트 ==================== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 포스트 아이템 */
.post-item,
article.post,
article.type-post {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    padding-bottom: 32px;
}

article.post:last-child,
article.type-post:last-child {
    border-bottom: none;
}

/* 포스트 콘텐츠 영역 (좌측) */
.post-content,
.entry-content {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    line-height: 1.6;
}

.entry-content p,
.post-content p {
    font-size: 17px;
}

/* 포스트 제목 */
.post-title,
.entry-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #191F28;
    line-height: 1.6;
    margin-bottom: 12px;
    letter-spacing: 0;
    /* 한 줄로 제한하고 말줄임표 표시 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-title a,
.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover,
.entry-title a:hover {
    color: var(--color-primary);
}

/* 포스트 요약 */
.post-excerpt,
.entry-summary {
    font-size: var(--font-size-base);
    color: #4E5968;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* 포스트 메타 정보 */
.post-meta,
.entry-meta {
    font-size: var(--font-size-xs);
    color: #4E5968;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta .separator {
    width: 3px;
    height: 3px;
    background: var(--text-tertiary);
    border-radius: 50%;
}

/* 포스트 썸네일 (우측) */
.post-thumbnail,
.entry-thumbnail {
    flex-shrink: 0;
    width: 170px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-gray);
}

.post-thumbnail img,
.entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img,
.entry-thumbnail:hover img {
    transform: scale(1.05);
}

/* ==================== 사이드바 ==================== */
.widget-area,
#secondary {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 40px;
    border-left: 1px solid var(--border-color);
}

.widget {
    background: var(--bg-white);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* 인기 글 위젯 */
.widget-popular .post-item-small {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-popular .post-item-small:last-child {
    border-bottom: none;
}

.widget-popular .post-title-small {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 4px;
}

.widget-popular .post-author {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* 인기 글 목록 (새 구조) */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    margin-bottom: 16px;
}

.popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-post-item a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
}

.popular-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #191F28;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.popular-post-item a:hover .popular-post-title {
    color: var(--color-primary);
}

.popular-post-author {
    font-size: 13px;
    color: #8B95A1;
}

.no-posts {
    font-size: 14px;
    color: #8B95A1;
}

/* 태그 클라우드 (새 구조) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    background: #F2F4F6;
    color: #4E5968;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #E5E8EB;
}

.tag-item:hover {
    background: #E5E8EB;
    color: #191F28;
    border-color: #D1D6DB;
}

.no-tags {
    font-size: 14px;
    color: #8B95A1;
    margin: 0;
}

/* 위젯 타이틀 업데이트 */
.widget-popular .widget-title,
.widget-tags .widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #8B95A1;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

/* ==================== 푸터 레이아웃 ==================== */
.site-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-business-info {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-left: 8px;
}

.footer-business-info span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.footer-business-info span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background: var(--border-color);
    margin: 0 12px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-links {
        gap: 12px 20px;
    }

    .footer-business-info {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
        line-height: 1.8;
    }

    .footer-business-info span:not(:last-child)::after {
        display: none;
    }

    .footer-business-info span {
        margin-right: 16px;
    }
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ==================== 페이지네이션 ==================== */
.posts-navigation,
.pagination {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nav-links a,
.nav-links span {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a {
    color: var(--text-secondary);
    background: var(--bg-gray);
}

.nav-links a:hover {
    background: var(--color-primary);
    color: #fff;
}

.nav-links .current {
    background: var(--color-primary);
    color: #fff;
}

/* ==================== 싱글 포스트 1단 레이아웃 ==================== */
.single-post-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
    max-width: 100%;
}

.single-post-layout .single-article {
    max-width: 720px;
    margin: 0 auto;
}

/* ==================== 싱글 아티클 ==================== */
.single-article {
    display: block !important;
    flex-direction: column !important;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 아티클 헤더 */
.article-header {
    margin-bottom: 80px;
}

.article-category {
    margin-bottom: 16px;
}

.article-category a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category a:hover {
    text-decoration: underline;
}

/* 제목: 48px, 700, line-height 1.25 */
.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    color: #333D4B;
    margin-bottom: 24px;
    letter-spacing: 0;
}

/* 메타 정보 - 작성자 17px/600, 날짜 14px/400 */
.article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 20px;
}

.article-meta .article-author {
    font-size: 17px;
    font-weight: 600;
    color: #4E5968;
}

.article-meta .article-date {
    font-size: 14px;
    font-weight: 400;
    color: #8B95A1;
}



/* 대표 이미지 */
.article-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 본문 콘텐츠: 17px, line-height 1.6 */
.article-content {
    font-size: 17px;
    line-height: 1.6;
    color: #333D4B;
}

.article-content p {
    margin-bottom: 27px;
}

/* H2, H3, H4: 기본 스타일 (font-size 제외) */
.article-content h2 {
    font-weight: 700;
    margin-top: 56px;
    margin-bottom: 24px;
    line-height: 1.55;
    color: #191F28;
}

.article-content h3 {
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #191F28;
}

.article-content h4 {
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 16px;
    color: #191F28;
}

/* WordPress 폰트 크기 프리셋 클래스 지원 */
.article-content .has-small-font-size {
    font-size: 13px !important;
}

.article-content .has-medium-font-size {
    font-size: 20px !important;
}

.article-content .has-large-font-size {
    font-size: 36px !important;
}

.article-content .has-x-large-font-size {
    font-size: 42px !important;
}

/* 기본 폰트 크기 - 커스텀 크기가 없을 때만 적용 (가장 낮은 우선순위) */
.article-content h2:not([style*="font-size"]):not([class*="font-size"]) {
    font-size: 30px;
}

.article-content h3:not([style*="font-size"]):not([class*="font-size"]) {
    font-size: 24px;
}

.article-content h4:not([style*="font-size"]):not([class*="font-size"]) {
    font-size: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #F2F4F6;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    font-style: normal;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content pre,
.article-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
}

.article-content pre {
    background: #1E1E1E;
    color: #D4D4D4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content code {
    background: var(--bg-gray);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-primary);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--color-primary-hover);
}

/* 아티클 푸터 (태그) */
.article-footer {}

.article-tags {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* 공유 버튼 */
.article-share {
    margin-top: 48px;
    padding-top: 24px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s ease;

}

.share-btn:hover {
    background: #F2F4F6;
}

.share-btn svg {
    stroke: var(--color-primary);
}

/* 토스트 알림 */
.toast-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification svg {
    stroke: #22C55E;
    flex-shrink: 0;
}

.toast-notification span {
    font-size: 16px;
    font-weight: 500;
    color: #191F28;
    white-space: nowrap;
}

/* 태그 영역 */
.article-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.tag-label {
    font-size: 16px;
    font-weight: 400;
    color: #8B95A1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    background: #F2F4F6;
    color: #4E5968;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-badge:hover {
    background: #E5E8EB;
    color: #191F28;
    border-color: #D1D6DB;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .single-article {
        padding: 0;
    }

    .article-header {
        margin-top: 55px;
        margin-bottom: 28px;
    }

    .article-title {
        font-size: 32px;
        line-height: 1.35;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: 16px;
    }

    .article-meta .article-author {
        font-size: 15px;
    }

    .article-meta .article-date {
        font-size: 13px;
    }

    .article-thumbnail {
        margin-bottom: 28px;
        border-radius: 8px;
    }

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

    .article-content h2:not([style*="font-size"]):not([class*="font-size"]) {
        font-size: 24px;
    }

    .article-content h2 {
        margin-top: 40px;
    }

    .article-content h3:not([style*="font-size"]):not([class*="font-size"]) {
        font-size: 20px;
    }

    .article-content h3 {
        margin-top: 32px;
    }
}

/* ==================== 404 에러 페이지 ==================== */
.error-page-layout {
    display: block !important;
    max-width: 100%;
}

.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 24px;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-icon {
    margin-bottom: 32px;
}

.error-icon svg {
    width: 120px;
    height: 120px;
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.error-description {
    font-size: 16px;
    color: #8B95A1;
    margin-bottom: 32px;
    line-height: 1.5;
}

.error-home-btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.error-home-btn:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

@media (max-width: 768px) {
    .error-404 {
        min-height: 60vh;
        padding: 40px 16px;
    }

    .error-icon svg {
        width: 100px;
        height: 100px;
    }

    .error-title {
        font-size: 20px;
    }
}

/* ==================== 검색 결과 페이지 ==================== */
.search-results-layout {
    display: block !important;
    max-width: 100%;
}

.search-results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.search-header {
    margin-bottom: 40px;
    text-align: left;
}

.search-title {
    font-size: 28px;
    font-weight: 700;
    color: #191F28;
    margin-bottom: 12px;
}

.search-keyword {
    color: var(--color-primary);
}

.search-count {
    font-size: 15px;
    color: #8B95A1;
    margin: 0;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==================== 검색 결과 없음 ==================== */
.no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 60px 24px;
}

.no-results-content {
    text-align: center;
    max-width: 400px;
}

.no-results-icon {
    margin-bottom: 24px;
}

.no-results-icon svg {
    width: 80px;
    height: 100px;
}

.no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #4E5968;
    margin-bottom: 16px;
}

.no-results-desc {
    font-size: 15px;
    color: #8B95A1;
    line-height: 1.6;
    margin: 0;
}

/* 모바일 검색 결과 */
@media (max-width: 768px) {
    .search-results-container {
        padding: 24px 16px;
    }

    .search-title {
        font-size: 22px;
    }

    .no-results {
        min-height: 40vh;
        padding: 40px 16px;
    }

    .no-results-title {
        font-size: 20px;
    }
}

/* ==================== 반응형 레이아웃 ==================== */
@media (max-width: 1024px) {

    .site-main,
    .content-wrapper,
    .home-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .widget-area,
    #secondary {
        order: 2;
    }

    /* 태블릿 이하에서 인기있는 글, 태그 숨김 */
    .widget-popular,
    .widget-tags {
        display: none !important;
    }
}

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

    .header-nav {
        display: none;
    }

    .site {}

    .site-main,
    .content-wrapper {
        padding: 5px 24px;
    }

    /* 모바일에서 사이드바 숨김 */
    .widget-area,
    #secondary {
        display: none !important;
    }

    .post-item,
    article.post,
    article.type-post {
        flex-direction: row;
        gap: 16px;
        align-items: flex-start;
    }

    .post-item .post-content,
    article.post .entry-content-wrapper,
    article.type-post .entry-content-wrapper {
        flex: 1;
        min-width: 0;
    }

    .post-thumbnail,
    .entry-thumbnail {
        width: 120px;
        height: 90px;
        min-width: 120px;
        border-radius: 8px;
        order: 2;
    }


    .category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==================== 모바일 하단 고정 메뉴 ==================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    z-index: 9999;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav a.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mobile-bottom-nav a.mobile-nav-item:hover,
.mobile-bottom-nav a.mobile-nav-item:active {
    opacity: 0.8;
}

.mobile-bottom-nav a.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.mobile-bottom-nav a.mobile-nav-item span {
    font-size: var(--font-size-xs);
    font-weight: 500;
    white-space: nowrap;
}

/* 768px 이하에서만 표시 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* 하단 메뉴 공간 확보를 위한 여백 */
    .site-footer {
        padding: 20px;
    }

    body {
        padding-bottom: 80px;
    }
}

/* ==================== 우측 하단 퀵버튼 (ludental.co.kr 스타일) ==================== */
.quick-buttons-wrapper {
    position: fixed;
    right: 24px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 9990;
}

/* QUICK 메뉴 컨테이너 - 이 영역에서만 호버 시 메뉴 표시 */
.quick-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 메뉴 패널 - 기본 숨김 */
.quick-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: #0E4CD7;
    border-radius: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

/* 호버 시 메뉴 패널 표시 - quick-menu-container에서만 */
.quick-menu-container:hover .quick-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 600px;
    margin-bottom: 12px;
}

/* 메뉴 아이템 */
.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.quick-menu-item:hover {
    color: #fff !important;
    opacity: 0.8 !important;
}

.quick-menu-item svg {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

.quick-menu-item span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
}

/* Quick Contact Modal Styles */
.quick-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    background: transparent;
    /* Default transparent for desktop contact */
}

/* Desktop: no overlay background */
@media (min-width: 769px) {
    .quick-contact-modal {
        background: transparent;
        pointer-events: none;
    }

    .quick-contact-modal .quick-contact-content {
        pointer-events: auto;
    }
}

/* Mobile: with overlay */
@media (max-width: 768px) {
    .quick-contact-modal {
        background: rgba(0, 0, 0, 0.6) !important;
        pointer-events: auto !important;
    }
}

.quick-contact-modal.show {
    opacity: 1;
    visibility: visible;
}

.quick-contact-content {
    background: #fff;
    padding: 48px 40px 40px;
    border-radius: 0 20px 20px 20px;
    max-width: 480px;
    width: 450px;
    position: relative;
    margin-right: 150px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.07);
    transform: translateX(20px);
    transition: transform 0.3s ease;
    overflow: visible;
}

.quick-contact-modal.show .quick-contact-content {
    transform: translateX(0);
}

/* 닫기 버튼 - 좌측 상단 바깥에 배치 (보라색 사각형) */
.quick-contact-close {
    position: absolute;
    top: -0;
    left: -60px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border: none;
    border-radius: 15px 0 0 15px;
    font-size: 0;
    /* 원래 텍스트 숨김 */
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quick-contact-close svg {
    display: block;
    transition: transform 0.3s ease;
}

.quick-contact-close:hover svg {
    transform: rotate(90deg);
}

.quick-contact-title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
    color: #191F28;
    text-align: left;
}

.quick-contact-desc {
    font-size: 15px;
    color: #8B95A1;
    margin: 0 0 32px;
    text-align: left;
    line-height: 1.6;
}

.quick-contact-content label {
    display: block;
    font-weight: 600;
}

/* 입력 필드 스타일 */
.qc-form-group {
    margin-bottom: 16px;
}

.quick-contact-content input[type="text"],
.quick-contact-content input[type="tel"],
.qc-form-group input[type="text"],
.qc-form-group input[type="tel"] {
    width: 100%;
    padding: 18px 20px;
    margin-top: 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f8f8;
    box-sizing: border-box;
    color: #191F28;
}

.quick-contact-content input[type="text"]::placeholder,
.quick-contact-content input[type="tel"]::placeholder,
.qc-form-group input::placeholder {
    color: #adb5bd;
}

.quick-contact-content input[type="text"]:focus,
.quick-contact-content input[type="tel"]:focus,
.qc-form-group input:focus {
    outline: none;
    border-color: #9b7ed9;
    background: #fff;
}

/* 개인정보 동의 체크박스 - 버튼 스타일 토글 */
.qc-privacy {
    margin: 24px 0 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qc-privacy-check {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e5e8eb;
    border-radius: 50px;
    font-size: 14px;
    color: #4E5968;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qc-privacy-check:hover {
    border-color: #d0d0d0;
}

.qc-privacy-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* 체크마크 아이콘 */
.qc-privacy-check .checkbox-mark {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    border: none !important;
    padding: 0 !important;
}

.qc-privacy-check .checkbox-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 9px;
    border: solid #bbb;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 체크박스 텍스트 - 왼쪽 테두리 제거 */
.qc-privacy-check .checkbox-text {
    color: #4E5968;
    border-left: none !important;
    padding-left: 0 !important;
    line-height: 1;
    font-weight: 500;
}

/* 체크 상태 - 보라색 그라데이션 배경 */
.qc-privacy-check.checked {
    background: #191F28;
    border-color: #191F28;
    color: #fff;
}

.qc-privacy-check.checked .checkbox-mark::after {
    border-color: #fff;
}

.qc-privacy-check.checked .checkbox-text {
    color: #fff;
}

/* 자세히 보기 링크 */
.qc-privacy>.privacy-detail-link {
    color: #888;
    text-decoration: underline;
    font-size: 14px;
    white-space: nowrap;
}

.qc-privacy>.privacy-detail-link:hover {
    color: #666;
}

/* 신청하기 버튼 */
.quick-contact-submit {
    width: 100%;
    background: #191F28;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-contact-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 모바일에서 간편진료예약 모달 중앙 정렬 */
@media (max-width: 768px) {
    .quick-contact-modal {
        align-items: center;
        justify-content: center;
    }

    .quick-contact-content {
        width: 90%;
        max-width: 360px;
        padding: 32px 24px 24px;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 20px 0 20px 20px;
    }

    .quick-contact-close {
        top: -40px;
        left: auto;
        right: 0;
        width: 45px;
        height: 40px;
        background: var(--color-primary);
        border-radius: 10px 10px 0 0;
        z-index: 10;
        /* 콘텐츠 내부로 이동 */
    }

    .quick-contact-close svg {
        width: 24px;
        height: 24px;
    }

    .quick-contact-close svg path {
        fill: #fff;
    }
}

/* QUICK 메인 버튼 */
.quick-main-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #2F75FF;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 6px;
}

.quick-main-btn:hover {
    background: #0E4CD7;
    transform: scale(1.05);
}

.quick-main-text {
    font-size: 16px;
    font-weight: 700;

}

/* TOP 버튼 */
.quick-top-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.quick-top-btn svg {
    transition: all 0.3s ease;
}

.quick-top-btn:hover svg {
    transform: translateY(-3px);
}

.quick-top-btn:hover svg path {
    fill: #2F75FF;
}

/* 반응형: 태블릿 */
@media (max-width: 1024px) {
    .quick-buttons-wrapper {
        right: 16px;
        bottom: 30px;
    }

    .quick-main-btn,
    .quick-top-btn {
        width: 60px;
        height: 60px;
    }

    .quick-main-text {
        font-size: 12px;
    }

    .quick-menu-item svg {
        width: 24px;
        height: 24px;
    }

    .quick-menu-item span {
        font-size: 11px;
    }
}

/* 반응형: 모바일에서 숨김 (하단 고정 메뉴 사용) */
@media (max-width: 768px) {
    .quick-buttons-wrapper {
        display: none;
    }
}

/* ==================== 전체 너비 페이지 (사이드바 없음) ==================== */
.full-width-page {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 24px;
    display: block !important;
    grid-template-columns: none !important;
}

.full-width-page+aside,
.full-width-page~.sidebar,
.full-width-page~#secondary {
    display: none !important;
}

/* 치료후기 페이지 전용 스타일 */
.page-template-page-full-width .site-main {
    display: block !important;
    max-width: 1050px;
    margin: 0 auto;
    grid-template-columns: none !important;
}

.page-template-page-full-width .site-content {
    display: block;
}

.page-template-page-full-width #primary {
    width: 100%;
    max-width: 100%;
    float: none;
}

.page-template-page-full-width #secondary,
.page-template-page-full-width .sidebar {
    display: none !important;
}

/* ==================== 로고 텍스트 스타일 ==================== */
.logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a1b2e;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover .logo-text {
    color: #0073aa;
}

.header-mobile .logo .mobile-logo-img {
    width: auto;
}


/* 모바일 헤더 로고 이미지 수정 */
.header-mobile .logo img,
.header-mobile .logo .mobile-logo-img {
    display: block !important;
    width: auto;
    height: auto;
}

.header-mobile .logo {
    display: flex !important;
    align-items: center;
}

/* 모바일 헤더 로고 강제 표시 */
@media (max-width: 768px) {
    .header-mobile .logo {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .header-mobile .logo img {
        display: block !important;
        visibility: visible !important;
    }

    .header-mobile .logo .logo-text {
        font-size: 16px;
        font-weight: 700;
        color: #1a1b2e;
    }
}

/* SVG 로고 크기 */
@media (max-width: 768px) {

    .header-mobile .logo img[src$=".svg"],
    .header-mobile .logo .mobile-logo-img {
        min-width: 80px;
    }
}

/* ==================== 푸터 약관 모달 ==================== */
.footer-terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-terms-modal.show {
    opacity: 1;
    visibility: visible;
}

.footer-terms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.footer-terms-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.footer-terms-modal.show .footer-terms-modal-content {
    transform: translateY(0);
}

.footer-terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.footer-terms-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #191F28;
    margin: 0;
}

.footer-terms-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.footer-terms-modal-close:hover {
    background: #f2f4f6;
}

.footer-terms-modal-close svg {
    stroke: #8B95A1;
}

.footer-terms-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #4E5968;
}

.footer-terms-modal-body p {
    margin-bottom: 12px;
}

.footer-terms-modal-body h3,
.footer-terms-modal-body h4 {
    margin: 20px 0 12px;
    color: #191F28;
}

.footer-terms-modal-confirm {
    margin: 16px 24px 24px;
    padding: 16px;
    background: var(--color-primary, #2F75FF);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.footer-terms-modal-confirm:hover {
    background: var(--color-primary-hover, #1e5fcc);
}

/* 반응형 */
@media (max-width: 768px) {
    .footer-terms-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }

    .footer-terms-modal-header {
        padding: 20px 16px 16px;
    }

    .footer-terms-modal-body {
        padding: 16px;
    }

    .footer-terms-modal-confirm {
        margin: 16px;
    }
}

/* ==================== 댓글 디자인 리뉴얼 ==================== */
.comments-area {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.comments-title,
.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #191F28;
}

/* 댓글 입력 폼 */
.comment-respond {
    background: #fff;
    margin-bottom: 40px;
}

.comment-form-wrapper {
    margin-bottom: 12px;
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e8eb;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    min-height: 140px;
    resize: vertical;
    transition: border-color 0.2s;
    background-color: #fff;
    color: #191F28;
}

.comment-form textarea::placeholder {
    color: #8B95A1;
}

.comment-form textarea:focus {
    border-color: #2F75FF;
    outline: none;
}

.form-submit {
    text-align: right;
}

.btn-comment-submit {
    background-color: #6C9AF5;
    /* 요청 이미지와 유사한 파란색 */
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.btn-comment-submit:hover {
    background-color: #5b85d9;
}

/* 댓글 리스트 */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 16px;
    border-bottom: none;
}

.comment-list .comment-body {
    background-color: #F7F8FA;
    /* 연한 회색 배경 */
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
}

.comment-list .comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-list .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.comment-author.vcard {
    display: flex;
}

.comment-list .fn {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.comment-list .fn a {
    color: #333;
    text-decoration: none;
}

/* 이미지에서는 메타데이터(날짜 등)가 안 보이므로 숨김 */
.comment-list .comment-metadata {
    display: none;
}

.comment-list .comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.comment-list .comment-content p:last-child {
    margin-bottom: 0;
}

/* 대댓글 스타일 */
.comment-list .children {
    list-style: none;
    padding-left: 20px;
    margin-top: 16px;
}

/* 로그인 안 된 상태의 입력 필드 스타일 */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 15px;
}

.comment-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    font-size: 15px;
}

/* 로그인 메시지 숨김 */
.logged-in-as {
    display: none;
}

/* '댓글:' 텍스트 숨기기 */
.comment-author .says {
    display: none;
}

/* '응답' 버튼 확실히 숨기기 */
.reply,
.comment-reply-link,
a.comment-reply-link {
    display: none !important;
}