/* ==========================================================================
   TCM Chuch v1.0 - Main Layout Stylesheet
   Midan City Church (미단시티교회)
   ========================================================================== */

:root {
    --tcm-primary: #00255E;
    --tcm-primary-dark: #00173B;
    --tcm-primary-light: #0B3B82;
    --tcm-primary-soft: rgba(0, 37, 94, 0.06);
    --tcm-gold: #C5A059;
    --tcm-gold-dark: #A68038;
    --tcm-gold-soft: rgba(197, 160, 89, 0.12);
    --tcm-text-title: #0F172A;
    --tcm-text-body: #334155;
    --tcm-text-muted: #64748B;
    --tcm-border: #E2E8F0;
    --tcm-border-light: #F1F5F9;
    --tcm-bg: #FFFFFF;
    --tcm-bg-subtle: #F8FAFC;
    --tcm-radius-lg: 16px;
    --tcm-radius-md: 12px;
    --tcm-radius-sm: 8px;
    --tcm-shadow-sm: 0 2px 8px rgba(0, 37, 94, 0.04);
    --tcm-shadow-md: 0 6px 24px -2px rgba(0, 37, 94, 0.08);
    --tcm-shadow-lg: 0 16px 36px -4px rgba(0, 37, 94, 0.14);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body.tcm-body {
    margin: 0;
    padding: 0;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
    color: var(--tcm-text-body);
    background-color: #FFFFFF;
    line-height: 1.7;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

.tcm-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. Header & Navigation
   ========================================================================== */
.tcm-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tcm-border);
    box-shadow: 0 2px 14px rgba(0, 37, 94, 0.05);
    transition: all 0.3s ease;
}

.tcm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

/* Brand Logo */
.tcm-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}
.tcm-logo-img {
    height: 32px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}
.tcm-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--tcm-primary);
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.tcm-logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--tcm-gold);
    letter-spacing: 0.5px;
}

/* Desktop GNB */
.tcm-gnb {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tcm-gnb-item {
    position: relative;
}
.tcm-gnb-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tcm-text-title);
    text-decoration: none;
    border-radius: var(--tcm-radius-sm);
    transition: all 0.2s ease;
}
.tcm-gnb-link:hover,
.tcm-gnb-item.active .tcm-gnb-link {
    color: var(--tcm-primary);
    background: var(--tcm-primary-soft);
}
.tcm-gnb-link i.xi-angle-down {
    font-size: 12px;
    color: var(--tcm-text-muted);
    transition: transform 0.2s ease;
}
.tcm-gnb-item:hover .tcm-gnb-link i.xi-angle-down {
    transform: rotate(180deg);
}

/* GNB Dropdown Submenu */
.tcm-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: #FFFFFF;
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-sm);
    box-shadow: var(--tcm-shadow-md);
    padding: 8px 0;
    margin-top: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}
.tcm-gnb-item:hover .tcm-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tcm-dropdown-link {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tcm-text-body);
    text-decoration: none;
    transition: all 0.15s ease;
}
.tcm-dropdown-link:hover {
    background: var(--tcm-primary-soft);
    color: var(--tcm-primary);
    padding-left: 22px;
}

/* Header Action Right: Auth & Admin Controls */
.tcm-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 1) Logged Out: Auth Buttons Group */
.tcm-auth-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tcm-btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}
.tcm-btn-auth.login {
    color: var(--tcm-primary);
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
}
.tcm-btn-auth.login:hover {
    background: #EFF6FF;
    border-color: var(--tcm-primary);
    color: var(--tcm-primary-light);
}
.tcm-btn-auth.signup {
    color: #FFFFFF !important;
    background: var(--tcm-primary);
    border: 1px solid var(--tcm-primary);
    box-shadow: 0 2px 6px rgba(0, 37, 94, 0.15);
}
.tcm-btn-auth.signup:hover {
    background: var(--tcm-primary-light);
    border-color: var(--tcm-primary-light);
    transform: translateY(-1px);
}

/* 2) Logged In: User & Admin Menu */
.tcm-user-menu {
    position: relative;
}
.tcm-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tcm-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.tcm-user-btn:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}
.tcm-user-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tcm-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.tcm-user-badge.is-admin {
    background: #00255E;
    color: #FFDF85;
}
.tcm-user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tcm-text-title);
}
.tcm-user-btn .arrow {
    font-size: 12px;
    color: var(--tcm-text-muted);
    transition: transform 0.2s ease;
}
.tcm-user-menu:hover .tcm-user-btn .arrow,
.tcm-user-dropdown.show ~ .tcm-user-btn .arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.tcm-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 37, 94, 0.12);
    padding: 8px 0;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tcm-user-menu:hover .tcm-user-dropdown,
.tcm-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tcm-user-dropdown-header {
    padding: 10px 16px;
    background: #F8FAFC;
    border-bottom: 1px solid #EDF2F7;
    margin-bottom: 4px;
}
.tcm-user-dropdown-nick {
    font-size: 14px;
    font-weight: 800;
    color: var(--tcm-text-title);
}
.tcm-user-dropdown-id {
    font-size: 12px;
    color: var(--tcm-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}
.tcm-role-badge-admin {
    display: inline-block;
    padding: 2px 7px;
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
}
.tcm-user-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tcm-user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--tcm-text-body);
    text-decoration: none;
    transition: all 0.15s ease;
}
.tcm-user-dropdown-link:hover {
    background: #F8FAFC;
    color: var(--tcm-primary);
    padding-left: 19px;
}
.tcm-user-dropdown-link.is-admin {
    color: #00255E;
    font-weight: 700;
    background: rgba(0, 37, 94, 0.04);
}
.tcm-user-dropdown-link.is-admin:hover {
    background: rgba(0, 37, 94, 0.08);
}
.tcm-user-dropdown-link.logout {
    color: #EF4444;
}
.tcm-user-dropdown-link.logout:hover {
    background: #FEF2F2;
    color: #DC2626;
}
.tcm-user-dropdown-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 5px 0;
}

/* Mobile Header Quick Actions */
.tcm-mobile-actions {
    display: none;
    align-items: center;
    gap: 6px;
}
.tcm-mobile-user-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: var(--tcm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tcm-mobile-user-link.admin {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

/* Mobile Drawer Auth Bar */
.tcm-drawer-auth {
    padding: 14px 18px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--tcm-border);
    margin-bottom: 6px;
}
.tcm-drawer-auth-guest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tcm-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tcm-drawer-btn.login {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: var(--tcm-primary);
}
.tcm-drawer-btn.signup {
    background: var(--tcm-primary);
    border: 1px solid var(--tcm-primary);
    color: #FFFFFF !important;
}
.tcm-drawer-member-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--tcm-text-title);
}
.tcm-drawer-member-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tcm-drawer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: var(--tcm-text-body);
}
.tcm-drawer-action-btn.admin {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
    font-weight: 700;
}
.tcm-drawer-action-btn.logout {
    color: #EF4444;
}

/* Mobile Hamburger Toggle */
.tcm-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--tcm-primary);
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

/* ==========================================================================
   2. Mobile Drawer Menu
   ========================================================================== */
.tcm-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 23, 59, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.tcm-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.tcm-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #FFFFFF;
    z-index: 2001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.tcm-mobile-drawer.active {
    right: 0;
}
.tcm-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--tcm-border);
}
.tcm-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--tcm-text-muted);
    cursor: pointer;
}
.tcm-drawer-nav {
    list-style: none;
    padding: 14px 0;
    margin: 0;
}
.tcm-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--tcm-text-title);
    text-decoration: none;
    border-bottom: 1px solid #F8FAFC;
}
.tcm-drawer-link:hover {
    color: var(--tcm-primary);
    background: var(--tcm-primary-soft);
}
.tcm-drawer-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #F8FAFC;
}
.tcm-drawer-sub a {
    display: block;
    padding: 10px 24px 10px 38px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tcm-text-body);
    text-decoration: none;
}
.tcm-drawer-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--tcm-border);
    font-size: 13px;
    color: var(--tcm-text-muted);
    background: #F8FAFC;
}

/* ==========================================================================
   3. Main Page: Hero Banner (with Background Video)
   ========================================================================== */
.tcm-hero {
    position: relative;
    background: #00122E;
    color: #FFFFFF;
    padding: 100px 0 130px 0;
    overflow: hidden;
    text-align: center;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background YouTube Video Wrapper */
.tcm-hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.tcm-hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.78vh; /* 16:9 of 100% height */
    transform: translate(-50%, -50%) scale(1.35); /* Scaling up crops out any YouTube title, progress bar, or controls */
    border: none;
    pointer-events: none;
    opacity: 1;
}

/* Contrast Overlay - Rich Navy Blue Tint giving elegant depth while video stays clear */
.tcm-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 18, 48, 0.48) 0%, 
        rgba(2, 36, 88, 0.32) 45%, 
        rgba(0, 16, 42, 0.58) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Sound Control Button on Hero (좌측 배치 및 모던 글래스모피즘) */
.tcm-hero-sound-btn {
    position: absolute;
    bottom: 26px;
    left: 30px;
    right: auto;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 15, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.tcm-hero-sound-btn:hover {
    background: rgba(0, 37, 94, 0.95);
    border-color: #FFDF85;
    transform: scale(1.05);
}
.tcm-hero-sound-btn i {
    font-size: 16px;
    color: #FFDF85;
    transition: transform 0.2s ease;
}
.tcm-hero-sound-btn.sound-on {
    border-color: #4ADE80;
    background: rgba(10, 42, 28, 0.85);
}
.tcm-hero-sound-btn.sound-on i {
    color: #4ADE80;
}

/* Foreground Content */
.tcm-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}
.tcm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(0, 15, 38, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #FFDF85;
    margin-bottom: 22px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.tcm-hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.35;
    color: #FFFFFF;
    margin: 0 0 18px 0;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95);
}
.tcm-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    max-width: 680px;
    margin: 0 auto 36px auto;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.tcm-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.tcm-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--tcm-radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}
.tcm-btn-hero.gold {
    background: var(--tcm-gold);
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
}
.tcm-btn-hero.gold:hover {
    background: var(--tcm-gold-dark);
    transform: translateY(-2px);
}
.tcm-btn-hero.outline {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.tcm-btn-hero.outline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Main Page: 4 Quick Cards
   ========================================================================== */
.tcm-quick-section {
    position: relative;
    margin-top: -50px;
    z-index: 10;
    margin-bottom: 70px;
}
.tcm-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.tcm-quick-card {
    background: #FFFFFF;
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    box-shadow: var(--tcm-shadow-md);
    padding: 28px 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.25s ease;
}
.tcm-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tcm-shadow-lg);
    border-color: #CBD5E1;
}
.tcm-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tcm-primary-soft);
    color: var(--tcm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}
.tcm-quick-card:hover .tcm-quick-icon {
    background: var(--tcm-primary);
    color: #FFFFFF;
}
.tcm-quick-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tcm-text-title);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
}
.tcm-quick-title i.arrow {
    font-size: 14px;
    color: var(--tcm-gold);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}
.tcm-quick-card:hover .tcm-quick-title i.arrow {
    opacity: 1;
    transform: translateX(0);
}
.tcm-quick-desc {
    font-size: 13.5px;
    color: var(--tcm-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   5. Main Page: Latest Sunday Sermon Section
   ========================================================================== */
.tcm-sermon-section {
    padding: 60px 0 80px 0;
    background: #F8FAFC;
    border-top: 1px solid var(--tcm-border);
    border-bottom: 1px solid var(--tcm-border);
}
.tcm-section-head {
    text-align: center;
    margin-bottom: 44px;
}
.tcm-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--tcm-primary-soft);
    color: var(--tcm-primary);
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.tcm-section-tag i {
    color: var(--tcm-gold);
}
.tcm-section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--tcm-text-title);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}
.tcm-section-subtitle {
    font-size: 16px;
    color: var(--tcm-text-muted);
    margin: 0;
}

.tcm-sermon-card {
    background: #FFFFFF;
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-lg);
    box-shadow: var(--tcm-shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
}
.tcm-sermon-player-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000000;
}
.tcm-sermon-player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.tcm-sermon-info {
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tcm-sermon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tcm-gold-dark);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 12px;
}
.tcm-sermon-heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--tcm-text-title);
    margin: 0 0 18px 0;
    line-height: 1.42;
    letter-spacing: -0.5px;
}

/* Sermon Meta Card (설교일, 성경구절, 설교자 정보) */
.tcm-sermon-meta-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--tcm-radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tcm-sermon-meta-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 14.5px;
}
.tcm-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tcm-text-muted);
    min-width: 74px;
    flex-shrink: 0;
}
.tcm-meta-label i {
    color: var(--tcm-gold);
    font-size: 14px;
}
.tcm-meta-value {
    color: var(--tcm-text-title);
    font-weight: 600;
    word-break: keep-all;
}
.tcm-meta-value.date {
    font-weight: 700;
    color: #1E293B;
}
.tcm-meta-value.scripture {
    color: var(--tcm-primary);
    font-weight: 700;
}
.tcm-meta-value.preacher {
    color: var(--tcm-text-body);
}

.tcm-sermon-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tcm-btn-sermon-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--tcm-primary);
    color: #FFFFFF !important;
    border-radius: var(--tcm-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 37, 94, 0.2);
}
.tcm-btn-sermon-more:hover {
    background: var(--tcm-primary-light);
    transform: translateY(-1px);
}
.tcm-btn-sermon-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #F1F5F9;
    color: var(--tcm-text-title) !important;
    border: 1px solid #CBD5E1;
    border-radius: var(--tcm-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tcm-btn-sermon-list:hover {
    background: #E2E8F0;
    transform: translateY(-1px);
}
.tcm-btn-yt-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #FFFFFF;
    color: #E20000 !important;
    border: 1px solid #FED7D7;
    border-radius: var(--tcm-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tcm-btn-yt-channel:hover {
    background: #FFF5F5;
    border-color: #E20000;
}

/* ==========================================================================
   6. Main Page: Vision & 3 Core Values
   ========================================================================== */
.tcm-vision-section {
    padding: 80px 0;
    background: #FFFFFF;
}
.tcm-vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.tcm-vision-card {
    background: #FFFFFF;
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    padding: 34px 28px;
    box-shadow: var(--tcm-shadow-sm);
    transition: all 0.25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tcm-vision-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tcm-shadow-md);
    border-color: #CBD5E1;
}
.tcm-vision-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--tcm-primary-soft);
    color: var(--tcm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}
.tcm-vision-card:hover .tcm-vision-icon {
    background: var(--tcm-gold);
    color: #FFFFFF;
}
.tcm-vision-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tcm-text-title);
    margin: 0 0 12px 0;
}
.tcm-vision-desc {
    font-size: 14.5px;
    color: var(--tcm-text-body);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   7. Main Page: Worship & Location Overview
   ========================================================================== */
.tcm-overview-section {
    padding: 70px 0 90px 0;
    background: #F8FAFC;
    border-top: 1px solid var(--tcm-border);
}
.tcm-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.tcm-overview-card {
    background: #FFFFFF;
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    padding: 32px 30px;
    box-shadow: var(--tcm-shadow-sm);
    display: flex;
    flex-direction: column;
}
.tcm-overview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}
.tcm-overview-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tcm-text-title);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.tcm-overview-card-title i {
    color: var(--tcm-primary);
}
.tcm-time-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
}
.tcm-time-table tr {
    border-bottom: 1px solid #F1F5F9;
}
.tcm-time-table td {
    padding: 11px 0;
    font-size: 14.5px;
}
.tcm-time-table td.name {
    font-weight: 700;
    color: var(--tcm-primary);
    width: 40%;
}
.tcm-time-table td.time {
    color: var(--tcm-text-body);
    font-weight: 600;
}

/* ==========================================================================
   8. Subpage Layout (Sub-Top & Content Wrapper)
   ========================================================================== */
.tcm-sub-top {
    position: relative;
    color: #FFFFFF;
    padding: 55px 0 60px 0;
    text-align: center;
    background-color: #001A44;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.tcm-sub-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 18, 46, 0.45) 0%, rgba(0, 37, 94, 0.72) 100%);
    z-index: 1;
}
.tcm-sub-top .tcm-container {
    position: relative;
    z-index: 2;
}
.tcm-sub-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.tcm-sub-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}
.tcm-sub-breadcrumb a:hover {
    color: #FFDF85;
}
.tcm-sub-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.tcm-content-area {
    padding: 40px 0 80px 0;
    min-height: 480px;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.tcm-footer {
    background: #00173B;
    color: #94A3B8;
    padding: 60px 0 40px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tcm-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.tcm-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
}
.tcm-footer-logo-img {
    height: 32px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}
.tcm-footer-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.tcm-footer-nav a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.tcm-footer-nav a:hover {
    color: #FFFFFF;
}

.tcm-footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.7;
    margin-bottom: 26px;
}
.tcm-footer-info-line {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.tcm-footer-info strong {
    color: #F1F5F9;
}
.tcm-footer-info a {
    color: #94A3B8;
    text-decoration: none;
}
.tcm-footer-info a:hover {
    color: #FFFFFF;
}

.tcm-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #64748B;
}
.tcm-btn-footer-yt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(226, 0, 0, 0.15);
    border: 1px solid rgba(226, 0, 0, 0.35);
    color: #FF6B6B !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.tcm-btn-footer-yt:hover {
    background: #E20000;
    color: #FFFFFF !important;
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .tcm-gnb, .tcm-auth-group, .tcm-user-menu {
        display: none;
    }
    .tcm-mobile-actions {
        display: flex;
    }
    .tcm-mobile-toggle {
        display: block;
    }
    .tcm-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tcm-sermon-card {
        grid-template-columns: 1fr;
    }
    .tcm-vision-grid {
        grid-template-columns: 1fr;
    }
    .tcm-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tcm-header-inner {
        height: 58px;
    }
    .tcm-logo-img {
        height: 26px;
        max-width: 150px;
    }

    /* Hero Mobile Optimization: Airy, sleek, non-cluttered */
    .tcm-hero {
        padding: 34px 0 76px 0;
        min-height: auto;
    }
    .tcm-hero-sound-btn {
        top: auto;
        bottom: 34px;
        left: 16px;
        right: auto;
        padding: 6px 12px;
        font-size: 11px;
        gap: 5px;
    }
    .tcm-hero-badge {
        font-size: 10.5px;
        padding: 3px 12px;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }
    .tcm-hero-title {
        font-size: 18.5px;
        line-height: 1.42;
        font-weight: 800;
        margin: 0 0 8px 0;
        letter-spacing: -0.4px;
        word-break: keep-all;
    }
    .tcm-hero-subtitle {
        font-size: 12.5px;
        line-height: 1.52;
        margin: 0 auto 16px auto;
        max-width: 92%;
        color: rgba(255, 255, 255, 0.92);
    }
    .tcm-hero-sub-extra {
        display: none !important; /* Hides 2nd long sentence on mobile */
    }
    .tcm-btn-text-desktop {
        display: none !important; /* Shortens button text on mobile */
    }
    .tcm-hero-actions {
        display: flex;
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .tcm-btn-hero {
        padding: 7px 13px;
        font-size: 11.5px;
        border-radius: 50px;
        gap: 5px;
    }

    /* Quick Cards Mobile */
    .tcm-quick-section {
        margin-top: -14px;
    }
    .tcm-quick-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tcm-quick-card {
        padding: 16px 18px;
    }
    .tcm-quick-title {
        font-size: 16px;
        margin: 0 0 3px 0;
    }
    .tcm-quick-desc {
        font-size: 12.5px;
        line-height: 1.55;
        margin: 0;
    }

    .tcm-section-head {
        margin-bottom: 26px;
    }
    .tcm-section-tag {
        font-size: 11.5px;
        padding: 3px 11px;
        margin-bottom: 6px;
    }
    .tcm-section-title {
        font-size: 20px;
        margin: 0 0 6px 0;
    }
    .tcm-section-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }

    .tcm-sermon-info {
        padding: 24px 18px;
    }
    .tcm-sermon-heading {
        font-size: 19px;
        margin-bottom: 14px;
    }
    .tcm-sermon-meta-card {
        padding: 12px 14px;
        margin-bottom: 18px;
        gap: 8px;
    }
    .tcm-sermon-meta-row {
        font-size: 13.5px;
        gap: 8px;
    }
    .tcm-meta-label {
        font-size: 11.5px;
        min-width: 64px;
    }
    .tcm-sub-top {
        padding: 42px 0 46px 0;
    }
    .tcm-sub-title {
        font-size: 26px;
    }
    .tcm-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .tcm-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
