/* Global Styles */
:root {
    --primary-color: #0d1e38;
    /* Deep Navy */
    --secondary-color: #c5a059;
    /* Gold */
    --accent-color: #f8f9fa;
    /* Light Gray */
    --text-color: #333;
    --light-text: #fff;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #b08d4a;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.sub-logo {
    color: var(--secondary-color);
    font-weight: 300;
    font-size: 1rem;
}

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

nav a {
    font-weight: 500;
    color: var(--primary-color);
}

nav a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 4px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #0d1e38 0%, #1a3a6c 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
    /* Header height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 56, 0.7);
    /* Navy overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-top: 16px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section Common */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--accent-color);
}

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

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-header h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px auto 0;
}

/* Clickable section title (opens resume modal) */
.clickable-title {
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.clickable-title:hover {
    color: var(--secondary-color);
}

/* Resume Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 30, 56, 0.7);
    z-index: 2000;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: block;
}

.modal-box {
    position: relative;
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.modal-close:hover {
    color: var(--primary-color);
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
}

.resume-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.resume-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.resume-photo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.resume-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resume-basic {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}

.resume-basic-row {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
}

.resume-label {
    flex-shrink: 0;
    width: 70px;
    font-weight: 700;
    color: var(--primary-color);
}

.resume-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
    margin: 30px 0 15px;
}

.resume-table-wrap {
    overflow-x: auto;
    margin-bottom: 10px;
}

.resume-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 600px;
}

.resume-table th,
.resume-table td {
    border: 1px solid #e5e5e5;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.resume-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.resume-table tbody tr:nth-child(even) {
    background-color: var(--accent-color);
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
    }

    .modal-box {
        max-width: 100%;
        min-height: 100%;
        border-radius: 0;
        padding: 60px 20px 40px;
    }

    .resume-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resume-basic {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.about-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-card p {
    color: #666;
    font-size: 0.95rem;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    padding: 40px 20px;
    background-color: var(--accent-color);
    border-radius: 8px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.resume-cta {
    text-align: center;
    margin-bottom: 50px;
}

.btn-resume {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    transition: var(--transition);
}

.btn-resume:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 40px;
    display: flex;
    gap: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    font-weight: 700;
    color: #eee;
    font-family: var(--font-heading);
    line-height: 1;
}

.service-content h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-content p {
    color: #666;
    font-size: 0.95rem;
}

/* 서비스 카드 중 별도 페이지로 연결되는 카드 (정책자금 및 수출금융) */
.service-link {
    cursor: pointer;
}

.service-link:hover .service-icon {
    color: var(--secondary-color);
}

.service-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.service-link:hover .service-more i {
    transform: translateX(4px);
}

.service-more i {
    transition: var(--transition);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.contact-info p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.contact-info .highlight-name {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-info .contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.contact-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn-kakao {
    background-color: #fee500;
    color: #3c1e1e;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-kakao img {
    width: 20px;
    margin-right: 10px;
}

.btn-email {
    background-color: #1a2a44;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-email i {
    margin-right: 10px;
}

.contact-form-wrapper {
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Footer 최적화: 불필요한 공간을 모두 제거한 버전 */
.main-footer {
    background: #000;
    color: #fff;
    /* 상하 패딩을 15px로 최소화하여 높이를 대폭 줄임 */
    padding: 15px 10px;
    text-align: center;
}

.footer-social {
    /* 버튼과 아래 텍스트 사이의 간격을 8px로 설정 */
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    /* 버튼 사이의 간격도 좁힘 */
    flex-wrap: wrap;
}

.footer-social a {
    color: #fff;
    font-size: 0.85rem;
    /* 가독성을 유지하는 선에서 폰트 크기 축소 */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    /* 버튼 내부 여백을 줄여 부피감을 제거 */
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    /* 둥근 모양을 살짝 완화하여 더 깔끔하게 처리 */
    transition: var(--transition);
}

.main-footer p {
    opacity: 0.4;
    font-size: 0.7rem;
    /* 카피라이트 텍스트를 작게 배치 */
    margin: 0;
    line-height: 1;
    /* 줄 간격에 의한 추가 공간 제거 */
}

/* 모바일 전용: 더욱 타이트한 조정 */
@media (max-width: 768px) {
    .main-footer {
        padding: 12px 10px;
    }

    .footer-social {
        gap: 8px;
    }
}

/* Response */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    header {
        position: static;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 56px 0 60px;
    }

    .hero h2 {
        margin-top: 0;
        font-size: 2.2rem;
    }

    .section-header h3 {
        font-size: 1.7rem;
    }

    .about-grid,
    .services-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 30px;
    }

    .contact-btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-kakao,
    .btn-email {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        margin-top: 40px;
        padding: 30px 20px;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Book Section */
.book-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.book-image {
    flex: 1;
    text-align: center;
}

.book-image img {
    max-width: 80%;
    box-shadow: 0 20px 40px rgba(13, 30, 56, 0.2);
    border-radius: 5px;
    transition: var(--transition);
}

.book-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(13, 30, 56, 0.3);
}

.book-content {
    flex: 1;
}

.book-content h3 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.book-divider {
    margin: 20px 0;
}

.book-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.book-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.book-features span {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.book-features i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .book-features span {
        justify-content: center;
    }

    .book-content h3 {
        font-size: 2.2rem;
    }
}

/* Privacy Section Styles */
.privacy-group {
    margin-top: 15px;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-privacy-detail {
    font-size: 0.8rem;
    color: #888;
    text-decoration: underline;
    margin-left: 5px;
}

.privacy-detail-box {
    display: none;
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
}

/* Honeypot field - hidden from real visitors, left for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Form submission status message */
.form-status {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    min-height: 1.3em;
}

.form-status.success {
    color: #1e7e34;
}

.form-status.error {
    color: #c0392b;
}

/* =========================================
   Mobile Optimization (Extra)
   ========================================= */
@media (max-width: 768px) {
    .book-content h3 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .section {
        padding: 50px 20px !important;
    }

    .hero h2 {
        font-size: 2rem !important;
    }

    .contact-btns {
        flex-direction: column !important;
        width: 100% !important;
    }

    .btn-kakao,
    .btn-email {
        width: 100% !important;
        justify-content: center !important;
    }

    header .container {
        padding: 5px 20px;
    }
}
/* 이력서 모달: 이전 화면으로 돌아가기 */
.modal-back {
    position: absolute;
    top: 18px;
    left: 20px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.9rem;
    color: var(--primary-color, #0d1e38);
    cursor: pointer;
    font-family: inherit;
}
.modal-back:hover { background: #f3f3f3; }
.modal-footer { text-align: center; margin-top: 36px; }
.modal-back-bottom { position: static; padding: 10px 24px; }
@media (max-width: 768px) { .modal-back { top: 14px; left: 14px; font-size: 0.85rem; } }

/* 블로그 기록 카드 */
.writing-lead { margin-top: 16px; color: #666; line-height: 1.7; }
.writing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.writing-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e9ef; border-top: 3px solid var(--secondary-color); border-radius: 6px; padding: 26px 22px; text-decoration: none; color: var(--text-color); transition: var(--transition); }
.writing-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(13, 30, 56, 0.12); }
.writing-icon { font-size: 1.6rem; color: var(--secondary-color); margin-bottom: 14px; }
.writing-tag { font-size: 0.8rem; color: #8a7a52; font-weight: 700; letter-spacing: 0.02em; }
.writing-card h4 { margin: 6px 0 10px; font-size: 1.1rem; line-height: 1.4; color: var(--primary-color); }
.writing-card p { margin: 0 0 18px; font-size: 0.92rem; line-height: 1.65; color: #555; flex: 1; }
.writing-more { font-size: 0.88rem; font-weight: 700; color: var(--primary-color); }
.writing-more i { font-size: 0.75rem; margin-left: 4px; }
@media (max-width: 1024px) { .writing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .writing-grid { grid-template-columns: 1fr; gap: 14px; } .writing-card { padding: 22px 20px; } }

.stat-number sup { font-size: 0.6em; font-weight: 700; vertical-align: super; line-height: 0; margin-left: 1px; }

/* 상단 메뉴: 감사·응원 한마디(금색) */
nav a.nav-gold { color: var(--secondary-color); }
nav a.nav-gold:hover { color: var(--primary-color); }

/* 흰 배경 위 금색 글자: 대비 확보용 진한 금색(어두운 히어로 위 글자는 원래 금색 유지) */
:root { --gold-text: #8a6a1f; }
nav a.nav-gold, .service-more, .section-subtitle { color: var(--gold-text); }
.pf-hero .section-subtitle { color: var(--secondary-color); }
