/*
Theme Name: BMW Ai Lab Theme
Theme URI: https://bmw-ai-lab.com
Author: Antigravity
Author URI: https://google.com
Description: BMW BPS 매니저의 AI 연구소를 위한 프리미엄 워드프레스 테마
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, navy, silver, video, responsive, premium
Text Domain: bmw-ai-lab
*/

:root {
    /* Premium Color System */
    --primary-color: #002147;
    /* Deep Navy - Brand Identity */
    --secondary-color: #C0C0C0;
    /* Metallic Silver - Luxury Accent */
    --accent-color: #ffffff;
    /* White - Cleanliness */
    --text-color: #333333;
    /* Dark Grey for Readability */
    --bg-color: #f8f9fa;
    /* Light Grey Background */
    --white: #ffffff;
    --overlay-color: rgba(0, 10, 30, 0.85);
    /* Darker Navy Overlay */

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    /* For Logo Only */
    --font-sans: 'Noto Sans KR', sans-serif;
    /* Main Font */
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    word-break: keep-all;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #4a90e2;
    /* Softer Blue on Hover */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    /* Changed to Sans per request */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.site-title span.font-light {
    font-weight: 300;
    opacity: 0.9;
}

.site-description {
    display: none;
}

/* Navigation Styles */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--white);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    /* Full Screen */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 15, 40, 0.9) 0%, rgba(0, 33, 71, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    /* Glassmorphism Base */
    backdrop-filter: blur(12px);
    /* Blur Effect */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    /* Restoring Serif Font */
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: 0.02em;
    /* Adjusted for Serif */
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-family: var(--font-sans);
    font-weight: 300;
    opacity: 1;
    /* Increased opacity for readability on glass */
    letter-spacing: 0.02em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

/* Glassmorphism Buttons */
.button-primary,
.button-secondary {
    padding: 16px 40px;
    border-radius: 4px;
    /* Slight radius */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.button-primary:hover,
.button-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    color: var(--white);
}

/* Main Content Styles */
.site-main {
    padding-bottom: 6rem;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Card Grid Layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 50px;
}

article.post-card {
    background: var(--white);
    border-radius: 20px;
    /* High radius per request */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    display: flex;
    flex-direction: column;
}

article.post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    padding-bottom: 65%;
    overflow: hidden;
    background-color: #00152e;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

article.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.entry-meta {
    font-size: 0.85rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.entry-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.entry-excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
}

.read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s;
}

.read-more:hover::after {
    transform: translateX(8px);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 6rem 0 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: inline-flex;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logo .font-light {
    font-weight: 300;
    opacity: 0.9;
}

.site-info {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 4rem;
}

.nav-links a,
.nav-links span {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 0;
    color: var(--text-color);
    background: var(--white);
}

.nav-links .current,
.nav-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Video Post Styles */
.wp-block-embed-youtube {
    margin: 2rem 0;
}

.wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wp-block-embed-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Generic Video Container if not using blocks */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Page Transition Styles */
body {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.page-loaded {
    opacity: 1;
}

body.page-exiting {
    opacity: 0;
}

/* Scroll Reveal Styles */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Advanced Menu Styles */
.flagship-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
}

.flagship-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.flagship-menu a:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Badge Style */
.badge-coming-soon {
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.disabled-link {
    opacity: 0.6;
    cursor: default;
}

/* CTA Button in Menu */
.menu-cta a.button-consulting {
    background: var(--white);
    color: var(--primary-color) !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-cta a.button-consulting:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: #f0f0f0;
}

/* Updated Header Scroll Effect */
.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(0, 33, 71, 0.95);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Micro-interaction: Button Shine */
.button-primary {
    overflow: hidden;
    position: relative;
}

.button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: all 0.5s;
}


/* --- Master Design Update: Fade-in & Card News --- */

/* 4. Page Fade-in Animation */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeInPage 0.6s ease-out forwards;
}

/* 5. Archive Card News Style */
.magazine-style {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.magazine-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.magazine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.magazine-card .post-thumbnail {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.magazine-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.magazine-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.magazine-card .post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.magazine-card .entry-meta {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.magazine-card .entry-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 700;
}

.magazine-card .entry-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.magazine-card .entry-title a:hover {
    color: var(--primary-color);
}

.magazine-card .entry-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.magazine-card .read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-top: auto;
}

.magazine-card .read-more:hover {
    text-decoration: underline;
}

/* Ensure consulting link reliability in styles (optional safety) */
/* Ensure consulting link reliability in styles (optional safety) */
.menu-cta a[href*="bmw_consulting"] {
    display: none !important;
}

/* --- Refined Hero Section for Snow Background --- */
.hero-title {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    /* Enhanced readability */
}

.hero-subtitle {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    /* Enhanced readability */
}

/* --- Advanced Premium Magazine Card UI --- */
.magazine-style {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Slightly smaller min-width for better grid */
    gap: 40px;
}

.magazine-card {
    background: #fff;
    border-radius: 12px;
    /* Slightly tighter radius for modern look */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Softer initial shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
}

.magazine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 50, 100, 0.15);
    /* Blue-ish elegant shadow on hover */
    border-color: rgba(0, 33, 71, 0.1);
}

.magazine-card .post-thumbnail {
    height: 220px;
    /* Optimal height */
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.magazine-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smoother zoom */
}

.magazine-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.magazine-card .post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Category Badge above title */
.magazine-card .entry-meta {
    font-size: 0.8rem;
    color: var(--white);
    background-color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.magazine-card .entry-title {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 700;
    word-break: keep-all;
}

.magazine-card .entry-title a {
    color: #222;
    text-decoration: none;
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.magazine-card:hover .entry-title a {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.magazine-card .entry-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-card .read-more-wrap {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.magazine-card .read-more {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
}

.magazine-card .read-more i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.magazine-card:hover .read-more i {
    transform: translateX(3px);
}

/* ============================================================
   === UPGRADE v3.0 — Hero Glass + Sub-page Premium Theme ===
   ============================================================ */

/* --- Hero Eyebrow Label --- */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.07);
}

/* --- Hero Glass Panel (강화) --- */
.hero-content {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
    border-radius: 24px !important;
    padding: 4rem 4rem !important;
}

/* --- Hero Overlay (사진 잘 보이게 조정) --- */
.hero-overlay {
    background: linear-gradient(
        160deg,
        rgba(0, 10, 30, 0.78) 0%,
        rgba(0, 20, 50, 0.45) 50%,
        rgba(0, 5, 15, 0.65) 100%
    ) !important;
}

/* --- Hero Scroll Hint --- */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Archive / Category Page Header (핵심 업그레이드) --- */
.archive-header-section {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000d1f 0%, #002147 40%, #001535 70%, #060a14 100%);
    overflow: hidden;
    margin-bottom: 4rem;
}

/* 테크 그리드 패턴 배경 */
.archive-header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* 글로우 오브 효과 */
.archive-header-section::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74,144,226,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.archive-header-section .relative-z {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

/* 카테고리별 색상 액센트 바 */
.archive-header-section .container::before {
    content: '';
    display: block;
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, #4a90e2, rgba(74,144,226,0));
    margin-bottom: 1.5rem;
}

.archive-header-section .page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* 카테고리 이름 뒤에 테크 라벨 */
.archive-header-section .page-title::after {
    content: ' /';
    color: rgba(74, 144, 226, 0.6);
    font-weight: 300;
}

.archive-header-section .archive-description {
    margin-top: 1rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 560px;
}

/* --- Archive Card 업그레이드 (하위 카테고리 게시판) --- */
.magazine-style {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 32px !important;
}

.magazine-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0,33,71,0.06) !important;
    box-shadow: 0 4px 24px rgba(0,20,60,0.07) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    overflow: hidden;
}

.magazine-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 48px rgba(0,33,71,0.14) !important;
    border-color: rgba(74,144,226,0.2) !important;
}

/* 카드 썸네일 오버레이 효과 */
.magazine-card .post-thumbnail {
    position: relative;
    height: 220px !important;
    overflow: hidden;
}

.magazine-card .post-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,10,30,0.3), transparent);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
}

.magazine-card:hover .post-thumbnail::after {
    opacity: 1;
}

/* 날짜 메타 - 미니멀 칩 스타일 */
.magazine-card .entry-meta {
    font-size: 0.75rem !important;
    color: #4a90e2 !important;
    background: rgba(74, 144, 226, 0.08) !important;
    border: 1px solid rgba(74, 144, 226, 0.2) !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    display: inline-block !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.9rem !important;
}

/* --- Single Post 상단 헤더 개선 --- */
.page-header-bg {
    background: linear-gradient(135deg, #000d1f 0%, #002147 50%, #001535 100%);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* --- Single Post Content Layout --- */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    margin-top: 3rem;
}

.post-detail {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,20,60,0.06);
    border: 1px solid rgba(0,33,71,0.06);
}

.post-detail .entry-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid #f0f3f8;
}

.post-detail .entry-content {
    padding: 2.5rem 3rem 3rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.post-detail .entry-title {
    font-size: 2.2rem;
    line-height: 1.3;
    color: #0d1b2e;
    margin-top: 0.8rem;
    letter-spacing: -0.02em;
}

.post-detail .entry-meta {
    font-size: 0.8rem;
    color: #4a90e2;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-detail .entry-meta-bottom {
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}

.post-thumbnail-full {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.post-thumbnail-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Sidebar 개선 --- */
.sidebar-area .widget {
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,33,71,0.06);
    box-shadow: 0 2px 12px rgba(0,20,60,0.05);
}

.sidebar-area .widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4a90e2;
    border-bottom: 1px solid #f0f3f8;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.sidebar-area .related-posts-list {
    list-style: none;
    padding: 0;
}

.sidebar-area .related-posts-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f7fa;
    font-size: 0.9rem;
}

.sidebar-area .related-posts-list li:last-child {
    border-bottom: none;
}

.sidebar-area .related-posts-list a {
    color: #333;
    transition: color 0.2s;
}

.sidebar-area .related-posts-list a:hover {
    color: #002147;
}

/* --- Section Padding --- */
.section-padding {
    padding-top: 0;
    padding-bottom: 6rem;
}

/* --- 모바일 반응형 --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem !important;
    }
    .hero-content {
        padding: 2.5rem 2rem !important;
        margin: 0 1rem;
    }
    .archive-header-section .page-title {
        font-size: 2rem;
    }
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
    .magazine-style {
        grid-template-columns: 1fr !important;
    }
}



/* ============================================================
   === MOBILE OPTIMIZATION v1.0 ===
   모바일 완전 최적화 — 375px ~ 768px
   ============================================================ */

/* 전체 기본 - 모바일 overflow 방지 */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* ── 헤더 모바일 */
@media (max-width: 768px) {

    /* 컨테이너 패딩 축소 */
    .container {
        padding: 0 20px;
    }

    /* 헤더 레이아웃 */
    .site-header {
        padding: 1rem 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .site-title a {
        font-size: 1.3rem;
    }

    /* 네비게이션 — 가로 스크롤 */
    .main-navigation ul,
    .flagship-menu {
        flex-wrap: wrap;
        gap: 12px 20px;
        font-size: 0.82rem;
    }

    .menu-cta a.button-consulting {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    /* ── 히어로 섹션 */
    .hero-section {
        height: auto;
        min-height: 100svh;
        padding: 100px 0 60px;
        background-position: center center;
    }

    .hero-content {
        padding: 2rem 1.5rem !important;
        margin: 0 16px !important;
        border-radius: 16px !important;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
        padding: 5px 14px;
        margin-bottom: 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.15;
        margin-bottom: 1rem;
        word-break: keep-all;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem;
        word-break: keep-all;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .hero-scroll-hint {
        display: none;
    }

    /* ── 메인 콘텐츠 */
    .site-main {
        padding-bottom: 4rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* ── 포스트 카드 그리드 */
    .post-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    article.post-card {
        border-radius: 14px;
    }

    .post-content {
        padding: 1.5rem;
    }

    .entry-title {
        font-size: 1.3rem;
    }

    /* ── 아카이브 헤더 */
    .archive-header-section {
        min-height: 200px;
    }

    .archive-header-section .relative-z {
        padding: 2.5rem 0;
    }

    .archive-header-section .page-title {
        font-size: 1.7rem !important;
        word-break: keep-all;
    }

    .archive-header-section .archive-description {
        font-size: 0.9rem;
    }

    /* ── 매거진 카드 */
    .magazine-style {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .magazine-card .post-thumbnail {
        height: 200px !important;
    }

    .magazine-card .post-content {
        padding: 1.4rem;
    }

    .magazine-card .entry-title {
        font-size: 1.15rem !important;
    }

    /* ── 싱글 포스트 */
    .content-sidebar-wrap {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .post-detail .entry-header {
        padding: 1.8rem 1.5rem 1.2rem;
    }

    .post-detail .entry-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .post-detail .entry-title {
        font-size: 1.5rem;
    }

    .post-thumbnail-full {
        max-height: 240px;
    }

    /* 사이드바 — 포스트 아래로 이동 */
    .sidebar-area {
        order: 2;
    }

    .sidebar-area .widget {
        padding: 1.3rem;
    }

    /* ── 표(테이블) 모바일 스크롤 */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 0.85rem;
        border-collapse: collapse;
        width: 100%;
    }

    table th, table td {
        padding: 10px 14px;
        border: 1px solid #e0e6f0;
        white-space: normal;
        min-width: 100px;
    }

    table thead th {
        background: #002147;
        color: #fff;
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }

    table tbody tr:nth-child(even) {
        background: #f5f8ff;
    }

    /* ── 페이지네이션 */
    .nav-links {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 2.5rem;
    }

    .nav-links a,
    .nav-links span {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    /* ── 푸터 */
    .site-footer {
        padding: 3rem 0 2.5rem;
    }

    .footer-logo {
        font-size: 1.3rem;
    }
}

/* ── 소형 모바일 (iPhone SE 등 375px 이하) */
@media (max-width: 390px) {

    .hero-title {
        font-size: 1.9rem !important;
    }

    .hero-content {
        padding: 1.6rem 1.2rem !important;
        margin: 0 12px !important;
    }

    .archive-header-section .page-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .post-detail .entry-title {
        font-size: 1.3rem;
    }
}

/* ── 태블릿 (769px ~ 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3.2rem !important;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }

    .magazine-style {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }

    .content-sidebar-wrap {
        grid-template-columns: 1fr 260px;
        gap: 2.5rem;
    }

    .flagship-menu {
        gap: 20px;
    }
}

