/* Departments Page Specific Styles */

/* Page Hero */
.page-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(190, 3, 0, 0.9), rgba(160, 2, 0, 0.9)), 
                url('../assets/images/manufacture/IMG_4092.HEIC') center/cover;
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.page-hero .hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Departments Overview */
.departments-overview {
    padding: 6rem 0;
    background-color: white;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.department-card {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
}

.department-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #be0300;
    background-color: white;
}

.dept-icon {
    margin-bottom: 2rem;
}

.dept-icon i {
    font-size: 4.5rem;
    color: #be0300;
    transition: transform 0.3s ease;
}

.department-card:hover .dept-icon i {
    transform: scale(1.1);
}

.department-card h3 {
    font-size: 1.6rem;
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.department-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.dept-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #be0300;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dept-link:hover {
    gap: 1rem;
    color: #a00200;
}

.dept-link::after {
    content: '←';
    transition: transform 0.3s ease;
}

.dept-link:hover::after {
    transform: translateX(-3px);
}

/* Department Details */
.department-detail {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.department-detail.alternate {
    background-color: white;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.dept-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dept-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #be0300, #a00200);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dept-icon-large i {
    font-size: 3.5rem;
    color: white;
}

.dept-title h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.dept-title p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

.dept-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.dept-description h4 {
    font-size: 1.4rem;
    color: #be0300;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.dept-description ul {
    list-style: none;
    margin-bottom: 2rem;
}

.dept-description li {
    padding: 0.8rem 0;
    color: #555;
    border-bottom: 1px solid #e9ecef;
    line-height: 1.6;
}

.dept-description li:last-child {
    border-bottom: none;
}

.dept-description li::before {
    content: '▸';
    color: #be0300;
    font-weight: bold;
    margin-left: 0.8rem;
    font-size: 1.2rem;
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* HSE Highlight */
.hse-highlight {
    background: linear-gradient(135deg, #be0300, #a00200);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.hse-highlight h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.hse-highlight p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* Production Features */
.production-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.production-features .feature-item {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.department-detail.alternate .production-features .feature-item {
    background-color: #f8f9fa;
}

.production-features .feature-item:hover {
    transform: translateY(-10px);
}

.production-features .feature-item i {
    font-size: 3rem;
    color: #be0300;
    margin-bottom: 1.5rem;
}

.production-features .feature-item h4 {
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 1rem;
}

.production-features .feature-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Organizational Chart */
.org-chart {
    padding: 6rem 0;
    background-color: white;
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.chart-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.chart-box {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.chart-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.chart-box.management {
    background: linear-gradient(135deg, #be0300, #a00200);
    color: white;
    border-color: #be0300;
    min-width: 300px;
}

.chart-box.management:hover {
    border-color: #a00200;
}

.chart-box.production:hover {
    border-color: #28a745;
}

.chart-box.commercial:hover {
    border-color: #007bff;
}

.chart-box.hse:hover {
    border-color: #ffc107;
}

.chart-box.hr:hover {
    border-color: #6f42c1;
}

.chart-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.chart-box.management i {
    color: white;
}

.chart-box.production i {
    color: #28a745;
}

.chart-box.commercial i {
    color: #007bff;
}

.chart-box.hse i {
    color: #ffc107;
}

.chart-box.hr i {
    color: #6f42c1;
}

.chart-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.chart-box.management h4 {
    color: white;
}

.chart-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: #666;
}

.chart-box.management p {
    color: rgba(255, 255, 255, 0.9);
}

/* Connection Lines (CSS-only approach) */
.chart-level:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 3rem;
    background: linear-gradient(to bottom, #be0300, transparent);
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero .hero-content p {
        font-size: 1.1rem;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .department-card {
        padding: 2rem;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .dept-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .dept-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .dept-icon-large i {
        font-size: 2.5rem;
    }
    
    .dept-title h2 {
        font-size: 2rem;
    }
    
    .production-features {
        grid-template-columns: 1fr;
    }
    
    .chart-level {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-box {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 4rem 0 3rem;
    }
    
    .page-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .department-card {
        padding: 1.5rem;
    }
    
    .dept-icon i {
        font-size: 3.5rem;
    }
    
    .dept-header {
        gap: 1rem;
    }
    
    .dept-icon-large {
        width: 70px;
        height: 70px;
    }
    
    .dept-icon-large i {
        font-size: 2rem;
    }
    
    .dept-title h2 {
        font-size: 1.8rem;
    }
    
    .production-features .feature-item {
        padding: 2rem;
    }
    
    .chart-box {
        padding: 2rem;
        min-width: 200px;
    }
    
    .chart-box.management {
        min-width: 220px;
    }
}
