/* ==========================================================================
   1. 기본 설정 및 초기화 (공통)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Arial', sans-serif; 
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ==========================================================================
   2. 최상단 영역 (Top Bar - 공통)
   ========================================================================== */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 8px 2rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.top-bar-inner {
    width: 1400px;
    display: flex;
    justify-content: flex-end;
}
.user-menu { font-size: 1rem; color: #777; }
.user-menu a { text-decoration: none; color: inherit; margin-left: 15px; }
.user-menu a:hover { color: #333; }
.user-menu .user-name { margin-left: 15px; color: #b38b4d; font-weight: 700; }

.site-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.site-popup-box {
    width: min(380px, 100%);
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.site-popup-box img {
    display: block;
    width: 100%;
    max-height: min(420px, 52vh);
    object-fit: contain;
    background: #eef6ee;
}
.site-popup-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.92rem;
}
.site-popup-foot label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.site-popup-foot button {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   3. 로고 및 우측 유틸리티 영역 (상단 독립 배치)
   ========================================================================== */
.header-top-row {
    width: 100%;
    background-color: #ffffff; /* 로고 배경색 (원하시면 변경 가능) */
    border-bottom: 1px solid #eee;
}

.header-top-inner {
    width: 1400px;
    margin: 0 auto;
    height: 110px; /* 로고가 들어갈 공간 높이 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* 로고 스타일 */
.logo { 
    flex: 0 0 auto; 
}
.logo img { 
    height: 80px; 
    display: block; 
}

/* 우측 메뉴 (검색 + 전체메뉴) */
.header-right { 
    flex: 0 0 auto; 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}
.header-right a { 
    text-decoration: none; 
    color: #333; 
    font-size: 1.1rem;
}
.fas.fa-search:hover { 
    color: #2e7d32; 
}

.sp,
a.sp {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.sp span:not(.all-menu-btn span) { 
    font-size: 1.1rem; 
    font-weight: bold;
    color: #333;
}
.sp:hover span:not(.all-menu-btn span) {
    color: #2e7d32;
}
.sp:hover .all-menu-btn span {
    background-color: #2e7d32;
}
.all-menu-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    padding: 0; 
}
.all-menu-btn span { 
    display: block; 
    width: 25px; 
    height: 3px; 
    background-color: #333; 
    border-radius: 2px; 
}

/* ==========================================================================
   4. 회색 띠 네비게이션 영역 (메인 메뉴 바)
   ========================================================================== */
header {
    position: relative;
    width: 100%;
    background-color: #F7F5EE;
    border-bottom: 1px solid #ddd;
    z-index: 100;
}

.header-inner {
    position: relative;
    width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.main-nav { 
    display: flex; 
    justify-content: center; 
    width: 100%;
}

.main-nav > ul { 
    display: flex; 
    list-style: none; 
    gap: 0px; /* 메뉴 간격 */
    align-items: center; 
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-nav > ul > li { 
    position: relative; 
    white-space: nowrap; 
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px; 
}

.main-nav > ul > li > a { 
    text-decoration: none; 
    color: #333; 
    font-weight: bold; 
    font-size: 1.2rem; 
}

/* ==========================================================================
   5. 드롭다운 메뉴 (처음 상태)
   ========================================================================== */
header::after {
    content: ""; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    min-width: 75rem;
    height: 0;
    background-color: #fff; 
    border-top: 1px solid #eee; 
    box-shadow: 0 0.625rem 0.9375rem rgba(0,0,0,0.05);
    transition: height 0.3s ease; 
    z-index: -1;
}

header:hover::after { 
    height: 21rem;
}

header:hover .dropdown { 
    display: block; 
}

.dropdown {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    min-height: 21rem;
    padding: 0.625rem 0;
    list-style: none; 
    z-index: 10; 
    transition: background-color 0.3s, color 0.3s;
    border-right: 1px solid #eee; 
    border-left: 1px solid #eee;
}

.main-nav > ul > li:hover .dropdown { 
    display: block; 
    background-color: #FAF8F2; 
    border-left: 1px solid #E8E6E2;
    border-right: 1px solid #E8E6E2; 
    box-shadow: inset 0 0.25rem 0 0 #b38b4d;
}

.dropdown li { 
    display: block; 
    width: 100%; 
}

.dropdown li a { 
    display: block; 
    width: 100%; 
    font-size: 1rem !important; 
    color: #666 !important; 
    padding: 0.625rem 0 !important;
    text-align: center !important; 
    text-decoration: none; 
    transition: background-color 0.3s, color 0.3s; 
}

.dropdown li a:hover { 
    color: #4f4843 !important; 
    text-decoration: underline; 
    font-weight: bold;
}

/* ==========================================================================
   6. 메인 배너 및 비주얼 섹션 (메인 전용)
   ========================================================================== */
.main-visual-row { display: flex; width: 1400px; margin: 50px auto; gap: 40px; justify-content: space-between; }

/* 기존 .box 속성 유지 및 위치 기준점 설정 */
.box { 
    flex-shrink: 0; 
    width: 910px; 
    height: 450px; 
    background: linear-gradient(to bottom, #fdf9ec 0%, #ffffff 100%); 
    position: relative; 
    border: 1px solid #eee; 
    border-radius: 40px; 
    overflow: hidden; /* 영역 밖으로 나가는 이미지 숨기기 */
}

/* 할머니 사진 (글자보다 아래, box2보다는 위/뒤에 오도록 z-index 설정) */
.box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: url('img/grandmother.png?v=20260917') no-repeat left center;
    background-size: cover;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    z-index: 2; /* box2(1)보다는 위, 글자(10 이상)보다는 아래 */
}

.quick-icons { position: absolute; top: 200px; left: 380px; display: flex; gap: 60px; z-index: 10; }
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.menu-item i { display: inline-block; transition: transform 0.2s ease; }
.menu-item:hover i { transform: scale(1.15); }
.menu-item span { font-size: 1rem; font-weight: bold; color: #333; white-space: nowrap; }
.quick-icons .menu-item { position: relative; }
.quick-icons .menu-item:not(:last-child)::after { content: ""; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 1px; height: 40px; background-color: #ccc; }

/* 갈색 하단 바 (.box2) */
.box2 { 
    width: 870px; 
    height: 90px; 
    background-color: #b38b4d; 
    border-radius: 0px 40px 0px 40px; 
    position: absolute; 
    bottom: 0; 
    left: 0px; 
    display: flex; 
    align-items: center; 
    padding-left: 50px; 
    z-index: 1; /* 가장 아래 깔리도록 설정 */
}

/* 글자 및 전화번호 영역이 사진 위로 확실히 올라오도록 z-index 상향 */
div h1 { position: absolute; top: 50px; left: 330px; color: #333; font-size: 2rem; font-weight: 400; letter-spacing: 1px; line-height: 1.3; z-index: 25; font-family: 'Noto Serif KR', serif; }
div h1 span { font-weight: 800; font-size: 2.3rem; color: #b38b4d; font-family: 'Noto Serif KR', serif; }
div h2 { color: white; font-size: 3.5rem; z-index: 20; font-weight: bold; letter-spacing: -1px; }

/* ==========================================================================
   7. 중간 콘텐츠 (Notice & Diet Table)
   ========================================================================== */
.middle-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin: 50px auto; width: 1400px; }
.notice-section { width: 910px; }
.diet-section { width: 450px; flex-shrink: 0; }

.section-header { display: flex; justify-content: space-between; align-items: center; height: 50px; margin-bottom: 15px; font-size: 1.6rem; font-weight: bold; }
.section-header h3 { font-size: 1.6rem; font-weight: bold; margin: 0; }

.notice-container { width: 100%; height: 320px; background-color: white; border: 1px solid #eee; padding: 20px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.notice-list ul { list-style: none; padding: 0; margin: 0; }
.notice-list li { position: relative; padding-left: 15px; border-bottom: 1px solid #eee; }
.notice-list li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background-color: #333; border-radius: 50%; }
.notice-list a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: black; padding: 14px 0; }
.notice-list a:hover { color: #b38b4d; }
.title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin-right: 20px; font-size: 1rem; color: #333; }
.date { white-space: nowrap; flex-shrink: 0; color: #757474; font-size: 0.9rem; }
.notice-btn a { text-decoration: none; color: #666; font-size: 0.9rem; }
.notice-btn:hover a { color: #b38b4d; }

.diet-card { text-align: center; width: 100%; height: 320px; background-color: white; border: 1px solid #eee; padding: 20px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.diet-header { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; font-weight: bold; font-size: 1.2rem; }
.diet-menu ul { list-style: none; padding: 0; }
.diet-menu li { padding: 8px 0; border-bottom: 1px dashed #eee; color: #444; }
.diet-menu li:last-child { border-bottom: none; }
.date-btn { background: none; border: 1px solid #ddd; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; transition: background 0.3s; }
.date-btn:hover { background: #b38b4d; color: white; border-color: #b38b4d; }

/* ==========================================================================
   8. 하단 갤러리 및 서비스 그리드 섹션
   ========================================================================== */
.bottom-gallery { margin: 50px auto; width: 1400px;}
.slide-container { width: 100%; overflow: hidden; border-radius: 15px; background: #f9f9f9; padding: 20px; border: 1px solid #eee; }
.slide-wrapper { display: flex; gap: 20px; }
.slide-item { flex: 0 0 calc(33.333% - 14px); height: 400px; background-color: #ddd; border-radius: 10px; overflow: hidden; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   9. 메인 비주얼 슬라이더 (메인 전용)
   ========================================================================== */
.main-slider { flex-shrink: 0; width: 450px; height: 450px; position: relative; border-radius: 40px; overflow: hidden; border: 1px solid #eee; background-color: #f9f9f9; }
.slider-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.slider-item { min-width: 100%; height: 100%; }
.slider-item img { width: 100%; height: 100%; object-fit: cover; }
.slider-controls { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.6); padding: 8px 20px; border-radius: 25px; display: flex; align-items: center; gap: 15px; z-index: 10; }
.slider-counter { color: #fff; font-size: 0.9rem; font-weight: bold; user-select: none; }
.control-buttons { display: flex; align-items: center; gap: 10px; }
.slider-btn { background: none; border: none; color: #ccc; font-size: 0.9rem; cursor: pointer; transition: color 0.2s; padding: 2px 5px; }
.slider-btn:hover { color: #fff; }

/* ==========================================================================
   10. 서비스 그리드 섹션 (오늘의 식단 옆 칸 등)
   ========================================================================== */
.service-grid-section { width: 450px; flex-shrink: 0; top: 65px; position: relative; }
.grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; }
.grid-item { background-color: white; border: 1px solid #eee; border-radius: 15px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all 0.3s ease; text-decoration: none; color: inherit; }
.grid-item:hover { border-color: #b38b4d; box-shadow: 0 6px 15px rgba(46, 125, 50, 0.1); transform: translateY(-3px); }
.item-img-box { width: 55px; height: 55px; background-color: #f5f5f5; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease; }
.grid-item:hover .item-img-box { background-color: #fffaf4; }
.item-text { font-size: 1.05rem; font-weight: bold; color: #333; user-select: none; }

/* ==========================================================================
   11. 푸터 영역 (Footer - 공통)
   ========================================================================== */
.footer { width: 100%; background-color: #45433F; color: #a0a0a0; padding: 40px 0 50px 0; margin-top: 100px; font-size: 14px; }
.footer-inner { width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 25px; }
.footer-links { display: flex; gap: 25px; border-bottom: 1px solid #666; padding-bottom: 20px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: #ccc; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }
.footer-links a.highlight { color: #4caf50; font-weight: bold; }
.footer-sns { display: flex; gap: 8px; margin-left: auto; }
.footer-sns-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #333 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}
.footer-sns-btn span { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.footer-sns-btn:hover { background: #b38b4d; color: #fff !important; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 24px; }
.shop-card {
    display: grid;
    gap: 8px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #eee8dc;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}
.shop-card i { font-size: 1.6rem; color: #b38b4d; }
.shop-card strong { font-size: 1.05rem; }
.shop-card span { color: #777; font-size: 0.92rem; line-height: 1.5; }
.shop-card em { color: #b38b4d; font-style: normal; font-size: 0.85rem; font-weight: 700; }
.shop-card:hover { border-color: #b38b4d; }
.shop-notice { background: #faf8f2; border-radius: 12px; padding: 18px 20px; }
.shop-call { display: inline-block; margin-top: 8px; color: #b38b4d; font-weight: 700; font-size: 1.1rem; }
@media (max-width: 900px) {
    .shop-grid { grid-template-columns: 1fr; }
    .footer-sns { margin-left: 0; }
}
.footer-info { display: flex; align-items: flex-start; gap: 40px; }
.footer-logo img { height: 80px; opacity: 0.6; margin-top: -15px; }
.info-text p { margin-bottom: 8px; line-height: 1.6; }
.info-text span { display: inline-block; margin-right: 20px; position: relative; }
.info-text span:not(:last-child)::after { content: '|'; position: absolute; right: -12px; color: #555; font-size: 12px; top: 2px; }
.info-text .copyright { margin-top: 15px; color: #777; }

/* ==========================================================================
   12. 검색 오버레이
   ========================================================================== */
.header-right a.js-open-search.is-open,
.header-right a.js-open-search.is-open .fas { color: #b38b4d; }

.search-overlay[hidden] { display: none !important; }

.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e8e0d0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 110;
}

.search-overlay-inner {
    width: 1400px;
    margin: 0 auto;
    padding: 48px 20px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-overlay-form { width: 100%; max-width: 820px; }

.search-overlay-field {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}
.search-overlay-field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.55rem;
    padding: 10px 8px;
    background: transparent;
    font-family: inherit;
    color: #222;
}
.search-overlay-field input::placeholder { color: #bbb; }
.search-overlay-submit {
    width: 52px;
    height: 52px;
    border: none;
    background: none;
    cursor: pointer;
    color: #b38b4d;
    font-size: 1.5rem;
}

.search-recommend {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 28px;
}
.search-recommend strong {
    flex-shrink: 0;
    padding-top: 6px;
    font-size: 0.95rem;
    color: #333;
}
.search-recommend-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.search-recommend-tags button,
.search-recommend-tags a {
    border: 1px solid #ddd;
    background: #faf8f3;
    color: #555;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}
.search-recommend-tags button:hover,
.search-recommend-tags a:hover {
    border-color: #b38b4d;
    color: #b38b4d;
    background: #fffaf4;
}

.search-overlay-close {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    font-family: inherit;
    font-size: 0.85rem;
}
.search-overlay-close i {
    width: 42px;
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.search-overlay-close:hover { color: #333; }
.search-overlay-close:hover i { border-color: #333; }

body.is-search-open header::after { height: 0 !important; }
body.is-search-open header .dropdown { display: none !important; }

/* ==========================================================================
   13. 통합검색 결과 페이지
   ========================================================================== */
.search-page {
    width: 1400px;
    margin: 50px auto 80px;
}
.search-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #333;
    padding-bottom: 14px;
    margin-bottom: 28px;
}
.search-page-head h2 {
    font-size: 2rem;
    color: #333;
}
.search-page-head .breadcrumb {
    font-size: 0.95rem;
    color: #777;
}
.search-page-head .breadcrumb strong {
    color: #b38b4d;
    font-weight: bold;
}

/* ==========================================================================
   13-1. 전체메뉴(사이트맵) 페이지
   ========================================================================== */
.sitemap-page {
    width: 1400px;
    margin: 50px auto 80px;
}
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #eee;
}
.sitemap-col {
    padding: 36px 28px 48px;
    min-height: 320px;
}
.sitemap-col h3 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.03em;
    line-height: 1.3;
}
.sitemap-col h3 a {
    text-decoration: none;
    color: inherit;
}
.sitemap-col h3 a:hover {
    color: #b38b4d;
}
.sitemap-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sitemap-col li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #555;
    font-size: 0.98rem;
    line-height: 1.5;
}
.sitemap-col li a:hover {
    color: #b38b4d;
}

.search-filter-box {
    background: #faf8f3;
    border: 1px solid #e8e0d0;
    border-radius: 10px;
    padding: 28px 36px 24px;
}
.search-filter-keyword {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.search-filter-keyword input[type="search"] {
    flex: 1;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 1.05rem;
    font-family: inherit;
}
.search-filter-keyword input[type="search"]:focus {
    outline: none;
    border-color: #b38b4d;
}
.search-filter-submit {
    min-width: 110px;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: #4a3c28;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.search-filter-submit:hover { background: #3a2f1f; }

.search-filter-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.search-filter-row .filter-label {
    width: 72px;
    flex-shrink: 0;
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}
.search-filter-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
}
.search-filter-row input[type="radio"] {
    accent-color: #b38b4d;
}
.search-date-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}
.search-date-range input[type="date"] {
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 8px;
    font-family: inherit;
    color: #333;
}
.search-date-range.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.search-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.popular-box {
    width: 280px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.popular-box h3 {
    background: #b38b4d;
    color: #fff;
    text-align: center;
    padding: 16px 12px;
    font-size: 1.15rem;
}
.popular-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}
.popular-tabs button {
    flex: 1;
    height: 44px;
    border: none;
    background: #f7f5ee;
    color: #777;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.popular-tabs button.is-active {
    background: #fff;
    color: #b38b4d;
    box-shadow: inset 0 -2px 0 #b38b4d;
}
.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.95rem;
}
.popular-list li:last-child a { border-bottom: none; }
.popular-list li a:hover { color: #b38b4d; background: #fffaf4; }
.popular-rank {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #eee;
    color: #666;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.popular-list li:nth-child(-n+3) .popular-rank {
    background: #b38b4d;
    color: #fff;
}

.search-result-main { flex: 1; min-width: 0; }

.result-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #ddd;
}
.result-tabs button {
    padding: 14px 22px;
    border: none;
    background: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.result-tabs button.is-active {
    color: #b38b4d;
    font-weight: 700;
    border-bottom-color: #b38b4d;
}

.result-count {
    margin: 18px 0 10px;
    color: #555;
    font-size: 0.95rem;
}
.result-count em {
    color: #b38b4d;
    font-style: normal;
    font-weight: 700;
}

.result-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 8px 0 28px;
}
.result-summary-card {
    background: #faf8f3;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 22px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-summary-card span { color: #555; font-weight: 700; }
.result-summary-card strong { color: #b38b4d; font-size: 1.3rem; }

.result-group + .result-group { margin-top: 36px; }
.result-group h3 {
    font-size: 1.15rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}
.result-item {
    padding: 20px 4px;
    border-bottom: 1px solid #eee;
}
.result-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.result-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1e6d2;
    color: #7a5a28;
}
.result-badge.is-board {
    background: #eef3e4;
    color: #4a6b2a;
}
.result-item-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}
.result-item-title:hover { color: #b38b4d; }
.result-item-title em,
.result-item-snippet em {
    font-style: normal;
    font-weight: 700;
    color: #b38b4d;
    background: #fff4e0;
}
.result-item-meta {
    display: flex;
    gap: 16px;
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 8px;
}
.result-item-snippet {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.55;
}

.search-empty {
    text-align: center;
    padding: 70px 20px;
    color: #888;
    border: 1px dashed #ddd;
    border-radius: 10px;
    margin-top: 20px;
}
.search-empty strong { display: block; color: #333; margin-bottom: 8px; font-size: 1.1rem; }

/* ==========================================================================
   14. 로그인 / 회원가입
   ========================================================================== */
.auth-wrap {
    min-height: 640px;
    background: linear-gradient(180deg, #fdf9ec 0%, #ffffff 55%);
    padding: 56px 20px 80px;
    font-family: 'Noto Sans KR', 'Arial', sans-serif;
}
.auth-inner {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.auth-hero {
    text-align: center;
    margin-bottom: 28px;
}
.auth-hero .eyebrow {
    display: inline-block;
    background: #fff;
    color: #b38b4d;
    border: 1px solid #ead9b8;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.auth-hero h1 {
    position: static;
    top: auto;
    left: auto;
    font-family: 'Noto Serif KR', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #3f3426;
    line-height: 1.45;
    letter-spacing: -0.5px;
}
.auth-hero h1 span { color: #b38b4d; }
.auth-hero p {
    margin-top: 10px;
    color: #7a6a52;
    font-size: 0.98rem;
    line-height: 1.6;
}

.auth-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 12px 30px rgba(179, 139, 77, 0.08);
}
.auth-card h2 {
    font-size: 1.35rem;
    margin-bottom: 22px;
    color: #333;
    text-align: center;
}

.auth-field { margin-bottom: 14px; }
.auth-field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}
.auth-input {
    position: relative;
}
.auth-input input,
.auth-field select {
    width: 100%;
    height: 50px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 0 44px 0 44px;
    font-size: 0.98rem;
    font-family: inherit;
    background: #fafafa;
    color: #333;
}
.auth-field textarea {
    width: 100%;
    min-height: 88px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    resize: vertical;
}
.auth-input input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: #b38b4d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(179, 139, 77, 0.12);
}
.auth-input .field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b38b4d;
    font-size: 0.95rem;
}
.auth-input .toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
}
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 18px;
    font-size: 0.88rem;
    color: #666;
}
.auth-check input { margin-top: 3px; accent-color: #b38b4d; }

.auth-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: #b38b4d;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 16px rgba(179, 139, 77, 0.25);
}
.auth-submit:hover { background: #9d753c; }
.auth-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    font-size: 0.9rem;
}
.auth-links a {
    color: #666;
    text-decoration: none;
    padding: 0 12px;
}
.auth-links a:hover { color: #b38b4d; }
.auth-links a + a {
    border-left: 1px solid #ddd;
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 18px;
    color: #999;
    font-size: 0.85rem;
}
.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

.auth-social-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.social-btn.kakao { background: #fee500; color: #3c1e1e; }
.social-btn.naver { background: #03c75a; color: #fff; font-family: sans-serif; }
.social-btn.google { background: #fff; color: #ea4335; border: 1px solid #eee; }
.social-btn:hover { transform: translateY(-2px); }

.auth-social-hint {
    text-align: center;
    margin-top: 14px;
    color: #999;
    font-size: 0.82rem;
}

.auth-message {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.auth-message.is-error { display: block; background: #fff1f1; color: #c0392b; border: 1px solid #f5c6c6; }
.auth-message.is-ok { display: block; background: #f3f8ec; color: #4a6b2a; border: 1px solid #d7e6c3; }

.auth-tabs {
    display: flex;
    margin: -8px 0 22px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #777;
    font-weight: 700;
    background: #fafafa;
}
.auth-tabs a.is-active {
    background: #fff;
    color: #b38b4d;
    box-shadow: inset 0 -2px 0 #b38b4d;
}

.auth-demo {
    margin-top: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}