/*
Theme Name: AllinJeju Theme
Theme URI: https://allinjeju.com
Author: MYAIGRD
Description: 올인제주 전용 커스텀 매거진 테마 (네이비 & 골드 포인트)
Version: 2.7
Text Domain: allinjeju-theme
*/

/* 글로벌 리셋 및 변수 */
:root {
    --primary-color: #152A4A; /* 네이비 포인트 */
    --primary-hover: #F6A820; /* 골드 호버 */
    --text-color: #1A1A1A;
    --text-muted: #666666;
    --bg-color: #FFFFFF;
    --border-color: #E0E0E0;
    --radius: 12px;
}

* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary-color); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* 유틸리티 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================
   헤더 (Header)
========================================== */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding-top: 30px;
    background: #fff;
    position: relative;
    z-index: 1000;
}

.header-logo-wrap {
    text-align: center;
    margin-bottom: 20px;
}
.site-logo {
    max-height: 220px; /* 로고 크기 더 확대 */ /* 로고 크기 조절 */
    margin: 0 auto;
}

.header-search-wrap {
    max-width: 600px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}
.search-form {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.search-form:focus-within {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(21, 42, 74, 0.1);
}
.search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}
.search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}
.search-submit:hover { background: var(--primary-hover); }

.main-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
/* 최상위 ul: 그룹(부모)들을 세로로 쌓음 */
.main-navigation > ul {
    display: block;
    text-align: center;
    padding: 0 0 20px 0;
}
/* 부모 그룹 하나하나 */
.main-navigation > ul > li {
    display: block;
    margin-bottom: 30px;
}
/* 부모 메뉴 아이템 (예: 지역별 맛집) - 그룹 타이틀 디자인 */
.main-navigation > ul > li > a {
    display: inline-block;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    background-color: #f0f0f0; /* 옅은 회색 라벨 느낌 */
    color: #444;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}
.main-navigation > ul > li > a:hover {
    background-color: #e4e4e4;
}

/* 자식 메뉴(서브메뉴) 컨테이너: 가로 알약 정렬 */
.main-navigation .sub-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

/* 자식 알약 버튼들 */
.main-navigation .sub-menu a {
    display: block;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 30px;
    background-color: #f0f2f5;
    color: var(--text-color);
    transition: all 0.2s ease;
}
.main-navigation .sub-menu a:hover {
    border-color: var(--primary-color);
    color: #fff;
    background-color: var(--primary-color);
}

/* 활성화된 카테고리 (ON 상태) */
.main-navigation .current-menu-item > a,
.main-navigation .current-category > a,
.main-navigation .current-cat > a,
.main-navigation .current-post-ancestor > a,
.main-navigation .current-menu-parent > a,
.main-navigation .current-category-ancestor > a {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    font-weight: 700;
}

/* 만약 서브메뉴 없이 단일 항목만 넣었을 경우를 위한 폴백 (기존 알약 디자인) */
.main-navigation > ul:not(:has(.sub-menu)) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.main-navigation > ul:not(:has(.sub-menu)) > li { 
    display: block;
    margin: 0; 
}
.main-navigation > ul:not(:has(.sub-menu)) > li > a {
    display: block;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 30px;
    background-color: #f0f2f5;
    color: var(--text-color);
    transition: all 0.2s ease;
}
.main-navigation > ul:not(:has(.sub-menu)) > li > a:hover {
    border-color: var(--primary-color);
    color: #fff;
    background-color: var(--primary-color);
}


/* ==========================================
   메인 화면 (Front Page)
========================================== */
.front-page-main {
    padding: 20px 0 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 히어로 섹션 */
.hero-container {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    padding: 0 20px;
}
.hero-main-post {
    flex: 2;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 540px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0; /* 이미지가 늦게 뜰 때 회색 배경 */
    transition: transform 0.5s ease;
}
.hero-main-post:hover .hero-thumbnail { transform: scale(1.05); }
.hero-main-post a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.hero-content {
    position: absolute;
    bottom: 0; left: 0;
    padding: 30px;
    color: #fff;
    z-index: 2;
}
.hero-meta { color: var(--primary-color); font-weight: bold; margin-bottom: 10px; font-size: 14px; }
.hero-title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.3; }

.hero-list-posts {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.hero-list-item a {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fff;
    transition: all 0.3s ease;
}
.hero-list-item a:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(21, 42, 74, 0.08);
    transform: translateY(-2px);
}
.list-thumbnail {
    width: 110px;
    height: 100px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
}
.list-content { flex: 1; }
.list-meta { color: var(--primary-color); font-size: 12px; font-weight: bold; margin-bottom: 5px; }
.list-title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--text-color); }
.hero-list-item:hover .list-title { color: var(--primary-color); }

/* 캐러셀 섹션 */
.carousel-section {
    margin-bottom: 50px;
    padding: 0 20px;
}
.section-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* 네이티브 가로 스크롤 (스와이프) */
.carousel-container {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    margin: 0 -20px; /* 좌우 여백까지 스크롤 되게 */
    padding: 0 20px 20px 20px; /* 그림자 잘림 방지 */
}
.carousel-container::-webkit-scrollbar { display: none; } /* Chrome */

.carousel-track {
    display: inline-flex;
    gap: 20px;
}
.carousel-card {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.carousel-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
.card-content { padding: 20px; }
.card-title { 
    margin: 0 0 10px 0; 
    font-size: 18px; 
    line-height: 1.4; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-excerpt { 
    margin: 0; 
    font-size: 14px; 
    color: var(--text-muted); 
    line-height: 1.5; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 푸터 */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================
   모바일 반응형 (Mobile Responsive)
========================================== */
@media (max-width: 768px) {
    .site-header { 
        padding: 15px 0 0 0; /* 상단 여백 추가 */
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
    }

    /* 날씨+언어 선택기 묶음을 로고와 같은 줄(첫 번째 줄)에 배치 */
    .header-top-right-wrap {
        position: static !important;
        grid-column: 2;
        grid-row: 1;
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 0 15px 0 0 !important;
        background: transparent !important;
        border-bottom: none !important;
    }
    .language-switcher {
        position: static;
    }
    .jeju-weather-widget {
        position: static;
    }
    .lang-btn, .weather-btn {
        border: 1px solid #ddd;
        background: #fff;
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        border-radius: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }
    .lang-dropdown, .weather-dropdown {
        top: 45px;
        right: 15px;
    }

    /* display: contents로 래퍼 해제하여 Grid 아이템으로 편입 */
    .header-top-wrap {
        display: contents;
    }
    .header-logo-wrap {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 0 0 0 15px;
        display: flex;
        align-items: center;
    }
    .site-logo { 
        height: 38px; /* 로고 크기 적절히 조절 */
        width: auto;
        max-height: none;
    }

    /* 검색바를 2번째 줄 전체로 확장 */
    .header-search-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 15px 15px;
        padding: 0;
    }
    .search-form {
        padding: 0 5px 0 15px;
        background: #f0f2f5;
        border: none;
        border-radius: 50px;
    }
    .search-field {
        padding: 12px 0;
        font-size: 15px;
    }
    .search-submit {
        width: 40px;
        height: 40px;
        background: transparent;
        color: var(--primary-color);
    }
    .search-submit:hover {
        background: transparent;
    }

    /* 상단 메뉴(카테고리) 스와이프 - 강제 한 줄 유지 */
    .main-navigation {
        grid-column: 1 / -1;
        grid-row: 3;
        border-top: none;
        border-bottom: 1px solid #eee;
        padding-top: 0;
    }
    .main-navigation > ul:not(:has(.sub-menu)) {
        flex-wrap: nowrap !important; /* 다중 행으로 깨짐 강제 방지 */
        justify-content: flex-start !important;
    }
    .main-navigation ul {
        overflow-x: auto;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px 15px 15px;
        margin: 0;
        gap: 8px; /* 버튼 사이 간격 좁힘 */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .main-navigation ul::-webkit-scrollbar {
        display: none;
    }
    .main-navigation li {
        flex-shrink: 0;
    }
    .main-navigation a {
        padding: 8px 18px; /* 버튼 위아래 여백 줄임 */
        font-size: 14px;
        border: 1px solid transparent;
        background-color: #f0f2f5;
    }
    
    .hero-container {
        flex-direction: column;
        margin-bottom: 10px; /* 메인 이미지와 하단 섹션 간격 축소 */
    }
    /* 모바일 환경 섹션 간격(패딩/마진) 대폭 축소 */
    .carousel-section, .parallax-section, .warmgray-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    /* 패럴랙스 배경 스크롤 버벅임(iOS Jank) 완벽 해결 */
    .parallax-section {
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .theme-tab-section {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    /* 테마 탭 스와이프 (모바일 3줄 깨짐 방지) */
    .theme-tabs {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .theme-tabs::-webkit-scrollbar {
        display: none;
    }
    .theme-tab-btn {
        flex-shrink: 0;
    }

    /* 모바일 환경에서 포스트 그리드를 가로 스와이프로 변경 */
    .swipe-grid-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        padding-bottom: 15px !important;
        margin: 0 -20px;
        padding-left: 20px !important;
        padding-right: 20px !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .swipe-grid-mobile::-webkit-scrollbar {
        display: none;
    }
    .swipe-grid-mobile .carousel-card {
        flex: 0 0 80vw !important; /* 모바일에서 화면의 80%를 차지하게 하여 스와이프 유도 */
    }

    .hero-main-post {
        flex: none;
        width: 100%;
    }
    .hero-thumbnail { min-height: 250px; }
    .hero-title { font-size: 24px; }
    
    .hero-list-posts { display: none; /* 모바일에서는 우측 리스트 숨김 (너무 길어짐) */ }
    
    .carousel-card {
        width: 80vw; /* 모바일에서 화면의 80% 차지하게 해서 옆 카드가 살짝 보이도록 유도 */
    }
    

}

/* 카테고리 활성화(ON) 상태 */
.main-navigation .current-cat a {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 700;
}
.main-navigation .current-cat a:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* ==========================================
   서브 페이지 (Single Post)
========================================== */
.single-main {
    max-width: 1140px; /* 상단 메뉴 폭과 동일하게 시원하게 확장 */
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}
.single-top-popular {
    margin: 5px 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.single-top-popular .section-title {
    font-size: 20px; /* 메인보다 살짝 작게 */
}
.single-header {
    text-align: center;
    margin-bottom: 40px;
}
.single-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}
.meta-cat {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}
.single-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}
.single-content {
    font-size: 20px; /* 폰트 2px 증가 */
    line-height: 1.8;
    color: #222; /* 살짝 더 진하게 해서 가독성 향상 */
}
/* 문단(엔터) 사이 간격 넉넉하게 확보 */
.single-content p {
    margin-top: 0;
    margin-bottom: 35px; 
}
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
}
/* 강제 캐시 무효화 및 가독성 오버라이드 (데스크탑 기본) */
.single-content {
    font-size: 18px !important; /* 약간 줄임 */
    line-height: 1.8 !important;
}
.single-content p {
    margin-bottom: 30px !important;
}

@media (max-width: 768px) {
    .single-main {
        padding-top: 30px !important; /* 상단 메뉴와 본문 사이 여백 확보 */
    }
    .single-title { font-size: 24px !important; }
    .single-content { 
        font-size: 15px !important; /* 모바일 본문 폰트 크기 축소 */
        line-height: 1.6 !important; /* 줄 간격 축소 */
    }
    .single-content h2, .single-content h3 {
        font-size: 19px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    .single-content p {
        margin-bottom: 15px !important; /* 문단 간격 대폭 축소 */
    }
    /* 지도 버튼 등 인라인 스타일 버튼 모바일 최적화 */
    .single-content a[style*="background-color"] {
        font-size: 13px !important;
        padding: 10px 5px !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        letter-spacing: -0.5px !important;
    }
    /* 모바일 상단 여백 강제 축소 */
    .single-top-popular {
        margin-top: 0 !important;
        padding-top: 15px !important;
    }
    .single-main {
        padding-top: 0 !important;
    }
}

/* 제목 밑 히어로 이미지 */
.single-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* 태그 섹션 */
.post-tags {
    margin: 30px 0 10px 0;
    padding: 20px 0;
    border-top: 1px dashed var(--border-color);
}
.post-tags .tags-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #555;
    margin-bottom: 12px;
}
.post-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.post-tags .tag-pill {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: #f9f9f9;
    transition: all 0.2s ease;
    text-decoration: none;
}
.post-tags .tag-pill:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* 자동 스크롤 부드럽게 (목차 클릭 시) */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   카테고리 화면 (Category Archive)
========================================== */
.category-header {
    text-align: center;
    padding: 15px 20px 30px 20px;
    background-color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.category-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: var(--primary-color);
}
.category-description {
    margin-top: 10px;
    font-size: 16px;
    color: var(--text-muted);
}
.category-grid-section {
    padding: 0 20px 60px 20px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 기본 가로 3개 */
    gap: 20px;
}
.grid-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.grid-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(21, 42, 74, 0.1);
    transform: translateY(-3px);
}
.grid-thumbnail {
    width: 100%;
    padding-top: 60%; /* 16:9 썸네일 비율 */
    background-size: cover;
    background-position: center;
}
.grid-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.grid-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-meta {
    margin-top: auto;
    padding-top: 15px;
    font-size: 13px;
    color: #999;
}
/* 페이징 (페이지네이션) */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #fff;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}
.pagination .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
@media (max-width: 992px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); } /* 태블릿 2개 */
}
@media (max-width: 576px) {
    .grid-container { grid-template-columns: 1fr; } /* 모바일 1개 */
}

/* ==========================================
   소셜 기능 및 댓글 (Social & Comments)
========================================== */
.social-interaction-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 50px 0;
    padding-top: 40px;
    border-top: 1px dashed var(--border-color);
    position: relative;
    z-index: 99; /* 모바일 터치 오작동 방지 */
}
.btn-like, .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #333;
    outline: none;
}
.btn-like:hover, .btn-share:hover {
    border-color: var(--primary-color);
    background: #f4f6f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(21, 42, 74, 0.1);
}
.btn-like.liked {
    border-color: #ff4757;
    background: #fff0f2;
    color: #ff4757;
}
.heart-bump {
    animation: heartBump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes heartBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 댓글 영역 디자인 */
.comments-area {
    background: #fafafa;
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 50px;
    border: 1px solid var(--border-color);
}
.comments-title, .comment-reply-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #222;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.comment-list li {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.comment-author {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
}
.comment-author img {
    border-radius: 50%;
    margin-right: 15px;
    vertical-align: middle;
}
.comment-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}
.comment-content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: #444;
}
.comment-form-comment textarea {
    width: 100%;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    font-size: 16px;
    resize: vertical;
    transition: 0.3s;
}
.comment-form-comment textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}
.comment-form-author input {
    width: 100%;
    max-width: 300px;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    transition: 0.3s;
}
.comment-form-author input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.form-submit input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}
.form-submit input[type="submit"]:hover {
    background: #e65c00;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

/* 폼 요소 폰트 강제 적용 (본문과 동일한 프리텐다드) */
input, textarea, button, select {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
/* ==========================================
   상단 우측 위젯 묶음(날씨 + 다국어)
========================================== */
.header-top-right-wrap {
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================
   다국어 드롭다운 메뉴 (Language Switcher)
========================================== */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 150px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* hover 대신 CSS로 동작하게 JS 쓰지 않고, 순수 CSS dropdown */
.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
}

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: background 0.2s;
    text-align: left;
}

.lang-dropdown a:hover {
    background: #fffaf5;
}

/* ==========================================
   제주 전역 날씨 위젯
========================================== */
.jeju-weather-widget {
    position: relative;
}

.weather-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.weather-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.weather-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 170px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1002;
}

.jeju-weather-widget:hover .weather-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.weather-dropdown li {
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-color);
    text-align: left;
}

/* 단일 포스트 여백 (하단 캐러셀 이동 후 발생한 상단 여백 부족 해결) */
.single-main {
    padding-top: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
