/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

/* 헤더 스타일 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
    height: 70px;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 40px;
    transition: height 0.3s ease;
}

header.scrolled .main-nav ul li a {
    font-size: 15px;
    transition: font-size 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #0056b3;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-login {
    padding: 8px 15px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.btn-join {
    padding: 8px 15px;
    background: #0056b3;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

/* 히어로 섹션 스타일 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #000;
}

.hero-slider {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s ease, opacity 0.8s ease;
    display: block;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/main/main_img_slide01.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: transform 10s ease;
}

.slide.active .slide-bg {
    transform: scale(1.1);
}

.slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-content h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-pagination span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-pagination span.active {
    background-color: #fff;
    width: 30px;
    border-radius: 10px;
}

/* 슬라이더 이전/다음 버튼 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 검색 섹션 스타일 */
.search-section {
    background-color: #fff;
    padding: 10px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.sub-title {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.search-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.search-box {
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 20px;
}

.search-options {
    display: flex;
}

.search-category {
    flex: 1;
    padding-right: 20px;
    border-right: 1px solid #ddd;
}

.search-category strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.search-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.search-input-area {
    flex: 2;
    padding-left: 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.search-input-group strong {
    width: 80px;
    font-size: 16px;
}

.search-input-group select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.search-input-field {
    display: flex;
    flex: 2;
}

.search-input-field input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.btn-search {
    padding: 10px 20px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

/* 소개 섹션 스타일 */
.intro-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.intro-content {
    display: flex;
    gap: 40px;
}

.intro-left {
    flex: 1;
}

.intro-right {
    flex: 1;
}

.intro-title {
    font-size: 20px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.intro-subtitle {
    font-size: 30px;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 20px;
}

.intro-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

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

.stat-item i {
    font-size: 30px;
    color: #0056b3;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #0056b3;
    border-radius: 4px;
    color: #0056b3;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #0056b3;
    color: #fff;
}

/* 뉴스 섹션 스타일 */
.news-section {
    padding: 60px 0;
    background-color: #fff;
}

/* 섹션 스타일 */
.board-section {
    padding: 40px 0;
    background-color: #fff;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.section-header .section-title {
    margin-right: 20px;
    margin-bottom: 0;
}

.tab-container {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    background-color: #f0f0f0;
    color: #666;
}

.tab.active {
    background-color: #0056b3;
    color: #fff;
}

.more-link {
    font-size: 14px;
    color: #666;
    margin-left: auto;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.news-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.news-item a {
    display: block;
    padding: 20px;
    height: 100%;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.news-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 13px;
    color: #999;
}

.news-item.with-image a {
    display: flex;
    gap: 15px;
}

.news-content {
    flex: 2;
}

.news-image {
    flex: 1;
    min-width: 120px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.news-tabs {
    margin-top: 40px;
}

/* 서비스 섹션 스타일 */
.service-section {
    padding: 30px 0;
    background-color: #f8f8f8;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* 파트너 섹션 스타일 */
.partners-section {
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    position: relative;
}

.partners-slider {
    display: flex;
    width: 100%;
    overflow: hidden;
    will-change: transform; /* 애니메이션 성능 향상 */
    -webkit-backface-visibility: hidden; /* 크롬 렌더링 개선 */
    backface-visibility: hidden; /* 리플로우 방지 */
    transform: translate3d(0, 0, 0); /* 하드웨어 가속 활성화 */
    -webkit-transform: translate3d(0, 0, 0);
    perspective: 1000; /* 하드웨어 가속 추가 지원 */
    -webkit-perspective: 1000;
    -webkit-font-smoothing: antialiased; /* 텍스트 렌더링 개선 */
    transform-style: preserve-3d; /* 3D 렌더링 최적화 */
    -webkit-transform-style: preserve-3d;
}

.partner-item {
    flex: 0 0 auto;
    padding: 0 40px; /* 여백 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    will-change: transform; /* 개별 아이템 애니메이션 성능 향상 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    filter: grayscale(50%);
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
}

.partner-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 푸터 스타일 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-nav {
    margin-bottom: 30px;
}

.footer-nav ul {
    display: flex;
    gap: 20px;
}

.footer-nav ul li a {
    font-size: 14px;
    color: #ddd;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-info {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
}

.footer-logo {
    margin-right: 40px;
}

.footer-logo img {
    height: 40px;
    opacity: 0.8;
}

.footer-address {
    flex: 2;
}

.footer-address p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 300px;
}

.footer-links a {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
    color: #ddd;
    white-space: nowrap;
    text-align: center;
    flex: 1;
    transition: background-color 0.3s;
}

.footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #999;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 100;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .menu-toggle {
        display: block;
        font-size: 24px;
        color: #333;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-right {
        margin-top: 30px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .search-options {
        flex-direction: column;
    }
    
    .search-category {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .search-input-area {
        padding-left: 0;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        min-width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 30px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-slider {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow: hidden;
    }
    
    .partner-item {
        width: auto;
        margin-bottom: 0;
    }
    
    .footer-nav ul {
        flex-wrap: wrap;
    }
}

/* 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: modal-appear 0.3s ease;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
}

@keyframes modal-appear {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #777;
    padding: 5px;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    height: 50px;
}

.login-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.login-form label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 1;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
    font-family: 'Noto Sans KR', sans-serif;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #0056b3;
    background-color: #fff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    margin-right: 6px;
}

.remember-me label {
    position: static;
    transform: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.find-info a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
}

.find-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 15px;
    margin-bottom: 15px;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-submit:hover {
    background-color: #003d82;
}

.login-separator {
    position: relative;
    text-align: center;
    margin: 15px 0;
}

.login-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.login-separator span {
    display: inline-block;
    padding: 0 10px;
    background-color: white;
    position: relative;
    z-index: 2;
    color: #999;
    font-size: 13px;
}

.join-section {
    text-align: center;
}

.join-section p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-join-page {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-join-page:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .login-form input[type="text"],
    .login-form input[type="password"] {
        padding: 10px 15px 10px 40px;
    }
    
    .btn-submit {
        padding: 10px;
    }
}

/* 로그인 필요 팝업 스타일 */
.login-required-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-required-popup.show {
    opacity: 1;
    visibility: visible;
}

.login-required-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.login-required-popup.show .login-required-content {
    transform: translateY(0);
}

.login-required-content p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.login-required-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.popup-login-btn {
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
}

.popup-login-btn:hover {
    background-color: #003d82;
}

.popup-close-btn {
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
}

.popup-close-btn:hover {
    background-color: #e9e9e9;
} 