/* ========== COLOR VARIABLES ========== */
:root {
    --primary-orange: #f99820;
    --white: #ffffff;
    --dark-orange: #e08510;
    --dark-navy: #09264a;
    --light-gray: #f8f9ff;
    --gray-text: #666;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--dark-navy);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HERO SECTION (SAME AS ABOUT PAGE) ========== */
.departments-hero {
    height: 60vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/banner_fec.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: zoomIn 20s ease-out infinite;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 38, 74, 0.85), rgba(9, 38, 74, 0.7));
    z-index: 2;
}

.departments-hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(249, 152, 32, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 4;
    color: var(--white);
}

.hero-tag {
    display: inline-block;
    background: rgba(249, 152, 32, 0.2);
    color: var(--primary-orange);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
}

/* ========== DEPARTMENTS MAIN ========== */
.departments-main {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(249, 152, 32, 0.1);
    color: var(--primary-orange);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.section-header p {
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Departments Grid */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Department Card */
.dept-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 1px; */
    background: var(--primary-orange);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dept-card:hover::before {
    transform: scaleX(1);
}

.dept-icon {
    width: 70px;
    height: 70px;
    background: rgba(249, 152, 32, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.dept-card:hover .dept-icon {
    background: var(--primary-orange);
}

.dept-icon i {
    font-size: 2rem;
    color: var(--primary-orange);
    transition: var(--transition);
}

.dept-card:hover .dept-icon i {
    color: var(--white);
}

.dept-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-navy);
}

.dept-card p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.dept-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dept-stats span {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.dept-stats i {
    color: var(--primary-orange);
    margin-right: 5px;
}

.dept-btn {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dept-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== DEPARTMENT FEATURES ========== */
.dept-features {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.features-image img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--primary-orange);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-badge i {
    font-size: 1.5rem;
    color: var(--dark-navy);
}

.floating-badge span {
    font-weight: bold;
    color: var(--dark-navy);
}

.features-content {
    padding: 20px;
}

.features-content h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 20px;
}

.features-content p {
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 25px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.feature span {
    font-size: 1rem;
    color: var(--dark-navy);
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-navy) 0%, #0a2d5a 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.cta-btn {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 152, 32, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .departments-main {
        padding: 50px 0;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dept-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .dept-features {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .floating-badge {
        padding: 10px 20px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .dept-card {
        padding: 25px 20px;
    }
    
    .dept-icon {
        width: 60px;
        height: 60px;
    }
    
    .dept-icon i {
        font-size: 1.5rem;
    }
    
    .dept-card h3 {
        font-size: 1.1rem;
    }
    
    .dept-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .feature-list {
        gap: 10px;
    }
}

/* Department Services List */
.dept-services-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px 0;
}

.dept-services-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.dept-services-list li:last-child {
    border-bottom: none;
}

.dept-services-list li i {
    color: #27ae60;
    font-size: 14px;
    flex-shrink: 0;
}

/* Adjust card styles for better fit */
.dept-card {
    padding: 30px 25px;
}

.dept-card p {
    display: none; /* Hide default paragraph */
}

/* Make stats more compact */
.dept-stats span {
    font-size: 13px;
}