﻿@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
    --page-bg: #f7f8fa;
    --surface: #fff;
    --text: #222;
    --muted: #777;
    --line: #e9ecef;
    --accent: #ff6b50;
    --radius: 12px;
    --shadow: 0 10px 26px rgba(24, 29, 38, 0.08);
    font-family: Pretendard, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, 100%);
    min-height: 76px;
    margin: 0 auto;
    padding: 15px 24px;
}

.brand-block {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 150px;
    min-width: 0;
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: 0;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.brand-tagline {
    margin: 0;
    color: #55514a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.main-nav,
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav {
    margin-right: auto;
    margin-left: 32px;
}

/* ── nav item + dropdown ── */
.nav-item {
    position: relative;
}

.main-nav a {
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item > a::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .55;
}

/* dropdown panel */
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 186px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(20,28,40,.13), 0 0 0 1px rgba(0,0,0,.06);
    z-index: 100;
}

/* 위쪽 삼각형 */
.dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-radius: 2px 0 0 0;
    background: #fff;
    box-shadow: -2px -2px 4px rgba(0,0,0,.05);
}

.dropdown li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 18px;
    color: #2e3540;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .12s;
}

.dropdown li a:hover {
    background: #f5f7fa;
    color: var(--accent);
}

.dropdown li a span {
    margin-left: auto;
    color: #aaa;
    font-size: 12px;
    font-weight: 400;
}

.dropdown li a svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    opacity: .5;
}

.dropdown li a:hover svg { opacity: 1; }

/* 그룹 레이블 */
.dropdown-group {
    padding: 8px 18px 4px;
    color: #b0b8c4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-top: 1px solid #f0f2f5;
    margin-top: 4px;
}

.dropdown-group:first-child {
    border-top: none;
    margin-top: 0;
}

.nav-item:hover > a { color: var(--accent); }
.nav-item:hover .dropdown { display: block; }

/* nav link와 dropdown 사이 틈을 메워 hover가 끊기지 않도록 */
.nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 14px;
    display: none;
}

.nav-item:hover::after { display: block; }

.header-actions {
    gap: 18px;
}

.icon-button {
    width: 28px;
    height: 28px;
    color: #aaa;
    font-size: 24px;
    line-height: 1;
}

.login-icon {
    width: 32px;
    height: 32px;
}

.login-icon svg {
    width: 100%;
    height: 100%;
}

.page {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(16px, 2vw, 24px);
}

.hero-carousel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 26px;
}

.hero-card {
    display: flex;
    align-items: flex-end;
    min-height: 260px;
    padding: 30px;
    border-radius: var(--radius);
    color: #fff;
    overflow: hidden;
}

.hero-card-primary {
    background:
        linear-gradient(90deg, rgba(18, 20, 24, 0.72), rgba(18, 20, 24, 0.08)),
        url("../img/hero-meetup.png") center / cover no-repeat;
}

.hero-card-secondary {
    background:
        linear-gradient(180deg, rgba(18, 20, 24, 0.18), rgba(18, 20, 24, 0.68)),
        url("../img/card-covers.png") 100% 50% / 200% 200% no-repeat;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
}

.hero-card h1,
.hero-card h2,
.hero-card p {
    margin: 0;
}

.hero-card h1 {
    max-width: 580px;
    font-size: 38px;
    line-height: 1.22;
}

.hero-card h2 {
    font-size: 26px;
    line-height: 1.28;
}

.hero-card p {
    max-width: 560px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.55;
}

.angle-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}

.angle-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    border-radius: var(--radius);
    background: var(--surface);
    color: #3d4249;
    font-size: 14px;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--line);
}

/* 필터 아이콘 — 카테고리별 색상 */
.angle-list .filter-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
}

/* 신앙 나눔 */
.angle-list a:nth-child(1) .filter-icon { background: #ffe8ee; color: #e0405e; }
/* 피정·특강 */
.angle-list a:nth-child(2) .filter-icon { background: #eef0ff; color: #4f46e5; }
/* 주말모임 */
.angle-list a:nth-child(3) .filter-icon { background: #fff6d6; color: #d97706; }
/* 평일모임 */
.angle-list a:nth-child(4) .filter-icon { background: #e8f8f0; color: #16a34a; }
/* 봉사·사목 */
.angle-list a:nth-child(5) .filter-icon { background: #fff0e6; color: #ea5a08; }
/* 취미·친교 */
.angle-list a:nth-child(6) .filter-icon { background: #e8f4ff; color: #0369a1; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head h2,
.section-head p {
    margin: 0;
}

.section-head h2 {
    font-size: 24px;
}

.section-head p {
    margin-top: 6px;
    color: var(--muted);
}

.section-head a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #8b95a2;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.section-head a span {
    font-size: 18px;
    line-height: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.meeting-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card-image {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    height: 172px;
    padding: 12px;
    background: #d9dde3;
}

.card-image span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 12px;
    font-weight: 700;
}

.image-food,
.image-culture,
.image-walk,
.image-study {
    background-image: url("../img/card-covers.png");
    background-size: 200% 200%;
    background-repeat: no-repeat;
}

.image-food {
    background-position: 0 0;
}

.image-culture {
    background-position: 100% 0;
}

.image-walk {
    background-position: 0 100%;
}

.image-study {
    background-position: 100% 100%;
}

.card-body {
    padding: 15px;
}

.meta,
.schedule {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.meeting-card h3 {
    min-height: 54px;
    margin: 8px 0 14px;
    font-size: 18px;
    line-height: 1.35;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 14px;
}

.card-foot span {
    color: var(--muted);
    font-weight: 500;
}

.card-foot strong {
    color: var(--text);
}

.review-section {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    margin-top: 54px;
    padding: 8px 0 34px;
}

.review-intro h2 {
    margin: 0;
    color: #222;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.review-intro p {
    margin: 10px 0 0;
    color: #96999f;
    font-size: 16px;
    line-height: 1.55;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.review-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #edf0f3;
}

.review-card header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f2;
}

.review-thumb {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-image: url("../img/card-covers.png");
    background-size: 200% 200%;
    background-repeat: no-repeat;
}

.review-thumb-walk {
    background-position: 0 100%;
}

.review-thumb-art {
    background-position: 100% 0;
}

.review-thumb-party {
    background-position: 100% 100%;
}

.review-card h3 {
    margin: 0;
    color: #272b31;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.42;
}

.review-arrow {
    color: #777;
    font-size: 26px;
    line-height: 1;
}

.review-card > p {
    margin: 12px 0 0;
    color: #3d4249;
    font-size: 14px;
    line-height: 1.7;
}

.review-card footer {
    margin-top: auto;
    padding-top: 18px;
}

.review-card strong,
.review-card footer span {
    display: block;
}

.review-card strong {
    color: #ffb000;
    font-size: 14px;
    font-weight: 600;
}

.review-card footer span {
    margin-top: 10px;
    color: #a0a3aa;
    font-size: 14px;
}

.story-gallery {
    position: relative;
    margin-top: 36px;
    padding-bottom: 58px;
}

.story-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 26px;
}

.story-head h2,
.story-head p,
.story-card p {
    margin: 0;
}

.story-head h2 {
    color: #222;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
}

.story-head p {
    margin-top: 10px;
    color: #96999f;
    font-size: 16px;
}

.story-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0a3aa;
    font-size: 16px;
    font-weight: 500;
}

.story-head a span {
    font-size: 24px;
    line-height: 1;
}

.story-list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

.story-list.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.story-list::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 180px;
    min-width: 0;
    scroll-snap-align: start;
}

.story-image {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    height: 180px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 8px;
    background-image: url("../img/card-covers.png");
    background-size: 200% 200%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.story-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.28));
}

.story-image span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.story-card p {
    color: #333840;
    font-size: 16px;
    line-height: 1.5;
}

.match-gallery {
    margin: -24px 0 46px;
    padding: 0 0 2px;
    width: 100%;
}

.match-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.match-gallery h2 {
    margin: 0 0 14px;
    color: #222;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
}

.match-head h2 {
    margin-bottom: 0;
}

.match-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0a3aa;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.match-head a span {
    font-size: 24px;
    line-height: 1;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 12px;
    align-items: start;
    padding-bottom: 2px;
}

.match-profile {
    margin: 0;
    min-width: 0;
}

.match-link {
    display: block;
}

.match-link:focus-visible {
    outline: 3px solid #1f6feb;
    outline-offset: 3px;
}

.match-face {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.faith-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    margin: 0;
}

.faith-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
}

.faith-card-head {
    padding: 18px 20px 0;
}

.faith-card-head h2,
.media-feature h2 {
    margin: 0;
}

.faith-card-head h2 {
    color: #20242a;
    font-size: 17px;
    font-weight: 600;
}

.bible-card {
    display: flex;
    flex-direction: column;
}

.bible-slider {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    padding: 8px 14px 0;
}

.bible-viewport {
    min-width: 0;
    overflow: hidden;
}

.bible-track {
    display: flex;
    transition: transform 0.32s ease;
    will-change: transform;
}

.slider-arrow {
    color: #3a3d42;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.bible-slide {
    flex: 0 0 100%;
    min-width: 0;
    text-align: center;
}

.bible-slide > strong {
    display: block;
    margin: 2px 0 14px;
    color: #0077b6;
    font-size: 16px;
    font-weight: 700;
}

.bible-illustration {
    position: relative;
    height: 204px;
    border-radius: 4px;
    background: linear-gradient(#bdf2ec 0 62%, #7fc643 62% 100%);
    overflow: hidden;
}

.bible-illustration-light {
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.95), rgba(255, 236, 165, 0.58) 32%, transparent 58%),
        linear-gradient(#dff7ff 0 58%, #f9e9b4 58% 100%);
}

.bible-illustration-group {
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(#d7f0ff 0 56%, #75bd58 56% 100%);
}

.bible-illustration-note {
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.78), transparent 26%),
        linear-gradient(#f8efd8 0 58%, #e3bf77 58% 100%);
}

.bible-illustration p {
    position: relative;
    z-index: 2;
    margin: 28px 0 0;
    color: #2b8b36;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.bible-illustration-light p,
.bible-illustration-group p,
.bible-illustration-note p {
    margin-top: 24px;
    color: #2b6f6c;
}

.halo {
    position: absolute;
    left: 50%;
    top: 58px;
    width: 88px;
    height: 88px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.22), 0 0 38px rgba(255, 190, 70, 0.45);
}

.open-bible {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 130px;
    height: 58px;
    transform: translateX(-50%);
    border-radius: 8px 8px 18px 18px;
    background:
        linear-gradient(90deg, #fff 0 48%, #d6e2f2 48% 52%, #fff 52% 100%);
    box-shadow: 0 10px 0 rgba(56, 90, 120, 0.15);
}

.group-person {
    position: absolute;
    bottom: 22px;
    width: 48px;
    height: 82px;
    border-radius: 24px 24px 8px 8px;
    background: #30445f;
}

.group-person::before {
    content: "";
    position: absolute;
    left: 12px;
    top: -24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #efc18f;
}

.group-person-one {
    left: 66px;
    background: #355d78;
}

.group-person-two {
    left: 50%;
    transform: translateX(-50%);
    background: #2d4a37;
}

.group-person-three {
    right: 66px;
    background: #6a526d;
}

.note-paper {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 126px;
    height: 122px;
    transform: translateX(-50%) rotate(-2deg);
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 12px 0 rgba(128, 92, 44, 0.14);
}

.note-paper::before {
    content: "";
    position: absolute;
    inset: 30px 18px auto;
    height: 2px;
    background: #e4c78b;
    box-shadow: 0 22px 0 #e4c78b, 0 44px 0 #e4c78b;
}

.note-pencil {
    position: absolute;
    right: 62px;
    bottom: 44px;
    width: 18px;
    height: 94px;
    transform: rotate(34deg);
    border-radius: 8px;
    background: linear-gradient(#f6c44d 0 76%, #3d4249 76% 100%);
}

.cloud {
    position: absolute;
    width: 44px;
    height: 12px;
    border-radius: 999px;
    background: #fff;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

.cloud::before {
    width: 18px;
    height: 18px;
    left: 8px;
    top: -8px;
}

.cloud::after {
    width: 24px;
    height: 24px;
    right: 7px;
    top: -12px;
}

.cloud-one {
    left: 55px;
    top: 30px;
}

.cloud-two {
    right: 42px;
    top: 16px;
}

.school {
    position: absolute;
    left: 74px;
    right: 74px;
    bottom: 42px;
    height: 52px;
    background: #fff8e7;
    border: 2px solid #7ea3b0;
}

.school::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 52px;
    height: 42px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, transparent 49%, #7ea3b0 50% 54%, transparent 55%),
        linear-gradient(225deg, transparent 49%, #7ea3b0 50% 54%, transparent 55%),
        #fff8e7;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tree {
    position: absolute;
    top: 0;
    width: 80px;
    height: 70px;
    border-top: 5px solid #64ac36;
}

.tree::before,
.tree::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc929;
    box-shadow: 16px 10px 0 #ffc929, 30px 4px 0 #64ac36, 48px 18px 0 #64ac36;
}

.tree-left {
    left: 10px;
    transform: rotate(-16deg);
}

.tree-right {
    right: 8px;
    transform: rotate(18deg);
}

.student {
    position: absolute;
    bottom: 12px;
    width: 26px;
    height: 60px;
    border-radius: 12px 12px 4px 4px;
    background: #29364a;
}

.student::before {
    content: "";
    position: absolute;
    left: 6px;
    top: -18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f0c08a;
}

.student-one {
    left: 92px;
    transform: rotate(12deg);
}

.student-two {
    left: 50%;
    transform: translateX(-50%);
    background: #334a5f;
}

.student-three {
    right: 88px;
    transform: rotate(-12deg);
}

.bible-slider-status {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-dot {
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #666;
    appearance: none;
    cursor: pointer;
}

.slider-dot.is-active {
    background: #000;
}

.slider-dot.is-active ~ .slider-dot {
    background: #666;
}

.bible-links {
    margin-top: 16px;
    border-top: 1px solid #d9dde2;
}

.bible-links a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #d9dde2;
    color: #20242a;
    font-size: 16px;
    line-height: 1.35;
}

.bible-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: auto;
}

.bible-tabs button {
    min-height: 40px;
    border-right: 1px solid #e1e4e8;
    background: #fafafa;
    color: #4a5058;
    font-size: 14px;
}

.bible-tabs button:last-child {
    border-right: 0;
}

.spirit-card {
    border-color: #eadfca;
}

.spirit-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67625f;
    font-size: 18px;
}

.spirit-image-frame {
    display: flex;
    justify-content: center;
    margin: 12px 14px 0;
}

.spirit-image-frame img {
    display: block;
    max-width: 100%;
    height: auto;
}

.media-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 16px 18px 10px;
    color: #737984;
    font-size: 17px;
}

.media-tabs a + a::before {
    content: "|";
    margin-right: 13px;
    color: #b6bac0;
}

.media-tabs a.is-active {
    color: #26303a;
    font-weight: 600;
}

.new-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 3px;
    border-radius: 50%;
    background: #e60012;
    vertical-align: top;
}

.media-feature {
    display: block;
    padding: 0 20px;
}

.video-thumb {
    position: relative;
    min-height: 214px;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 25%, rgba(55, 92, 158, 0.7), transparent 28%),
        linear-gradient(120deg, #162844, #07101c 58%, #0d1221);
}

.video-thumb::before {
    content: "롬팔이팔    이책정말좋은데";
    position: absolute;
    top: 15px;
    left: 50%;
    padding: 5px 12px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #0d2447;
    color: #f7cf60;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.video-thumb strong {
    position: absolute;
    right: 18px;
    bottom: 44px;
    max-width: 248px;
    color: #ffe766;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    text-align: right;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.host {
    position: absolute;
    bottom: 0;
    width: 112px;
    height: 162px;
    border-radius: 54px 54px 0 0;
    background: linear-gradient(#f0c69b 0 34%, #28344a 34% 100%);
}

.host::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0c69b;
    box-shadow: inset 0 -8px 0 rgba(70, 52, 38, 0.22);
}

.host-left {
    left: 26px;
}

.host-right {
    right: 26px;
    background: linear-gradient(#f0c69b 0 34%, #5f666f 34% 100%);
}

.media-feature h2 {
    padding: 14px 0 12px;
    color: #20242a;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
}

.media-list {
    margin: 0 20px;
    padding: 0;
    list-style: none;
    border-top: 1px solid #d6d9dd;
}

.media-list li {
    border-bottom: 1px solid #d6d9dd;
}

.media-list li:nth-child(3) {
    border-bottom: 0;
}

.media-list a {
    display: block;
    padding: 13px 0;
    color: #29313b;
    font-size: 16px;
    line-height: 1.35;
}

.media-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #e0e3e7;
}

.media-channels a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    border-right: 1px solid #e0e3e7;
    color: #4a5058;
    font-size: 14px;
}

.media-channels a:last-child {
    border-right: 0;
}

.media-channels span {
    width: 20px;
    height: 14px;
    border-radius: 4px;
    background: #e62117;
}

.media-channels span::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 4px auto 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid #fff;
}

.story-study {
    background-position: 100% 100%;
}

.story-night {
    background-position: 100% 0;
}

.story-office {
    background-position: 0 100%;
}

.story-book {
    background-position: 0 0;
}

.story-table {
    background-image: url("../img/hero-meetup.png");
    background-size: cover;
    background-position: center;
}

.story-empty {
    align-items: flex-end;
    justify-content: space-between;
    background: #f0f0f2;
}

.story-empty::before {
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.14));
}

.story-prev,
.story-next {
    display: grid;
    place-items: center;
    position: absolute;
    top: 160px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(25, 29, 35, 0.18);
    color: #333;
    font-size: 28px;
}

.story-prev {
    left: 0;
}

.story-next {
    right: 0;
}

.story-meetup-01 {
    background-image: url("../img/story-meetup-01.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-02 {
    background-image: url("../img/story-meetup-02.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-03 {
    background-image: url("../img/story-meetup-03.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-04 {
    background-image: url("../img/story-meetup-04.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-05 {
    background-image: url("../img/story-meetup-05.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-06 {
    background-image: url("../img/story-meetup-06.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-07 {
    background-image: url("../img/story-meetup-07.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-08 {
    background-image: url("../img/story-meetup-08.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-09 {
    background-image: url("../img/story-meetup-09.png");
    background-size: cover;
    background-position: center;
}

.story-meetup-10 {
    background-image: url("../img/story-meetup-10.png");
    background-size: cover;
    background-position: center;
}

.site-footer {
    margin-top: 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 70px;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 38px 24px 44px;
}

.footer-links,
.footer-company {
    color: #20242a;
    font-size: 14px;
}

.footer-company {
    justify-self: end;
    text-align: left;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-links strong,
.footer-company strong {
    margin-bottom: 4px;
    color: #3d4249;
    font-size: 14px;
    font-weight: 600;
}

.footer-links a {
    font-weight: 600;
}

.footer-company p {
    margin: 14px 0 0;
    color: #666c75;
    font-size: 13px;
    line-height: 1.65;
    white-space: nowrap;
}

.policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 18px;
}

.policy-links a {
    color: #20242a;
    font-size: 13px;
}

.policy-links a + a::before {
    content: "|";
    margin: 0 7px;
    color: #9ba0a8;
}

/* ── Gnuboard theme integration ── */

/* 기본 폰트 */
body, input, textarea, select, button, table {
    font-family: Pretendard, Arial, sans-serif !important;
}

/* default.css가 #container에 float:left; width:930px 적용 → 재정의 */
#container.matching-pc-container {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    background: #fff;
}

/* 홈 전용: .page 역할을 .pc-inner가 담당 */
#container.matching-pc-container.is-index .pc-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(16px, 2vw, 24px);
}

/* 일반 페이지 inner padding */
#container.matching-pc-container:not(.is-index) .pc-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 50px 20px 32px;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.875rem;
    color: #666;
}

.page-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.55;
}

.page-title-brand {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1.875rem;
    font-weight: 600;
    padding-top: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e6ea;
}

#ctt {
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 1rem;
    background: none !important;
}

#container.matching-pc-container.is-index #skip_to_container { display: none; }

/* ── Mobile hamburger (desktop에서는 숨김) ── */
.mob-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #333;
    font-size: 24px;
    line-height: 1;
}

/* ── PC 테마 모바일 드로어 ── */
.pc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.42);
}
.pc-overlay.open { display: block; }

.pc-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 210;
    width: 280px;
    max-width: 85vw;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.pc-drawer.open { transform: translateX(0); }

.pc-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eef0f2;
}

.pc-drawer-logo {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.pc-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 22px;
    color: #888;
}

.pc-drawer-menu {
    margin: 0;
    padding: 8px 0 32px;
    list-style: none;
}

.pc-drawer-item {
    border-bottom: 1px solid #f0f2f5;
}

.pc-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.pc-drawer-btn::after {
    content: "›";
    font-size: 20px;
    color: #bbb;
    transition: transform 0.2s;
}
.pc-drawer-btn.open::after { transform: rotate(90deg); }

.pc-drawer-sub {
    display: none;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    background: #f8f9fb;
}
.pc-drawer-sub.open { display: block; }

.pc-drawer-sub li a {
    display: block;
    padding: 11px 20px 11px 28px;
    border-bottom: 1px solid #eef0f2;
    color: #444;
    font-size: 14px;
}
.pc-drawer-sub li:last-child a { border-bottom: 0; }

/* ── About 페이지 사이드바 레이아웃 ── */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: start;
}


.about-sidebar {
    position: sticky;
    top: 88px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf0f3;
    box-shadow: 0 2px 12px rgba(20, 28, 40, .06);
    overflow: hidden;
}

.asb-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    background: #f5f6f8;
    border-bottom: 1px solid #edf0f3;
    color: #3d4249;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0;
}

.asb-head svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.7;
}

.asb-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.asb-list li {
    border-bottom: 1px solid #f0f2f5;
}

.asb-list li:last-child {
    border-bottom: 0;
}

.asb-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: #2e3540;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background .12s, color .12s;
}

.asb-list li a:hover {
    background: #f8f9fb;
    color: var(--accent);
}
.asb-list li a:hover svg { opacity: 1; }

.asb-list li.is-active > a {
    background: #fff3f0;
    color: var(--accent);
    font-weight: 600;
}

.asb-list li a svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: .55;
}

.asb-list li.is-active > a svg { opacity: 1; }

/* 카테고리 부제 (말씀·기도 등) — 헤더 드롭다운과 동일 스타일 */
.asb-list li a .asb-sub {
    margin-left: auto;
    color: #aaa;
    font-size: 12px;
    font-weight: 400;
}
.asb-list li.is-active > a .asb-sub { color: var(--accent); opacity: .7; }

/* 함께 걷기 일정 세그먼트 토글 (전체일정/주말모임/평일모임) */
.asb-seg {
    display: flex;
    gap: 2px;
    margin: 14px 5px;
    padding: 3px;
    background: #f6f7f9;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05);
}
.asb-seg a {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 30px;
    border-radius: 6px;
    color: #8b9098;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.asb-seg a:hover { color: #4b5563; }
.asb-seg a.is-active {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 0 0 1px rgb(108 108 108 / 20%);
}
.asb-seg .seg-check {
    display: none;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}
.asb-seg a.is-active .seg-check { display: inline-flex; }

.about-content-spacer { height: 20px; }

.about-content {
    min-width: 0;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(20, 28, 40, .06);
    padding-left: 24px;
    padding-right: 24px;
}

/* 내용관리(content.php) 페이지: 본문 카드를 사이드바 높이에 맞춰 채움 */
.about-layout:has(#ctt) { align-items: stretch; }
.about-layout:has(#ctt) .about-content { display: flex; flex-direction: column; }
.about-layout:has(#ctt) #ctt { flex: 1 1 auto; }

.about-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-visit-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf0f3;
    box-shadow: 0 2px 12px rgba(20, 28, 40, .06);
    overflow: hidden;
}

/* 사이드바 최신글 박스 (접속자 통계 위) */
.about-latest-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf0f3;
    box-shadow: 0 2px 12px rgba(20, 28, 40, .06);
    overflow: hidden;
}
.asb-latest { list-style: none; margin: 0; padding: 6px 0; }
.asb-latest li + li { border-top: 1px solid #f4f6f8; }
.asb-latest li a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    text-decoration: none;
}
.asb-latest .alb-subj {
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.8125rem; color: #374151;
}
.asb-latest li a:hover .alb-subj { color: var(--accent, #ff5a3d); }
.asb-latest .alb-cate {
    flex: 0 0 auto;
    font-size: 0.68rem; color: #9ca3af; white-space: nowrap;
}
.asb-latest .alb-empty { padding: 14px 16px; font-size: 0.8125rem; color: #9ca3af; text-align: center; }

.asb-visit-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 0;
    margin: 0;
    padding: 14px 18px;
}

.asb-visit-list dt {
    font-size: 0.8125rem;
    color: #888;
    padding: 4px 0;
}

.asb-visit-list dd {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2e3540;
    text-align: right;
    margin: 0;
    padding: 4px 0;
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    .about-sidebar {
        position: static;
    }
}

/* ── 히어로 CTA 버튼 ── */
.hero-cta-group {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.hero-btn:hover { opacity: 0.88; }

.hero-btn-primary {
    background: rgba(255, 255, 255, 0.92);
    color: #1a202c;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
}

/* ══════════ RESPONSIVE ══════════ */

/* 대형 태블릿 (≤ 1100px) */
@media (max-width: 1100px) {
    .main-nav { gap: 16px; margin-left: 20px; }
    .main-nav a { font-size: 16px; }
    .hero-card h1 { font-size: 32px; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .faith-widgets { grid-template-columns: 1fr 1fr; }
    .faith-widgets .faith-card:last-child { grid-column: span 2; }
}

/* 태블릿 (≤ 900px) */
@media (max-width: 900px) {
    .main-nav { gap: 10px; margin-left: 12px; }
    .main-nav a { font-size: 14px; }
    .hero-card h1 { font-size: 26px; }
    .review-section { grid-template-columns: 1fr; gap: 28px; }
    .review-list { grid-template-columns: repeat(3, 1fr); }
    .match-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 모바일 (≤ 768px) */
@media (max-width: 768px) {
    /* 헤더 */
    .main-nav { display: none; }
    .brand-tagline { display: none; }
    .mob-menu-btn { display: flex; }

    /* 히어로: full-bleed */
    .hero-carousel {
        grid-template-columns: 1fr;
        margin: 0 -16px 20px;
        gap: 0;
    }
    .hero-card-secondary { display: none; }
    .hero-card { min-height: 260px; border-radius: 0; }
    .hero-card h1 { font-size: 26px; max-width: 100%; }

    /* pc-inner 패딩 조정 (히어로가 full-bleed 나가도록) */
    #container.matching-pc-container.is-index .pc-inner {
        padding: 0 16px;
    }

    /* 카테고리 필터 */
    .angle-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .angle-list a { min-height: 86px; font-size: 13px; }
    .angle-list .filter-icon { width: 38px; height: 38px; font-size: 20px; }

    /* 카드 그리드 */
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* 후기 섹션 */
    .review-section { grid-template-columns: 1fr; gap: 20px; }
    .review-list { grid-template-columns: 1fr; }

    /* 매칭 그리드 */
    .match-grid { grid-template-columns: repeat(4, 1fr); }

    /* 신앙 위젯 */
    .faith-widgets { grid-template-columns: 1fr; }
    .faith-widgets .faith-card:last-child { grid-column: auto; }

    /* 푸터 */
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-company { justify-self: start; }
    .footer-company p { white-space: normal; }
}

/* 소형 모바일 (≤ 480px) */
@media (max-width: 480px) {
    .header-inner { padding: 10px 16px; min-height: 60px; }
    .brand { width: 120px; }

    .hero-card { min-height: 240px; padding: 24px 20px; }
    .hero-card h1 { font-size: 22px; }
    .hero-card p { font-size: 14px; }
    .hero-cta-group { margin-top: 14px; gap: 8px; }
    .hero-btn { padding: 9px 16px; font-size: 14px; }

    /* 카테고리 필터: 가로 스크롤 칩 형태 */
    .angle-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        margin: 0 -16px 20px;
        padding: 0 16px 6px;
    }
    .angle-list::-webkit-scrollbar { display: none; }
    .angle-list a {
        flex: 0 0 84px;
        min-height: 84px;
        scroll-snap-align: start;
        font-size: 12px;
        gap: 5px;
    }
    .angle-list .filter-icon { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }

    /* 카드: 1열 */
    .card-grid { grid-template-columns: 1fr; }
    .meeting-card h3 { min-height: auto; font-size: 16px; }

    /* 매칭 그리드: 3열 */
    .match-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

    /* 스토리 슬라이더 */
    .story-card { flex: 0 0 148px; }
    .story-image { height: 148px; }

    /* 섹션 제목 */
    .section-head h2 { font-size: 20px; }
    .review-intro h2 { font-size: 20px; }
    .story-head h2 { font-size: 20px; }
    .match-gallery h2 { font-size: 20px; }

    /* 푸터 */
    .footer-inner { padding: 24px 16px 32px; }
}

/* ── 페이지네이션 ── */
.pg_wrap {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 28px 0 8px;
    clear: both;
    float: none !important;
    width: 100%;
}
.pg_wrap:after { content: none; }
.pg_wrap .pg {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 공통 버튼 */
.pg_page,
.pg_current,
.pg_prev,
.pg_next,
.pg_start,
.pg_end {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e4e6ea !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
    vertical-align: middle;
    text-indent: 0 !important;
    background-image: none !important;
    cursor: pointer;
}

.pg_page:hover,
.pg_prev:hover,
.pg_next:hover,
.pg_start:hover,
.pg_end:hover {
    border-color: var(--accent, #e05a2b) !important;
    color: var(--accent, #e05a2b) !important;
    background: #fff8f6 !important;
    box-shadow: 0 0 0 3px rgba(224,90,43,.08);
}

/* 현재 페이지 */
.pg_current {
    background: var(--accent, #e05a2b) !important;
    border-color: var(--accent, #e05a2b) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(224,90,43,.25);
}

/* 처음/이전/다음/끝 — 텍스트 숨기고 화살표만 */
.pg_start,
.pg_prev,
.pg_next,
.pg_end {
    font-size: 0 !important;
    min-width: 36px;
}
.pg_start::before { content: "«"; font-size: 1.1rem; }
.pg_prev::before  { content: "‹"; font-size: 1.25rem; line-height: 1; }
.pg_next::before  { content: "›"; font-size: 1.25rem; line-height: 1; }
.pg_end::before   { content: "»"; font-size: 1.1rem; }

@media (max-width: 768px) {
    .pg_page, .pg_current, .pg_prev, .pg_next, .pg_start, .pg_end {
        min-width: 32px;
        height: 32px;
        border-radius: 6px;
    }
}


/* ════════════════════════════════════════════
   매칭 프로필 완성 유도 배너 (.mp-banner)
   profile-banner.inc.php — 미완성 길손 회원 전용
   ════════════════════════════════════════════ */
.mp-banner {
    background: linear-gradient(90deg, #fff4f1, #fff9f3);
    border-bottom: 1px solid #ffe0d8;
}
.mp-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mp-banner-icon { display: inline-flex; color: var(--accent, #ff5a3d); flex: 0 0 auto; }
.mp-banner-icon svg { width: 18px; height: 18px; }
.mp-banner-text { margin: 0; font-size: 0.8125rem; color: #4b5563; flex: 1 1 auto; min-width: 0; }
.mp-banner-text strong { color: var(--accent, #ff5a3d); font-weight: 700; }
.mp-banner-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent, #ff5a3d);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.mp-banner-btn:hover { background: #e84a2f; color: #fff; }
.mp-banner-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}
.mp-banner-close:hover { background: rgba(0,0,0,.05); color: #4b5563; }
.mp-banner-close svg { width: 16px; height: 16px; }
@media (max-width: 767px) {
    .mp-banner-inner { padding: 9px 12px; gap: 8px; }
    .mp-banner-text { font-size: 0.75rem; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   가입 단계 사이드바 (.sreg-*)  — tail.php 전역
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sreg-steps { padding: 16px 20px 8px; }
.sreg-step { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; position: relative; }
.sreg-step + .sreg-step::before { content: ''; position: absolute; left: 14px; top: -10px; width: 1px; height: 10px; background: #e5e7eb; }
.sreg-step-icon {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
    background: #f3f4f6; color: #9ca3af; border: 1.5px solid #e5e7eb;
}
.sreg-step.sreg-done-badge .sreg-step-icon,
.sreg-step.is-done .sreg-step-icon { background: #dcfce7; color: #16a34a; border-color: #bbf7d0; }
.sreg-step.sreg-done-badge .sreg-step-txt strong { color: #9ca3af; font-weight: 400; }
.sreg-step.is-done .sreg-step-txt strong { color: #9ca3af; font-weight: 400; }
.sreg-step.is-current .sreg-step-icon { background: var(--accent, #ff5a3d); color: #fff; border-color: var(--accent, #ff5a3d); }
.sreg-step.is-current .sreg-step-txt strong { color: var(--accent, #ff5a3d); font-weight: 700; }
.sreg-step-txt strong { display: block; font-size: 0.875rem; color: #374151; line-height: 1.4; font-weight: 600; }
.sreg-step-txt span { font-size: 0.75rem; color: #9ca3af; display: block; margin-top: 1px; }
.sreg-guide-note {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 4px 20px 16px; padding: 10px 12px;
    background: #fff8f7; border-radius: 8px; font-size: 0.75rem; color: #9ca3af; line-height: 1.5;
}
.sreg-guide-note svg { flex: 0 0 16px; margin-top: 2px; color: var(--accent, #ff5a3d); opacity: .7; }

/* ── 뷰 하단 버튼 래퍼 (찜 오른쪽 정렬) ─────────────── */
.bo-v-btns-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.bo-v-btn-scrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 14px;
    border: 1.5px solid var(--accent, #ff5a3d);
    border-radius: 8px;
    color: var(--accent, #ff5a3d);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s;
    background: transparent;
}
.bo-v-btn-scrap:hover {
    background: var(--accent, #ff5a3d);
    color: #fff;
}
.bo-v-btn-scrap svg { width: 15px; height: 15px; flex-shrink: 0; }

/* 버튼 내 SVG 정렬 */
.bo-v-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── page-title-brand 아이콘 ─────────────────────────── */
.page-title-brand svg {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 4px;
    color: var(--accent, #ff5a3d);
    flex-shrink: 0;
}

/* ── 쪽지함 피드 (memo.php) ───────────────────────────── */
.memo-feed { width: 100%; margin-top: 20px; margin-bottom: 30px; }

/* 빈 목록일 때 콘텐츠 카드를 사이드바 높이에 맞춰 늘리고 빈 박스를 채움 */
.about-layout:has(.memo-feed-empty) { align-items: stretch; }
.about-layout:has(.memo-feed-empty) .about-content { display: flex; flex-direction: column; }
.about-layout:has(.memo-feed-empty) .memo-feed { display: flex; flex-direction: column; flex: 1 1 auto; }
.about-layout:has(.memo-feed-empty) .memo-feed-list { display: flex; flex-direction: column; flex: 1 1 auto; }
.about-layout:has(.memo-feed-empty) .memo-feed-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* 탭: 받은쪽지 / 보낸쪽지 / 쪽지쓰기 */
.memo-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.memo-tabs .memo-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.memo-tabs .memo-tab svg { width: 15px; height: 15px; }
.memo-tabs .memo-tab:hover { border-color: var(--accent, #ff5a3d); color: var(--accent, #ff5a3d); }
.memo-tabs .memo-tab.on {
    background: var(--accent, #ff5a3d);
    border-color: var(--accent, #ff5a3d);
    color: #fff;
}
.memo-tabs .memo-tab-write { margin-left: auto; }

/* 피드 리스트 */
.memo-feed-list { list-style: none; margin: 0; padding: 0; }
.memo-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 6px;
    border-bottom: 1px solid #f0f1f3;
}
.memo-feed-item:first-child { border-top: 1px solid #f0f1f3; }
.memo-feed-item.is-unread { background: #fff8f6; }

/* 아바타 */
.memo-feed-item .mf-avatar { flex-shrink: 0; display: block; }
.memo-feed-item .mf-avatar img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}

/* 본문 */
.memo-feed-item .mf-body { flex: 1; min-width: 0; }
.memo-feed-item .mf-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2a2d34;
    font-size: 0.875rem;
    line-height: 1.6;
    text-decoration: none;
    word-break: break-word;
}
.memo-feed-item .mf-excerpt:hover { color: var(--accent, #ff5a3d); }

/* 메타: 이름 · 안읽음 · 날짜 */
.memo-feed-item .mf-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #9aa0a6;
}
.memo-feed-item .mf-meta .mf-name { font-weight: 600; color: #4b5563; }
.memo-feed-item .mf-meta .mf-name a { color: inherit; text-decoration: none; }
.memo-feed-item .mf-meta .mf-date { color: #b0b4b9; }
.memo-feed-item .mf-meta .mf-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--accent, #ff5a3d);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* 삭제 버튼 */
.memo-feed-item .mf-del {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #c0c4c9;
    transition: background .15s, color .15s;
}
.memo-feed-item .mf-del svg { width: 17px; height: 17px; }
.memo-feed-item .mf-del:hover { background: #fff0ed; color: var(--accent, #ff5a3d); }

/* 빈 목록 / 안내 */
.memo-feed-empty {
    list-style: none;
    text-align: center;
    color: #9aa0a6;
    font-size: 0.875rem;
    border-top: 1px solid #f0f1f3;
    border-bottom: 1px solid #f0f1f3;
}
.memo-feed-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #9aa0a6;
    font-size: 0.75rem;
}
.memo-feed-desc svg { width: 14px; height: 14px; }
.memo-feed-desc strong { color: var(--accent, #ff5a3d); }

@media (max-width: 767px) {
    .memo-tabs .memo-tab-write { margin-left: 0; }
    .memo-feed-item .mf-avatar img { width: 40px; height: 40px; }
}

/* ── 쪽지 읽기 (memo_view.php) ─────────────────────────── */
.memo-view {
    border: 1px solid #f0f1f3;
    border-radius: 12px;
    overflow: hidden;
}
.memo-view-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f1f3;
    background: #fafbfc;
}
.memo-view-head .mf-avatar { flex-shrink: 0; display: block; }
.memo-view-head .mf-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}
.memo-view-who { flex: 1; min-width: 0; }
.memo-view-nick { font-weight: 700; color: #2a2d34; font-size: 0.9rem; }
.memo-view-nick a { color: inherit; text-decoration: none; }
.memo-view-date {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    color: #9aa0a6;
    font-size: 0.75rem;
}
.memo-view-date svg { width: 13px; height: 13px; }
.memo-view-ops { display: flex; gap: 6px; flex-shrink: 0; }
.memo-op-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.memo-op-btn svg { width: 14px; height: 14px; }
.memo-op-btn:hover { border-color: #7c5cbf; color: #7c5cbf; }
.memo-op-del:hover { border-color: var(--accent, #ff5a3d); color: var(--accent, #ff5a3d); }

.memo-view-body {
    padding: 22px 18px;
    color: #2a2d34;
    font-size: 0.9rem;
    line-height: 1.85;
    word-break: break-word;
    min-height: 120px;
}
.memo-view-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid #f0f1f3;
}
.memo-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 0.8125rem;
    text-decoration: none;
}
.memo-nav-btn svg { width: 15px; height: 15px; }
.memo-nav-btn:hover { color: var(--accent, #ff5a3d); }
.memo-nav-next { margin-left: auto; }

/* 하단 버튼 바 (읽기/쓰기 공통) */
.memo-view-foot {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.memo-foot-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid #7c5cbf;
    background: #fff;
    color: #7c5cbf;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.memo-foot-btn svg { width: 15px; height: 15px; }
.memo-foot-btn:hover { background: #7c5cbf; color: #fff; }
.memo-foot-reply {
    border-color: var(--accent, #ff5a3d);
    background: var(--accent, #ff5a3d);
    color: #fff;
}
.memo-foot-reply:hover { background: #e64a2e; border-color: #e64a2e; color: #fff; }

/* ── 쪽지 쓰기 (memo_form.php) ─────────────────────────── */
.memo-form { width: 100%; }
.memo-form-row { margin-bottom: 18px; }
.memo-form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2a2d34;
}
.memo-form-input.frm_input {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.875rem;
    box-sizing: border-box;
}
.memo-form-input.frm_input:focus {
    border-color: var(--accent, #ff5a3d);
    box-shadow: 0 0 0 4px rgba(255, 90, 61, .1);
    outline: none;
}
.memo-form-textarea {
    width: 100%;
    min-height: 220px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    font-size: 0.875rem;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
}
.memo-form-textarea:focus {
    border-color: var(--accent, #ff5a3d);
    box-shadow: 0 0 0 4px rgba(255, 90, 61, .1);
    outline: none;
}
.memo-form-info {
    display: block;
    margin-top: 6px;
    color: #9aa0a6;
    font-size: 0.75rem;
}
.memo-form-captcha { display: flex; justify-content: flex-start; }

/* ── 차단 시스템: 프로필 액션 버튼 ───────────────────── */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.pf-memo-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 26px;
    border-radius: 10px;
    background: var(--accent, #ff5a3d);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--accent, #ff5a3d);
}
.pf-memo-btn svg { width: 18px; height: 18px; }
.pf-memo-btn:hover { background: #e64a2e; border-color: #e64a2e; }
.pf-block-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    cursor: pointer;
}
.pf-block-btn svg { width: 16px; height: 16px; }
.pf-block-btn:hover { border-color: #9aa0a6; color: #374151; }
.pf-block-btn.is-blocked { background: #fff0ed; border-color: var(--accent, #ff5a3d); color: var(--accent, #ff5a3d); }
.pf-block-btn[disabled] { opacity: .5; cursor: default; }

/* memo_view 상단 ops 안의 차단 버튼은 .memo-op-btn 크기를 따른다 */
.memo-view-ops .pf-block-btn { padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; }
.memo-view-ops .pf-block-btn svg { width: 14px; height: 14px; }

/* ── 차단 목록 (block_list.php) ───────────────────────── */
.block-list { list-style: none; margin: 0; padding: 0; }
.block-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 4px;
    border-bottom: 1px solid #f0f1f3;
}
.block-item:first-child { border-top: 1px solid #f0f1f3; }
.block-avatar { flex-shrink: 0; }
.block-avatar img {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; background: #f3f4f6; display: block;
}
.block-info { flex: 1; min-width: 0; }
.block-nick { display: block; font-weight: 700; color: #2a2d34; font-size: 0.9rem; }
.block-date { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: #9aa0a6; font-size: 0.75rem; }
.block-date svg { width: 13px; height: 13px; }
.block-unbtn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--accent, #ff5a3d);
    background: #fff;
    color: var(--accent, #ff5a3d);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.block-unbtn svg { width: 14px; height: 14px; }
.block-unbtn:hover { background: var(--accent, #ff5a3d); color: #fff; }
.block-unbtn[disabled] { opacity: .5; cursor: default; }

/* 게시물 작성자 사이드뷰: 메뉴 숨기고 이름만(본명세례명_지역) 표시 */
.sv_wrap .sv, .sv_wrap .sv_nojs { display: none !important; }
.sv_wrap .sv_member { color: inherit; text-decoration: none; cursor: default; }
