/* ========================================
   GREETING PAGE STYLES - FINAL
   여백 1/2 축소 + 배경 이미지
   ======================================== */

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

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hero Section with Background Image */
.greeting-hero {
    position: relative;
    min-height: 45vh;
    background-image: url('../../images/aptech_greeting.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 30px 40px 30px;
    overflow: hidden;
    margin-top: 0;
}

.greeting-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.greeting-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.greeting-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.greeting-hero-content p {
    font-family: 'Inter', 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

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

/* Sub Navigation */
.sub-navigation {
    background: white;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.sub-nav-container {
    display: flex;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 20px;
}

.sub-nav-item {
    flex: 1;
    padding: 20px 15px;
    text-decoration: none;
    color: #2d3436;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    white-space: nowrap;
    font-family: 'Inter', 'Noto Sans', sans-serif;
}

.sub-nav-item:not(:first-child) {
    border-left: 1px solid #f1f3f4;
}

.sub-nav-item:hover {
    color: #6c757d;
    border-bottom-color: #f58f27;
}

.sub-nav-item.active {
    color: #6c757d;
    font-weight: 600;
    border-bottom-color: #f58f27;
}

/* Main Content Section */
.greeting-content {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.greeting-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(71, 85, 105, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(100, 116, 139, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.greeting-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.greeting-image {
    flex: 0.8;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.greeting-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.greeting-image img {
    width: 100%;
    height: 850px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.greeting-text {
    flex: 1.2;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease 0.3s;
}

.greeting-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.greeting-label {
    color: #f58f27;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.greeting-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.greeting-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: #6c757d;
    margin: 0 0 40px 0;
    line-height: 1.3;
}

.greeting-body {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3436;
    margin-bottom: 40px;
    font-family: 'Inter', 'Noto Sans', sans-serif;
}

.greeting-body p {
    margin: 0 0 24px 0;
}

.greeting-body p:last-child {
    margin-bottom: 0;
}

.greeting-signature {
    text-align: right;
    margin-top: 50px;
}

.signature-title {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.signature-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .greeting-hero {
        min-height: 40vh;
        padding: 100px 20px 30px 20px;
    }
    
    .greeting-hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .greeting-hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Sub Navigation Mobile */
    .sub-nav-container {
        overflow: visible;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        scroll-snap-type: none;
        justify-content: center;
        margin: 0 auto;
        max-width: 520px;
    }
    
    .sub-nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .sub-nav-item {
        font-size: 14px;
        padding: 16px 8px;
        flex: 1;
        min-width: 0;
        flex-shrink: 1;
    }
    
    /* Content Mobile */
    .greeting-content {
        padding: 60px 0;
    }
    
    .greeting-container {
        padding: 0 20px;
        flex-direction: column;
        gap: 30px;
    }
    
    .greeting-image {
        display: none;
    }
    
    .greeting-text {
        order: 1;
    }
    
    .greeting-label {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .greeting-title {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .greeting-subtitle {
        font-size: 42px;
        margin-bottom: 30px;
    }
    
    .greeting-body {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 30px;
    }
    
    .greeting-signature {
        margin-top: 30px;
    }
    
    .signature-title {
        font-size: 14px;
    }
    
    .signature-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .sub-nav-item {
        font-size: 13px;
        padding: 14px 6px;
    }
}

@media (max-width: 360px) {
    .sub-nav-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }
    
    .sub-nav-item {
        font-size: 12px;
        padding: 12px 4px;
        flex: none;
        min-width: 80px;
        flex-shrink: 0;
    }
}
