/* 서비스 페이지 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    line-height: 1.8;
}

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

/* 페이지 헤더 */
.page-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    padding: 80px 0 60px;
    text-align: center;
    color: #ffffff;
}

.services-header {
    position: relative;
    overflow: hidden;
}

.services-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('../../img/services.jpg') center/cover no-repeat;
    z-index: 0;
}

.services-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%); */
    z-index: 1;
}

.services-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.page-header .subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

/* 서비스 네비게이션 */
.service-nav {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    padding: 12px 0;
    width: 180px;
    background-color: #f8f9fa;
    color: #333333;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

/* 웹 버전에서만 호버 효과 (768px 초과) */
@media (min-width: 769px) {
    .nav-btn:hover {
        background-color: #dc143c;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    }
}

.nav-btn:active {
    background-color: #dc143c;
    color: #ffffff;
    transform: scale(0.95);
}

.nav-btn.active {
    background: linear-gradient(135deg, #dc143c 0%, #dc143c 100%) !important;
    color: #ffffff !important;
    border-color: #dc143c !important;
}

/* 서비스 섹션 */
.service-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.service-section.alternate {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.service-header {
    text-align: center;
    margin-bottom: 50px;
}

.service-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.service-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc143c 0%, #dc143c 100%);
    border-radius: 2px;
}

.service-subtitle {
    font-size: 20px;
    color: #666666;
    margin-top: 20px;
}

.service-content {
    max-width: 1100px;
    margin: 0 auto;
}

.content-box {
    background-color: #ffffff;
    padding: 40px 50px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.content-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dc143c;
    text-align: justify;
}

.content-box p {
    font-size: 17px;
    line-height: 2;
    color: #333333;
    text-align: center;
}

/* 소개 박스는 양쪽 정렬 */
.intro-box p {
    text-align: justify;
}

/* 기능 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background-color: #ffffff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.feature-item h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dc143c;
}

.feature-item ul {
    list-style: none;
    padding: 0;
}

.feature-item ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.feature-item ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #dc143c;
    font-weight: bold;
}

.feature-item ul li strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* 서브 리스트 */
.sub-list {
    margin-top: 10px;
    margin-left: 0;
    padding-left: 0;
}

.sub-list li {
    font-size: 15px;
    padding-left: 20px;
    margin-bottom: 8px;
}

.sub-list li::before {
    content: '•';
    color: #667eea;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header .subtitle {
        font-size: 16px;
    }

    .service-nav {
        padding: 15px 0;
        top: 60px;
    }

    .nav-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 0;
        width: calc(50% - 5px);
        font-size: 14px;
    }

    /* 모바일에서 hover 효과 제거 (터치 디바이스) */
    .nav-btn:hover:not(.active) {
        background-color: #f8f9fa !important;
        color: #333333 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* 모바일에서 active 상태 명확하게 */
    .nav-btn.active {
        background: linear-gradient(135deg, #dc143c 0%, #dc143c 100%) !important;
        color: #ffffff !important;
        border-color: #dc143c !important;
        transform: none !important;
    }
    
    .nav-btn.active:hover {
        background: linear-gradient(135deg, #dc143c 0%, #dc143c 100%) !important;
        color: #ffffff !important;
        transform: none !important;
    }

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

    .service-header h2 {
        font-size: 28px;
    }

    .service-subtitle {
        font-size: 17px;
    }

    .content-box {
        padding: 30px 25px;
    }

    .content-box h3 {
        font-size: 20px;
    }

    .content-box p {
        font-size: 15px;
        text-align: left;
    }

    .intro-box p {
        text-align: left;
    }

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

    .feature-item {
        padding: 30px 25px;
    }

    .feature-item h4 {
        font-size: 19px;
    }

    .feature-item ul li {
        font-size: 15px;
    }

    .sub-list li {
        font-size: 14px;
    }
}
