/* Department System Styles */

.departments-archive-page,
.single-department-page {
    background: #fdfdfd;
}

/* Department Hero */
.dept-hero {
    background: #fff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.dept-hero .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #444;
    /* Dark gray for centered title */
    margin: 0;
    letter-spacing: 1px;
}

/* Department Grid Section */
.departments-archive-page .dept-grid-section {
    padding: 60px 0;
    background: #fdfdfd;
}

.departments-archive-page .dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Department Card - Reference Match */
.departments-archive-page .department-card-item {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    /* Slight radius */
    overflow: hidden;
    transition: all 0.4s ease;
}

.departments-archive-page .dept-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.departments-archive-page .dept-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transition: all 0.4s ease;
    z-index: 1;
}

.departments-archive-page .dept-card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    transition: all 0.4s ease;
}

.departments-archive-page .department-card-item .dept-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.departments-archive-page .dept-accent-bar {
    width: 25px;
    height: 3px;
    background: #E31E24;
    /* Red accent as requested */
    margin-top: 8px;
    transition: all 0.3s ease;
}

/* Hover Effects */
.department-card-item:hover {
    transform: translateY(-5px);
}

.department-card-item:hover .dept-card-overlay {
    height: 100%;
    background: rgba(227, 30, 36, 0.4);
    /* Subtle red tint on hover */
}

.department-card-item:hover .dept-accent-bar {
    width: 60px;
    background: #fff;
    /* Switch accent color on hover for better visibility */
}

.department-card-item:hover .dept-title {
    transform: translateY(-5px);
}


/* Single Department Page - Red Reference Style */
.single-department-page {
    background: #fff;
    color: #444;
}

.dept-hero-alt {
    background-color: #f8f9fa;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: left;
    position: relative;
    /* border-bottom: 4px solid #E31E24; Removed in favor of overlay look */
}

.dept-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 30, 36, 0.9);
    /* Strong Red Overlay */
    z-index: 1;
}

.dept-hero-inner {
    position: relative;
    z-index: 2;
}

.page-title-hero {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    /* White text on red overlay */
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
}

.dept-breadcrumb-container {
    background: #f1f3f5;
    padding: 15px 0;
}

.dept-breadcrumbs-nav {
    font-size: 0.9rem;
    color: #777;
}

.dept-breadcrumbs-nav a {
    color: #E31E24;
    text-decoration: none;
}

.dept-flex-container {
    display: flex;
    gap: 50px;
    padding: 60px 0;
}

/* Sidebar Styling */
.dept-sidebar-specialties {
    flex: 0 0 320px;
}

.specialties-card {
    background: #fff;
}

.specialties-title {
    color: #0056b3;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.specialties-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialties-list li {
    border-bottom: 1px solid #e9ecef;
}

.specialties-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.specialties-list li a i {
    font-size: 14px;
    color: #adb5bd;
}

.specialties-list li:hover a,
.specialties-list li.active a {
    color: #E31E24;
}

.specialties-list li:hover a i,
.specialties-list li.active a i {
    color: #E31E24;
    transform: translateX(3px);
}

/* Content Area */
.dept-content-main {
    flex: 1;
}

.main-content-heading {
    font-size: 2rem;
    color: #0056b3;
    font-weight: 700;
    margin-bottom: 30px;
}

.dept-main-image-wrapper {
    margin-bottom: 35px;
}

.dept-ref-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.dept-rich-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-top: 25px;
}

.dept-sub-heading {
    font-size: 1.8rem;
    color: #0056b3;
    margin: 40px 0 20px;
    font-weight: 700;
}

.dept-bullet-list {
    list-style: none;
    padding: 0;
}

.dept-bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.dept-bullet-list li::before {
    content: '•';
    color: #E31E24;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 992px) {
    .dept-flex-container {
        flex-direction: column;
    }

    .dept-sidebar-specialties {
        flex: 0 0 auto;
    }

    .page-title-hero {
        font-size: 2.2rem;
    }
}