/* Premium About Us page styling */

.about-page-section {
    background-color: #f8fafc;
}

/* Department Card grid styling */
.dept-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    background-color: #0d1f2d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none !important;
}

.dept-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    opacity: 0.65;
}

/* Interactive hover elements */
.dept-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 31, 45, 0.2) 30%, rgba(25, 100, 162, 0.85) 100%);
    transition: all 0.4s ease;
    z-index: 2;
}

.dept-card-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 25px;
    z-index: 3;
    text-align: center;
}

.dept-card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.dept-card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(13, 31, 45, 0.15);
}

.dept-card:hover .dept-card-img {
    transform: scale(1.08);
    opacity: 0.8;
    filter: brightness(0.9);
}

.dept-card:hover .dept-card-overlay {
    background: linear-gradient(180deg, rgba(25, 100, 162, 0.4) 0%, rgba(13, 31, 45, 0.9) 100%);
}

.dept-card:hover .dept-card-icon {
    opacity: 1;
    transform: translateY(0);
}

.dept-card:hover .dept-card-title {
    transform: translateY(0);
}

/* Bottom action buttons spacing on mobile viewports */
.bottom-action-buttons {
    width: 100%;
}

.bottom-action-buttons a {
    margin-bottom: 12px;
    width: 100%;
}

@media (min-width: 576px) {
    .bottom-action-buttons {
        flex-direction: row !important;
    }
    .bottom-action-buttons a {
        margin-bottom: 0;
        width: auto;
    }
}
