/* ============================================================
   NEWS PAGE – Warm Editorial Light
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #FFB81C;
    --bg-elevated: #F0AB10;
    --bg-card: rgba(255, 255, 255, 0.15);
    --text: #1A1A1A;
    --text-sub: #4A4A4A;
    --accent: #1A1A1A;
    --accent-dim: rgba(0, 0, 0, 0.08);
    --accent-border: rgba(0, 0, 0, 0.20);
    --border: rgba(0, 0, 0, 0.12);
    --warm-gray-light: #F2F0ED;
    --warm-gray-mid: #C8C4BD;
    --warm-gray-dark: #88878F;
    --radius: 4px;
    --spring: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
        'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    line-height: 1.6; color: var(--text); background: var(--bg);
    overflow-x: hidden; word-break: keep-all; -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

html { scrollbar-color: rgba(0,0,0,0.15) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Navigation ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: padding 0.3s var(--spring), background 0.3s ease;
}
.navbar.scrolled { padding: 14px 0; background: rgba(9, 9, 11, 0.98); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { text-decoration: none; display: flex; align-items: center; transition: opacity 0.3s ease; }
.nav-brand:hover { opacity: 0.7; }
.nav-brand .logo { height: 38px; width: auto; display: block; }
.nav-menu { display: flex; list-style: none; gap: 48px; }
.nav-link {
    text-decoration: none; color: rgba(255, 255, 255, 0.6);
    font-weight: 500; font-size: 15px; transition: color 0.25s ease; position: relative;
}
.nav-link::before {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: #FFB81C; transition: width 0.3s var(--spring);
}
.nav-link:hover, .nav-link.active { color: #FFFFFF; }
.nav-link:hover::before, .nav-link.active::before { width: 100%; }
/* Dropdown */
.nav-item { position: relative; }
.nav-item.has-dropdown > .nav-link::after {
    content: ''; display: inline-block;
    width: 4px; height: 4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); margin-left: 5px; margin-bottom: 2px;
    transition: transform 0.2s ease;
}
.nav-item.has-dropdown:hover > .nav-link::after {
    transform: rotate(-135deg); margin-bottom: -1px;
}
.nav-dropdown {
    position: absolute; top: 100%; left: 50%;
    min-width: 160px; padding-top: 16px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(6px);
    z-index: 100;
}
.nav-dropdown-inner {
    background: #FFFFFF; border: 1px solid rgba(0,0,0,0.1);
    padding: 8px 0;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
    display: block; padding: 10px 24px;
    font-size: 13px; font-weight: 500; color: #4A4A4A;
    text-decoration: none; transition: all 0.15s ease; white-space: nowrap;
    position: relative;
}
.nav-dropdown a:hover {
    color: #1A1A1A; background: rgba(0,0,0,0.04);
    padding-left: 28px;
}
.nav-dropdown a:hover::before {
    content: ''; position: absolute; left: 12px; top: 50%;
    width: 4px; height: 4px; background: #1A1A1A; border-radius: 50%;
    transform: translateY(-50%);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: all 0.3s var(--spring); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── News Hero ── */
.news-hero {
    padding: 160px 0 80px;
    background: var(--bg);
    animation: lightFadeUp 0.9s var(--spring) both;
}
.news-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}
.news-hero-text h1 {
    font-size: 60px; font-weight: 900;
    letter-spacing: -2.5px; color: var(--text);
    margin-bottom: 16px;
}
.news-hero-text p { font-size: 17px; color: var(--text-sub); }

/* Stats row */
.news-hero-stats {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
    padding-bottom: 4px;
}
.news-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.news-stat-number {
    font-size: 32px; font-weight: 900;
    letter-spacing: -1px; color: var(--text);
    line-height: 1;
}
.news-stat-label {
    font-size: 12px; font-weight: 600;
    color: var(--text-sub); letter-spacing: 0.02em;
}

@keyframes lightFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── News Grid Section ── */
.news-grid-section { padding: 60px 0 120px; background: var(--bg); }

/* Filter Tabs */
.filter-tabs {
    display: flex; gap: 8px; margin-bottom: 48px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 9px 20px;
    border-radius: 0;
    font-size: 14px; font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-sub);
    cursor: pointer; transition: all 0.25s ease;
    font-family: inherit;
}
.filter-tab:hover { border-color: var(--border-hover); color: var(--text); }
.filter-tab.active {
    background: #09090B;
    border-color: #09090B;
    color: #FFB81C;
    font-weight: 700;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

/* 표시할 소식이 없을 때 안내 문구 (그리드 전체 폭 중앙) */
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 16px;
}

.news-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.4s var(--spring), box-shadow 0.4s ease;
}
.news-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 52px rgba(0,0,0,0.10);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.news-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--spring);
}
.news-card:hover .news-image img { transform: scale(1.04); }

.news-category {
    position: absolute;
    bottom: 0; left: 0;
    background: #1A1A1A;
    color: #FFFFFF;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 6px 14px; border-radius: 0;
}

.news-content { padding: 24px 24px 28px; }
.news-content h3 {
    font-size: 17px; font-weight: 800;
    line-height: 1.4; letter-spacing: -0.3px;
    color: var(--text); margin-bottom: 10px;
}
.news-content p {
    font-size: 14px; line-height: 1.7;
    color: var(--text-sub); margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta { display: flex; align-items: center; justify-content: space-between; }
.news-date { font-size: 13px; color: var(--text-sub); }

/* Hide filtered cards */
.news-card.hidden { display: none; }

/* Load More */
.load-more-container { text-align: center; }
.load-more-btn {
    padding: 14px 40px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 0;
    font-size: 15px; font-weight: 600;
    color: var(--text-sub);
    cursor: pointer; transition: all 0.3s ease;
    font-family: inherit;
}
.load-more-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent-dim);
}

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--spring), transform 0.8s var(--spring); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Footer ── */
.footer { background: #0D0D0F; color: #F4F4F5; padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-content { margin-bottom: 40px; }
.footer-info { display: flex; flex-direction: column; gap: 12px; }
.footer-company-name { font-size: 18px; font-weight: 700; color: #FFB81C; margin-bottom: 8px; }
.footer-info p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.45); margin: 0; }
.footer-links { display: flex; gap: 20px; margin-top: 16px; }
.footer-link { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; transition: color 0.3s ease; }
.footer-link:hover { color: #FFB81C; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.07);
    border-radius: 50%; color: rgba(255,255,255,0.65); text-decoration: none;
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.08);
}
.social-link:hover { background: var(--accent); color: #09090B; border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.28); margin: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-hero-text h1 { font-size: 48px; }
    .news-hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
    .news-hero-stats { gap: 24px; }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 72px; left: -100%;
        flex-direction: column; background: rgba(9, 9, 11, 0.98);
        width: 100%; padding: 32px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transition: left 0.3s var(--spring); gap: 0;
    }
    .nav-menu li { padding: 15px 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; min-width: 32px; min-height: 28px; align-items: center; justify-content: center; z-index: 1001; }
    .nav-dropdown { display: none; }
    .nav-item.has-dropdown > .nav-link::after { display: none; }
    .news-hero { padding: 130px 0 60px; }
    .news-hero-text h1 { font-size: 36px; }
    .news-hero-stats { gap: 20px; }
    .news-stat-number { font-size: 26px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 10px; }
}
@media (max-width: 576px) {
    .container { padding: 0 20px; }
    .news-hero-text h1 { font-size: 30px; }
    .news-hero-stats { display: none; }
}
