/**
 * Church Community - pillar.or.kr Desktop Layout
 * 3-Column Channel + 7-Icon Bar + 4-Column Latest Posts
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #43A047;
    --primary-hover: #E8F5E9;
    --secondary: #1B3A1F;
    --accent: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;

    --text-dark: #111827;
    --text-base: #333333;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #F1F8E9;
    --bg-dark: #1B3A1F;

    --border-color: #d1d5db;
    --border-light: #e5e7eb;

    --font-xs: 11px;
    --font-sm: 13px;
    --font-base: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 22px;
    --font-3xl: 26px;
    --font-4xl: 32px;

    --line-height: 1.6;
    --line-height-tight: 1.4;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-base: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 36px;
    --space-3xl: 48px;

    --btn-height: 40px;
    --btn-height-lg: 48px;
    --touch-target: 36px;

    --radius-sm: 4px;
    --radius-base: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-base: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);

    --transition: all 0.2s ease;
    --container-max: 1200px;
}

/* ========================================
   Reset / Base Styles
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    font-size: 14px; line-height: 1.6; color: var(--text-base); background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.using-mouse *:focus { outline: none; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ========================================
   Container
======================================== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }

/* ========================================
   Header
======================================== */
.header { position: sticky; top: 0; z-index: 1000; background: var(--bg-white); border-bottom: 1px solid var(--border-light); box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow 0.3s ease; }
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.header .container { position: relative; }
.header .headerM { position: relative; height: 80px; display: flex; align-items: center; justify-content: center; }
.header .main-logo { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; z-index: 10; }
.header .main-logo img { height: 50px; width: auto; object-fit: contain; }
.header .main-logo .logo-text { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.header .main-logo:hover .logo-text { color: var(--primary-dark); }
.header .gnb { display: flex; align-items: center; justify-content: center; }
.header .gnb .navbar-nav { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.header .gnb .navbar-nav > li { position: relative; list-style: none; margin: 0; }
.header .gnb .navbar-nav > li > .depth1-link { display: flex; align-items: center; padding: 10px 20px; font-size: 16px; font-weight: 600; color: var(--text-dark); text-decoration: none; white-space: nowrap; transition: color 0.2s; position: relative; }
.header .gnb .navbar-nav > li > .depth1-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--primary); transition: all 0.3s ease; transform: translateX(-50%); }
.header .gnb .navbar-nav > li:hover > .depth1-link,
.header .gnb .navbar-nav > li.active > .depth1-link { color: var(--primary); }
.header .gnb .navbar-nav > li:hover > .depth1-link::after,
.header .gnb .navbar-nav > li.active > .depth1-link::after { width: 100%; }
.header .gnb .dropdown-menu.depth2 { display: block; position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); min-width: 200px; background: var(--bg-white); background-clip: border-box; border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 12px 0; opacity: 0; visibility: hidden; transition: all 0.25s ease; z-index: 1001; list-style: none; margin: 0; color: inherit; text-align: center; font-size: inherit; }
.header .gnb .navbar-nav > li:hover > .dropdown-menu.depth2 { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.header .gnb .dropdown-menu.depth2 li { list-style: none; margin: 0; padding: 0; }
.header .gnb .dropdown-menu.depth2 a { display: block; padding: 10px 24px; font-size: 14px; font-weight: 500; color: var(--text-base); text-decoration: none; transition: all 0.2s; white-space: nowrap; text-align: center; }
.header .gnb .dropdown-menu.depth2 a:hover,
.header .gnb .dropdown-menu.depth2 a.active { background: var(--primary-hover); color: var(--primary); font-weight: 600; }
.header .header-right { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; z-index: 10; }
.header .btn-allmenu { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text-dark); border-radius: 6px; transition: all 0.2s; }
.header .btn-allmenu i { font-size: 22px; }
.header .btn-allmenu:hover { background: var(--bg-light); color: var(--primary); }
.header .btn-mobile-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; color: var(--text-dark); border-radius: 6px; padding: 0; margin: 0; transition: all 0.2s; }
.header .btn-mobile-toggle i { font-size: 24px; }
.header .btn-mobile-toggle:hover { background: var(--bg-light); }

/* ========================================
   All-menu Overlay Panel
======================================== */
.gnb-all { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; overflow-y: auto; }
.gnb-all.active { display: block; }
.gnb-all .all-wrapper { position: relative; min-height: 100%; background: var(--bg-white); padding: 60px 0 80px; }
.gnb-all .all-header { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.gnb-all .all-close { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; font-size: 32px; font-weight: 300; color: var(--text-dark); cursor: pointer; border-radius: 8px; transition: all 0.2s; line-height: 1; }
.gnb-all .all-close:hover { background: var(--primary-hover); color: var(--primary); }
.gnb-all .dept1 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 60px; list-style: none; margin: 0; padding: 0; }
.gnb-all .dept1 > li { list-style: none; }
.gnb-all .dept1-title { display: block; font-size: 18px; font-weight: 700; color: var(--text-dark); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--primary); }
.gnb-all .dept2 { list-style: none; margin: 0; padding: 0; }
.gnb-all .dept2 li { list-style: none; }
.gnb-all .dept2 a { display: block; padding: 8px 0; font-size: 15px; font-weight: 400; color: var(--text-base); text-decoration: none; transition: all 0.2s; }
.gnb-all .dept2 a:hover { color: var(--primary); padding-left: 6px; }

/* ========================================
   Mobile Side Navigation
======================================== */
.mobile-nav { position: fixed; top: 0; right: -320px; width: 300px; max-width: 85%; height: 100vh; background: var(--bg-white); z-index: 2001; transition: right 0.3s ease; display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.15); overflow: hidden; }
.mobile-nav.active { right: 0; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); background: var(--primary-hover); flex-shrink: 0; }
.mobile-nav-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.mobile-nav-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: none; font-size: 18px; color: var(--text-base); cursor: pointer; border-radius: 6px; padding: 0; transition: all 0.2s; }
.mobile-nav-close:hover { background: var(--bg-gray); }
.mobile-nav-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 8px 0; }
.mobile-nav-list > li { list-style: none; }
.mobile-nav-list > li > a,
.mobile-nav-list > li > .mobile-depth1 { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 15px; font-weight: 500; color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--border-light); transition: all 0.2s; cursor: pointer; }
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > .mobile-depth1:hover { background: var(--bg-light); color: var(--primary); }
.mobile-nav-list > li > a.active,
.mobile-nav-list > li > .mobile-depth1.active { color: var(--primary); font-weight: 600; }
.mobile-nav-list > li > a i:first-child { margin-right: 8px; }
.mobile-arrow { font-size: 12px; transition: transform 0.3s ease; }
.mobile-nav-list > li.has-sub.open .mobile-arrow { transform: rotate(180deg); }
.mobile-depth2 { display: none; list-style: none; margin: 0; padding: 0; background: var(--primary-hover); }
.mobile-nav-list > li.has-sub.open > .mobile-depth2 { display: block; }
.mobile-depth2 li { list-style: none; }
.mobile-depth2 a { display: block; padding: 11px 20px 11px 36px; font-size: 14px; font-weight: 400; color: var(--text-light); text-decoration: none; transition: all 0.2s; border-bottom: 1px solid rgba(0,0,0,0.04); }
.mobile-depth2 a:hover,
.mobile-depth2 a.active { color: var(--primary); background: rgba(46, 125, 50, 0.04); }
.mobile-nav-footer { padding: 16px 20px; border-top: 1px solid var(--border-light); background: var(--primary-hover); flex-shrink: 0; }
.mobile-nav-phone { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 15px; font-weight: 600; color: var(--bg-white); background: var(--primary); border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.mobile-nav-phone:hover { background: var(--primary-dark); color: var(--bg-white); }

/* Navbar Overlay */
.navbar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 1999; transition: opacity 0.3s; }
.navbar-overlay.active { display: block; }
body.menu-open { overflow: hidden; }

/* ========================================
   Main Content / Section Common
======================================== */
.main-content { min-height: calc(100vh - 80px - 300px); }
.section { padding: 32px 0; }
.section-title { font-size: 22px; font-weight: 600; color: var(--text-dark); text-align: center; margin-bottom: 16px; }
.section-subtitle { font-size: var(--font-lg); color: var(--text-light); text-align: center; margin-bottom: var(--space-2xl); }

/* ========================================
   Image Slider
======================================== */
.bodyWrapper { padding: 20px 0 0; }
.slider-area { margin-bottom: 0; }
.contentImageSlider { position: relative; width: 100%; overflow: hidden; border-radius: 16px; }
.contentSlideWrapper { position: relative; width: 100%; aspect-ratio: 21 / 9; overflow: hidden; }
.contentSlide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; z-index: 1; }
.contentSlide.active { opacity: 1; z-index: 2; }
.contentSlide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contentSlide a { display: block; width: 100%; height: 100%; }
.slide-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--primary); color: #fff; text-align: center; gap: 12px; }
.slide-placeholder i { font-size: 64px; opacity: 0.5; }
.slide-placeholder p { font-size: 28px; font-weight: 700; margin: 0; }
.slide-placeholder span { font-size: 16px; opacity: 0.8; }
.contentImageSlider .indicator { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.7); color: var(--text-dark); border-radius: 50%; cursor: pointer; font-size: 20px; transition: all 0.2s; border: none; user-select: none; }
.contentImageSlider .indicator:hover { background: rgba(255, 255, 255, 0.95); }
.contentImageSlider .leftIndicator { left: 16px; }
.contentImageSlider .rightIndicator { right: 16px; }
.contentImageSlider .pagination { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; padding: 0; margin: 0; border: none; }
.contentImageSlider .pagination .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s; border: none; }
.contentImageSlider .pagination .dot.active { background: #fff; transform: scale(1.2); }

/* --- Hero Slide Types (Component) --- */
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px; z-index: 3; }
.slide-overlay-left { align-items: flex-start; text-align: left; }
.slide-overlay-center { align-items: center; text-align: center; }
.slide-overlay-right { align-items: flex-end; text-align: right; }
.slide-overlay h2 { font-size: 36px; font-weight: 700; margin: 0 0 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.slide-overlay p { font-size: 18px; font-weight: 400; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.3); opacity: 0.9; }
.slide-html-content { width: 100%; height: 100%; overflow: hidden; }
.slide-text-content { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.slide-text-content h2 { font-size: 36px; font-weight: 700; margin: 0 0 12px; }
.slide-text-content p { font-size: 18px; font-weight: 400; margin: 0; opacity: 0.85; }

@media (max-width: 767px) {
    .slide-overlay { padding: 20px; }
    .slide-overlay h2 { font-size: 22px; }
    .slide-overlay p { font-size: 14px; }
    .slide-text-content { padding: 20px; }
    .slide-text-content h2 { font-size: 22px; }
    .slide-text-content p { font-size: 14px; }
}

/* ========================================
   3-Column Channel Area (LIVE | Sermon | Quick Links)
======================================== */
.channel-area {
    padding: 24px 0;
}

.channelM {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* --- LIVE Card (Left Column) --- */
.channel-live {
    background: #E8F5E9;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    min-height: 280px;
}

.channel-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.15);
    color: #333;
}

.live-broadcast-icon {
    font-size: 40px;
    color: #2E7D32;
    margin-bottom: 8px;
}

.live-dots {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2E7D32;
    opacity: 0.3;
    animation: livePulse 1.4s ease-in-out infinite;
}

.live-dot:nth-child(1) { animation-delay: 0s; }
.live-dot:nth-child(2) { animation-delay: 0.2s; }
.live-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes livePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.live-badge {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #333;
    line-height: 1;
}

.live-label {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

.live-service {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.live-datetime {
    font-size: 14px;
    color: #555;
}

/* --- Sermon Card (Center Column) --- */
.channel-sermon {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sermon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px 0;
}

.sermon-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.sermon-more {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.sermon-more:hover {
    color: #2E7D32;
}

.sermon-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
}

.sermon-info {
    flex: 1;
    min-width: 0;
}

.sermon-name {
    font-size: 28px;
    font-weight: 400;
    color: #000;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sermon-name a {
    color: inherit;
    text-decoration: none;
}

.sermon-name a:hover {
    color: #2E7D32;
}

.sermon-meta {
    font-size: 14px;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sermon-play-btn {
    width: 48px;
    height: 48px;
    background: #2E7D32;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 16px;
}

.sermon-play-btn:hover {
    background: #1B5E20;
    color: #fff;
    transform: scale(1.05);
}

.sermon-divider {
    height: 1px;
    background: #eee;
    border: none;
    margin: 0 30px;
}

.sermon-footer {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sermon-footer-label {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    white-space: nowrap;
}

.sermon-footer-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sermon-footer-btn {
    border: 1px solid #333;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.sermon-footer-btn:hover {
    border-color: #2E7D32;
    color: #2E7D32;
}

/* --- Quick Links (Right Column) --- */
.channel-links {
    background: #E8F5E9;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.channel-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 40px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.channel-link-item:hover {
    border-color: #2E7D32;
    background: #f5faf5;
    color: #333;
}

.channel-link-icon {
    width: 48px;
    height: 48px;
    background: #2E7D32;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.channel-link-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.channel-link-arrow {
    width: 28px;
    height: 28px;
    background: #bbb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.channel-link-item:hover .channel-link-arrow {
    background: #2E7D32;
}

/* ========================================
   Quick Icon Bar (7 icons horizontal)
======================================== */
.quick-area {
    padding: 40px 0 50px;
}

.quickM {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    align-items: flex-start;
}

.quickM > a {
    text-align: center;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quick-icon {
    width: 90px;
    height: 90px;
    background: #F1F8E9;
    border: 1px solid rgba(46, 125, 50, 0.4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #2E7D32;
    transition: all 0.3s;
}

.quickM > a:hover .quick-icon {
    background: #2E7D32;
    color: #fff;
    border-color: #2E7D32;
}

.quickM h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin-top: 4px;
    margin-bottom: 0;
}

/* ========================================
   4-Column Latest Posts
======================================== */
.latest-area {
    padding: 40px 0 60px;
}

.latestM {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.latest-col {
    padding: 0 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.latest-col:first-child {
    padding-left: 0;
}

.latest-col:last-child {
    border-right: none;
    padding-right: 0;
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.latest-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin: 0;
}

.latest-header .more {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.latest-header .more:hover {
    color: #2E7D32;
}

.latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.latest-list a {
    text-decoration: none;
    display: block;
}

.latest-item {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.latest-item-title {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-list a:hover .latest-item-title {
    color: #2E7D32;
    font-weight: 600;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #2E7D32;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.no-data {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
}

/* --- Event list (4th column with thumbnails) --- */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.event-item:hover {
    color: #2E7D32;
}

.event-thumb {
    width: 100px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F1F8E9;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
}

.event-title {
    font-size: 14px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Buttons
======================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 16px; font-size: 14px; font-weight: 500; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-lg { min-height: 44px; padding: 10px 24px; font-size: 15px; }
.btn-primary { background: var(--primary); color: var(--bg-white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--bg-white); }
.btn-outline { background: transparent; color: var(--bg-white); border-color: var(--bg-white); }
.btn-outline:hover { background: var(--bg-white); color: var(--primary); }
.btn-white { background: var(--bg-white); color: var(--primary); border-color: var(--bg-white); }
.btn-white:hover { background: var(--bg-light); }
.btn-success { background: var(--success); color: var(--bg-white); border-color: var(--success); }
.btn-success:hover { background: #15803d; border-color: #15803d; color: var(--bg-white); }

/* ========================================
   Card / List
======================================== */
.card { background: var(--bg-white); border: 2px solid var(--border-light); border-radius: var(--radius-lg); padding: var(--space-xl); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-title { font-size: var(--font-xl); font-weight: 700; color: var(--text-dark); margin-bottom: var(--space-base); }
.card-text { font-size: var(--font-base); color: var(--text-light); line-height: var(--line-height); }
.card-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--bg-light); border-radius: var(--radius-lg); font-size: var(--font-2xl); color: var(--primary); margin-bottom: var(--space-lg); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-xl); }
.list-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.list-item { display: flex; align-items: center; gap: var(--space-base); padding: var(--space-lg); background: var(--bg-white); border: 2px solid var(--border-light); border-radius: var(--radius-base); transition: var(--transition); }
.list-item:hover { border-color: var(--primary-light); background: var(--bg-light); }
.list-item-title { font-size: var(--font-lg); font-weight: 600; color: var(--text-dark); flex: 1; }
.list-item-meta { font-size: var(--font-sm); color: var(--text-muted); }

/* ========================================
   Forms
======================================== */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: var(--font-lg); font-weight: 600; color: var(--text-dark); margin-bottom: var(--space-sm); }
.form-label .required { color: var(--accent); margin-left: 4px; }
.form-control { display: block; width: 100%; min-height: var(--btn-height); padding: var(--space-base) var(--space-lg); font-size: var(--font-lg); font-family: inherit; color: var(--text-base); background: var(--bg-white); border: 2px solid var(--border-color); border-radius: var(--radius-base); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 48px; }
.form-hint { font-size: var(--font-sm); color: var(--text-muted); margin-top: var(--space-xs); }
.form-error { font-size: var(--font-sm); color: var(--accent); margin-top: var(--space-xs); }

/* ========================================
   Footer
======================================== */
#footer { background: var(--bg-dark); color: #ccc; padding: 50px 0 40px; }
#footer .footerM { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
#footer .footerL { flex: 1; }
#footer .footer-logo { margin-bottom: 20px; }
#footer .footer-logo-img { height: 45px; width: auto; object-fit: contain; }
#footer .footer-logo-text { font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; }
#footer .footer-logo-text:hover { color: var(--primary-hover); }
#footer .church-info { font-size: 13px; line-height: 2; color: #aaa; }
#footer .church-info b { color: #ddd; font-weight: 600; }
#footer .footerR { display: flex; align-items: flex-start; flex-shrink: 0; }
#footer .footerRBT { display: flex; gap: 12px; }
#footer .social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #ccc; font-size: 20px; text-decoration: none; transition: all 0.2s; }
#footer .social-link:hover { background: var(--primary); color: #fff; transform: scale(1.1); }

/* TOP Button */
#topBtn { display: none; position: fixed; right: 20px; bottom: 100px; z-index: 999; width: 48px; height: 48px; line-height: 48px; text-align: center; background: #337AB7; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: all 0.3s; }
#topBtn:hover { background: #286090; transform: translateY(-2px); }

/* Fixed Buttons */
.fixed-buttons { position: fixed; right: var(--space-lg); bottom: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); z-index: 900; }
.fixed-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: var(--radius-lg); font-size: var(--font-xs); font-weight: 600; color: var(--bg-white); box-shadow: var(--shadow-lg); transition: var(--transition); }
.fixed-btn i { font-size: var(--font-xl); margin-bottom: 4px; }
.btn-call { background: var(--success); }
.btn-call:hover { background: #15803d; color: var(--bg-white); transform: scale(1.05); }
.btn-top { background: #337AB7; opacity: 0; visibility: hidden; transform: translateY(20px); }
.btn-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-top:hover { background: #2868a0; color: var(--bg-white); }

/* ========================================
   Page Header / Breadcrumb
======================================== */
.page-header { background: var(--bg-light); padding: var(--space-2xl) 0; border-bottom: 2px solid var(--border-light); }
.page-title { font-size: 22px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.page-description { font-size: var(--font-lg); color: var(--text-light); }
.breadcrumb { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--font-base); margin-top: var(--space-base); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-separator { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-dark); font-weight: 500; }

/* ========================================
   Badges
======================================== */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; font-size: var(--font-sm); font-weight: 600; border-radius: 20px; }
.badge-primary { background: var(--primary); color: var(--bg-white); }
.badge-success { background: var(--success); color: var(--bg-white); }
.badge-warning { background: var(--warning); color: var(--text-dark); }
.badge-gray { background: var(--bg-gray); color: var(--text-base); }

/* ========================================
   Utilities
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-base); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-base); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.py-5 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-6 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-base); }
.gap-4 { gap: var(--space-lg); }

/* ========================================
   Responsive - 1499px
======================================== */
@media (max-width: 1499px) {
    .header .gnb { width: 55%; }
    .header .gnb .navbar-nav { gap: 0; width: 100%; }

    .channelM { gap: 18px; }
    .sermon-footer-btn { padding: 8px 14px; font-size: 13px; }
    .channel-link-item { padding: 12px 14px; }
    .channel-link-icon { width: 42px; height: 42px; font-size: 18px; }
    .channel-link-text { font-size: 15px; }
    .quick-icon { width: 80px; height: 80px; font-size: 28px; }
}

/* ========================================
   Responsive - 1199px
======================================== */
@media (max-width: 1199px) {
    .header .gnb { width: 50%; }
    .header .gnb .navbar-nav > li > .depth1-link { padding: 15px 20px; font-size: 17px; }

    /* Channel: center on top full-width, LIVE + links side by side below */
    .channelM {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .channel-sermon {
        grid-column: 1 / -1;
        order: -1;
    }
    .channel-live {
        min-height: 220px;
    }
    .live-badge { font-size: 40px; }

    /* Latest: 2x2 grid */
    .latestM {
        grid-template-columns: 1fr 1fr;
        row-gap: 30px;
    }
    .latest-col {
        padding: 0 20px;
    }
    .latest-col:nth-child(2) {
        border-right: none;
    }
    .latest-col:nth-child(3) {
        padding-left: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.15);
    }
    .latest-col:nth-child(4) {
        padding-right: 0;
    }

    /* Quick icons: wrap smaller */
    .quickM { gap: 8px; }
    .quick-icon { width: 72px; height: 72px; font-size: 26px; border-radius: 16px; }
    .quickM h4 { font-size: 13px; }

    #footer .footerM { flex-direction: column; gap: 20px; }
    #footer .footerM .footerL { order: 2; }
    #footer .footerM .footerR { order: 1; display: flex; justify-content: flex-end; }
}

/* ========================================
   Responsive - 992px
======================================== */
@media (max-width: 992px) {
    .header .gnb { display: none; }
    .header .btn-mobile-toggle { display: flex; }
    .gnb-all .dept1 { grid-template-columns: 1fr 1fr; gap: 24px 30px; }

    /* Quick icons: 4 columns */
    .quickM {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px 8px;
    }
    .quick-icon { width: 68px; height: 68px; font-size: 24px; }
}

/* ========================================
   Responsive - 767px (Mobile)
======================================== */
@media (max-width: 767px) {
    .container { padding: 0 16px; }

    .header .headerM { position: relative; height: 75px; }
    .header .main-logo { width: 140px; }
    .header .main-logo img { height: 40px; }
    .header .main-logo .logo-text { font-size: 17px; }

    .gnb-all .dept1 { grid-template-columns: 1fr; gap: 24px; }
    .gnb-all .all-wrapper { padding: 40px 0 60px; }

    .contentSlideWrapper { aspect-ratio: 16 / 9; }
    .slide-placeholder p { font-size: 22px; }
    .slide-placeholder i { font-size: 48px; }
    .contentImageSlider .indicator { width: 36px; height: 36px; font-size: 16px; }
    .contentImageSlider .leftIndicator { left: 8px; }
    .contentImageSlider .rightIndicator { right: 8px; }

    /* Channel: 1 column (sermon on top, LIVE, links) */
    .channel-area { padding: 16px 0; }
    .channelM {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .channel-sermon { order: -1; }
    .channel-live { min-height: auto; padding: 24px 20px; }
    .live-badge { font-size: 36px; }
    .live-broadcast-icon { font-size: 32px; }

    .sermon-header { padding: 20px 20px 0; }
    .sermon-body { padding: 12px 20px; }
    .sermon-name { font-size: 20px; }
    .sermon-play-btn { width: 42px; height: 42px; font-size: 18px; }
    .sermon-divider { margin: 0 20px; }
    .sermon-footer { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .sermon-footer-btn { padding: 8px 14px; font-size: 13px; }

    .channel-links { padding: 12px; gap: 10px; }
    .channel-link-item { padding: 10px 14px; gap: 10px; }
    .channel-link-icon { width: 40px; height: 40px; font-size: 16px; }
    .channel-link-text { font-size: 14px; }
    .channel-link-arrow { width: 24px; height: 24px; font-size: 10px; }

    /* Quick icons: 3 columns */
    .quick-area { padding: 24px 0 30px; }
    .quickM {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 8px;
    }
    .quick-icon { width: 60px; height: 60px; font-size: 22px; border-radius: 14px; }
    .quickM h4 { font-size: 12px; }

    /* Latest: 1 column, top borders */
    .latest-area { padding: 24px 0 40px; }
    .latestM {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }
    .latest-col {
        padding: 0;
        border-right: none;
        border-top: 2px solid #000;
        padding-top: 16px;
    }
    .latest-col:first-child {
        padding-left: 0;
    }
    .latest-header h3 { font-size: 18px; }
    .latest-item-title { font-size: 14px; }

    .event-thumb { width: 80px; height: 56px; border-radius: 8px; }
    .event-title { font-size: 13px; }
    .event-list { gap: 12px; }

    .card-grid { grid-template-columns: 1fr; }

    #footer .church-info { font-size: 13px; }
    #footer .footerM .footerRBT { width: 100%; }

    .fixed-buttons { right: var(--space-base); bottom: var(--space-base); }
    .fixed-btn { width: 60px; height: 60px; }
}

/* ========================================
   Responsive - 480px (Small Mobile)
======================================== */
@media (max-width: 480px) {
    :root { --font-3xl: 24px; --font-4xl: 28px; }
    .page-title { font-size: 20px; }

    .quick-icon { width: 52px; height: 52px; font-size: 20px; border-radius: 12px; }
    .quickM h4 { font-size: 11px; }

    .sermon-name { font-size: 18px; }
    .sermon-meta { font-size: 13px; }
    .sermon-play-btn { width: 38px; height: 38px; font-size: 16px; }
    .sermon-title { font-size: 18px; }
    .sermon-footer-label { font-size: 14px; }
    .sermon-footer-btn { padding: 7px 12px; font-size: 12px; }

    .live-badge { font-size: 32px; }
    .live-service { font-size: 14px; }
    .live-datetime { font-size: 13px; }
    .live-broadcast-icon { font-size: 28px; }

    .channel-link-icon { width: 36px; height: 36px; font-size: 14px; }
    .channel-link-text { font-size: 13px; }
    .channel-link-arrow { width: 22px; height: 22px; font-size: 10px; }

    .event-thumb { width: 72px; height: 50px; }
    .event-item { gap: 10px; }
}

/* ========================================
   Print
======================================== */
@media print {
    .header, .footer, .fixed-buttons { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}
