/* Modern About Page Styles */

/* =================================
   History Section - Timeline Grid
   ================================= */
.history {
    padding: 60px 0;
    background: #f8f9fa;
}

.timeline-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-year {
    background: linear-gradient(135deg, #4A6FA5 0%, #1E3A5F 100%);
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.timeline-year span {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.timeline-content {
    padding: 40px 30px;
    background: transparent !important;
    background-color: transparent !important;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Override any background styles from other CSS files */
.timeline-card .timeline-content,
.timeline-card .timeline-content * {
    background: none !important;
    background-color: transparent !important;
}

.timeline-content .timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: none;
}

.timeline-content .timeline-icon i {
    font-size: 28px;
    color: #4A6FA5;
}

.timeline-content h3 {
    font-size: 1.5rem !important;
    color: #1E3A5F !important;
    margin-bottom: 15px;
    font-weight: 600;
    background: transparent !important;
    background-color: transparent !important;
    text-align: center;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    position: relative;
}

/* 파란색 밑줄 문제 해결 - 다른 CSS 파일에서 충돌 원인 제거됨 */


.timeline-content p {
    color: #666 !important;
    line-height: 1.6;
    font-size: 1rem !important;
    background: transparent !important;
    background-color: transparent !important;
    margin: 0;
    text-align: center;
}

/* =================================
   Organization Section - Modern Cards
   ================================= */
.organization {
    padding: 60px 0;
    background: #ffffff;
}

.org-chart-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.org-chart-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Parent Company Card */
.org-parent {
    width: 100%;
    display: flex;
    justify-content: center;
}

.org-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.parent-card {
    border: 3px solid #FFD700;
    background: linear-gradient(to bottom, #fffef5, #ffffff);
}

.subsidiary-card {
    border: 2px solid #4A6FA5;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.org-card-icon {
    background: linear-gradient(135deg, #4A6FA5 0%, #1E3A5F 100%);
    padding: 30px;
    text-align: center;
}

.parent-card .org-card-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.org-card-icon i {
    font-size: 48px;
    color: #ffffff;
}

.org-card-content {
    padding: 30px;
    text-align: center;
}

.org-card-content h3 {
    font-size: 1.4rem;
    color: #1E3A5F;
    margin-bottom: 15px;
    font-weight: 700;
}

.org-position {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.org-name {
    color: #4A6FA5;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Connection Line */
.org-connector {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #4A6FA5, rgba(74, 111, 165, 0.3));
    position: relative;
}

.org-connector::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #4A6FA5;
}

/* Subsidiaries Container */
.org-subsidiaries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 800px;
    position: relative;
}

/* =================================
   Responsive Design
   ================================= */

/* Large desktop screens */
@media (min-width: 1200px) {
    .timeline-grid {
        max-width: 1200px;
        gap: 50px;
    }
}

/* Tablet screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 800px;
    }
}

/* Force mobile layout for smaller screens */
@media (max-width: 900px) {
    .timeline-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        max-width: 100%;
    }
}
    
    .timeline-year span {
        font-size: 1.8rem;
    }
    
    .org-subsidiaries {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .org-connector::after {
        display: none;
    }
}

/* Mobile and small tablets (max-width: 768px) */
@media (max-width: 768px) {
    .history,
    .organization {
        padding: 60px 0;
    }
    
    .timeline-wrapper {
        padding: 0 20px;
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
        max-width: 100%;
    }
    
    .timeline-card {
        max-width: 100%;
    }
    
    .timeline-year {
        padding: 15px;
    }
    
    .timeline-year span {
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 20px !important;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .timeline-icon i {
        font-size: 24px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
    }
    
    /* Organization Mobile */
    .org-chart-wrapper {
        padding: 20px;
    }
    
    .org-chart-modern {
        gap: 30px;
    }
    
    .org-card {
        max-width: 100%;
    }
    
    .org-card-icon {
        padding: 20px;
    }
    
    .org-card-icon i {
        font-size: 36px;
    }
    
    .org-card-content {
        padding: 20px;
    }
    
    .org-card-content h3 {
        font-size: 1.2rem;
    }
    
    .org-position {
        font-size: 0.9rem;
    }
    
    .org-name {
        font-size: 1rem;
    }
    
    .org-connector {
        height: 40px;
    }
    
    .org-subsidiaries {
        gap: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .timeline-year span {
        font-size: 1.3rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    .org-card-content h3 {
        font-size: 1.1rem;
    }
}

/* =================================
   Dark Mode Support
   ================================= */
.theme-dark .history {
    background: var(--primary-bg);
}

.theme-dark .organization {
    background: var(--primary-bg);
}

.theme-dark .timeline-card {
    background: var(--card-bg);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.theme-dark .timeline-card:hover {
    box-shadow: 0 8px 30px rgba(110, 158, 255, 0.2);
}

.theme-dark .timeline-year {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

.theme-dark .timeline-icon {
    background: linear-gradient(135deg, rgba(110, 158, 255, 0.1) 0%, rgba(110, 158, 255, 0.2) 100%);
}

.theme-dark .timeline-icon i {
    color: var(--accent-color);
}

.theme-dark .timeline-content {
    background: transparent !important;
    background-color: transparent !important;
}

.theme-dark .timeline-content h3 {
    color: var(--text-primary) !important;
    background: transparent !important;
    background-color: transparent !important;
}

.theme-dark .timeline-content p {
    color: var(--text-secondary) !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Dark mode override for all timeline content */
.theme-dark .timeline-card .timeline-content,
.theme-dark .timeline-card .timeline-content * {
    background: none !important;
    background-color: transparent !important;
}

/* Organization Dark Mode */
.theme-dark .organization {
    background: var(--secondary-bg);
}

.theme-dark .org-card {
    background: var(--card-bg);
    box-shadow: 0 6px 30px var(--shadow-color);
}

.theme-dark .parent-card {
    border-color: #FFD700;
    background: linear-gradient(to bottom, var(--card-bg), var(--secondary-bg));
}

.theme-dark .subsidiary-card {
    border-color: var(--accent-color);
}

.theme-dark .org-card:hover {
    box-shadow: 0 10px 40px rgba(110, 158, 255, 0.2);
}

.theme-dark .org-card-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

.theme-dark .parent-card .org-card-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.theme-dark .org-card-content h3 {
    color: var(--text-primary);
}

.theme-dark .org-position {
    color: var(--text-secondary);
}

.theme-dark .org-name {
    color: var(--accent-color);
}

.theme-dark .org-connector {
    background: linear-gradient(to bottom, var(--accent-color), rgba(110, 158, 255, 0.3));
}

.theme-dark .org-connector::after {
    background: var(--accent-color);
}