/* ============================================================
   브릿지교회 — 세련된 모던 리뉴얼 스타일
   (기존 theme_movie 바탕 + 현대적 터치)
   ============================================================ */

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8f;
    --accent: #c9a866;
    --accent-dark: #a88c52;
    --dark: #0f1626;
    --text: #2c3e50;
    --text-light: #7a8ca0;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --border: #e5eaf0;
    --shadow: 0 6px 24px rgba(15,22,38,0.08);
    --shadow-lg: 0 20px 60px rgba(15,22,38,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--text);
    background: var(--bg);
    margin: 0; padding: 0;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--dark); }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

/* ============================================================
   상단 바
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 300;
}
.top-bar a { color: rgba(255,255,255,0.7); }
.top-bar a:hover { color: var(--accent); }
.top-bar-socials { display: inline-block; margin-right: 20px; }
.top-bar-socials .social-icon {
    display: inline-block;
    width: 28px; height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    margin-right: 4px;
    font-size: 13px;
}
.top-bar-socials .social-icon:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}
.top-contact { margin-right: 15px; font-size: 12px; }
.top-contact i { margin-right: 4px; color: var(--accent); }
.top-links { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 16px; }
.top-links li { font-size: 12.5px; letter-spacing: 0.3px; }
.top-links i { margin-right: 4px; color: var(--accent); }

/* ============================================================
   네비게이션
   ============================================================ */
.main-nav {
    background: rgba(255,255,255,0.98) !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 0;
    min-height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.main-nav.scrolled {
    min-height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.navbar-brand {
    padding: 15px 15px !important;
    line-height: 50px;
    height: auto;
}
.navbar-brand .brand-en {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    margin-right: 10px;
}
.navbar-brand .brand-ko {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
}
.main-menu > li > a {
    padding: 30px 18px !important;
    font-size: 15px;
    font-weight: 500;
    color: var(--text) !important;
    position: relative;
    transition: color 0.2s;
}
.main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 20px; left: 50%;
    width: 0; height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.main-menu > li:hover > a::after,
.main-menu > li.active > a::after { width: 30px; }
.main-menu > li > a:hover,
.main-menu > li.active > a { color: var(--primary) !important; background: transparent !important; }
.dropdown-menu {
    border-radius: 0 !important;
    border: none !important;
    border-top: 3px solid var(--accent) !important;
    box-shadow: var(--shadow) !important;
    min-width: 180px;
    padding: 8px 0;
    margin-top: 0;
}
.dropdown-menu > li > a {
    padding: 12px 24px !important;
    font-size: 14px;
    color: var(--text) !important;
    transition: all 0.2s;
}
.dropdown-menu > li > a:hover {
    background: var(--bg-soft) !important;
    color: var(--primary) !important;
    padding-left: 30px !important;
}

.nav-search { padding: 22px 0; }
.nav-search form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-soft);
    margin-left: 10px;
}
.nav-search input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 6px 16px !important;
    width: 160px !important;
    font-size: 13px;
    height: 36px;
}
.nav-search button {
    border: none;
    background: transparent;
    color: var(--text-light);
    padding: 0 14px;
    cursor: pointer;
    height: 36px;
}
.nav-search button:hover { color: var(--accent); }

/* ============================================================
   히어로 (배경영상)
   ============================================================ */
.hero-video {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    background: var(--dark);
}
.hero-pretitle {
    display: block;
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
    animation: fadeInUp 0.8s ease;
}
.hero-divider {
    margin: 26px auto;
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative;
    animation: fadeInUp 1s ease;
}
.hero-divider span {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(201,168,102,0.2);
}
.hero-video .video-wrap { position: absolute; top:0; left:0; width:100%; height:100%; }
.hero-video iframe {
    position: absolute; top:50%; left:50%;
    transform: translate(-50%, -50%);
    width: 177.77vh; height: 100vh;
    min-width: 100%; min-height: 100%;
    pointer-events: none;
    border: 0;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(15,22,38,0.75) 0%, rgba(30,58,95,0.6) 100%);
    color: #fff;
    text-align: center;
}
.hero-overlay h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease;
}
.hero-overlay .lead {
    font-size: 19px;
    font-weight: 300;
    max-width: 760px;
    margin: 0 auto 30px;
    line-height: 1.7;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}
.hero-overlay .hero-cta {
    display: inline-block;
    padding: 14px 40px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s;
    animation: fadeInUp 1.2s ease;
}
.hero-overlay .hero-cta:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   페이지 배너
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0 70px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: 1px;
    position: relative;
}
.page-banner p { font-size: 16px; opacity: 0.9; margin: 0; position: relative; }

/* ============================================================
   섹션 공통 헤딩
   ============================================================ */
.section-heading {
    margin-bottom: 22px;
}
.section-heading .pretitle {
    display: block;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}
.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--dark);
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}
.section-heading .center-line {
    display: inline-block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ============================================================
   인용 섹션 (성경 구절)
   ============================================================ */
.verse-section {
    padding: 36px 0;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #ecf1f8 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.verse-section::before, .verse-section::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,102,0.1) 0%, transparent 70%);
}
.verse-section::before { top: -80px; left: -80px; }
.verse-section::after { bottom: -80px; right: -80px; }
.verse-quote-mark {
    color: var(--accent);
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.6;
}
.verse-quote {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    color: var(--dark);
    line-height: 1.6;
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 800px;
    font-weight: 400;
}
.verse-source {
    color: var(--accent-dark);
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   최근 소식 섹션
   ============================================================ */
.recent-section { padding: 40px 0; background: #fff; }
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 22px 24px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.post-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.post-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.post-card:hover::before { transform: scaleX(1); }
.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.post-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--dark);
    margin: 0;
}
.post-card-header .more-link {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
}
.post-card-header .more-link:hover { color: var(--accent); }
.post-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-card-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    display: flex; align-items: center;
    transition: padding 0.2s;
}
.post-card-list li:last-child { border-bottom: 0; }
.post-card-list li:hover { padding-left: 4px; }
.post-card-list li a {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-card-list li:hover a { color: var(--primary); }
.post-card-list li .date {
    font-size: 11.5px;
    color: var(--text-light);
    margin-left: 8px;
    flex-shrink: 0;
}
.post-card-list li .play-mark {
    color: var(--accent);
    margin-right: 8px;
    font-size: 16px;
}
.post-card-list li.empty { color: var(--text-light); justify-content: center; }

/* ============================================================
   4 FEATURE CARDS — 인사말/교회목적/소통/회복강좌
   ============================================================ */
.feature-section {
    padding: 44px 0;
    background: linear-gradient(180deg, #fafbfd 0%, var(--bg-soft) 100%);
}
.feature-grid { display: flex; flex-wrap: wrap; }
.feature-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15,22,38,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
    height: 100%;
    color: var(--text);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(15,22,38,0.15);
    color: var(--text);
    text-decoration: none;
}
.feature-card:hover::after {
    border-color: var(--accent);
    transform: scale(0.96);
}
.feature-img-wrap {
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-soft), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.feature-img-wrap img {
    max-height: 100%;
    width: auto;
    transition: transform 0.5s;
}
.feature-card:hover .feature-img-wrap img { transform: scale(1.08) rotate(-2deg); }
.feature-body {
    padding: 14px 16px 18px;
    position: relative;
}
.feature-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--dark);
    margin: 0 0 12px;
}
.feature-body .verse {
    font-size: 13px;
    color: var(--accent-dark);
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.feature-body .desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 16px;
    min-height: 50px;
}
.feature-arrow {
    display: inline-block;
    color: var(--accent);
    font-size: 18px;
    transition: transform 0.3s;
}
.feature-card:hover .feature-arrow { transform: translateX(8px); }

/* ============================================================
   "우리들의 모습" 갤러리 섹션
   ============================================================ */
.our-story-section {
    padding: 44px 0;
    background: #fff;
}
.our-story-grid > div { padding: 12px; }
.story-card {
    display: block;
    color: var(--text);
    transition: all 0.3s;
}
.story-card:hover { color: var(--text); text-decoration: none; }
.story-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15,22,38,0.08);
    transition: all 0.4s ease;
}
.story-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(30,58,95,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.story-card:hover .story-img {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,22,38,0.18);
}
.story-card:hover .story-img::before { opacity: 1; }
.story-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,22,38,0.5);
    color: #fff;
    font-size: 36px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.story-card:hover .story-overlay { opacity: 1; }
.story-caption {
    margin-top: 16px;
    text-align: center;
}
.story-caption h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 500;
    color: var(--text);
}
.story-card:hover .story-caption h4 { color: var(--primary); }

.btn-outline-gold {
    display: inline-block;
    padding: 12px 36px;
    border: 2px solid var(--accent);
    color: var(--accent-dark);
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 2px;
    font-size: 13px;
    transition: all 0.3s;
}
.btn-outline-gold:hover {
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
}

/* ============================================================
   CTA 섹션
   ============================================================ */
.cta-section {
    padding: 44px 0;
    background:
        linear-gradient(135deg, rgba(15,22,38,0.92) 0%, rgba(30,58,95,0.85) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50L0 0h100zM50 50L100 100H0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #fff;
    text-align: center;
}
.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #fff;
    margin: 0 0 10px;
}
.cta-section p {
    font-size: 15px;
    opacity: 0.85;
    margin: 0 0 22px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-cta-primary, .btn-cta-outline {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-size: 14px;
}
.btn-cta-primary {
    background: var(--accent);
    color: var(--dark);
    border: 2px solid var(--accent);
}
.btn-cta-primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-decoration: none;
}
.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-cta-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--dark);
    text-decoration: none;
    transform: translateY(-3px);
}
.btn-cta-primary i, .btn-cta-outline i { margin-right: 6px; }

/* ============================================================
   메인 섹션 (이전 호환)
   ============================================================ */
.main-section { padding: 80px 0; background: var(--bg-soft); }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin: 0 0 30px;
    color: var(--dark);
    position: relative;
    padding-bottom: 14px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--accent);
}

/* ===== 탭 카드 ===== */
.tabs-container {
    background: #fff;
    border-radius: 6px;
    padding: 28px;
    box-shadow: var(--shadow);
    height: 100%;
}
.tabs-container .nav-tabs {
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}
.tabs-container .nav-tabs > li > a {
    border: none !important;
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 16px;
    margin: 0;
    background: transparent !important;
}
.tabs-container .nav-tabs > li.active > a {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--accent) !important;
    font-weight: 700;
}
.latest-list { list-style: none; padding: 0; margin: 0; }
.latest-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    transition: padding 0.2s;
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list li:hover { padding-left: 6px; }
.latest-list li a {
    flex: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text);
    font-size: 14.5px;
}
.latest-list li a:hover { color: var(--primary); }
.latest-list li .date { color: var(--text-light); font-size: 12px; margin-left: 10px; }
.latest-list li.empty { color: var(--text-light); text-align: center; padding: 24px 0; }

/* ===== 갤러리 그리드 (flexbox — Bootstrap3 float 오버라이드) ===== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
.gallery-grid > div {
    display: flex;
    padding: 12px;
    margin-bottom: 0;
}
.gallery-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: var(--text);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.gallery-item .thumb {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    transition: transform 0.5s;
    overflow: hidden;
}
.gallery-item:hover .thumb { transform: scale(1.05); }
.gallery-item .caption {
    flex: 1;
    padding: 14px 16px 8px;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    color: var(--text);
}
.gallery-item small {
    display: block;
    padding: 0 16px 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
}

/* ===== 설교 영상 그리드 (flexbox — Bootstrap3 float 오버라이드) ===== */
.sermon-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
.sermon-grid > div {
    display: flex;
    padding: 12px;
    margin-bottom: 0;
}
.sermon-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: var(--text);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
}
.sermon-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.sermon-item .thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    flex-shrink: 0;
    overflow: hidden;
}
.sermon-item .thumb img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; transition: transform 0.5s; }
.sermon-item:hover .thumb img { transform: scale(1.05); }
.sermon-item .play-icon {
    position: absolute; top:50%; left:50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.95);
    font-size: 64px;
    transition: transform 0.3s;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.sermon-item:hover .play-icon { transform: translate(-50%, -50%) scale(1.15); }
.sermon-item .no-thumb {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; font-size: 50px;
}
.sermon-item h4 { margin: 16px 16px 6px; font-size: 16px; flex: 1; }
.sermon-item small { display: block; margin: 0 16px 16px; color: var(--text-light); font-size: 12.5px; }

/* ============================================================
   게시판 목록 (테이블형)
   ============================================================ */
.board-page { padding: 0 0 80px; }
.board-toolbar {
    margin-bottom: 24px;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.board-toolbar .form-inline { display: inline-block; }
.board-toolbar .form-control { display: inline-block; width: auto; border-radius: 2px; }

.board-list {
    margin-top: 10px;
    border-top: 2px solid var(--dark);
}
.board-list thead th {
    background: transparent;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border) !important;
    padding: 14px !important;
}
.board-list tbody td {
    padding: 16px 14px !important;
    border-top: 1px solid var(--border) !important;
    vertical-align: middle !important;
}
.board-list tbody tr { transition: background 0.15s; }
.board-list tbody tr:hover { background: var(--bg-soft); }
.notice-row { background: #fff8e1 !important; }
.comment-cnt { color: var(--accent-dark); font-size: 12px; margin-left: 4px; font-weight: 600; }
.label.label-danger { background: #e74c3c; border-radius: 2px; padding: 3px 8px; font-size: 10.5px; }
.label.label-default { background: var(--primary); color: #fff; border-radius: 2px; font-weight: 400; }

/* ============================================================
   게시물 상세
   ============================================================ */
.post-view {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 15px;
}
.post-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 36px;
}
.post-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--dark);
    margin: 0 0 14px;
    line-height: 1.3;
}
.post-header .meta { color: var(--text-light); font-size: 13.5px; margin: 0; }
.post-header .meta span { margin-right: 16px; }
.post-header .meta i { margin-right: 5px; color: var(--accent); }

.post-body { min-height: 200px; padding: 20px 0 40px; line-height: 1.95; font-size: 16px; color: #3a3a3a; }
.post-body img { max-width: 100%; height: auto; border-radius: 4px; }

.video-embed {
    position: relative; padding-top: 56.25%;
    margin: 0 0 30px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-embed iframe {
    position: absolute; top:0; left:0;
    width: 100%; height: 100%;
    border: 0;
}

.attached-files {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 40px;
}
.attached-files h4 { font-size: 15px; color: var(--text-light); margin: 0 0 12px; }
.attached-files ul { list-style: none; padding: 0; margin: 0; }
.attached-files li { padding: 8px 0; }
.attached-files a { color: var(--primary); }

.post-actions {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.post-actions .btn { margin: 0 4px; padding: 10px 28px; border-radius: 2px; font-weight: 500; }

/* ============================================================
   댓글
   ============================================================ */
.comment-section { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--border); }
.comment-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dark);
}
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list li {
    padding: 16px 20px;
    background: var(--bg-soft);
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent);
}
.comment-list li.reply { margin-left: 40px; border-left-color: var(--primary); background: #eef4fb; }
.comment-list li strong { color: var(--dark); }
.comment-list li p { margin: 8px 0 0; line-height: 1.7; }
.comment-list li.empty { text-align: center; color: var(--text-light); background: transparent; border: none; }

.comment-form .form-group > input { width: calc(50% - 5px); display: inline-block; }
.comment-form textarea { border-radius: 2px; }

/* ============================================================
   로그인/회원가입
   ============================================================ */
.auth-page { padding: 80px 0; background: var(--bg-soft); min-height: 60vh; }
.auth-page h2 {
    margin-bottom: 36px;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}
.auth-form {
    background: #fff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { font-weight: 500; color: var(--text); margin-bottom: 6px; font-size: 14px; }
.auth-form .form-control {
    height: 44px;
    border-radius: 2px;
    border-color: var(--border);
    box-shadow: none;
    font-size: 15px;
}
.auth-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,102,0.15); }
.auth-form .btn-primary {
    background: var(--primary) !important;
    border: none !important;
    height: 48px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    font-size: 15px;
}
.auth-form .btn-primary:hover { background: var(--primary-light) !important; }

/* ============================================================
   정적 콘텐츠
   ============================================================ */
.content-page { padding-bottom: 80px; }
.content-body { line-height: 2; font-size: 16.5px; color: #3a3a3a; }
.content-body h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0; margin-bottom: 24px;
    color: var(--primary);
    font-size: 32px;
}
.content-body h3 { color: var(--primary); margin-top: 30px; }
.content-body img { max-width: 100%; border-radius: 4px; margin: 20px 0; }
.content-body p { margin-bottom: 20px; }

/* ============================================================
   검색 / FAQ / QA / Write
   ============================================================ */
.search-page { padding-bottom: 80px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.search-results li:hover { background: var(--bg-soft); }
.search-results li .excerpt { color: var(--text-light); margin: 10px 0; line-height: 1.7; }

.faq-page { padding-bottom: 80px; max-width: 900px; margin: 0 auto; }
.faq-category {
    font-family: 'Playfair Display', serif;
    margin-top: 40px; margin-bottom: 20px;
    color: var(--primary);
    font-size: 24px;
}
.faq-item {
    background: #fff;
    margin-bottom: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(15,22,38,0.05);
    overflow: hidden;
    border-left: 3px solid var(--accent);
}
.faq-item .question {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}
.faq-item .question:hover { background: var(--bg-soft); }
.faq-item .question i { color: var(--accent); margin-right: 10px; }
.faq-item .answer {
    padding: 20px 24px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    line-height: 1.9;
}

.qa-page, .write-page { padding-bottom: 80px; max-width: 900px; margin: 0 auto; }
.write-page form {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}
.write-page .form-control, .qa-page .form-control {
    border-radius: 2px;
    border-color: var(--border);
    box-shadow: none;
}
.write-page .form-control:focus, .qa-page .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,168,102,0.12);
}

/* ============================================================
   버튼 오버라이드
   ============================================================ */
.btn {
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 20px;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-default {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}
.btn-default:hover { background: var(--bg-soft); }
.btn-warning { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.btn-warning:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ============================================================
   페이지네이션
   ============================================================ */
.pagination { margin: 40px 0; }
.pagination > li > a {
    border-color: var(--border);
    color: var(--text);
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: 2px !important;
}
.pagination > li.active > a,
.pagination > li.active > a:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff;
}
.pagination > li > a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 70px 0 25px;
    margin-top: 80px;
}
.site-footer h4 {
    color: #fff;
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}
.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--accent);
}
.site-footer p { margin: 6px 0; font-size: 13.5px; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: var(--accent); }
.footer-socials { margin-top: 10px; }
.footer-socials a {
    display: inline-block;
    width: 38px; height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    margin-right: 8px;
}
.footer-socials a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}

/* ============================================================
   유틸 / 반응형
   ============================================================ */
.margin20 { margin-bottom: 20px; }
.margin30 { margin-bottom: 30px; }
.inline-form { display: inline-block; margin: 0; }

@media (max-width: 992px) {
    .hero-overlay h1 { font-size: 48px; }
    .navbar-brand .brand-en { font-size: 24px; }
}
@media (max-width: 768px) {
    .hero-video { height: 70vh; min-height: 420px; }
    .hero-overlay h1 { font-size: 34px; letter-spacing: 1px; }
    .hero-overlay .lead { font-size: 15px; padding: 0 20px; }
    .hero-pretitle { font-size: 11px; letter-spacing: 4px; }
    .verse-quote { font-size: 22px; padding: 0 20px; }
    .section-heading h2 { font-size: 28px; }
    .verse-section { padding: 26px 0; }
    .recent-section { padding: 28px 0; }
    .feature-section, .our-story-section, .cta-section { padding: 32px 0; }
    .feature-img-wrap { height: 100px; }
    .story-img { height: 130px; }
    .cta-section h2 { font-size: 22px; }
    .page-banner { padding: 50px 0 40px; }
    .page-banner h1 { font-size: 30px; }
    .main-menu > li > a { padding: 14px 18px !important; }
    .main-menu > li > a::after { display: none; }
    .navbar-toggle { margin-top: 22px; }
    .navbar-collapse { background: #fff; }
    .dropdown-menu { box-shadow: none !important; }
    .top-bar { text-align: center; }
    .top-bar .text-right { text-align: center !important; margin-top: 5px; }
    .nav-search { padding: 10px 15px; }
    .nav-search form { width: 100%; }
    .nav-search input { width: 100% !important; }
    .comment-list li.reply { margin-left: 16px; }
    .section-title { font-size: 26px; }
    .auth-form { padding: 28px 20px; }
    .write-page form { padding: 20px; }
}
