/* member/css/home.css - 성도용 홈 (생명의말씀선교회)
   색상은 ../../shared/theme.css 의 브랜드 토큰(신학원과 공통, 밝은 파랑)을 쓴다.
   상단 배경 사진: member/images/hero.jpg 파일만 넣으면 자동으로 적용된다 (.hero.has-photo). */

:root {
    --content-width: 1460px;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
    color: var(--ink);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--brand-50);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

[hidden] { display: none !important; }

svg { display: block; }

/* ── 상단 아이콘 바 ─────────────────────────────── */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #fff;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.topbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-700);
    box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(11, 92, 173, 0.06);
    backdrop-filter: blur(6px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 로고 - 신학원과 같은 투명 PNG(shared/logo.png) */
.logo-badge {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-btn,
.avatar-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover,
.avatar-btn:hover { background: rgba(255, 255, 255, 0.18); }
.topbar.scrolled .icon-btn:hover,
.topbar.scrolled .avatar-btn:hover { background: var(--brand-100); }

.icon-btn svg,
.avatar-btn svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avatar-btn {
    border: 1.6px solid currentColor;
    width: 40px;
    height: 40px;
}

.avatar-btn.signed-in {
    background: #fff;
    border-color: #fff;
    color: var(--brand-600);
    font-weight: 700;
    font-size: 16px;
}

.topbar.scrolled .avatar-btn.signed-in {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}

/* 한국어/스페인어 전환 */
/* 기본 모양은 shared/theme.css - 여기서는 투명 상단바용으로 흰색 처리 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    padding: 3px 4px 3px 9px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    color: inherit;
    background: transparent;
}

.lang-switch svg {
    width: 18px;
    height: 18px;
    margin-right: 3px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.lang-switch .lang-btn {
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.75;
}

.lang-switch .lang-btn:hover { opacity: 1; }

.lang-switch .lang-btn.active {
    opacity: 1;
    background: #fff;
    color: var(--brand-700);
}

.topbar.scrolled .lang-switch .lang-btn.active {
    background: var(--brand-gradient);
    color: #fff;
}

.account { position: relative; }

.account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 34px rgba(11, 61, 115, 0.2);
    padding: 8px;
}

.account-menu a,
.account-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: none;
    font: inherit;
    font-size: 14px;
    color: inherit;
    cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover { background: var(--brand-50); color: var(--brand-700); }
.account-menu a[hidden] { display: none; }

.account-name {
    margin: 4px 12px 8px;
    font-size: 13px;
    color: var(--ink-muted);
}

.account-name b { color: var(--brand-700); }

/* 관리자 사이트 이동 (관리자에게만 보임) */
.account-menu a.admin-link,
.drawer a.admin-link {
    color: var(--brand-700);
    background: var(--brand-50);
    font-weight: 700;
}

/* ── 히어로 (밝은 파랑) ──────────────────────────── */
.hero {
    position: relative;
    min-height: 570px;
    color: #fff;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(19, 181, 234, 0.55), transparent 60%),
        var(--brand-gradient-deep);
    display: flex;
    overflow: hidden;
}

/* 상단 배경 사진 - member/images/hero.jpg 를 넣으면 home.js 가 확인하고 자동으로 켠다.
   글씨가 잘 보이도록 사진 위에 파란 반투명 막을 한 겹 덮는다. (사진이 없으면 위 그라데이션 그대로) */
.hero.has-photo {
    background:
        linear-gradient(180deg, rgba(10, 61, 115, 0.55) 0%, rgba(11, 92, 173, 0.28) 45%, rgba(10, 61, 115, 0.5) 100%),
        url('../images/hero.jpg') center / cover no-repeat,
        var(--brand-gradient-deep);
}

/* 아래쪽을 본문 배경색으로 부드럽게 이어준다 */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 70px;
    background: linear-gradient(180deg, transparent, rgba(243, 249, 254, 0.18));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 80px 16px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-shadow: 0 2px 14px rgba(10, 61, 115, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 이름 왼쪽 로고 (신학원과 같은 로고) - 흰 동그라미 위에 */
.site-title .logo-badge {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(10, 61, 115, 0.3);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.main-nav a:hover::after { transform: scaleX(1); }

.hero-copy {
    margin: 120px 0 0;
    font-family: 'Gowun Batang', 'Nanum Myeongjo', serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px rgba(10, 61, 115, 0.4);
}

.hero-search {
    margin-top: 64px;
    width: min(630px, 100%);
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 4px 8px 4px 22px;
    box-shadow: 0 10px 30px rgba(10, 61, 115, 0.25);
}

.hero-search:focus-within { box-shadow: 0 10px 30px rgba(10, 61, 115, 0.25), 0 0 0 4px rgba(255, 255, 255, 0.45); }

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font: inherit;
    font-size: 15px;
    padding: 11px 0;
    color: var(--ink);
    background: transparent;
}

.hero-search input::-webkit-search-cancel-button { display: none; }

.hero-search button {
    border: none;
    background: none;
    color: var(--brand-600);
    cursor: pointer;
    padding: 8px;
}

.hero-search button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

/* ── 본문 ───────────────────────────────────────── */
.content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 50px 16px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 26px;
    align-items: start;
}

/* 배너 슬라이드 */
.carousel {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 967 / 600;
    background: var(--brand-700);
    box-shadow: 0 14px 34px -14px rgba(11, 61, 115, 0.45);
}

.slides,
.slide {
    position: absolute;
    inset: 0;
}

.slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s, visibility 0.6s;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6% 5%;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* 사진 대신 쓰는 파란 계열 그라데이션 */
.slide-1 {
    background:
        radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.95) 0%, rgba(214, 238, 253, 0.75) 12%, rgba(19, 181, 234, 0.35) 32%, rgba(21, 112, 204, 0) 58%),
        linear-gradient(180deg, #0b5cad 0%, #1570cc 40%, #3ea6ea 72%, #bfe0fa 100%);
}

.slide-2 {
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.35), transparent 42%),
        linear-gradient(135deg, #0b5cad 0%, #1aa2e6 60%, #8fd3f4 100%);
}

.slide-3 {
    background:
        radial-gradient(circle at 18% 82%, rgba(19, 181, 234, 0.45), transparent 48%),
        linear-gradient(135deg, #0a3d73 0%, #1570cc 60%, #2a8be0 100%);
}

.slide-text {
    max-width: 640px;
    text-align: right;
    color: #fff;
    text-shadow: 0 2px 14px rgba(10, 61, 115, 0.35);
}

.slide-kicker {
    margin: 0;
    font-size: clamp(20px, 3.4vw, 42px);
    font-weight: 300;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
}

.slide-text h2 {
    margin: 0;
    font-size: clamp(24px, 4.3vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
}

.slide-verse {
    margin: 22px 0 0;
    font-size: clamp(11px, 1.15vw, 14px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.slide-verse small { font-size: 0.85em; }

.slide-foot {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.slide-sign {
    font-family: 'Gowun Batang', Georgia, serif;
    font-style: italic;
    font-size: clamp(13px, 1.7vw, 22px);
    color: rgba(255, 255, 255, 0.88);
}

.slide-btn {
    background: #fff;
    color: var(--brand-700);
    font-weight: 700;
    font-size: clamp(12px, 1.3vw, 16px);
    padding: 8px 18px;
    border-radius: 999px;
    white-space: nowrap;
    text-shadow: none;
    box-shadow: 0 6px 16px rgba(10, 61, 115, 0.2);
    transition: transform 0.2s;
}

.slide-btn:hover { transform: translateY(-2px); }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 70px;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

.carousel-nav:hover { background: rgba(255, 255, 255, 0.32); }
.carousel-nav.prev { left: 0; border-radius: 0 10px 10px 0; }
.carousel-nav.next { right: 0; border-radius: 10px 0 0 10px; }

.carousel-nav svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s;
}

.carousel-dots button[aria-selected="true"] {
    width: 26px;
    background: #fff;
}

/* 오른쪽 열 */
.side {
    display: grid;
    gap: 26px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 30px 24px;
    box-shadow: 0 4px 16px -8px rgba(11, 61, 115, 0.12);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 8px;
}

.app {
    display: grid;
    justify-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink);
}

.app-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 31px;
    font-weight: 900;
    font-family: 'Arial Black', 'Noto Sans KR', sans-serif;
    transition: transform 0.15s, box-shadow 0.15s;
}

.app:hover .app-icon {
    transform: translateY(-3px);
    box-shadow: var(--brand-shadow);
}

.app-filled {
    background: var(--brand-gradient);
    color: #fff;
}

.app-white {
    background: #fff;
    border: 1px solid var(--brand-200);
    box-shadow: 0 2px 8px rgba(11, 61, 115, 0.06);
}

/* 목회자·관리자 전용 바로가기 (신학원 / 관리자 사이트) */
.app-staff {
    background: var(--brand-gradient-deep);
    color: #fff;
}

.app-staff svg {
    width: 50%;
    height: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-admin { background: linear-gradient(135deg, #0a3d73, #0b5cad); }
.app-network { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.tone-1 { color: var(--brand-600); }
.tone-2 { color: var(--brand-900); }
.tone-3 { color: var(--brand-400); }

.card-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 19px;
    font-weight: 900;
    color: var(--brand-900);
    margin-bottom: 20px;
}

.card-title svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.content-tile {
    aspect-ratio: 1 / 1.15;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 22%;
    text-align: center;
    color: #fff;
    font-family: 'Gowun Batang', serif;
    font-size: 14px;
    line-height: 1.3;
    transition: transform 0.15s, box-shadow 0.15s;
}

.content-tile b { font-size: 19px; }
.content-tile:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow); }
.tile-a { background: linear-gradient(180deg, #1570cc, #13b5ea); }
.tile-b { background: linear-gradient(180deg, #2a8be0, #8fd3f4); }
.tile-c { background: linear-gradient(180deg, #0a3d73, #1570cc); }

/* 콘텐츠 카드 아래 연재물 링크 */
.content-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.content-links a {
    padding: 6px 13px;
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-700);
    background: var(--brand-50);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.content-links a:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

/* ── 아래 섹션들 ─────────────────────────────────── */
.home-rows {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 16px 60px;
    display: grid;
    gap: 26px;
}

.home-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 26px;
    align-items: start;
}

.stack { display: grid; gap: 26px; }

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.card-head .card-title { margin-bottom: 0; }
.card-head-stack { flex-direction: column; align-items: flex-start; gap: 4px; }

.card-sub { font-size: 13px; color: var(--ink-muted); }

.more-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-600);
}

.more-link:hover { text-decoration: underline; }

/* 탭 (알약 모양) */
.tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }
.tabs-wrap { flex-wrap: wrap; margin-bottom: 18px; }

.tab {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-muted);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.tab:hover { color: var(--brand-700); background: var(--brand-50); }

.tab.active {
    background: var(--brand-gradient);
    color: #fff;
}

.tab-live { color: #e5484d; display: inline-flex; align-items: center; gap: 5px; }
.tab-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e5484d;
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 큰 제목처럼 쓰는 탭 (주일설교 / 수요설교) */
.tabs-title .tab {
    padding: 4px 4px;
    margin-right: 14px;
    border-radius: 0;
    font-size: 19px;
    font-weight: 900;
    color: var(--ink-muted);
    background: none;
    border-bottom: 3px solid transparent;
}

.tabs-title .tab.active {
    color: var(--brand-900);
    background: none;
    border-bottom-color: var(--brand-600);
}

/* 성경강연회 - 강사 */
.speakers {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    background: var(--brand-50);
}

.speaker {
    display: grid;
    justify-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.speaker-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, #fff 0 22%, transparent 23%),
        radial-gradient(ellipse at 50% 100%, #fff 0 42%, transparent 43%),
        var(--brand-gradient);
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(11, 61, 115, 0.18);
    transition: transform 0.2s;
}

.speaker:hover .speaker-photo { transform: translateY(-3px); }

/* 성경강연회 - 시리즈 */
.series-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 14px;
    margin-top: 20px;
}

.series-card { display: grid; gap: 8px; }

.series-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 14px;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.series-thumb small {
    font-family: 'Gowun Batang', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    opacity: 0.9;
}

.series-thumb b {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(10, 61, 115, 0.35);
}

.series-card:hover .series-thumb { transform: translateY(-3px); box-shadow: var(--brand-shadow); }

.st-1 { background: linear-gradient(135deg, #0b5cad, #3ea6ea); }
.st-2 { background: linear-gradient(135deg, #1570cc, #8fd3f4); }
.st-3 { background: linear-gradient(135deg, #0a3d73, #1aa2e6); }
.st-4 { background: linear-gradient(135deg, #2a8be0, #bfe0fa); }
.st-5 { background: linear-gradient(135deg, #0b5cad, #13b5ea); }
.st-6 { background: linear-gradient(135deg, #0a3d73, #2a8be0); }

.series-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.card-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(21, 112, 204, 0.25);
    transition: transform 0.2s;
}

.pill-btn:hover { transform: translateY(-2px); }

.pill-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* 궁금해요 */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.faq-card {
    display: grid;
    align-content: space-between;
    gap: 10px;
    min-height: 128px;
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-card b {
    font-family: 'Gowun Batang', Georgia, serif;
    font-size: 26px;
    line-height: 1;
    opacity: 0.85;
}

.faq-card:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow); }
.fq-1 { background: linear-gradient(160deg, #1570cc, #13b5ea); }
.fq-2 { background: linear-gradient(160deg, #0a3d73, #1570cc); }
.fq-3 { background: linear-gradient(160deg, #2a8be0, #8fd3f4); }
.fq-4 { background: linear-gradient(160deg, #0b5cad, #3ea6ea); }

/* 설교 / 선교회 소식 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.media-card { display: grid; gap: 7px; align-content: start; }

.media-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.media-thumb svg {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    fill: #fff;
}

.media-card:hover .media-thumb { transform: translateY(-3px); box-shadow: var(--brand-shadow); }
.mt-1 { background: linear-gradient(135deg, #2e7d5b, #8bc34a); }
.mt-2 { background: linear-gradient(135deg, #8a5a1f, #d9a441); }
.mt-3 { background: linear-gradient(135deg, #3b6e2f, #a5c94a); }
.mt-4 { background: linear-gradient(135deg, #7a4b1e, #c98d3a); }

.news-thumb { place-items: end start; padding: 10px 12px; align-content: end; }
.news-thumb b { font-size: 40px; font-weight: 900; line-height: 1; }
.news-thumb small { font-size: 12px; opacity: 0.9; }
.nt-1 { background: linear-gradient(135deg, #6a5acd, #b39ddb); }
.nt-2 { background: linear-gradient(135deg, #1570cc, #8fd3f4); }
.nt-3 { background: linear-gradient(135deg, #0a3d73, #2a8be0); }
.nt-4 { background: linear-gradient(135deg, #8e6bbf, #d1c4e9); }

.media-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.media-card time { font-size: 12px; color: #e5484d; font-weight: 600; }

/* 바이블레터 */
.letter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.letter-card {
    aspect-ratio: 3 / 4.6;
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    color: #fff;
    font-family: 'Gowun Batang', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: transform 0.2s, box-shadow 0.2s;
}

.letter-card b { font-size: 34px; line-height: 1; }
.letter-card:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow); }
.lc-1 { background: linear-gradient(180deg, #8fd3f4, #1570cc); }
.lc-2 { background: linear-gradient(180deg, #f4a3a8, #c2185b); }
.lc-3 { background: linear-gradient(180deg, #e3f1fd, #2a8be0); color: #0a3d73; }
.lc-4 { background: linear-gradient(180deg, #bfe0fa, #0b5cad); }
.lc-5 { background: linear-gradient(180deg, #c8e6c9, #2e7d5b); }
.lc-6 { background: linear-gradient(180deg, #ffd6d6, #e5484d); }

.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--ink-muted);
    font-size: 13px;
    padding: 28px 16px 32px;
}

.site-footer a { color: var(--brand-600); font-weight: 600; }

/* SNS 링크 */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-weight: 600;
    transition: color 0.2s;
}

.social-links a:hover { color: var(--brand-600); }

.social-links svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 전체 메뉴 (햄버거) - 왼쪽에서 부드럽게 미끄러져 나오고, 뒤 배경은 서서히 어두워진다 */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 61, 115, 0.35);
    backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s;
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 85vw);
    background: #fff;
    z-index: 100;
    padding: 64px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(10, 61, 115, 0.2);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.42s;
}

.drawer.open {
    transform: none;
    visibility: visible;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

/* 메뉴 항목이 살짝 늦게 차례로 나타난다 */
.drawer > a,
.drawer > hr {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, color 0.2s;
}

.drawer.open > a,
.drawer.open > hr {
    opacity: 1;
    transform: none;
}

.drawer.open > :nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.drawer.open > :nth-child(3) { transition-delay: 0.11s, 0.11s, 0s, 0s; }
.drawer.open > :nth-child(4) { transition-delay: 0.14s, 0.14s, 0s, 0s; }
.drawer.open > :nth-child(5) { transition-delay: 0.17s, 0.17s, 0s, 0s; }
.drawer.open > :nth-child(6) { transition-delay: 0.2s, 0.2s, 0s, 0s; }
.drawer.open > :nth-child(7) { transition-delay: 0.23s, 0.23s, 0s, 0s; }
.drawer.open > :nth-child(8) { transition-delay: 0.26s, 0.26s, 0s, 0s; }
.drawer.open > :nth-child(n+9) { transition-delay: 0.29s, 0.29s, 0s, 0s; }

/* 계정 메뉴도 툭 튀어나오지 않게 */
.account-menu:not([hidden]) {
    animation: menuPop 0.18s ease-out;
    transform-origin: top right;
}

@keyframes menuPop {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .drawer, .drawer-backdrop, .drawer > a, .drawer > hr { transition: none !important; }
    .account-menu:not([hidden]) { animation: none; }
}

.drawer a {
    padding: 11px 8px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

.drawer a:hover { background: var(--brand-50); color: var(--brand-700); }

.drawer hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 10px 0;
}

.drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--brand-700);
}

/* ── 반응형 ─────────────────────────────────────── */
/* 스페인어는 메뉴 이름이 길어서 조금 작게 */
html[lang="es"] .main-nav { gap: 30px; }
html[lang="es"] .main-nav a { font-size: 15px; }
html[lang="es"] .site-title { font-size: 28px; }

@media (max-width: 1440px) {
    html[lang="es"] .main-nav { gap: 20px; }
    html[lang="es"] .main-nav a { font-size: 14px; }
    html[lang="es"] .site-title { font-size: 26px; }
}

@media (max-width: 1180px) {
    html[lang="es"] .main-nav { display: none; }
    html[lang="es"] .hero-head { justify-content: center; }
}
@media (max-width: 1280px) {
    .main-nav { gap: 28px; }
    .main-nav a { font-size: 16px; }
    .content { grid-template-columns: minmax(0, 1fr) 400px; }
    .home-row { grid-template-columns: minmax(0, 1fr) 400px; }
    .speakers { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .hero-head { justify-content: center; }
    .content { grid-template-columns: minmax(0, 1fr); }
    .side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .home-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .home-rows { gap: 20px; }
    .speakers { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .letter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .topbar { padding: 10px 8px; }
    .topbar-left,
    .topbar-right { gap: 2px; }
    .logo-badge { width: 40px; height: 40px; margin-right: 4px; }
    .hero { min-height: 480px; }
    .hero-inner { padding-top: 76px; }
    .site-title { font-size: 24px; }
    .hero-copy { margin-top: 70px; font-size: 27px; }
    .hero-search { margin-top: 40px; }
    .content { padding-top: 24px; }
    .carousel { aspect-ratio: 4 / 3.4; }
    .slide { padding: 10% 7% 14%; }
    .slide-verse { display: none; }
    .side { grid-template-columns: minmax(0, 1fr); }
    .quick-links { gap: 20px 4px; }
    .card { padding: 22px 16px; }
    .speakers { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
    .speaker-photo { width: 48px; height: 48px; }
    .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tabs-title .tab { font-size: 16px; margin-right: 8px; }
    .faq-card { min-height: 110px; font-size: 13px; }
    .letter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .letter-card { font-size: 12.5px; }
    .content-grid { gap: 12px; }
    .app { font-size: 12.5px; }
    .app-icon { width: 54px; height: 54px; font-size: 27px; border-radius: 14px; }
}

@media (max-width: 420px) {
    .lang-switch svg { display: none; }
    .lang-switch { padding-left: 4px; }
    .topbar-right .icon-btn:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .slide { transition: none; }
}

@media (max-width: 600px) {
    .site-title .logo-badge { width: 38px; height: 38px; padding: 4px; margin-right: 0; }
}
