/* Modern Organizational Structure Styles */
/* Equal height row containers */
.team-style-one .row {
    display: flex;
    flex-wrap: wrap;
}

.team-style-one .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Base organizational box styles */
.org-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.org-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fe0000, transparent);
    transition: left 0.6s ease;
}

.org-box:hover::before {
    left: 100%;
}

.org-box:hover {
    border-color: rgba(254, 0, 0, 0.3);
    box-shadow: 0 20px 40px rgba(254, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #fef7f7 100%);
}

.org-header {
    margin-bottom: 20px;
    flex-shrink: 0;
    position: relative;
}

.org-header i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.org-box:hover .org-header i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.org-header h4 {
    color: #2c3e50 !important;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.org-header h5 {
    color: #2c3e50;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.org-header h6 {
    color: #2c3e50;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.org-content {
    margin-top: 25px;
    color: #64748b;
    line-height: 1.8;
    font-size: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
}

.org-content p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.org-section-title h4 {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(254, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.org-section-title h4:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(254, 0, 0, 0.4);
}

.org-section-title h4:before,
.org-section-title h4:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(254, 0, 0, 0.3));
}

.org-section-title h4:before {
    left: -80px;
}

.org-section-title h4:after {
    right: -80px;
    background: linear-gradient(90deg, rgba(254, 0, 0, 0.3), transparent);
}

/* Core Department Specific */
.department-box {
    min-height: 320px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.department-box .org-header h5 {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.department-box:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

/* Support Department Specific */
.support-box {
    min-height: 320px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.support-box .org-header h5 {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-box:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%);
}

/* Additional Support Teams Specific */
.additional-box {
    min-height: 320px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.additional-box .org-header h6 {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.additional-box .org-content p {
    font-size: 14px;
}

.additional-box:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fff4e6 100%);
}

/* Team Image Placeholder Styles */
.team-image-placeholder {
    border: 3px dashed rgba(254, 0, 0, 0.3);
    border-radius: 25px;
    padding: 80px 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 0, 0, 0.05) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: scale(0);
}

.team-image-placeholder:hover::before {
    transform: scale(1);
}

.team-image-placeholder:hover {
    border-color: #fe0000;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(254, 0, 0, 0.15);
}

.team-image-placeholder .placeholder-content {
    position: relative;
    z-index: 2;
}

.team-image-placeholder .fa-image {
    transition: all 0.4s ease;
    color: #fe0000;
    opacity: 0.6;
}

.team-image-placeholder:hover .fa-image {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
    color: #cc0000;
}

.team-image-placeholder h4 {
    transition: all 0.3s ease;
    color: #2c3e50;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.team-image-placeholder:hover h4 {
    color: #fe0000;
    transform: translateY(-2px);
}

.team-image-placeholder p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.team-image-placeholder span {
    background: linear-gradient(135deg, #fe0000 0%, #cc0000 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(254, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.team-image-placeholder:hover span {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(254, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .org-box {
        margin-bottom: 30px;
        padding: 30px 20px;
        min-height: 280px !important;
        border-radius: 15px;
    }
    
    .org-header h4 {
        font-size: 22px;
    }
    
    .org-header h5 {
        font-size: 18px;
        min-height: auto !important;
    }
    
    .org-header h6 {
        font-size: 16px;
        min-height: auto !important;
    }
    
    .org-content p {
        font-size: 14px;
    }
    
    .org-section-title h4 {
        font-size: 16px;
        padding: 12px 30px;
    }
    
    .org-section-title h4:before,
    .org-section-title h4:after {
        display: none;
    }
    
    .team-image-placeholder {
        padding: 50px 30px;
        border-radius: 20px;
    }
    
    .org-header i {
        padding: 15px;
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .org-box {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .org-header i {
        padding: 12px;
        font-size: 24px !important;
    }
    
    .team-image-placeholder {
        padding: 40px 20px;
    }
    
    .team-image-placeholder .fa-image {
        font-size: 48px !important;
        margin-bottom: 15px !important;
    }
    
    .team-image-placeholder h4 {
        font-size: 20px;
        margin-bottom: 10px !important;
    }
    
    .team-image-placeholder p {
        font-size: 14px;
    }
    
    .team-image-placeholder span {
        font-size: 12px;
        padding: 10px 20px;
    }
}

/* Icon fallbacks for industrio icons */
.industrio-icon-leadership:before { content: "👑"; }
.industrio-icon-engineering:before { content: "⚙️"; }
.industrio-icon-sales:before { content: "📊"; }
.industrio-icon-calculator:before { content: "🔢"; }
.industrio-icon-factory:before { content: "🏭"; }
.industrio-icon-procurement:before { content: "📦"; }
.industrio-icon-project:before { content: "📋"; }
.industrio-icon-finance:before { content: "💰"; }
.industrio-icon-document:before { content: "📄"; }
.industrio-icon-hr:before { content: "👥"; }
.industrio-icon-technology:before { content: "💻"; }
.industrio-icon-quality:before { content: "✅"; }

/* Team Image Sweep Effect */
.team-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.team-image-container .sweep-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: left 0.6s ease-in-out;
    pointer-events: none;
    z-index: 2;
}

.team-image-container:hover .sweep-overlay {
    left: 100%;
}

.team-image-container:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
