body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
}

.page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px auto;
    flex-direction: column;
}

.page-container .content {
    width: 500px;
    margin: auto;
    text-align: center;
}

.page-container .content .title {
    display: block;
    font-size: 2em;
    font-weight: 200;
    color: #4c4e61;
}

.page-container .content h1 {
    font-weight: 600;
    color: #4c4e61;
}

.page-container .content p {
    color: #a3a5ae;
    font-weight: 400;
    font-size: 15px;
    margin-top: 25px;
    line-height: 1.6;
}

.cards-container {
    margin-top: 0px;
    display: grid;
    grid-template-areas: " . b ." "s b c" "s k c" ". k .";
    gap: 30px; /* Increased gap to prevent overlapping on hover */
    padding:10px;

}

.dhesectioncard {
    width: 330px;
    height: 150px;
    padding: 30px;
    border-radius: 7px;
    box-shadow: 0 6px 18px 0 rgba(187, 187, 204, 0.6588235294);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* Smoother transition */
    position: relative; /* Ensure card stays in flow */
    z-index: 1; /* Default z-index */
}

.dhesectioncard h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

.dhesectioncard p {
    color: #a3a5ae;
    font-weight: 400;
    font-size: 15px;
    margin: 20px auto 40px;
    line-height: 1.6;
}

.dhesectioncard img {
    float: right;
}

.dhesectioncard.supervisor {
    grid-area: s;
    border: 2px solid #32de84;
    text-align: center;
    background-size: 350px;
    background-image: url('/static/img/green_geom_latest.jpg');
}

.read-more {
    border: none;
    height: 30px;
    border-radius: 200px;
    padding: 5px 10px;
    color: black;
    margin-bottom: 5px;
    margin-top: 30px;
    text-transform: uppercase;
    font-size: 12px;
    border: 2px solid #32de84;
    background: white;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

/* Improved hover effect */
.dhesectioncard:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    z-index: 2; /* Bring hovered card to front */
}

.pagetitle1 {
    background: -webkit-linear-gradient(rgba(20, 80, 0, 1), rgba(178, 240, 39));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 5px;
}

@media (max-width: 375px) {
    .page-container {
        margin: 85px auto;
    }
    
    .page-container .content {
        width: 300px;
    }
    
    .page-container .content .title {
        display: block;
        font-size: 1.4em;
    }
    
    .page-container .content h1 {
        font-size: 1.4em;
    }
    
    .page-container .content p {
        margin-top: 25px;
    }
    
    .cards-container {
        margin-top: 0px;
        display: grid;
        grid-template-areas: "s" "b" "k" "c";
        gap: 60px; /* Increased gap for mobile */
    }
    
    .dhesectioncard {
        width: 310px;
        padding: 30px;
    }
    
    .dhesectioncard p {
        font-size: 13px;
        margin: 5px auto 35px;
        line-height: 1.6;
    }
    
    /* Reduce hover effect on mobile for better usability */
    .dhesectioncard:hover {
        transform: scale(1.05);
    }
}