/* appCommon.css - 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066cc, #ff6b35);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

a {
  text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    position: relative;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 10px 10px;
    display: block;
}

.nav-menu a:hover {
    color: #0066cc;
}

/* Submenu Styles */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.submenu a:hover {
    background: #f8f9fa;
}

/* 언어 선택기 스타일 - 네비게이션 내부 드랍다운으로 변경 */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.lang-dropdown-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.current-lang {
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #666;
}

.lang-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    min-width: 120px;
    overflow: hidden;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    color: #333;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: #e3f2fd;
    color: #0066cc;
    font-weight: 600;
}

.lang-option:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin: 15px 0;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 0 5px;
}

/* Content Area */
.content-area {
    margin-top: 70px;
    min-height: calc(100vh - 160px);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.6;
}

.section-sub h3 {
   color: #0066cc;
   font-size: 1.8rem;
   margin: 20px 0px 10px 0px;
}

.section-sub-desc {
    color: #0066cc;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: center;
}

.section-sub h4 {
   color: #0066cc;
   font-size: 1.3rem;
   margin: 20px 0px 10px 0px;
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: solid 1px #ab95ae5e;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Image Styles */

.fit-image {
    width: 100%;
    height: 400px;
    object-fit:cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.dummy-image {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-image {
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 40px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Tab Navigation - 모바일에서 스크롤 가능하게 개선 */
.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-nav button {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.tab-nav button.active,
.tab-nav button:hover {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Timeline 스타일 개선 - 세로선이 원형 중간에서 시작 */
.timeline {
    position: relative;
    padding-left: 70px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0066cc;
}

.timeline-year {
    position: absolute;
    left: -70px;
    top: 0;
    width: 50px;
    text-align: center;
    font-weight: bold;
    color: #0066cc;
    font-size: 1.1rem;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 10px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 5px;
    color: #666;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    font-size: 1.2rem;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About 페이지 전용 스타일 */
.intro-text h3 {
    color: #0066cc;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-list {
    padding-left: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    color: #666;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    border: solid 1px #ab95ae5e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #0066cc;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
  margin-top: 10px;
}

.leader-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.leader-photo {
  display: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.leader-info h5 {
    color: #0066cc;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.leader-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.leader-background {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* 모바일에서 네비게이션 컨테이너 레이아웃 조정 */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 10px;
    }

    .nav-menu {
        display: none;
    }

    .logo {
        display: flex;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        color: #0066cc;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-right: 20px
    }

    /* 모바일에서 언어 선택기 위치 조정 */
    .language-selector {
        margin-left: 10px;
        margin-right: 10px;
        order: 2; /* 햄버거 메뉴 바로 좌측에 위치 */
    }

    .lang-dropdown-btn {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 15px;
    }

    .lang-dropdown-menu {
        right: 0;
        min-width: 100px;
    }

    .lang-option {
        padding: 8px 12px;
        font-size: 12px;
    }




    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0 20px 0
    }

    /* 모바일에서 탭 메뉴 개선 */
    .tab-nav {
        justify-content: flex-start;
        padding: 0 15px;
    }

    .tab-nav button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* 모바일에서 타임라인 개선 */
    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-year {
        position: static;
        margin-bottom: 10px;
        width: auto;
        text-align: left;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -9px;
    }

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .leader-card {
        flex-direction: column;
        text-align: center;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    .nav-menu > li:hover .submenu {
        display: block;
    }
}

/* Utility Classes */
.no-show { display: none; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-size-12 { font-size: 12pt; }
.font-size-13 { font-size: 13pt; }
.font-size-14 { font-size: 14pt; }
.font-size-15 { font-size: 15pt; }
.font-size-16 { font-size: 16pt; }
.font-size-17 { font-size: 17pt; }
.font-size-18 { font-size: 18pt; }
.font-size-19 { font-size: 19pt; }
.fs-12 { font-size: 12pt; }
.fs-13 { font-size: 13pt; }
.fs-14 { font-size: 14pt; }
.fs-15 { font-size: 15pt; }
.fs-16 { font-size: 16pt; }
.fs-17 { font-size: 17pt; }
.fs-18 { font-size: 18pt; }
.fs-19 { font-size: 19pt; }
.fs-20 { font-size: 20pt; }
.fs-25 { font-size: 25pt; }
.mb-0 { margin-bottom: 0px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mt-0 { margin-top: 0px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }

.pt-0 { padding-top: 0px; }
.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }
.pt-40 { padding-top: 40px; }
.pt-50 { padding-top: 50px; }
.pt-60 { padding-top: 60px; }

.pb-0 { padding-bottom: 0px; }
.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.pb-30 { padding-bottom: 30px; }
.pb-40 { padding-bottom: 40px; }
.pb-50 { padding-bottom: 50px; }
.pb-60 { padding-bottombottom: 60px; }

/* 이미지 로딩 상태 스타일 */
img.loading {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.error {
    opacity: 0.7;
    filter: grayscale(1);
}
