/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Section 요소들의 기본 여백 완전 제거 */
section {
    margin: 0 !important;
    padding: 0;
}

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

/* ===== Color Variables ===== */
:root {
    --primary-color: #1e40af;      /* 신뢰감 있는 블루 */
    --secondary-color: #3b82f6;    /* 밝은 블루 */
    --accent-color: #f59e0b;       /* 프리미엄 골드 */
    --accent-secondary: #ea580c;   /* 따뜻한 오렌지 */
    --teal-color: #14b8a6;         /* 티얼 (방송 배경색 반영) */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --background-dark: #0f172a;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f59e0b);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 22px 44px;
    font-size: 21px;
    font-weight: 600;
    border-radius: 14px;
}

.btn-gradient {
    background: linear-gradient(135deg, #ff6b35, #f59e0b, #00d4ff);
    background-size: 200% 200%;
    animation: buttonGradient 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

@keyframes buttonGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-text {
    position: relative;
    z-index: 2;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* ===== Gradient Text Animation ===== */
.gradient-text {
    background: linear-gradient(
        45deg,
        #00d4ff,    /* 밝은 시안 */
        #ffeb3b,    /* 밝은 노랑 */
        #ff6b35,    /* 밝은 오렌지 */
        #00ff88     /* 밝은 민트 그린 */
    );
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: inline-block;
    letter-spacing: -0.03em !important; /* 자간 더 강하게 조정 */
    word-spacing: -0.01em !important; /* 단어 간격 조정 */
}

.gradient-text.animated {
    animation: gradientShift 4s ease-in-out infinite;
    will-change: background-position;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) {
    .gradient-text {
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--accent-color);
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: -5px !important; /* 다음 섹션과 5px 겹치게 하여 공백 완전 제거 */
    height: auto; /* 고정 높이 대신 내용에 맞는 높이 */
    display: block; /* flex 제거하여 자연스러운 높이 */
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem; /* 폰트 크기 줄여서 잘림 방지 */
    line-height: 1.3; /* 줄 간격 증가로 더 여유있게 */
    margin-bottom: 25px; /* 하단 마진 증가 */
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em; /* 자간 조정 */
    text-align: left; /* 명시적 좌측 정렬 */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.5;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-image {
    text-align: center;
    position: relative;
}

.profile-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
    border: 5px solid rgba(255, 255, 255, 0.9);
}

.profile-image:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* ===== Hero Enhanced Elements ===== */
.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
}

.badge-text {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    padding: 12px 24px; /* 패딩 증가로 더 넓게 */
    border-radius: 30px;
    font-size: 1rem; /* 폰트 크기 조정 */
    font-weight: 600;
    box-shadow: var(--shadow-medium);
    display: inline-block;
    text-align: center;
    line-height: 1.3;
}

.badge-sub {
    font-size: 0.9em;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 6px;
}

.hero-trust-indicators {
    margin-top: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-text {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-text .check-icon {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Image Container Effects ===== */
.image-container {
    position: relative;
    display: inline-block;
}

.image-background-effect {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 35px;
    opacity: 0.1;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

/* 어두운 오버레이 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* 히어로 컨테이너 */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px 30px; /* 패딩 줄임 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; /* center 대신 flex-start */
}

.hero-content {
    max-width: 40%; /* 45%에서 40%로 줄임 */
    color: white;
    text-align: left;
    margin-right: auto;
}

.hero-content h1 {
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.05em !important; /* 자간 더 강하게 조정 */
    line-height: 1.1 !important; /* 줄 간격 더 좁게 */
    word-spacing: -0.02em !important; /* 단어 간격도 조정 */
    font-size: 1.8rem !important; /* 크기를 50% 축소 */
    margin-bottom: 15px !important; /* 마진도 조정 */
}

/* 히어로 타이틀 추가 최적화 */
.hero-content h1 .gradient-text {
    font-size: inherit;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .trust-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 방송사 크레딧 */
.video-credit {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.broadcast-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.program-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}



.hero-scroll-indicator {
    position: absolute;
    bottom: -10px; /* 음수로 설정해서 완전히 섹션 밖으로 */
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 10; /* 다음 섹션 위에 표시 */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ===== Value Proposition Section ===== */
.value-proposition-section {
    padding: 20px 0 80px 0 !important; /* 최소한의 상단 패딩으로 자연스럽게 */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0 !important; /* 모든 마진 제거 */
}

.value-content {
    max-width: 1000px;
    margin: 0 auto;
}

.problem-gentle {
    text-align: center;
    margin: 0; /* 모든 마진 제거 */
    margin-bottom: 60px; /* 하단 마진만 유지 */
    padding-top: 40px; /* 적정한 상단 패딩 */
}

.problem-gentle .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.problem-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.success-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.success-item {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.success-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon i {
    font-size: 1.5rem;
    color: white;
}

.success-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.success-content p {
    color: var(--text-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Value Proposition 반응형 */
@media (max-width: 768px) {
    .value-proposition-section {
        padding: 0 0 60px 0; /* 모바일에서도 상단 패딩 완전 제거 */
    }
    
    .problem-gentle .section-title {
        font-size: 2rem;
    }
    
    .problem-description {
        font-size: 1.1rem;
    }
    
    .success-indicators {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .success-item {
        padding: 24px;
        gap: 16px;
    }
    
    .success-icon {
        width: 50px;
        height: 50px;
    }
    
    .success-icon i {
        font-size: 1.2rem;
    }
}

.section-content {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4; /* 줄간격 개선 */
}

.section-description {
    font-size: 1.6rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 500;
}

.media-logos {
    margin-top: 40px;
}

.media-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.logo-item {
    text-align: center;
    padding: 16px 12px;
    border-radius: 10px;
    background: var(--background-light);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* 방송사 로고 이미지 스타일 */
.broadcast-logo {
    width: 100px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    margin: 0 auto 8px;
    transition: transform 0.3s ease;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-item:hover .broadcast-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 기존 플레이스홀더 스타일 (백업용) */
.logo-placeholder {
    width: 100px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    margin: 0 auto 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}



.logo-placeholder.sbs-logo {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.logo-placeholder.kbs-logo {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.logo-placeholder.channel-a-logo {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.logo-placeholder.tv-chosun-logo {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.logo-item:hover .logo-placeholder {
    transform: scale(1.1);
}

.logo-item span {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.3;
}

.logo-item span small {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.8;
}



/* ===== Guide Section ===== */
.guide-section {
    padding: 70px 0;
    background: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.empathy-message {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-style: italic;
    margin-top: 12px;
    font-weight: 600;
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.guide-authority h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.authority-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.authority-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.authority-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.authority-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

.authority-item h4 {
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.authority-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.1rem;
}

.media-highlights h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow: visible !important;
    position: relative !important;
    isolation: isolate; /* 새로운 stacking context */
}

.media-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: auto;
    z-index: auto; /* stacking context 제어 */
    isolation: isolate; /* 새로운 stacking context 생성 */
}

.media-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-light);
    line-height: 1.3;
    margin-top: 8px;
}

.media-item:hover {
    transform: scale(1.02); /* 크기 변화를 줄임 */
    z-index: 1; /* z-index 낮춤 */
}

.media-thumbnail {
    width: 100% !important;
    height: 120px !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    flex-shrink: 0; /* 크기 축소 방지 */
    z-index: auto; /* z-index 자동 설정 */
}

.media-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    border-radius: 12px;
    display: block !important;
}

/* SBS 썸네일 특별 조정 - 얼굴이 더 잘 보이도록 */
.media-thumbnail.sbs img {
    object-position: center 25% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* TV조선 썸네일 특별 조정 - 얼굴이 잘 보이도록 */
.media-thumbnail.tv-chosun img {
    object-position: center 25% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* KBS 썸네일 특별 조정 - 얼굴이 잘 보이도록 */
.media-thumbnail.kbs img {
    object-position: center 20% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.fallback-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.media-thumbnail.fallback .fallback-content {
    display: flex;
}

.media-thumbnail.fallback {
    display: flex;
}



.media-thumbnail.sbs.fallback {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.media-thumbnail.kbs.fallback {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.media-thumbnail.channel-a.fallback {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.media-thumbnail.tv-chosun.fallback {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.fallback-content i {
    font-size: 2rem;
    opacity: 0.8;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.media-item:hover .play-overlay {
    opacity: 1;
}

.broadcast-logo {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}



.media-thumbnail.sbs .broadcast-logo {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.media-thumbnail.kbs .broadcast-logo {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.media-thumbnail.channel-a .broadcast-logo {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.media-thumbnail.tv-chosun .broadcast-logo {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

/* 썸네일 위 방송사 로고 오버레이 */
.broadcast-logo-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 20px;
    object-fit: contain;
    background: white;
    padding: 2px 4px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1; /* z-index를 낮춤 */
}

.media-item span {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    display: block;
    font-weight: 500;
}

.media-item:hover span {
    color: var(--primary-color);
}

/* ===== Plan Section ===== */
.plan-section {
    padding: 70px 0;
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: var(--background-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ===== Expertise Section ===== */
.expertise-section {
    padding: 70px 0;
    background: var(--background-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.expertise-item {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.expertise-item h3 {
    color: var(--text-dark);
    margin-bottom: 22px;
    font-size: 1.5rem;
}

.expertise-item ul {
    list-style: none;
    text-align: left;
}

.expertise-item li {
    padding: 10px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 28px;
    font-size: 1.1rem;
}

.expertise-item li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== Books Section ===== */
.books-section {
    padding: 70px 0;
    background: var(--white);
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.books-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    margin-top: 60px;
    align-items: stretch; /* 모든 카드의 높이를 동일하게 */
    visibility: visible !important;
    opacity: 1 !important;
}

.book-item {
    display: grid !important;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
    background: var(--background-light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.book-cover {
    width: 200px !important;
    height: 280px !important;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    display: block;
}

.book-cover img {
    width: 200px !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px;
    display: block;
}

.book-info {
    flex: 1;
}

.book-info h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

.book-subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.book-details {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.book-year {
    color: var(--accent-color);
    font-weight: 600;
}

.book-publisher {
    color: var(--text-light);
}

.book-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* 두 번째 책 아이템 (이미지 없음) */
.book-item:nth-child(2) {
    flex-direction: column;
    text-align: center;
}

.book-item:nth-child(2) .book-info {
    width: 100%;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 120px 0; /* 상단/하단 패딩을 40px씩 늘려서 더 여유있게 */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-content {
    text-align: center;
    padding: 0 20px; /* 좌우 여백 추가 */
}

.cta-title {
    color: white;
    font-size: 2.6rem;
    margin-bottom: 40px; /* 하단 마진 증가로 더 여유있게 */
    margin-top: 20px; /* 상단 마진 추가 */
    line-height: 1.4; /* 줄 간격 일정하게 조정 */
    text-align: center; /* 강제 중앙 정렬 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cta-line {
    display: block;
    width: 100%;
    text-align: center;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    margin-bottom: 60px; /* 하단 마진 증가 */
    padding: 0 20px; /* 좌우 패딩 추가 */
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-method i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-color); /* Fallback */
}

.contact-method h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.contact-method p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-email {
    color: #00d4ff !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0 !important;
    word-break: break-all;
    text-align: center;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    margin-top: 15px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h3 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 16px;
    transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    margin-top: 20px;
}

/* ===== Warning Section ===== */
.warning-section {
    padding: 60px 0;
    background: #fef2f2;
    border-top: 4px solid #ef4444;
    border-bottom: 4px solid #ef4444;
}

.warning-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.warning-title {
    color: #dc2626;
    font-size: 2.1rem;
    margin-bottom: 24px;
}

.warning-text {
    color: #7f1d1d;
    font-size: 1.3rem;
    line-height: 1.7;
}

/* ===== Success Section ===== */
.success-section {
    padding: 80px 0;
    background: var(--background-light);
}

.partners-section {
    margin-bottom: 60px;
}

.partners-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 600;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    background: var(--white);
    padding: 16px 12px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    font-weight: 600;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.3;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.success-gallery {
    margin-top: 60px;
}

.gallery-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-info p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #00d4ff !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.kakao-link {
    color: #00d4ff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.kakao-link:hover {
    color: #ffeb3b !important;
    transform: translateY(-2px);
    text-decoration: none;
}

.kakao-channel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.kakao-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #00d4ff !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.kakao-contact-link:hover {
    transform: translateY(-2px);
    color: #ffeb3b !important;
    text-decoration: none;
}

.kakao-contact-link:hover .kakao-logo-img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.kakao-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

.kakao-logo-img:hover {
    box-shadow: 0 6px 20px rgba(255, 235, 59, 0.4);
}

.kakao-text {
    color: inherit;
    font-weight: inherit;
    transition: color 0.3s ease;
}

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    text-align: center;
}

.footer-social h4 {
    color: white;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
}

.social-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

/* 카카오톡 아이콘 특별 스타일링 */
.social-links a:has(.social-icon-img[alt*="카카오톡"]) {
    background: #fee500;
}

.social-links a:has(.social-icon-img[alt*="카카오톡"]):hover {
    background: #fada0a;
    transform: translateY(-3px);
}
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    margin: 0;
}

.copyright-text {
    line-height: 1.0;
    text-align: center;
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
    display: block;
    margin-bottom: -2px;
}

.expertise {
    color: #00d4ff;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    text-align: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .hero-trust-indicators {
        justify-content: center;
    }
    
    .profile-image {
        max-width: 500px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .section-description {
        font-size: 1.3rem;
    }
    
    .media-title, .partners-title, .gallery-title {
        font-size: 1.6rem;
    }
    
    .authority-item h4 {
        font-size: 1.2rem;
    }
    
    .step h3 {
        font-size: 1.3rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem; /* 태블릿에서 폰트 크기 조정 */
        line-height: 1.4; /* 태블릿에서 줄간격 증가 */
        text-align: center; /* 태블릿에서 중앙 정렬 */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .broadcast-logo {
        width: 80px;
        height: 40px;
        padding: 6px;
    }
    
    .broadcast-logo-overlay {
        width: 45px;
        height: 23px;
        padding: 2px 5px;
        z-index: 1; /* z-index 낮춤 */
    }
    
    .hero-container {
        padding: 120px 30px 30px; /* 네비게이션 높이까지 고려한 상단 패딩 */
        text-align: center;
        align-items: center;
    }
    
    .hero-content {
        max-width: 90%;
        text-align: center;
    }
    
    .hero-trust-indicators {
        justify-content: center; /* 모바일에서 가운데 정렬 */
        flex-direction: column; /* 모바일에서 세로 정렬 */
        align-items: center;
        gap: 12px; /* 간격 조정 */
    }
    
    .trust-text {
        width: 100%;
        justify-content: flex-start;
        max-width: 280px; /* 최대 너비 제한 */
    }
    
    .badge-text {
        font-size: 0.9rem; /* 태블릿에서 배지 텍스트 크기 조정 */
        padding: 10px 20px; /* 패딩 조정 */
    }
    
    .video-credit {
        bottom: 20px;
        right: 20px;
    }
    
    .broadcast-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .program-name {
        font-size: 0.8rem;
    }
    
    .media-gallery {
        grid-template-columns: 1fr;
    }
    
    .media-thumbnail {
        height: 120px !important;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-section {
        padding: 100px 0; /* 태블릿에서 패딩 조정 */
    }
    
    .cta-title {
        font-size: 2.2rem; /* 태블릿에서 제목 크기 조정 */
        margin-bottom: 30px;
        line-height: 1.3; /* 태블릿에서 줄 간격 조정 */
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem; /* 모바일에서 폰트 크기 조정 */
        line-height: 1.4; /* 모바일에서 줄간격 증가 */
        text-align: center; /* 모바일에서 중앙 정렬 */
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.6; /* 모바일에서 줄간격 확대 */
    }
    
    .logo-grid {
        grid-template-columns: 1fr;
    }
    
    .broadcast-logo {
        width: 70px;
        height: 35px;
        padding: 4px;
    }
    
    .broadcast-logo-overlay {
        width: 40px;
        height: 20px;
        padding: 2px 4px;
        top: 6px;
        left: 6px;
        z-index: 1; /* z-index 낮춤 */
    }
    
    .hero-container {
        padding: 110px 15px 20px; /* 네비게이션을 고려한 상단 패딩 */
        align-items: center;
    }
    
    .hero-content {
        max-width: 95%;
        text-align: center;
    }
    
    .hero-trust-indicators {
        justify-content: center; /* 작은 모바일에서도 가운데 정렬 */
        gap: 15px; /* 간격도 조금 줄임 */
    }
    
    .badge-text {
        font-size: 0.8rem; /* 모바일에서 배지 텍스트 크기 더 작게 */
        padding: 8px 16px; /* 패딩도 더 작게 */
    }
    
    .badge-sub {
        font-size: 0.85em; /* 서브 텍스트도 더 작게 */
    }
    
    .video-credit {
        bottom: 15px;
        right: 15px;
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }
    
    .broadcast-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .program-name {
        font-size: 0.75rem;
    }
    
    .cta-section {
        padding: 80px 0; /* 모바일에서 패딩 조정 */
    }
    
    .cta-title {
        font-size: 1.8rem; /* 모바일에서 제목 크기 조정 */
        margin-bottom: 25px;
        line-height: 1.3; /* 모바일에서 줄 간격 향상 */
        word-spacing: 0.1em; /* 단어 간격 조정 */
        text-align: center !important; /* 모바일에서 강제 중앙 정렬 */
        gap: 4px;
    }
    
    .cta-line {
        font-size: inherit;
        line-height: 1.2;
    }
    
    .cta-description {
        font-size: 1.1rem; /* 모바일에서 설명 텍스트 크기 조정 */
    }
    
    .contact-method {
        margin-bottom: 30px; /* 모바일에서 컨택 방법 간 간격 증가 */
    }
    
    .contact-method h3 {
        font-size: 1.3rem; /* 모바일에서 제목 크기 조정 */
        margin-bottom: 10px;
    }
    
    .contact-email {
        font-size: 1.1rem !important; /* 모바일에서 이메일 크기 조정 */
        padding: 10px 15px !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 320px) {
    .hero-container {
        padding: 100px 10px 25px; /* 초소형에서도 네비게이션을 고려한 상단 패딩 */
    }
    
    .hero-content h1 {
        font-size: 1.4rem; /* 초소형 화면에서 더 작게 */
        line-height: 1.4; /* 줄 간격 증가 */
        text-align: center; /* 초소형에서도 중앙 정렬 */
    }
    
    .badge-text {
        font-size: 0.75rem; /* 초소형 화면에서 더 작게 */
        padding: 6px 12px; /* 패딩도 최소화 */
    }
    
    .badge-sub {
        font-size: 0.8em;
    }
}

/* ===== Animation Classes ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Form Error & Success Styles ===== */
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--teal-color));
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.success-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-content i {
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-content h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.notification-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== Modal Styles ===== */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.profile-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
}

.download-options {
    text-align: center;
}

/* ===== Navigation Scrolled State ===== */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
}

.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* ===== Loading States ===== */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-medium);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Improved Mobile Responsiveness ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .copyright {
        font-size: 0.85rem;
        margin-bottom: -2px;
    }
    
    .expertise {
        font-size: 0.95rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .book-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .book-cover {
        width: 150px !important;
        height: 210px !important;
        margin: 0 auto;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .book-cover img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 8px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .problem-section {
        padding: 50px 0 60px;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        background: white;
        box-shadow: var(--shadow-medium);
        border-radius: 8px;
        padding: 20px;
        margin-top: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-trust-indicators {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .profile-image {
        max-width: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.2rem;
    }
    
    .media-title, .partners-title, .gallery-title {
        font-size: 1.4rem;
    }
    
    .authority-item h4 {
        font-size: 1.1rem;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
    
    .cta-title {
        font-size: 1.5rem; /* 소형 모바일에서 더 작은 크기 */
        line-height: 1.4; /* 줄 간격 조정 */
        padding: 0 10px; /* 좌우 여백 추가 */
        word-break: keep-all; /* 한글 단어 단위로 줄바꿈 */
        word-spacing: 0.05em; /* 소형 화면에서 단어 간격 미세 조정 */
        text-align: center !important; /* 소형 모바일에서도 강제 중앙 정렬 */
        gap: 2px;
    }
    
    .cta-line {
        font-size: inherit;
        line-height: 1.1;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-gallery {
        grid-template-columns: 1fr;
    }
    
    .media-thumbnail {
        height: 120px !important;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .success-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .problem-section {
        padding: 40px 0 50px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 15px;
        margin: 20px 0;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .media-title, .partners-title, .gallery-title {
        font-size: 1.3rem;
    }
    
    .authority-item h4 {
        font-size: 1rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.9rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .logo-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding: 30px 15px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .authority-item {
        padding: 15px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .book-item {
        padding: 20px;
        gap: 15px;
    }
    
    .book-cover {
        width: 120px !important;
        height: 168px !important;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .book-cover img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 8px;
    }
    
    .book-info h3 {
        font-size: 1.2rem;
    }
    
    .notification-content {
        flex-direction: column;
        text-align: center;
    }
    
    .notification-content i {
        align-self: center;
    }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-scroll-indicator {
        animation: none;
    }
}

/* ===== Focus Styles for Accessibility ===== */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .hero-scroll-indicator,
    .success-notification,
    .profile-modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 12pt;
    }
    
    .hero-section {
        padding: 20pt 0;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

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

/* 모바일에서 카카오톡 로고 최적화 */
@media (max-width: 480px) {
    .kakao-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .kakao-channel-wrapper {
        margin: 8px 0;
    }
    
    .kakao-contact-link {
        gap: 8px;
        font-size: 1rem;
    }
}

/* =========================================================================
   FIX PACK — 히어로 영상 크레딧 / 방송사 배지 / 메인 텍스트 배치
   (이 블록은 파일 맨 끝에 있어 위쪽 규칙보다 우선 적용됩니다)
   ========================================================================= */

/* --- 0. AOS fade-right 요소가 애니메이션 전 화면 밖으로 밀려나며
       페이지에 가로 스크롤바를 만들던 문제 차단 --- */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* --- 0-1. 모바일 AOS 안전장치 ---
   fade-right / fade-left 는 요소를 좌우 100px 밀어둔 뒤 스크롤 시 되돌리는데,
   CDN(aos.js/aos.css) 로딩이 지연·실패하면 요소가 밀린 채로 남아 좁은 화면에서
   내용이 잘리거나 보이지 않는다. 모바일에서는 가로 이동 없이 바로 표시한다. */
@media (max-width: 768px) {
    [data-aos^="fade"],
    [data-aos^="zoom"],
    [data-aos^="slide"] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* --- 1. 히어로 배경 --- */
/* 기존 100vw / 177.77vh 규칙은 영상을 과도하게 확대해 좌우 상단의
   방송사 로고(SBS)와 프로그램 로고를 화면 밖으로 잘라내고 있었음.
   히어로 영역에 딱 맞춰 잘림을 최소화한다. */
/* 방송 화면을 원본 그대로(무편집·무크롭) 노출한다.
   컨테이너를 원본 비율(2400:1316)로 고정하면 cover 로 채워도 잘림이 없다.
   프로그램 로고 · SBS 마크 · 자막이 모두 원본 위치 그대로 보인다. */
/* 고정 네비게이션(74px)이 원본 상단의 프로그램 로고 · SBS 마크를 가리지 않도록
   히어로 전체를 네비게이션 높이만큼 내린다. 그 영역은 불투명한 네비게이션이
   덮고 있어 빈 공간으로 보이지 않는다. */
.hero-section {
    padding-top: 74px !important;
}

.hero-section .hero-media {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: auto !important;
    aspect-ratio: 2400 / 1475;
    overflow: hidden;
    z-index: 0;
}

.hero-media .hero-background-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0;
}

.hero-media .hero-overlay {
    position: absolute !important;
    inset: 0;
    z-index: 1;
}

/* 1200px 이상: 원본 이미지가 텍스트를 담을 만큼 높아 위에 얹는다 */
@media (min-width: 1200px) {
    .hero-section .hero-container {
        position: absolute !important;
        top: 74px;
        left: 50%;
        transform: translateX(-50%);
        height: calc(100% - 74px);
        z-index: 3;
        padding: 145px 60px 50px; /* 원본 상단 프로그램 로고 아래로 문구 배치 */
        min-height: 0;
        justify-content: flex-start;
    }
}

/* 1200px 미만: 원본을 자르지 않는 대신 이미지 아래로 텍스트를 내린다 */
@media (max-width: 1199px) {
    .hero-section {
        background: #0b1020;
    }

    .hero-section .hero-container {
        position: relative;
        z-index: 3;
        min-height: 0;
        padding: 34px 30px 44px;
    }

    .hero-section .hero-content {
        max-width: 100%;
        text-align: center;
    }

    /* 1200px 미만에서는 문구가 사진 아래로 내려가 사진 위에 얹히지 않으므로
       가독성용 어두운 그라데이션이 필요 없다. 오히려 SBS 로고와 프로그램
       로고가 있는 사진 상단을 불필요하게 어둡게 가려 걷어낸다. */
    .hero-media .hero-overlay {
        background: none;
    }

    .hero-program-credit {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats,
    .hero-buttons,
    .hero-trust-indicators {
        justify-content: center;
    }

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

/* 스크림: 영상에 박혀 있는 자막·자료화면 텍스트 위로 히어로 문구가
   확실히 읽히도록 왼쪽 텍스트 영역을 충분히 어둡게 깐다. */
.hero-overlay {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0) 20%),
        linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 26%),
        linear-gradient(to right,
            rgba(0, 0, 0, 0.86) 0%,
            rgba(0, 0, 0, 0.80) 36%,
            rgba(0, 0, 0, 0.46) 60%,
            rgba(0, 0, 0, 0.28) 100%);
    z-index: 2;
}

/* --- 2. 출연 프로그램 크레딧 (히어로 최상단, 메인 문구 바로 위) --- */
/* 영상에 박혀 있는 프로그램 로고는 좌상단 구석에 있어 고정 네비게이션 바에
   가리고, 하단 자막 바를 잘라내는 크롭과 동시에 만족시킬 수 없다
   (히어로 폭 1400px 이상에서만 성립). 그래서 프로그램명은 별도 크레딧으로
   노출해 어떤 화면 크기에서도 항상 보이도록 한다. */
.hero-program-credit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 7px 15px 7px 8px;
    border-radius: 999px;
    background: rgba(8, 12, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.hero-program-credit .credit-badge {
    flex: none;
    background: #ffffff;
    color: #0b2a6b;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.45;
}

/* 영상 원본에서 픽셀 그대로 추출한 프로그램 로고 */
.hero-program-credit .credit-logo {
    display: block;
    height: 58px;
    width: auto;
    border-radius: 7px;
    flex: none;
}

.hero-program-credit .credit-suffix {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* --- 3. 방송 갤러리: 방송사 배지 + 프로그램명 --- */
/* 기존 `.media-thumbnail img { width/height: 100% !important }` 가
   배지 이미지까지 늘려서 썸네일을 통째로 덮던 문제 해결 */
.media-thumbnail .broadcast-logo {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto !important;
    height: auto !important;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 3;
    white-space: nowrap;
    margin: 0;
    text-align: left;
}

.media-thumbnail.sbs .broadcast-logo {
    background: linear-gradient(135deg, #0d2b6b, #1e64c8);
}

.media-thumbnail.kbs .broadcast-logo {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.media-thumbnail.channel-a .broadcast-logo {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.media-thumbnail.tv-chosun .broadcast-logo {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.media-thumbnail .broadcast-logo.award-badge {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

/* 썸네일: 고정 높이 120px + cover 라서 사진 위아래가 잘리던 문제 해결.
   16:9 비율 상자에 contain 으로 넣어 원본을 자르지 않고 전부 보여준다. */
.media-thumbnail {
    height: auto !important;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

/* 방송사별 .sbs/.kbs/.tv-chosun 규칙이 cover 를 !important 로 걸어두어
   선택자를 같은 수준으로 맞춰 덮어쓴다 */
.media-thumbnail img,
.media-thumbnail.sbs img,
.media-thumbnail.kbs img,
.media-thumbnail.channel-a img,
.media-thumbnail.tv-chosun img,
.media-thumbnail.award img {
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 0;
}

/* 링크가 아니므로 클릭 관련 표현 제거 */
.media-item {
    cursor: default;
}

.media-item:hover {
    transform: none;
}

.media-thumbnail .play-overlay {
    display: none;
}

/* --- 성공 지표 카드 / 경고 문단 자간·줄바꿈 정리 --- */
.success-content h3 {
    letter-spacing: -0.025em;
    line-height: 1.4;
    word-break: keep-all;
    text-wrap: balance;
    margin-bottom: 6px;
}

.success-content p {
    letter-spacing: -0.015em;
    line-height: 1.6;
    word-break: keep-all;
    text-wrap: balance;
    margin-bottom: 0;
}

/* 카드 높이 균일 (제목이 1줄/2줄로 갈려도 나란히 보이도록) */
.success-indicators {
    align-items: stretch;
}

.success-item {
    height: 100%;
}

.warning-title {
    letter-spacing: -0.02em;
    line-height: 1.4;
    word-break: keep-all;
    text-wrap: balance;
}

.warning-text {
    max-width: 31em; /* 한 줄 30자 내외 — 한글 본문 최적 길이 */
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.015em;
    line-height: 1.8;
    word-break: keep-all;
    text-wrap: balance;
}

/* --- 긴 한 줄 문장 가독성 정리 ---
   한 줄이 너무 길면 눈이 다음 줄 첫 글자를 찾기 어렵다.
   폭을 제한해 2줄로 나누고, 줄 길이를 고르게(balance) 맞춘다. */
#expertise .section-description,
.expertise-roles-text,
.expertise-roles-note {
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    letter-spacing: -0.015em;
    word-break: keep-all;
    text-wrap: balance;
    text-align: center;
}

#expertise .section-description {
    max-width: 32em;
}

/* --- 전문 분야 섹션: 카드 높이 균일 + 섭외 가능 역할 안내 --- */
.expertise-grid {
    align-items: stretch;
}

.expertise-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.expertise-item ul {
    flex: 1;
}

.expertise-roles {
    margin-top: 44px;
    text-align: center;
}

.expertise-roles-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    word-break: keep-all;
    margin: 0 auto 8px;
    max-width: 760px;
}

.expertise-roles-note {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.6;
    word-break: keep-all;
    margin: 0 auto 22px;
    max-width: 760px;
}

/* --- 섭외 과정 3단계: 카드 높이 균일 --- */
.process-steps {
    align-items: stretch;
}

.process-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.process-steps .step p {
    margin-bottom: 0;
    word-break: keep-all;
}

.expertise-roles .expertise-roles-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
}

/* --- 섭외 문의 필수 정보 안내 --- */
.inquiry-checklist {
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 26px 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.inquiry-checklist-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 18px;
    text-align: center;
    word-break: keep-all;
    line-height: 1.5;
}

.inquiry-checklist-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.inquiry-checklist-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.97rem;
    line-height: 1.5;
    word-break: keep-all;
}

.inquiry-checklist-list li i {
    flex: none;
    margin-top: 3px;
    width: 18px;
    text-align: center;
    color: var(--accent-secondary, #fbbf24);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .expertise-roles {
        margin-top: 34px;
    }

    .expertise-roles-text {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .expertise-roles-note {
        font-size: 0.94rem;
        margin-bottom: 18px;
    }

    /* 모바일에서는 <br> 대신 자연스럽게 흐르도록 */
    .process-steps .step p br {
        display: none;
    }

    .inquiry-checklist {
        padding: 20px 18px;
        margin-bottom: 32px;
    }

    .inquiry-checklist-title {
        font-size: 0.98rem;
        margin-bottom: 14px;
    }

    .inquiry-checklist-list {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .inquiry-checklist-list li {
        font-size: 0.93rem;
    }
}

/* --- 저서 섹션: 모바일 가로 넘침 해결 ---
   .book-item 은 display:grid + grid-template-columns:200px 1fr 인데
   모바일 규칙이 flex-direction:column 만 걸어두어(그리드에는 무효) 2열이
   그대로 유지됐다. 200px 표지 + 본문 최소너비가 화면을 넘겨 글자가 잘렸다. */
.books-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)) !important;
}

.book-item {
    min-width: 0;
}

.book-info {
    min-width: 0;
}

@media (max-width: 900px) {
    .book-item {
        grid-template-columns: 1fr !important;
        justify-items: center;
        text-align: center;
    }

    .book-info {
        width: 100%;
    }

    .book-purchase {
        justify-content: center;
    }
}

/* 도서 구매 버튼 (교보문고 · YES24) */
.book-purchase {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.book-purchase .book-buy-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 프로그램명: 회색이라 잘 안 보이던 것을 진한 색 + 굵기로 강화 */
.media-item .media-program-name {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
    text-align: center;
    word-break: keep-all;
}

.media-item:hover .media-program-name {
    color: var(--primary-color);
}

/* --- 4. 메인 텍스트를 화면에 맞게 배치 --- */
.hero-container {
    justify-content: center;
    min-height: min(640px, 88vh);
    padding: 120px 60px 70px;
}

.hero-content {
    max-width: min(640px, 54%);
}

.hero-content h1,
.hero-title {
    font-size: clamp(2rem, 3.5vw, 3.25rem) !important;
    line-height: 1.32 !important;
    letter-spacing: -0.025em !important;
    word-spacing: normal !important;
    margin-bottom: 28px !important;
    word-break: keep-all;
}

.hero-title .gradient-text {
    letter-spacing: inherit !important;
    word-spacing: normal !important;
}

.hero-stats {
    margin: 0 0 28px;
    gap: 44px;
}

.hero-buttons {
    margin-top: 0;
    gap: 16px;
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: min(560px, 66%);
    }
}

@media (max-width: 768px) {
    .hero-container {
        justify-content: center;
        min-height: auto;
        padding: 118px 30px 46px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1,
    .hero-title {
        font-size: clamp(1.7rem, 6.4vw, 2.4rem) !important;
        line-height: 1.35 !important;
        text-align: center;
    }

    /* 모바일은 텍스트가 가운데 정렬이므로 세로 방향 스크림으로 가독성 확보 */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.60) 0%,
            rgba(0, 0, 0, 0.52) 45%,
            rgba(0, 0, 0, 0.42) 75%,
            rgba(0, 0, 0, 0.58) 100%
        );
    }

    /* 라벨이 길어져 3개가 한 줄에 안 들어가던 문제 */
    .hero-stats {
        gap: 24px;
        justify-content: center;
    }

    .hero-program-credit {
        margin-bottom: 16px;
        padding: 6px 13px 6px 7px;
        gap: 8px;
    }

    .hero-program-credit .credit-badge {
        font-size: 0.72rem;
        padding: 3px 9px;
    }

    .hero-program-credit .credit-logo {
        height: 50px;
    }

    .hero-program-credit .credit-suffix {
        font-size: 0.8rem;
    }

    .media-item .media-program-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 108px 18px 40px;
    }

    .hero-content h1,
    .hero-title {
        font-size: clamp(1.55rem, 7.4vw, 2rem) !important;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stats .stat-label {
        font-size: 0.78rem;
    }

    .hero-program-credit {
        margin-bottom: 14px;
        padding: 5px 12px 5px 6px;
        gap: 7px;
    }

    .hero-program-credit .credit-logo {
        height: 44px;
    }

    .hero-program-credit .credit-suffix {
        font-size: 0.76rem;
    }
}

@media (max-width: 320px) {
    .kakao-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .kakao-contact-link {
        gap: 6px;
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px; /* 소형 모바일에서 간격 조정 */
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .copyright-text {
        line-height: 0.9;
    }
    
    .copyright {
        font-size: 0.8rem;
        margin-bottom: -3px;
    }
    
    .expertise {
        font-size: 0.85rem;
    }
}