/* ===================================
   Department Page Specific Styles
   =================================== */

/* Department Hero Section */
.dept-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding-top: 70px;
    overflow: hidden;
}

.dept-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 89, 163, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.dept-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.dept-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.dept-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.dept-breadcrumb a {
    color: var(--white);
    transition: color 0.2s ease;
}

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

.dept-hero-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dept-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.dept-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.dept-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

/* Department Overview Section */
.dept-overview {
    padding: 4rem 0;
    background-color: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.overview-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.overview-main h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.overview-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.overview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-box h3 i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray);
    color: var(--text-color);
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.skill-list li i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Department Goals Section */
.dept-goals {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.goal-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.goal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.goal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.goal-icon i {
    font-size: 2.25rem;
    color: var(--white);
}

.goal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.goal-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* Department Courses Section */
.dept-courses {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.courses-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.course-category {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    color: var(--accent-color);
}

.course-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.course-card:last-child {
    margin-bottom: 0;
}

.course-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.course-card.featured {
    border-left: 4px solid var(--accent-orange);
    background: linear-gradient(to right, rgba(230, 126, 34, 0.05), var(--white));
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-code {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
}

.course-credits {
    padding: 0.4rem 1rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.course-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    text-align: justify;
}

.course-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Career Section */
.dept-career {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.career-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.career-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.career-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.career-icon i {
    font-size: 2rem;
    color: var(--white);
}

.career-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.career-list {
    list-style: none;
}

.career-list li {
    padding: 0.65rem 0;
    padding-left: 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
}

.career-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Research Section */
.dept-research {
    padding: 4rem 0;
    background-color: var(--white);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.research-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.research-item:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.research-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.research-icon i {
    font-size: 2rem;
    color: var(--white);
}

.research-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.research-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* CTA Section */
.dept-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .dept-hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .goals-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .dept-hero {
        min-height: 40vh;
    }
    
    .dept-hero-icon {
        font-size: 3.5rem;
    }
    
    .dept-hero-title {
        font-size: 2rem;
    }
    
    .dept-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .overview-main h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .course-category {
        padding: 1.5rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
}