/* ==========================================================================
   1. Base & Reset Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   2. Header & Navigation Layout
   ========================================================================== */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0A2540;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #4A5568;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00D4B2;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #0A2540;
    transition: 0.3s;
}

/* ==========================================================================
   3. Main Slider Infrastructure (슬라이드 이미지 엔진)
   ========================================================================== */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.65);
    z-index: 1;
}

/* 개별 슬라이드 배너 이미지 매핑 주소 */
.slide:nth-child(1) {
    background-image: url('slide1.jpg');
}

.slide:nth-child(2) {
    background-image: url('slide2.jpg');
}

.slide:nth-child(3) {
    background-image: url('slide3.jpg');
}

.slide h2, .slide p, .slide .btn-cta {
    position: relative;
    z-index: 2;
}

.slide h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 900px;
    word-break: keep-all;
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    color: #E2E8F0;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: #00D4B2;
    color: #0A2540;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    background-color: #00bda0;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background 0.3s;
}

.slide-btn:hover {
    background: rgba(255,255,255,0.4);
}

.prev { left: 20px; }
.next { right: 20px; }
/* ==========================================================================
   4. Business Grid Layout (01~18 서비스 카드 디자인)
   ========================================================================== */
.services {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.services h3 {
    font-size: 2.2rem;
    color: #0A2540;
    margin-bottom: 10px;
}

.services-subtitle {
    color: #718096;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 35px 25px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #E2E8F0;
    transition: transform 0.3s, box-shadow 0.3s, border-top-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top-color: #00D4B2;
}

.highlight-card {
    background: linear-gradient(135deg, #0A2540 0%, #1A365D 100%);
    color: #fff;
    border-top: none;
}

.highlight-card h4 {
    color: #00D4B2 !important;
}

.highlight-card .lao-text, .highlight-card .kor-text {
    color: #E2E8F0;
    border-bottom-color: rgba(255,255,255,0.1);
}

.card h4 {
    font-size: 1.25rem;
    color: #0A2540;
    margin-bottom: 20px;
    font-weight: 700;
}

.lao-text, .kor-text {
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.lao-text {
    color: #2D3748;
    border-bottom: 1px dashed #E2E8F0;
}

.kor-text {
    color: #4A5568;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   5. Footer & Contact Layout (구글 지도 & QR 그리드)
   ========================================================================== */
.footer-landing {
    background-color: #0A2540;
    color: #fff;
    padding: 80px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0 20px;
}

.footer-info-box {
    flex: 1;
    min-width: 300px;
}

.footer-map-box {
    flex: 1;
    min-width: 300px;
}

.footer-title {
    font-size: 1.4rem;
    color: #00D4B2;
    margin-bottom: 25px;
}

.company-address {
    color: #CBD5E0;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.qr-section h5, .footer-map-box h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

.qr-grid {
    display: flex;
    gap: 20px;
}

.qr-card {
    text-align: center;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.qr-placeholder span {
    color: #718096;
    font-size: 0.75rem;
    font-weight: 700;
}

.qr-label {
    font-size: 0.8rem;
    margin-top: 8px;
    color: #A0AEC0;
}

.map-responsive {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-email-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-label {
    color: #A0AEC0;
}

.email-link {
    color: #00D4B2;
    text-decoration: none;
    font-weight: 700;
}

.copyright-bar {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 25px 20px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

.copyright-bar .sub-text {
    margin-top: 5px;
    color: #4A5568;
}

/* ==========================================================================
   6. Contact Modal Pop-up (이메일 우회 전송 윈도우)
   ========================================================================== */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.email-modal-box {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    background-color: #0A2540;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-body-form {
    padding: 25px;
}

.form-group-item {
    margin-bottom: 20px;
}

.form-group-item label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2D3748;
}

.form-group-item input, .form-group-item textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E0;
    border-radius: 5px;
    font-size: 0.95rem;
}

.form-group-item textarea {
    height: 120px;
    resize: none;
}

.modal-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #00D4B2;
    color: #0A2540;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-submit-btn:hover {
    background-color: #00bda0;
}

/* ==========================================================================
   7. Responsive Design (모바일 레이아웃 최적화)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .slide h2 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   8. Service Card Icons Restoration (서비스별 아이콘 이미지 복구)
   ========================================================================== */
.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    border-radius: 8px;
    background-color: #f0f4f8;
}

/* 01. HR Consulting 아이콘 (사람/조직) */
.card:nth-child(1) .card-icon::before {
    content: "👥";
}

/* 02. Business & Management 아이콘 (차트/성장) */
.card:nth-child(2) .card-icon::before {
    content: "📊";
}

/* 03. Government Relations 아이콘 (관공서/기둥) */
.card:nth-child(3) .card-icon::before {
    content: "🏛️";
}

/* 04. Inbound & Outbound 아이콘 (비행기/여행) */
.card:nth-child(4) .card-icon::before {
    content: "✈️";
}

/* 05. Real Estate Brokerage 아이콘 (빌딩/부동산) */
.card:nth-child(5) .card-icon::before {
    content: "🏢";
}

/* 06. MCN & Social Media 아이콘 (스마트폰/격자매트릭스) */
.card:nth-child(6) .card-icon::before {
    content: "📱";
}

/* 07. MICE International 아이콘 (회의/마이크) */
.card:nth-child(7) .card-icon::before {
    content: "🎙️";
}

/* 08. Medical & Wellness 아이콘 (웰니스/하트) */
.card:nth-child(8) .card-icon::before {
    content: "❤️";
}

/* 09. Coworking Space 아이콘 (공유 데스크/노트북) */
.card:nth-child(9) .card-icon::before {
    content: "💻";
}

/* 10. Asset & Facility 아이콘 (시설관리/렌치) */
.card:nth-child(10) .card-icon::before {
    content: "🔧";
}

/* 11. General Import-Export 아이콘 (무역/지구본) */
.card:nth-child(11) .card-icon::before {
    content: "🌐";
}

/* 12. Renewable Energy 아이콘 (친환경/새싹) */
.card:nth-child(12) .card-icon::before {
    content: "🌱";
}

/* 13. Investment Licensing 아이콘 (도장/계약서) */
.card:nth-child(13) .card-icon::before {
    content: "📜";
}

/* 14. Premium Printing 아이콘 (인쇄/프린터) */
.card:nth-child(14) .card-icon::before {
    content: "🖨️";
}

/* 15. Concierge & Logistics 아이콘 (의전/자동차) */
.card:nth-child(15) .card-icon::before {
    content: "🚗";
}

/* 16. Visa & Stay Permits 아이콘 (여권/도장) */
.card:nth-child(16) .card-icon::before {
    content: "🛂";
}

/* 17. Other Business Activities 아이콘 (비즈니스 백) */
.card:nth-child(17) .card-icon::before {
    content: "💼";
}

/* 18. Business Collaboration Inquiry 아이콘 (악수/협력) */
.card:nth-child(18) .card-icon::before {
    content: "🤝";
}

/* 강조 카드 내 아이콘 배경 톤 미세 조정 */
.highlight-card .card-icon {
    background-color: rgba(255, 255, 255, 0.15);
}
/* ==========================================================================
   9. Mobile Overflow Absolute Fix (모바일 화면 폭 넘침 현상 원천 차단)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 1. 푸터 전체 영역의 바깥 여백을 제로화하여 물리적 탈출 차단 */
    .footer-landing {
        padding: 40px 0 20px 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* 2. 가로 Flex 배열을 강제로 세로 정렬(column)로 고정하고 좌우 패딩 축소 */
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. 내부 박스들의 고정 최소 너비를 해제하고 부모 폭에 100% 종속 */
    .footer-info-box,
    .footer-map-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* 기존에 걸려있던 300px 강제 한계를 0으로 파괴 */
        flex: none !important;
        box-sizing: border-box !important;
    }

    /* 4. 주소 텍스트가 길어 우측 벽을 뚫고 나가는 현상 방지 (자동 줄바꿈 강제) */
    .company-address {
        width: 100% !important;
        word-break: break-all !important;
        white-space: normal !important;
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    /* 5. QR 코드 그리드가 가로로 찢어지며 폰 화면을 탈출하는 현상 집중 교정 */
    .qr-section {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .qr-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 화면비에 맞춰 3등분 자동 축소 */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .qr-card {
        width: 100% !important;
        min-width: 0 !important;
    }

    .qr-placeholder {
        width: 100% !important;
        height: 80px !important; /* 세로 높이도 모바일에 맞게 슬림화 */
        padding: 5px !important;
    }

    .qr-placeholder span {
        font-size: 0.65rem !important; /* 내부 글자 크기 축소하여 깨짐 방지 */
    }

    /* 6. 구글 지도 레이아웃 가로 폭 폭주 차단 */
    .map-responsive {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        box-sizing: border-box !important;
    }

    .map-responsive iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}

