/* Organization Page Styles */

/* ===== Quick Menu (인사말/연혁 페이지와 동일) ===== */
.quick-menu {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Category Header */
.quick-menu-header {
    width: 100%;
    text-align: left;
    padding-bottom: 1rem;
    padding-left: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Navigation */
.quick-nav {
    width: 100%;
}

.nav-section {
    width: 100%;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-nav li {
    position: relative;
    width: 100%;
}

.quick-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    position: relative;
    border-left: 3px solid transparent;
}

.quick-nav .dot {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-nav .label {
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    background: rgba(0, 102, 204, 0.03);
    color: var(--text-dark);
}

.quick-nav a:hover .dot {
    background: var(--text-medium);
    transform: scale(1.2);
}

/* Active state */
.quick-nav li.active a {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 232, 0.05));
    color: var(--primary-color);
    font-weight: 700;
    border-left: 3px solid var(--primary-color);
    transform: translateX(2px);
}

.quick-nav li.active .dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
}

.quick-nav li.active .label {
    font-weight: 700;
}

/* Quick Menu Footer (Logo) */
.quick-menu-footer {
    width: 100%;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 102, 204, 0.2);
    text-align: left;
    padding-left: 0.75rem;
}

.quick-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 0;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-logo:hover {
    transform: scale(1.05);
}

.quick-logo img {
    width: 90px;
    height: auto;
    filter: brightness(1);
    transition: all 0.3s ease;
}

.quick-logo:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Hide on mobile */
@media (max-width: 1024px) {
    .quick-menu {
        display: none;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-badge i {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Organization Section */
.organization-section {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.organization-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Organization Header */
.organization-header {
    text-align: center;
    margin-bottom: 5rem;
}

.organization-title {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.organization-title .highlight {
    font-weight: 700;
    color: var(--primary-color);
}

.organization-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===== New Organization Chart Design ===== */
.org-chart-new {
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Chart Header */
.chart-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.chart-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Chart Content */
.chart-content {
    position: relative;
}

/* Tiers */
.tier {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    position: relative;
}

.tier-top {
    margin-bottom: 0;
}

.tier-middle {
    margin-bottom: 0;
}

.tier-bottom {
    margin-top: 0;
}

/* Position Cards */
.position-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 180px;
    position: relative;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    height: 6px;
    background: #ddd;
}

.card-body {
    padding: 1.5rem 1rem;
    text-align: center;
}

.position-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 1rem;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.dept-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.8rem;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
}

.position-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
}

.position-card span {
    font-size: 0.8rem;
    color: #888;
}

/* Card Colors - 이미지와 동일하게 */
.board-color { background: #5B9BD5; }
.ceo-color { background: #4A90E2; }
.advisor-color { background: #5B9BD5; }
.executive-color { background: #4A90E2; }
.dept-color { background: #8C8C8C; }

/* Main Card (CEO) */
.main-card {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.2);
}

/* Side Cards */
.side-card {
    opacity: 0.9;
}

/* Executive Card */
.executive-card {
    min-width: 200px;
}

/* Department Cards */
.dept-card {
    min-width: 180px;
}

/* Connectors */
.tier-connector {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.connector-line {
    width: 2px;
    height: 40px;
    background: #4A90E2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.connector-dot {
    width: 8px;
    height: 8px;
    background: #4A90E2;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -4px;
}

/* Branch Connector */
.tier-connector.branches {
    position: relative;
    height: 60px;
}

.tier-connector.branches .connector-line {
    height: 30px;
    top: 0;
}

.branch-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    width: 100%;
}

/* Horizontal line */
.branch-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    height: 2px;
    background: #4A90E2;
}

/* Vertical branches */
.branch-line {
    position: absolute;
    width: 2px;
    height: 30px;
    background: #4A90E2;
    top: 0;
}

.branch-line.left {
    left: calc(50% - 220px);
}

.branch-line.center {
    left: 50%;
    transform: translateX(-50%);
}

.branch-line.right {
    right: calc(50% - 220px);
}

/* ===== Core Values Inline Style ===== */
.core-values-inline {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fbff, white);
    border-radius: 20px;
}

.values-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.values-title i {
    color: #0066cc;
    font-size: 1.5rem;
}

/* Values Row */
.values-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* Value Item */
.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: scale(1.05);
}

/* Value Circle */
.value-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 232, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0066cc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.value-item:hover .value-circle {
    background: linear-gradient(135deg, #0066cc, #00a8e8);
    color: white;
    transform: rotate(360deg);
}

/* Value Content */
.value-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
}

.value-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

/* Value Divider */
.value-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #ddd, transparent);
    margin: 0 0.5rem;
}

/* Animation */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .values-row {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .value-divider {
        display: none;
    }
    
    .tier {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-card {
        transform: scale(1);
    }
    
    .branch-container {
        display: none;
    }
    
    .connector-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .organization-title {
        font-size: 1.8rem;
    }
    
    .organization-subtitle {
        font-size: 1rem;
    }
    
    .values-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .value-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .position-card {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .org-chart-new {
        padding: 2rem 1rem;
    }
    
    .chart-title {
        font-size: 1.5rem;
    }
    
    .value-content p {
        white-space: normal;
    }
}
