@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* Define the fade-in animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        /* Start slightly below */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* End at the original position */
    }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: white;
    animation: fadeUp 1.5s ease-in-out;

}

.hero {
    position: relative;
    height: 90vh;
    /* Adjust as needed */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/departments_page/dprtment_hero_bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-text {
    position: absolute;
    font-size: 4rem;
    font-weight: bold;
    z-index: 1;
    margin: 0 10px;
}

@media screen and (max-width: 590px) {
    .hero-text {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 430px) {
    .hero-text {
        font-size: 3rem;
        padding: 20px;
    }
}

@media screen and (max-width:340px) {
    .hero-text {
        font-size: 2.5rem;
        /* padding: 20px; */
    }
}

.departments {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 80px 0 60px;
    text-align: center;
}

.departments-head {
    font-size: 3rem;
    color: #061d3c;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bolder;
    padding: 0 10px 0 10px;

}

.departments-subhead {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    padding: 0 20px 0 20px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 20px 0; */
}

/* Department Highlights */
.department-highlights {
    text-align: center;
    margin-bottom: 40px;
    /* background: linear-gradient(135deg, #a8dadc, #457b9d); */
    background: linear-gradient(135deg, #e0ecde, #e0ecde);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
}

.department-highlights h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #061d3c;
    margin-bottom: 10px;
}

.department-highlights p {
    font-size: 1rem;
    color: #e9ecef;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.department-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.department-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #1d3557;
    font-weight: 600;
}

.department-card p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Each Department Section */
.department-section {
    margin-top: 40px;
}

.department-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.department-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.department-item img {
    flex: 1;
    width: 100%;
    object-fit: cover;
    max-height: 220px;
    min-height: 200px;
    min-width: 200px;
}

.department-content {
    flex: 2;
    padding: 20px;
}

.department-content h2 {
    font-size: 2rem;
    color: #1d3557;
    font-weight: bold;
    margin-bottom: 15px;
}

.department-content p {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #343a40;
}

/* .department-content a {
    text-decoration: none;
    color: #457b9d;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

.department-content a:hover {
    color: #1d3557;
} */

@media (max-width: 768px) {
    .department-item {
        flex-direction: column;
    }
}


@media (max-width: 960px) {
    .departments-head {
        font-size: 2.7rem;
    }

    .department-highlights h2 {
        font-size: 1.8rem;
    }

    .department-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .departments-subhead {
        font-size: 0.9rem;
    }

    .departments-head {
        font-size: 2.2rem;
    }

    .department-highlights {
        padding: 10px;
    }

    .department-highlights h2 {
        font-size: 1.5rem;
    }

    .department-highlights p {
        font-size: 0.9rem;
    }

    .department-card h3 {
        font-size: 1rem;
    }

    .department-card p {
        font-size: 0.9rem;
    }

    .department-content h2 {
        font-size: 1.5rem;
    }

    .department-content p {
        font-size: 0.9rem;
    }
}