/* public/css/main.css */
:root {
    --bg-base: #fcfcfc;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --gold-primary: #c5a059;
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #f4eee0 50%, #c5a059 100%);
    --gold-light: #f4eee0;
    --border-color: #e5e5e5;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed; top: 0; width: 100%; padding: 15px 60px; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color); height: 80px;
}
.logo-group { display: flex; align-items: center; text-decoration: none; height: 100%; }
.logo-group img { height: 60px; width: auto; object-fit: contain; }

/* --- 로고 텍스트 색상 수정 시작 --- */
.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
    transition: 0.3s;
    color: #fff; /* 기본 흰색 (Index 히어로 기준) */
}

.logo-subtitle {
    font-size: 9px;
    color: #c5a059; /* 금색 고정 */
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 스크롤되거나 흰색 배경인 서브페이지용 색상 반전 */
header.scrolled .logo-title,
header.sub-page .logo-title {
    color: #1a1a1a !important;
}
/* --- 로고 텍스트 색상 수정 끝 --- */

nav ul { display: flex; list-style: none; gap: 25px; }
nav a { color: var(--text-primary); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; transition: 0.3s; }
nav a:hover { color: var(--gold-primary); }

.menu-toggle { display: none; cursor: pointer; z-index: 1100; padding: 5px; }
.menu-toggle div { width: 25px; height: 2px; background-color: var(--text-primary); margin: 5px 0; transition: 0.3s; }

/* --- [수정 부분] Main Hero Section: Edge-to-Edge Luxury Layout --- */
.hero-main {
    width: 100vw;
    height: 100vh; 
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin-top: -80px; 
}

.hero-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important; 
    object-fit: cover;
    z-index: 1;
}

.luxury-eng {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em; 
    color: #ffffff;
    font-size: clamp(28px, 3.8vw, 48px); 
    margin-bottom: 8px;
}

.gold-point {
    color: var(--gold-primary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: 500;
    display: inline-block;
    filter: drop-shadow(0 0 1px rgba(197, 160, 89, 0.3));
}

.hero-divider {
    width: 40px; 
    height: 1px;
    background: var(--gold-primary);
    margin: 35px auto;
    opacity: 0.6;
}

/* Sub-hero & Labels */
.sub-hero {
    padding-top: 180px; padding-bottom: 80px;
    background: linear-gradient(to bottom, #fdfdfd, #f4eee0);
    text-align: center; border-bottom: 1px solid var(--border-color);
}
.sub-hero h2 { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 56px); font-weight: 400; color: var(--text-primary); margin-bottom: 15px; }

.label { 
    display: block; 
    text-align: center; 
    font-family: 'Inter', sans-serif;
    font-size: 10px; 
    letter-spacing: 0.7em; 
    color: var(--gold-primary); 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    font-weight: 300;
    opacity: 0.85;
}

.text-silver {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: clamp(14px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

/* Content Section Common */
section { padding: 100px 20px; max-width: 1400px; margin: 0 auto; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 5vw, 38px); font-weight: 400; text-align: center; margin-bottom: 60px; }

/* CTA Box (Consultation) */
.cta-box { background-color: #1a1a1a; color: var(--white); text-align: center; padding: 100px 20px; }
.cta-box h2 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 5vw, 36px); margin-bottom: 15px; }
.cta-box p { font-weight: 300; color: #aaa; margin-bottom: 35px; font-size: 15px; }
.contact-link { display: inline-block; padding: 16px 45px; border: 1px solid var(--gold-primary); color: var(--gold-primary); text-decoration: none; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; transition: 0.3s; cursor: pointer; background: transparent; }
.contact-link:hover { background: var(--gold-primary); color: #1a1a1a; }

/* Footer */
footer { padding: 60px 20px; background-color: var(--white); border-top: 1px solid var(--border-color); text-align: center; font-size: 11px; color: #888; letter-spacing: 0.5px; }

/* Responsive Header */
@media (max-width: 1024px) { header { padding: 15px 30px; } }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: white; padding: 100px 40px; transition: 0.4s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.05); }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 25px; }
    header { padding: 15px 20px; }
    .label { letter-spacing: 0.5em; font-size: 9px; }
}

/* 인사말 관리 업로드 영역 스타일 */
.greeting-upload-zone {
    width: 100%;
    min-height: 150px;
    border: 2px dashed #007bff;
    border-radius: 10px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.greeting-upload-zone.dragover {
    background-color: #e1e7ff;
    border-color: #0056b3;
    transform: scale(1.01);
}

.greeting-upload-zone p {
    margin: 10px 0;
    color: #555;
    font-size: 0.95rem;
    pointer-events: none;
}

/* 인사말 이미지 미리보기 */
#greeting-preview {
    max-width: 100%;
    max-height: 250px;
    margin-top: 10px;
    border-radius: 5px;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- [수정 및 강화] 채용 정보 및 에디터 내 삽입된 이미지 크기 조정 --- */
/* 에디터 내부, 채용 상세 페이지, 뉴스 상세 페이지 등 모든 본문 내 이미지에 적용 */
.job-management-content img, 
.job-post-detail img,
.detail-content img,
.ql-editor img, /* Quill 에디터 내부 이미지 */
#job-editor img,
#news-editor img {
    max-width: 100% !important; /* 부모 요소의 너비를 절대 넘지 않음 */
    height: auto !important;    /* 가로 세로 비율 유지 */
    display: block;
    margin: 20px auto;          /* 중앙 정렬 및 상하 여백 */
}

/* 관리자 페이지 내 선택 버튼 통일감 부여 */
.admin-file-label {
    padding: 8px 16px;
    background-color: #4e73df;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.admin-file-label:hover {
    background-color: #2e59d9;
}