/* General Styling */
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    text-align: center;
    background: rgb(247, 247, 247);
}

.container {
    width: 90%;
    margin: auto;
    padding: 20px;
}

h1 {
    color: #0c0000;
    margin-bottom: 20px;
    font-weight: 900;
}

/* Team Section Grid */
.team {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four members per row */
    gap: 20px;
    justify-content: center;
}

/* Individual Member Box */
.member {
    background: rgb(206, 203, 203);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(2, 2, 2, 0.2);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

/* Hover Effect on Member */
.member:hover {
    transform: translateY(-5px);
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor:auto;
}

/* Image Styling */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

/* Hover Effect - Darken Image */
.image-container:hover img {
    opacity: 0.1;
}

/* Overlay Text */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 10px;
}

/* Show Overlay Text on Hover */
.image-container:hover .overlay {
    opacity: 1;
}

/* Name & Role Styling */
h3 {
    margin-top: 10px;
    font-size: 20px;
    color: #000102;
}

p {
    font-size: 17px;
    color: #000302;
}
.back-button {
    position: fixed; /* Keeps it in place while scrolling */
    top: 8px;
    left: 8px;
    padding: 10px 15px;
    font-size: 16px;
    color: rgb(8, 8, 8);
    background-color: #ffffff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.3s;
}

.back-button:hover {
    background-color: #030303;
    color: rgb(255, 255, 255);
}


/* Responsive Design */
@media (max-width: 900px) {
    .team {
        grid-template-columns: repeat(2, 1fr); /* Two members per row */
    }
}

@media (max-width: 600px) {
    .team {
        grid-template-columns: repeat(1, 1fr); /* One member per row */
    }
}
