/* Custom Styles for VC DISCOVERY Magazine */

/* Reset */
* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Font Family */
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.8;
    letter-spacing: -0.8px;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Container Width Override */
.container {
    max-width: 1100px !important;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0f0f0f;
    color: #e5e5e5;
}

body.dark-mode .top-bar {
    background-color: #1a1a1a;
    border-bottom-color: #2a2a2a;
}

body.dark-mode .top-bar a {
    color: #a0a0a0;
}

body.dark-mode .top-bar a:hover {
    color: #e5e5e5;
}

body.dark-mode .main-nav {
    background-color: #1a1a1a;
    border-bottom-color: #2a2a2a;
}

body.dark-mode .nav-link {
    color: #a0a0a0;
}

body.dark-mode .nav-link:hover {
    color: #e5e5e5;
}

body.dark-mode .nav-icon,
body.dark-mode .dark-mode-toggle {
    color: #a0a0a0;
}

body.dark-mode .nav-icon:hover,
body.dark-mode .dark-mode-toggle:hover {
    color: #e5e5e5;
}

body.dark-mode .section.section-hero,
body.dark-mode .title-section {
    background-color: #0f0f0f;
    background-image: none;
}



body.dark-mode .magazine-title {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
}

body.dark-mode .issue-badge-line {
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%);
}

body.dark-mode .issue-badge {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

body.dark-mode .issue-badge-dot {
    background-color: #1d1d1f;
}

body.dark-mode .prologue-section {
    background-color: #0f0f0f;
}

body.dark-mode .prologue-title {
    color: #e5e5e5;
}

body.dark-mode .prologue-text {
    color: #b0b0b0;
}

body.dark-mode .prologue-dots span {
    background-color: #555;
}

body.dark-mode .trend-section {
    background-color: #0f0f0f;
}

body.dark-mode .trend-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

body.dark-mode .trend-card:hover {
    box-shadow: none;
    border-color: transparent;
}

body.dark-mode .trend-bg-shape {
    background-color: #1f1f1f;
}

body.dark-mode .trend-label-vc {
    color: #e5e5e5;
}

body.dark-mode .trend-image {
    opacity: 0.85;
}

body.dark-mode .trend-card:hover .trend-image {
    opacity: 1;
}

body.dark-mode .trend-title {
    color: #e5e5e5;
}

body.dark-mode .trend-text {
    color: #b0b0b0;
}

body.dark-mode .people-section {
    background-color: #0f0f0f;
}

body.dark-mode .people-card-left {
    background-color: #1f1f1f;
    color: #e5e5e5;
}

body.dark-mode .people-name {
    color: #fff;
}

body.dark-mode .people-name-en {
    color: #a0a0a0;
}

body.dark-mode .people-desc {
    color: #b0b0b0;
}

body.dark-mode .people-bubble-tail {
    background-color: #1f1f1f;
}

body.dark-mode .people-card-right {
    background-color: #1f1f1f;
}

body.dark-mode .people-bg-image {
    opacity: 0.85;
}

body.dark-mode .people-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 40%, transparent 100%);
}

body.dark-mode .people-quote-text {
    color: #e5e5e5;
}

body.dark-mode .member-news-section {
    background-color: #1a1a1a;
}

body.dark-mode .news-title {
    color: #e5e5e5;
}

body.dark-mode .news-subtitle {
    color: #b0b0b0;
}

body.dark-mode .member-news-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .member-news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .member-news-image {
    opacity: 0.85;
}

body.dark-mode .member-news-card:hover .member-news-image {
    opacity: 1;
}

/* Dark Mode for Talk & Event */
body.dark-mode .section.bg-light-gray-alt {
    background-color: #0f0f0f;
}

body.dark-mode .talk-label-vc {
    color: #e5e5e5;
}

body.dark-mode .talk-card-left {
    background-color: #1f1f1f;
    color: #e5e5e5;
}

body.dark-mode .talk-title {
    color: #fff;
}

body.dark-mode .talk-desc {
    color: #b0b0b0;
}

body.dark-mode .event-card-right {
    background-color: #1f1f1f;
}

body.dark-mode .event-bg-image {
    opacity: 0.85;
}

body.dark-mode .event-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 40%, transparent 100%);
}

body.dark-mode .event-title {
    color: #e5e5e5;
}

body.dark-mode .event-text {
    color: #b0b0b0;
}

body.dark-mode .section-label {
    color: #888;
}

body.dark-mode .section-label-vc {
    color: #e5e5e5;
}

body.dark-mode .section-label-red {
    color: #ef4444;
}

body.dark-mode .footer {
    background-color: #0a0a0a;
    border-top: 1px solid #2a2a2a;
    color: #888;
}

body.dark-mode .footer-address {
    color: #b0b0b0;
}

body.dark-mode .footer-copyright {
    color: #888;
}

body.dark-mode .header-logo-footer {
    filter: brightness(0) invert(1);
}

body.dark-mode .subscribe-btn {
    background-color: #2563eb;
    color: #fff;
}

body.dark-mode .subscribe-btn:hover {
    background-color: #1d4ed8;
}

/* Dark Mode Toggle Icon */
.dark-mode-toggle {
    transition: transform 0.3s, color 0.3s;
}

body.dark-mode .dark-mode-toggle {
    color: #fbbf24;
}

body.dark-mode .dark-mode-toggle {
    color: #fbbf24 !important;
}

/* Top Bar */
.top-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
}

.top-bar a {
    text-decoration: none;
    transition: color 0.3s;
}

/* Hide top bar on scroll down */
.top-bar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Past Issues Layer */
.past-issues-layer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.past-issues-layer.is-visible {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
}

/* Search Layer */
.search-layer {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1003;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, top 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-layer.is-visible {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
}

.search-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #163779;
    padding-bottom: 12px;
}

.search-select {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 12px;
    color: #163779;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    flex-shrink: 0;
}

.search-select:focus {
    outline: none;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 8px 0;
    color: #333;
    background: transparent;
    min-width: 0; /* 플렉스 아이템 축소 허용 */
}

.search-input::placeholder {
    color: #999;
}

.search-submit-btn,
.search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #163779;
    transition: color 0.3s ease;
    padding: 8px;
    flex-shrink: 0; /* 아이콘 버튼 크기 고정 */
}

/* 모바일 반응형 */
@media (max-width: 800px) {
    .search-content {
        padding: 20px 15px;
    }

    .search-input-wrapper {
        gap: 8px;
    }

    .search-select {
        font-size: 14px;
        padding: 6px 8px;
    }

    .search-input {
        font-size: 16px;
        padding: 6px 0;
    }

    .search-submit-btn,
    .search-close-btn {
        font-size: 18px;
        padding: 6px;
    }
}

.search-submit-btn:hover,
.search-close-btn:hover {
    color: #0d1f42;
}

.past-issues-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

.past-issues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.past-issues-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
}

.past-issues-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s, transform 0.2s;
}

.past-issues-close:hover {
    color: #000;
    transform: rotate(90deg);
}

.past-issues-body {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.past-issues-body::-webkit-scrollbar {
    width: 6px;
}

.past-issues-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.past-issues-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 10px 2px;
    margin: 0;
}

.past-issues-item {
    break-inside: avoid;
}

.past-issues-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f8f8;
    border: 1px solid #ededed;
    border-radius: 6px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.past-issues-link b {
    font-weight: 800;
    color: #163779;
}

.past-issues-link:hover {
    background: #fff;
    border-color:#163779;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Dark Mode for Past Issues */
body.dark-mode .past-issues-layer {
    background: #1a1a1a;
    border-bottom-color: #333;
}

body.dark-mode .past-issues-title {
    color: #eee;
}

body.dark-mode .past-issues-header {
    border-bottom-color: #ff9828;
}

body.dark-mode .past-issues-close {
    color: #aaa;
}

body.dark-mode .past-issues-link {
    background: #2a2a2a;
    border-color: #333;
    color: #ccc;
}

body.dark-mode .past-issues-link:hover {
    background: #333;
    border-color: #163779;
    color: #fff;
}

/* Subscribe Layer - 전체 화면 모달 스타일 */
.subscribe-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.subscribe-layer.is-visible {
    opacity: 1;
    visibility: visible;
}

.subscribe-content {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.subscribe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.subscribe-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
}

.subscribe-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s, transform 0.2s;
}

.subscribe-close:hover {
    color: #000;
    transform: rotate(90deg);
}

.subscribe-body {
    /* 전체 레이어가 스크롤되므로 내부 스크롤 제거 */
}

.subscribe-form {
    max-width: 800px;
    margin: 0 auto;
}

.subscribe-info {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.subscribe-info p {
    margin: 0 0 10px 0;
    color: #444;
}

.subscribe-info strong {
    color: #163779;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #163779;
}

.privacy-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.privacy-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.privacy-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

.privacy-content p {
    margin: 0 0 15px 0;
}

.privacy-content strong {
    color: #163779;
    font-weight: 600;
}

.privacy-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.privacy-question {
    margin: 20px 0 10px 0;
    font-weight: 600;
    color: #333;
}

.agree-group {
    display: flex;
    gap: 20px;
    margin: 10px 0 20px 0;
}

.agree-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
}

.agree-group input[type="radio"] {
    cursor: pointer;
}

.btn-confirm {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: #163779;
    color: white;
    border: none;
    padding: 14px 50px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #163779;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 40, 0.3);
}

.subscribe-result {
    text-align: center;
    padding: 60px 20px;
}

.subscribe-result p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.subscribe-result .result-logo {
    max-width: 200px;
    height: auto;
}

/* Dark Mode for Subscribe */
body.dark-mode .subscribe-layer {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .subscribe-content {
    background: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .subscribe-title {
    color: #eee;
}

body.dark-mode .subscribe-header {
    border-bottom-color: #ff9828;
}

body.dark-mode .subscribe-close {
    color: #aaa;
}

body.dark-mode .subscribe-info,
body.dark-mode .privacy-section {
    background: #2a2a2a;
}

body.dark-mode .subscribe-info p,
body.dark-mode .privacy-content {
    color: #ccc;
}

body.dark-mode .form-group label,
body.dark-mode .privacy-section h5,
body.dark-mode .privacy-question {
    color: #eee;
}

body.dark-mode .form-input {
    background: #333;
    border-color: #444;
    color: #eee;
}

body.dark-mode .form-input:focus {
    border-color: #ff9828;
}

body.dark-mode .subscribe-result p {
    color: #eee;
}


/* Main Navigation */
.main-nav {
    background-color: #163779;
    /* border-bottom: 2px solid #e0e0e0; */
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Responsive: show hamburger <=800px, hide menu links */
.hamburger-menu {
    display: none;
}


/* Main nav appearance when stuck to top */
.main-nav.is-sticky {
    background-color: rgba(38, 38, 38, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.main-nav.is-sticky .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.main-nav.is-sticky .nav-link:hover {
    color: #fff;
}

/* Icons are mostly tailwind-colored; override in sticky state */
.main-nav.is-sticky i {
    color: rgba(255, 255, 255, 0.82) !important;
}

.main-nav.is-sticky i:hover {
    color: #fff !important;
}

.header-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0px;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 2px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    opacity: 0.0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover,
.nav-link.is-submenu-active {
    color: #fbf7a8;
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.is-submenu-active::after {
    opacity: 0.95;
    transform: scaleX(1);
}

.nav-link:focus-visible {
    outline: none;
}

.nav-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Navigation Submenu */
.nav-item-wrapper {
    position: relative;
}

.nav-submenu {
    position: fixed;
    top: var(--submenu-top, 110px);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 998;
    padding: 0;
    max-height: 0;
    overflow: hidden;
}

.nav-submenu.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 200px;
    padding: 16px 0;
}

.nav-submenu .container {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.nav-submenu-link {
    display: inline-block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
}

.nav-submenu-link:hover {
    background-color: #163779;
    color: #fff;
}

/* Dark mode support for submenu */
body.dark-mode .nav-submenu {
    background: rgba(38, 38, 38, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-submenu-link {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .nav-submenu-link:hover {
    background-color: #163779;
    color: #fff;
}

/* Sticky nav submenu */
.main-nav.is-sticky+.nav-submenu {
    background: rgba(38, 38, 38, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-nav.is-sticky+.nav-submenu .nav-submenu-link {
    color: rgba(255, 255, 255, 0.8);
}

.main-nav.is-sticky+.nav-submenu .nav-submenu-link:hover {
    background-color: #163779;
    color: #fff;
}


/* Legacy support for title-section class */
.title-section {
    --title-bg-image: none;
    --title-bg-opacity: 1;
    position: relative;
    overflow: hidden;
    background-color: #e6e6e6;
    background-size: contain;
    background-position: center;
    padding: 30px;
}

/* Optional background image layer */
.title-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Display original background image without any filters or gradients */
    background-image: var(--title-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--title-bg-opacity, 1.0);
    /* Set to 1.0 for original density */
    z-index: 0;
    transition: opacity 0.5s ease;
}

.title-section>.container {
    position: relative;
    z-index: 2;
    /* 기존 대비 약 2.5배 높이(히어로 영역) */
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-section--sub {
    padding: 70px;
}

.title-subtitle{
    color:white;
    font-size:1.2rem;
    font-weight:500;
}

/* Sub page title-section: height 50% 느낌 */
.title-section--sub>.container {
    min-height: 400px;
}

/* Article layout for sub.html */
.article-section {
    background: #fff;
}

.article-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: none;
    border: none;
    padding: 28px;
}

.article-header {
    margin-bottom: 18px;
    text-align: left;
}

.article-kicker {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ff9828;
    margin: 0 0 6px 0;
}

.article-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 8px 0;
    color: #111;
}

.article-subtitle {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
    color: #222;
}

.article-meta {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Variants: media left / right / center */
.article-grid--media-right .article-media {
    order: 2;
}

.article-grid--media-right .article-body {
    order: 1;
}

/* Center image with body below (justified) */
.article-grid--media-center {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
}

.article-grid--media-center .article-media {
    width: min(720px, 100%);
    order: 1;
}

.article-grid--media-center .article-body {
    width: min(860px, 100%);
    order: 2;
}

.article-body--justify {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.article-media {
    border-radius: 0;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.article-media-caption {
    padding: 8px 10px;
    font-size: 12px;
    color: #666;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.article-body p {
    margin: 0 0 14px 0;
    color: #444;
    line-height: 1.8;
    word-break: break-all;
}

.article-related {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-related-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #111;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.related-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f6f6f6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.related-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.related-caption {
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    font-weight: 700;
}

@media (max-width: 900px) {
    .article-card {
        padding: 0;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-grid--media-center {
        grid-template-columns: 1fr;
        justify-items: stretch;
        align-items: start;
    }

    .article-grid--media-right .article-media,
    .article-grid--media-right .article-body,
    .article-grid--media-center .article-media,
    .article-grid--media-center .article-body {
        order: initial;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Backdrop panel to make title readable on any image */
.title-hero-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 26px;
    border-radius: 22px;
    /* 투명하게(배경/블러/패널 제거) */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.dark-mode .title-hero-wrap {
    background: transparent;
    box-shadow: none;
}

/* Title hero text (same tone as prologue-title) */
.title-hero {
    margin: 0;
    /* 1.5배 확대 (56px -> 84px) */
    font-size: 84px;
    line-height: 1.15;
    letter-spacing: -1.4px;
    /* 글자 반전(밝게) + 스트로크/그림자로 배경 대비 확보 */
    color: #ff9828;
    text-shadow:
        0 3px 22px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(0, 0, 0, 0.65);
}

.section.section-hero .magazine-subtitle,
.title-section .magazine-subtitle {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    letter-spacing: -0.5px;
    font-size: 20px;
    font-weight: 500;
}

body.dark-mode .title-hero {
    color: #ff9828;
    text-shadow:
        0 3px 22px rgba(0, 0, 0, 0.75),
        0 1px 0 rgba(0, 0, 0, 0.85);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.65);
}

@media (max-width: 768px) {
    .title-hero {
        /* 1.5배 확대 (40px -> 60px) */
        font-size: 60px;
    }
}

/* Title slideshow (one image per page, 5s) */
.title-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.title-slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.title-slideshow__slide.is-active {
    opacity: 1;
}

.title-slideshow__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* 원본 이미지를 선명하게 출력하기 위해 필터 제거 */
    filter: none;
    opacity: 1;
    display: block;
}

.title-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    /* 뿌옇게 보이는 원인이었던 밝은 그라데이션 제거 */
    background: transparent;
}

body.dark-mode .title-slideshow::after {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.52) 0%,
            rgba(0, 0, 0, 0.34) 35%,
            rgba(0, 0, 0, 0.52) 100%);
}

.magazine-title {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.magazine-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.issue-badge-wrapper {
    position: relative;
    width: 100%;
    /* margin-top: 40px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.issue-badge-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 20%,
            rgba(0, 0, 0, 0.1) 80%,
            transparent 100%);
    z-index: 1;
}

.issue-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #1d1d1f;
    color: #fbfbfd;
    padding: 4px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    z-index: 2;
}

.issue-badge-text {
    white-space: nowrap;
}

.issue-badge-dot {
    width: 3px;
    height: 3px;
    background-color: #fbfbfd;
    border-radius: 50%;
    display: inline-block;
}

/* Issue badge next to header logo (in main nav) */
.nav-issue-badge {
    margin-left: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    background-color: rgba(0, 0, 0, 0.72);
    color: rgba(255, 255, 255, 0.95);
}

.main-nav.is-sticky .nav-issue-badge {
    background-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.dark-mode .nav-issue-badge {
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.prologue-section {
    margin-top: 5rem;
}

.issue-badge-wrapper::before {
    left: calc(50% - 100px);
}

.issue-badge-wrapper::after {
    right: calc(50% - 100px);
}

/* Section Label */
.section-label {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #999;
    display: block;
    margin-bottom: 12px;
}

.section-label-vc {
    color: #000;
}

.section-label-red {
    color: #dc2626;
}

/* PROLOGUE Section */
/* Section Base Styles */
.section {
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* 섹션 구분선 - 트렌디한 디자인 */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(22, 55, 121, 0.1) 10%,
        rgba(22, 55, 121, 0.3) 50%,
        rgba(22, 55, 121, 0.1) 90%,
        transparent 100%);
}

.section::before {
    content: '◇';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(22, 55, 121, 0.4);
    background: white;
    padding: 0 10px;
    z-index: 1;
}

/* 마지막 섹션은 구분선 제거 */
.section:last-of-type::after,
.section:last-of-type::before {
    display: none;
}

/* 첫 번째 섹션에만 네비게이션 여백 추가 */
.section:first-of-type {
    margin-top: 110px;
}

.section>.container {
    height: 100%;
    display: flex;
    align-items: center;
}

.section .row {
    height: 100%;
}

/* Background Color Classes */
.bg-light-gray {
    background-color: #f7f8fa;
    /* subtle texture to avoid flat white */
    background-image: url('../images/prologue_bg.png');
}

.bg-white {
    background-color: #fff;
}

.bg-light-blue {
    background-color: #eef1f3;
}

.bg-light-gray-alt {
    background-color: #fafafa;
}

.prologue-graphic {
    position: relative;
}

.prologue-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.prologue-image-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18), 
                0 5px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.prologue-image-bg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.prologue-image-wrapper:hover .prologue-image-bg {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.prologue-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.prologue-korean-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    display: block;
    margin-bottom: 20px;
}

.prologue-year-badge {
    display: inline-block;
    background-color: #dc2626;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.prologue-content {
    padding: 20px;
    text-decoration: none !important;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.prologue-content:hover .trend-title {
    color:#163779;
}

.prologue-content:hover .prologue-text {
    color: #333;
}

.prologue-title {
    font-size: 50px;
    font-weight: 900;
    color: white;
    margin: 12px 0 20px 0;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.1);
    letter-spacing: -2px;
}

.title-hero {
    font-family: 'Playfair Display', serif;
    font-size: 65px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 10px;

    /* 정교한 다중 레이어 그림자를 통한 강력한 3D 양각 효과 */
    text-shadow:
        0 1px 0 #e0e0e0,
        0 2px 0 #d5d5d5,
        0 3px 0 #cccccc,
        0 4px 0 #bbbbbb,
        0 5px 0 #aaaaaa,
        0 6px 1px rgba(0, 0, 0, 0.1),
        0 0 5px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 3px 5px rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4);

    /* 글자 테두리에 미세한 광택 추가 */
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.sub-hero {
    font-size: 50px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    /* 가독성과 입체감을 위한 음영 효과 추가 */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}


.prologue-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.prologue-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.prologue-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
}

/* Trend Section */
/* Trend section specific styles */
.section.bg-white {
    min-height: 600px;
}

.trend-card {
    position: relative;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.trend-card:hover {
    transform: none;
    box-shadow: none;
}

.trend-bg-shape {
    position: absolute;
    top: -10px;
    left: -40px;
    width: 380px;
    height: 220px;
    background-color: #eef1f3;
    border-radius: 30px;
    z-index: 0;
}

.trend-bg-shape.shape-right {
    left: auto;
    right: -40px;
    /* top: auto; */
    bottom: 0;
}

.trend-header {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.trend-label-vc {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.trend-label-red {
    font-size: 1.5rem;
    font-weight: 800;
    color: #163779;
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.trend-label-red::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #163779;
    transition: width 0.4s ease;
}

.trend-label-red:hover::after {
    width: 100%;
}

.trend-image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 260px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 24px;
}

.trend-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.trend-card:hover .trend-image {
    transform: scale(1.05);
}

.trend-content {
    position: relative;
    z-index: 1;
    text-decoration: none !important;
}

.trend-content:hover .trend-title {
    color:#163779;
}

.trend-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -1.5px;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.trend-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #163779;
    transition: width 0.4s ease;
}

.trend-content:hover .trend-title::after {
    width: 100%;
}

.trend-text {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    word-break: keep-all;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    /* 4줄 이상 말줄임 */
    line-clamp: 4;
    /* 표준 속성(지원 브라우저용) */
    margin-bottom: 16px;
}

.trend-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    font-size: 12px;
    font-weight: 600;
    color: #163779;
    padding: 6px 12px;
    border: 2px solid #163779;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: transparent;
    float: left;
}

.trend-read-more i {
    font-size: 9.6px;
    opacity: 0;
    width: 0;
    transition: opacity 0.3s ease, width 0.3s ease, transform 0.3s ease;
}

.trend-content {
    overflow: hidden;
}

.trend-content:hover .trend-read-more {
    background: #163779;
    color: #fff;
    transform: translateX(5px);
    gap: 6px;
}

.trend-content:hover .trend-read-more i {
    opacity: 1;
    width: auto;
    transform: translateX(3px);
}

/* People Section */
/* People section specific styles - background handled by bg-light-blue class */

.people-header {
    margin-bottom: 20px;
}

.people-label-vc {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.people-label-red {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    font-family: 'Noto Sans KR', sans-serif;
}

.people-card-left {
    position: relative;
    background-color: #4a4a4a;
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.people-content-wrapper {
    position: relative;
    z-index: 1;
}

.people-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.people-name-en {
    font-size: 16px;
    font-weight: 400;
    color: #ccc;
    margin-left: 8px;
}

.people-desc {
    font-size: 16px;
    color: #e0e0e0;
    /* line-height: 1.6; */
    margin-bottom: 30px;
}

.people-dots {
    display: flex;
    gap: 6px;
}

.people-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3b82f6;
}

.people-dots span:nth-child(2) {
    background-color: #60a5fa;
}

.people-dots span:nth-child(3) {
    background-color: #93c5fd;
}

.people-bubble-tail {
    position: absolute;
    bottom: 40px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: #4a4a4a;
    transform: rotate(45deg);
    z-index: 0;
    display: none;
}

.people-card-right {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    min-height: 320px;
}

.people-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.people-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.people-quote-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.people-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.control-icon:hover {
    color: #fff;
}

.people-play-btn {
    width: 40px;
    height: 40px;
    background-color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.people-play-btn:hover {
    transform: scale(1.1);
    background-color: #dc2626;
}

/* Member News Section */
.member-news-section {
    background-color: #fff;
}

.news-label-red {
    font-size: 18px;
    font-weight: 700;
    color: #163279;
    display: block;
    margin-bottom: 8px;
}

.news-title {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.2;
}

.news-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.member-news-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.member-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.member-news-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    /* Standard height for wide cards */
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Stronger, crisper hover effect on the wrapper itself */
.member-news-image-wrapper:hover {
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* When hovering the whole card, also enhance the wrapper */
.member-news-card:hover .member-news-image-wrapper {
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tall-wrapper {
    height: 380px;
    /* Taller height for the city card */
}

.member-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.member-news-card:hover .member-news-image {
    transform: scale(1.05);
}

.member-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

.news-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Talk & Event Section (Updated) */
/* Talk event section specific styles */
.section.bg-light-gray-alt {
    /* 하단 여백 2배 느낌(섹션 자체에 추가 패딩) */
    padding-bottom: 48px;
}

.talk-event-header {
    margin-bottom: 20px;
}

.talk-label-vc {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.talk-label-red {
    font-size: 18px;
    font-weight: 700;
    color: #163479;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Talk Card (Left - Dark) */
.talk-card-left {
    position: relative;
    background-color: #4a4a4a;
    background-image: url('../images/index_vctot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08);
}

.talk-card-left:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18), 
                0 5px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.talk-card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(9, 9, 9, 0.25);
    border-radius: 15px;
    z-index: 0;
    transition: background-color 0.3s ease;
}

.talk-card-left:hover::before {
    background-color: rgba(9, 9, 9, 0.15);
}

.talk-content-wrapper {
    position: relative;
    z-index: 1;
}

.talk-title {
    font-size: 28px;
    font-weight: 700;
    color: #fb9d45;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.talk-desc {
    font-size: 18px;
    font-weight: 500;
    word-break: auto-phrase;
    color: #fefdfd;
    /* line-height: 1.6; */
    margin-bottom: 30px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.talk-dots {
    display: flex;
    gap: 6px;
}

.talk-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3b82f6;
}

.talk-dots span:nth-child(2) {
    background-color: #60a5fa;
}

.talk-dots span:nth-child(3) {
    background-color: #93c5fd;
}

.talk-bubble-tail {
    position: absolute;
    bottom: 40px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: #4a4a4a;
    transform: rotate(45deg);
    z-index: 0;
    display: none;
    /* Hidden as per design choice in people section */
}

/* Event Card (Right - Image) */
.event-card-right {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 320px;
}

.event-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.event-content {
    margin-bottom: 30px;
}

.event-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-text {
    font-size: 16px;
    color: #e0e0e0;
    /* line-height: 1.6; */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.event-btn {
    background-color: #163779;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
}

.event-btn:hover {
    background-color: #163779;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #163779;
    color: white;
    /* 상하 여백(체감)은 padding에서 주로 발생 → 50% 축소 */
    padding: 20px 0;
}

.header-logo-footer {
    height: 35px;
    width: auto;
    max-width: 150px;
}

.footer-contact {
    flex: 1;
    margin: 0 40px;
}

.footer-address {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #ccc;
    word-break: keep-all;
}

.footer-copyright {
    font-size: 12px;
}

.subscribe-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.subscribe-btn:hover {
    background-color: #333;
}


@media (max-width: 800px) {
    .main-nav .main-nav-menu {
        display: none !important;
    }

    .hamburger-menu {
        display: inline-flex !important;
    }

    /* Optional dropdown when hamburger toggles menu open */
    .main-nav-inner {
        position: relative;
    }

    .main-nav {
        z-index: 1005;
        /* Header above menu */
    }

    /* Full Screen Mobile Menu Overlay */
    .mobile-full-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        /* Below header */
        display: none;
        flex-direction: column;
        padding-top: 100px;
        /* Space for main-nav */
        overflow-y: auto;
    }

    body.mobile-menu-open .main-nav {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    body.mobile-menu-open .main-nav .nav-link {
        color: #fff !important;
    }


    body.dark-mode .mobile-full-menu {
        background: #111;
    }

    .mobile-full-menu.is-open {
        display: flex;
    }

    .mobile-full-menu-header {
        padding: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .mobile-full-menu-header {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .mobile-full-menu-content {
        padding: 40px 20px;
    }

    /* Mobile Nav List Styling */
    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .mobile-nav-item {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .mobile-nav-main {
        display: flex;
        align-items: center;
        padding: 20px 5px;
        font-size: 1.3rem;
        font-weight: 700;
        color: #1a1a1a;
        cursor: pointer;
    }

    body.dark-mode .mobile-nav-main {
        color: #fff;
    }

    .mobile-sub-list {
        padding: 10px 15px 25px 15px;
        background: rgba(0, 0, 0, 0.02);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    body.dark-mode .mobile-sub-list {
        background: rgba(255, 255, 255, 0.03);
    }

    .mobile-sub-link {
        font-size: 1rem;
        color: #555;
        text-decoration: none;
        padding: 5px 0;
        display: block;
    }

    body.dark-mode .mobile-sub-link {
        color: #aaa;
    }

    .mobile-sub-link:hover {
        color:#163779;
    }

    .sub-hero {
        font-size: 24px;
    }

    .title-hero-wrap {
        padding: 0px;
    }

    .title-section--sub {
        padding: 50px 0px;
    }

    .title-hero {
        font-size: 36px;
    }
    .trend-bg-shape {
        display: none;
    }
    .search-submit-btn,
    .search-close-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        color: #163779;
        transition: color 0.3s ease;
        padding: 2px;
        flex-shrink: 0;
        /* 아이콘 버튼 크기 고정 */
    }
}

/* Related Articles Section */
.related-articles-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.related-articles-title {
    font-size: 28px;
    font-weight: 700;
    color: #163779;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.related-articles-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #163779;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.related-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.related-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(22, 55, 121, 0.15);
}

.related-article-card:hover * {
    font-weight: 600;
    color: #163779;
}


.related-article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 16px;
}

.related-article-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
}

/* 반응형 처리 */
@media (max-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Audio Play Button */
.audio-play-btn {
    background: transparent;
    border: 2px solid #163779;
    color: #163779;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
    font-size: 16px;
    vertical-align: baseline;
    position: relative;
    top: 0;
}

.audio-play-btn:hover {
    background: #163779;
    color: #fff;
    transform: scale(1.1);
}

.audio-play-btn.playing {
    background: #163779;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Search Result Styles */
.search-result-container {
    background-color: #fff;
    min-height: 500px;
}

.search-result-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
}

.search-result-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 16px;
    color: #163779;
    background-color: #fff;
    cursor: pointer;
    font-weight: 500;
    outline: none;
}

.search-result-select:focus {
    border-color: #163779;
}

.search-result-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 16px;
    color: #333;
    outline: none;
}

.search-result-input:focus {
    border-color: #163779;
}

.search-result-btn {
    background-color: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.search-result-btn:hover {
    background-color: #163779;
}

.search-result-count {
    font-size: 16px;
    color: #666;
}

.search-result-count strong {
    color: #163779;
    font-weight: 700;
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: background-color 0.3s ease;
}

.search-result-item:hover .search-result-number {
    background-color: #163779;
    color: #fff;
}

.search-result-thumbnail {
    width: 137px;
    height: 96px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover .search-result-thumbnail {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.search-result-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #163779;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.search-result-title-label,
.search-result-author-label {
    color: #999;
    font-weight: 500;
}

.search-result-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 4px 0;
}

.search-result-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.search-result-title a:hover {
    color: #163779;
}

.search-result-author {
    color: #666;
    font-size: 14px;
}

.search-no-result {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .related-articles-title {
        font-size: 1.5rem;
    }

    .related-articles-section {
        background-color: #f8f9fa;
        padding: 0px 0 60px 0;
    }
    
    .search-result-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-result-number {
        align-self: flex-start;
    }
    
    .search-result-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .search-result-input {
        min-width: 0;
    }

    .prologue-section {
        margin-top: 1rem;
    }

    .prologue-image-wrapper {
        box-shadow: none;
    }

    .title-subtitle {
        color: white;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
}

/* Font Awesome 아이콘 Hover 효과 - Regular to Solid */
/* 기본 아이콘들을 far (regular) 스타일로 설정하고 hover 시 fas (solid)로 변경 */

/* 모든 Font Awesome 아이콘에 대한 기본 전환 효과 */
.fas, .far, .fab, .fal {
    transition: font-weight 0.2s ease;
}

/* Regular 아이콘을 hover 시 solid로 변경 */
.far:hover,
button:hover .far,
a:hover .far {
    font-weight: 900; /* fas weight */
}

/* 특정 아이콘들에 대한 스타일 (regular 기본, hover 시 solid) */
.icon-hover-fill {
    font-weight: 400; /* far weight */
    transition: font-weight 0.2s ease;
}

.icon-hover-fill:hover,
button:hover .icon-hover-fill,
a:hover .icon-hover-fill {
    font-weight: 900; /* fas weight */
}

/* 검색, 닫기, 메뉴 등 주요 아이콘들 */
.fa-search,
.fa-times,
.fa-moon,
.fa-sun,
.fa-bars,
.fa-chevron-down,
.fa-chevron-up,
.fa-volume-up,
.fa-pause,
.fa-play,
.fa-heart,
.fa-star,
.fa-lightbulb,
.fa-book,
.fa-share-alt,
.fa-rss {
    transition: all 0.2s ease;
}

/* Hover 시 약간의 스케일 효과 추가 (선택사항) */
button:hover .fas,
a:hover .fas,
.cursor-pointer:hover .fas {
    transform: scale(1.1);
}

/* 플로팅 메뉴 아이콘 hover 효과 */
.float-btn:hover i {
    transform: scale(1.15);
}
