/* =========================================
   DEPARTMENT PAGES PROFESSIONAL STYLING
   النخيل السبع التجارية - Seven Palms Trading
   Inspired by Saudi Government Design Patterns
   ========================================= */

/* Enhanced Page Header with Hero Image Support */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30l15-15v30l-15 15-15-15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Department Hero Backgrounds */
.dept-it-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_it_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

.dept-ops-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_ops_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

.dept-catering-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_catering_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

.dept-medical-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_medical_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

.dept-marine-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_marine_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

.dept-utilities-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_utilities_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

.dept-finance-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_finance_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

.dept-general-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%), url('../assets/dept_general_hero.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 5rem !important;
}

/* Enhanced Department Icon */
.department-icon {
    width: 100px !important;
    height: 100px !important;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #14b8a6 100%) !important;
    border-radius: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem !important;
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.4) !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.department-icon i {
    width: 50px !important;
    height: 50px !important;
    color: white !important;
}

/* Enhanced Vision & Mission Cards */
.vm-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
}

.vm-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-secondary);
    transition: width 0.4s ease;
}

.vm-card:hover::after {
    width: 100%;
}

/* Enhanced Manager Card */
.manager-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.manager-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.manager-image {
    width: 280px;
    height: 320px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(13, 148, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.manager-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.manager-image i {
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.9);
}

.manager-message {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border-right: 5px solid var(--color-secondary);
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.manager-message::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 5rem;
    color: rgba(13, 148, 136, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Enhanced Service Items */
.service-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.service-item:hover {
    transform: translateX(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 148, 136, 0.3);
}

[dir="ltr"] .service-item:hover {
    transform: translateX(8px);
}

.service-item i {
    color: var(--color-secondary);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* CTA Section Enhancement */
.cta-section {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Vision 2030 Badge */
.vision-2030-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.05));
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    justify-content: center;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-secondary);
}

.breadcrumb span {
    color: white;
}

/* Department Statistics */
.dept-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dept-stat {
    text-align: center;
}

.dept-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    display: block;
}

.dept-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .dept-it-header,
    .dept-ops-header,
    .dept-catering-header,
    .dept-medical-header,
    .dept-marine-header,
    .dept-utilities-header,
    .dept-finance-header,
    .dept-general-header {
        padding: 8rem 0 3rem !important;
    }

    .department-icon {
        width: 80px !important;
        height: 80px !important;
    }

    .department-icon i {
        width: 40px !important;
        height: 40px !important;
    }

    .dept-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .manager-card {
        grid-template-columns: 1fr !important;
    }

    .manager-image {
        width: 200px;
        height: 240px;
    }
}