/* Modern Premium Theme Design System */

:root {
    /* Fonts */
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;

    /* Shared Colors */
    --brand-primary: #5c62f3;
    --brand-primary-rgb: 92, 98, 243;
    --brand-secondary: #8b5cf6;
    --brand-gradient: linear-gradient(135deg, #5c62f3 0%, #8b5cf6 100%);
    --brand-gradient-hover: linear-gradient(135deg, #4c52e2 0%, #7c4be5 100%);
    --success: #10b981;
    --warning: #f59e0b;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(92, 98, 243, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-surface: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-accent: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;   /* 명도대비 4.5:1 확보 (기존 #94a3b8 는 3.0:1 미달) */
    --focus-ring: #1d4ed8;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
    --error-border: #fecaca;

    --border-color: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-hover-border: rgba(92, 98, 243, 0.25);
    --hero-mesh-1: rgba(92, 98, 243, 0.06);
    --hero-mesh-2: rgba(139, 92, 246, 0.04);
}

/* Dark Theme Variables (Default) */
[data-theme="dark"] {
    --bg-color: #0b0f19;
    --bg-surface: #111827;
    --bg-secondary: #1f2937;
    --bg-accent: #374151;

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-tertiary: #9ca3af;   /* 어두운 배경에서 4.5:1 확보 */
    --focus-ring: #93c5fd;
    --error-bg: #2a1416;
    --error-text: #fca5a5;
    --error-border: #7f1d1d;

    --border-color: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(92, 98, 243, 0.4);
    --hero-mesh-1: rgba(92, 98, 243, 0.12);
    --hero-mesh-2: rgba(139, 92, 246, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* ==========================================================================
   접근성 (KWCAG 2.2)
   --------------------------------------------------------------------------
   6.1.2 초점 이동과 표시 — 키보드로 이동한 위치가 눈에 보여야 합니다.
   예전에는 button·input 에 outline: none 을 걸어 초점이 어디 있는지
   전혀 알 수 없었습니다. 마우스 클릭 때만 테두리를 감추고, 키보드로
   이동했을 때는(:focus-visible) 반드시 표시합니다.
   ========================================================================== */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 화면에는 안 보이지만 스크린리더는 읽는 텍스트 */
.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;
}

/* 6.4.1 반복 영역 건너뛰기 — 키보드 사용자가 상단 메뉴를 건너뛰고
   본문으로 바로 갈 수 있게 합니다. 평소에는 화면 밖에 있다가
   Tab 을 누르면 나타납니다. */
.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 2000;
    background: var(--brand-primary);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
}

/* 오류 안내 — 어떤 항목이 잘못됐는지 화면과 스크린리더 양쪽에 알립니다 */
.form-error {
    display: none;
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    font-size: 14px;
    font-weight: 600;
}

.form-error.show {
    display: block;
}

/* 파일 입력은 화면에서만 감추고 접근성 트리에는 남겨 둡니다(.sr-only).
   키보드로 Tab 하면 숨은 input 에 초점이 가므로, 보이는 드롭존 쪽에
   테두리를 그려 "지금 여기"를 알 수 있게 합니다. */
.dropzone:focus-within {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* 공고 카드는 button 요소입니다 — 기본 버튼 모양을 지우고 카드 모양 유지 */
button.job-card {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
}

/* 접근성: 움직임 최소화 설정을 존중합니다 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/* Common Layout Elements */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 60px 0;
}

/* Typography Utilities */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(92, 98, 243, 0.1);
    border-radius: 99px;
    border: 1px solid rgba(92, 98, 243, 0.15);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Header & Glassmorphic Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color var(--transition-normal), border var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.logo-icon {
    height: 26px;
    width: auto;
    object-fit: contain;
}

/* 라이트/다크 모드에 따라 로고 이미지 자체를 교체 (CI.png ↔ ci2.png) */
.logo-icon-dark,
.footer-logo-dark {
    display: none;
}
[data-theme="dark"] .logo-icon-light,
[data-theme="dark"] .footer-logo-light {
    display: none;
}
[data-theme="dark"] .logo-icon-dark,
[data-theme="dark"] .footer-logo-dark {
    display: inline-block;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.nav-link.active::after {
    transform: scaleX(1);
}

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-accent);
    transform: translateY(-2px);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Sun/Moon Display classes */
[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
    display: block;
}

/* Apply CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(92, 98, 243, 0.4);
    background: var(--brand-gradient-hover);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* Hero Section with Interactive Mesh Gradient */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, var(--hero-mesh-1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--hero-mesh-2) 0%, transparent 40%),
        var(--bg-color);
    transition: background var(--transition-normal);
}

/* Subtle moving mesh circles background animation */
.hero-glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: rgba(92, 98, 243, 0.2);
    top: 15%;
    right: 10%;
    animation: floatSphere 20s infinite alternate ease-in-out;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.15);
    bottom: 10%;
    left: 5%;
    animation: floatSphere 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatSphere {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 40px) scale(1.1);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    z-index: 10;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(92, 98, 243, 0.08);
    border: 1px solid rgba(92, 98, 243, 0.15);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.1s both;
    /* 한글은 기본값이면 글자 사이 아무 데서나 끊겨 "만드 / 는" 처럼 갈라진다.
       좁은 화면에서도 낱말이 통째로 넘어가도록 띄어쓰기에서만 줄을 바꾼다. */
    word-break: keep-all;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
    animation: fadeInUp 0.8s ease 0.2s both;
    /* 제목과 같은 이유 — "대성청 / 정에너지" 처럼 낱말이 갈라지지 않게 한다 */
    word-break: keep-all;
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: scaleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Beautiful Interactive CSS 3D Globe */
.globe-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.4));
    box-shadow: 0 0 40px rgba(92, 98, 243, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    transition: transform var(--transition-slow);
}

.globe-wrapper:hover {
    transform: scale(1.05) rotateY(15deg) rotateX(-10deg);
}

.globe-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(92, 98, 243, 0.3);
    animation: spinGlobe 12s linear infinite;
}

.globe-grid-lat2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(139, 92, 246, 0.3);
    transform: rotateX(90deg);
    animation: spinGlobeHorizontal 18s linear infinite;
}

.globe-core {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-gradient);
    filter: blur(10px);
    position: absolute;
    opacity: 0.8;
    animation: pulseCore 3s infinite alternate ease-in-out;
}

@keyframes spinGlobe {
    0% {
        transform: rotateY(0deg) rotateZ(10deg);
    }

    100% {
        transform: rotateY(360deg) rotateZ(10deg);
    }
}

@keyframes spinGlobeHorizontal {
    0% {
        transform: rotateX(75deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(75deg) rotateZ(-360deg);
    }
}

@keyframes pulseCore {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        filter: blur(10px);
    }

    100% {
        transform: scale(1.1);
        opacity: 0.9;
        filter: blur(15px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Company Stats CSS */
.stats {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 60px 0;
    position: relative;
    z-index: 10;
    transition: background-color var(--transition-normal);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--brand-primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Section: About Intro */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-intro-left {
    text-align: left;
}

.about-intro-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-tag-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-normal);
}

.feature-tag-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.feature-tag-icon {
    background: rgba(92, 98, 243, 0.1);
    color: var(--brand-primary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-tag-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-tag-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Core Values (인재상) Section */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.talent-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--transition-normal);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.talent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--card-hover-border);
}

.talent-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--brand-primary);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.talent-card:hover .talent-icon-box {
    background: var(--brand-primary);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(92, 98, 243, 0.3);
}

.talent-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.talent-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.talent-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hashtag {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    background: var(--bg-secondary);
    color: var(--brand-primary);
    border-radius: 6px;
}

/* Job Categories Section */
.job-family-container {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.job-family-menu {
    background: var(--bg-secondary);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--border-color);
}

.job-tab-btn {
    text-align: left;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-tab-btn:hover {
    background: rgba(92, 98, 243, 0.05);
    color: var(--text-primary);
}

.job-tab-btn.active {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.job-tab-btn .chevron {
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
}

.job-tab-btn.active .chevron {
    opacity: 1;
    transform: translateX(0);
}

.job-family-contents {
    padding: 50px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.job-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.job-pane.active {
    display: block;
}

.job-pane-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.job-pane-tagline {
    font-size: 16px;
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 24px;
}

.job-pane-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.job-feature-item {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-feature-item svg {
    color: var(--success);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Career Board (채용게시판) Section */
.board-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.search-box-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    padding: 18px 24px 18px 56px;
    border-radius: 99px;
    font-size: 15px;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(92, 98, 243, 0.15), var(--shadow-glow);
}

.search-icon-svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    width: 20px;
    height: 20px;
    transition: color var(--transition-fast);
}

.search-input:focus~.search-icon-svg {
    color: var(--brand-primary);
}

.category-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-tag:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--text-tertiary);
}

.filter-tag.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

/* Job Postings Grid / List */
.jobs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.job-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.job-card-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-card-title {
    font-size: 18px;
    font-weight: 800;
    transition: color var(--transition-fast);
}

.job-card:hover .job-card-title {
    color: var(--brand-primary);
}

.job-card-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-split {
    color: var(--border-color);
}

.job-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.badge-tag {
    background: rgba(92, 98, 243, 0.08);
    color: var(--brand-primary);
}

.badge-type {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.job-card-action {
    font-weight: 700;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-card:hover .job-card-action {
    background: var(--brand-primary);
    color: #ffffff;
}

.no-postings-msg {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
}

/* Sliding Drawer Details Modal */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 580px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 10001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border-color);
}

.drawer-overlay.open .drawer-sidebar {
    transform: translateX(0);
}

.drawer-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.drawer-header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90%;
}

.drawer-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.drawer-meta-badges {
    display: flex;
    gap: 8px;
}

.btn-close-drawer {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.btn-close-drawer:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

.drawer-section {
    margin-bottom: 30px;
}

.drawer-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-section-body {
    font-size: 15px;
    color: var(--text-secondary);
}

.drawer-section-body ul {
    padding-left: 20px;
    list-style-type: disc;
}

.drawer-section-body li {
    margin-bottom: 8px;
}

/* Custom Interactive Mock Application Form inside Drawer */
.application-form {
    margin-top: 40px;
    border-top: 1.5px dashed var(--border-color);
    padding-top: 30px;
}

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

.form-label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--brand-primary);
    background: var(--bg-surface);
}

/* File Drop Zone */
.dropzone {
    border: 1.5px dashed var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropzone:hover {
    background: rgba(92, 98, 243, 0.05);
    border-color: var(--brand-primary);
}

.dropzone-icon {
    margin: 0 auto 12px;
    color: var(--brand-primary);
    opacity: 0.8;
    width: 36px;
    height: 36px;
}

.dropzone-text {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dropzone-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

.dropzone-fileinfo {
    display: none;
    font-size: 14px;
    font-weight: bold;
    color: var(--success);
}

/* Privacy Consent Checkbox Row */
.privacy-consent-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.privacy-consent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.privacy-consent-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.required-mark {
    color: #ef4444;
}

.privacy-consent-view-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: underline;
    white-space: nowrap;
}

/* Personal Information Consent Modal */
.privacy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 640px;
    max-width: calc(100% - 40px);
    max-height: 85vh;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#privacyOverlay.open .privacy-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

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

.privacy-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.privacy-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

.privacy-modal-body h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.privacy-modal-body h4:first-child {
    margin-top: 0;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12.5px;
}

.privacy-table th,
.privacy-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.privacy-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    width: 30%;
}

.privacy-table-3rd th {
    width: auto;
}

.privacy-consent-item {
    background: rgba(92, 98, 243, 0.05);
    border: 1px solid rgba(92, 98, 243, 0.15);
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0 20px;
}

.privacy-consent-item p {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.privacy-radio-group {
    display: flex;
    gap: 24px;
}

.privacy-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.privacy-radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.privacy-footer-note {
    font-size: 12.5px;
    color: var(--text-tertiary);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.privacy-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* Submitting Success Box */
.drawer-overlay.open .application-success-modal {
    display: block;
}

.application-success-modal {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    animation: scaleIn 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
    box-shadow: var(--shadow-lg);
    width: calc(100% - 60px);
    max-width: 400px;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    margin: 0 auto 20px;
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

/* Footer Style */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 60px 0 40px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: background-color var(--transition-normal);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

.footer-logo-desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo svg {
    width: 30px;
    height: 30px;
}

.footer-desc {
    line-height: 1.6;
    max-width: 360px;
}

/* 가족친화 우수기업 인증 배지 (여성가족부) */
.footer-cert {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;   /* 부모가 flex 컬럼이어도 내용 폭만큼만 */
    width: fit-content;
    white-space: nowrap;      /* 인증명이 글자 단위로 꺾이지 않게 */
    gap: 12px;
    margin-top: 22px;
    padding: 9px 18px 9px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-base);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-cert-mark {
    width: 44px;
    height: 44px;
    display: block;
    flex-shrink: 0;
}

.footer-cert-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer-cert-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.footer-cert-sub {
    font-size: 12px;
    color: var(--text-tertiary);
}

.footer-links {
    text-align: left;
}

.footer-links h4 {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.footer-info {
    text-align: left;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Download Section at the bottom of the Board */
.download-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.download-btn .btn-icon {
    width: 18px;
    height: 18px;
}

/* Footer Homepage Button */
.footer-homepage-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-item {
        border-right: none;
    }

    .stat-item:nth-child(2n) .stat-number {
        border-right: none;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .talent-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .job-family-container {
        grid-template-columns: 1fr;
    }

    .job-family-menu {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .job-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .job-card-action {
        justify-content: center;
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 32px;
    }

    .hero-title {
        /* 좁은 화면에서 "지속가능한 미래를 만드는" 이 한 줄에 들어가는 크기 */
        font-size: 32px;
    }

    nav {
        display: none;
        /* simple drawer navigation for mobile could be added if needed */
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}