/* About Page Specific Enhancements */

/* Organization Structure - Modern Card Design */
.organization {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.organization .section-header {
    margin-bottom: 60px;
}

.org-structure {
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Tree Structure Design */
.org-chart-simple {
    position: relative;
    padding: 40px 0;
}

/* Organization levels with modern layout */
.org-level {
    margin-bottom: 60px;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.org-level:first-child {
    margin-bottom: 100px;
}

/* Desktop: Keep horizontal layout for second level */
@media (min-width: 1025px) {
    .org-level:nth-child(2) {
        display: flex;
        justify-content: center;
        gap: 80px;
        flex-wrap: nowrap;
    }
}

/* Medium desktop screens */
@media (max-width: 1200px) and (min-width: 1025px) {
    .org-level {
        gap: 40px;
    }
    
    .org-level:nth-child(2) {
        gap: 60px;
    }
    
    .org-box {
        max-width: 340px;
        min-width: 280px;
        padding: 35px 25px;
    }
    
    .org-box h3,
    .org-box h4 {
        font-size: 1.6rem;
    }
    
    .org-box p {
        font-size: 1rem;
    }
}

/* Modern connecting lines */
.org-level:first-child::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 50px;
    background: linear-gradient(180deg, #1e3a5f 0%, rgba(30,58,95,0.2) 100%);
    border-radius: 2px;
}

/* Horizontal connector */
.org-level:nth-child(2)::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 30%;
    right: 30%;
    height: 4px;
    background: #1e3a5f;
    border-radius: 2px;
}

/* Modern Organization Cards */
.org-box {
    background: #ffffff;
    color: #1e3a5f;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 380px;
    min-width: 320px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%) border-box;
}

/* CEO card - premium styling */
.org-box.ceo {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, #FFD700 0%, #FFA500 100%) border-box;
    box-shadow: 0 20px 40px rgba(255,215,0,0.2);
}

/* Card inner design */
.org-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.org-box.ceo::before {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.org-box:hover::before {
    opacity: 0.1;
}

.org-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Icon containers */
.org-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    position: relative;
    box-shadow: 0 10px 30px rgba(74,111,165,0.3);
}

.org-box.ceo .org-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

/* Text styling */
.org-box h3,
.org-box h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1e3a5f;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.org-box p {
    font-size: 1.1rem;
    margin: 0;
    color: #6c757d;
    font-weight: 600;
}

/* Add role badges */
.role-badge {
    display: inline-block;
    background: rgba(74,111,165,0.1);
    color: #4a6fa5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.org-box.ceo .role-badge {
    background: rgba(255,215,0,0.2);
    color: #FFA500;
}

/* Connection nodes */
.org-level:nth-child(2)::after,
.org-level:nth-child(2) .org-box::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #1e3a5f;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(30,58,95,0.1);
}

.org-level:nth-child(2)::after {
    top: -58px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.org-level:nth-child(2) .org-box:first-child::before {
    top: -58px;
    left: 50%;
    transform: translateX(-50%);
}

.org-level:nth-child(2) .org-box:last-child::before {
    top: -58px;
    left: 50%;
    transform: translateX(-50%);
}

/* Vertical connectors for subsidiaries */
.org-level:nth-child(2) .org-box::after {
    content: '';
    position: absolute;
    top: -54px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 54px;
    background: linear-gradient(180deg, rgba(30,58,95,0.2) 0%, #1e3a5f 100%);
    z-index: -1;
}

/* Background decoration */
.organization::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74,111,165,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .org-level {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .org-level:nth-child(2)::before {
        display: none;
    }
    
    .org-level:first-child::after {
        display: none;
    }
    
    .org-level:nth-child(2) .org-box::after,
    .org-level:nth-child(2) .org-box::before,
    .org-level:nth-child(2)::after {
        display: none;
    }
    
    .org-box {
        max-width: 100%;
        width: 100%;
    }
}

/* Timeline styles moved to about-modern.css to avoid conflicts */

/* Philosophy Section Enhancement */
.philosophy {
    padding: 80px 0;
    background: #ffffff;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(74,111,165,0.1);
}

.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4a6fa5 0%, #1e3a5f 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.philosophy-item:hover::before {
    transform: scaleX(1);
}

.philosophy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.philosophy-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(74,111,165,0.3);
}

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

.philosophy-item h3 {
    font-size: 1.6rem;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.philosophy-item p {
    color: #6c757d;
    line-height: 1.7;
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Timeline styles moved to about-modern.css to avoid conflicts */
    
    /* Organization adjustments for tablet */
    .org-box {
        padding: 35px 30px;
        max-width: 350px;
        min-width: 300px;
    }
    
    .org-level {
        gap: 50px;
    }
    
    .org-level:nth-child(2) {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Timeline styles moved to about-modern.css to avoid conflicts */
    
    /* Organization Section Mobile Optimization */
    .organization {
        padding: 40px 0;
    }
    
    .org-structure {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .org-chart-simple {
        padding: 20px 0;
    }
    
    .org-level {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
        align-items: center;
    }
    
    .org-level:first-child {
        margin-bottom: 50px;
    }
    
    .org-box {
        padding: 25px 20px;
        max-width: 280px;
        min-width: 260px;
        width: 100%;
        margin: 0 auto;
    }
    
    .org-box h3,
    .org-box h4 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .org-box p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .org-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
        font-size: 28px;
    }
    
    .role-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-top: 10px;
    }
    
    /* Hide connecting lines on mobile */
    .org-level:first-child::after,
    .org-level:nth-child(2)::before,
    .org-level:nth-child(2)::after,
    .org-level:nth-child(2) .org-box::before {
        display: none;
    }
    
    .sub-org {
        grid-template-columns: 1fr;
    }
    
    .sub-org::before {
        display: none;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    /* Timeline styles moved to about-modern.css to avoid conflicts */
    
    .org-box {
        padding: 20px 15px;
        max-width: 100%;
        min-width: auto;
    }
    
    .org-box h3,
    .org-box h4 {
        font-size: 1.1rem;
    }
    
    .org-box p {
        font-size: 0.9rem;
    }
}

/* Additional spacing fix for about page */
.company-overview {
    padding-top: 120px !important;
}