.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #007bff;
}

.category-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-container {
    max-width: 600px;
    margin: 0 auto;
}

.image-container {
    width: 100%;
    height: 400px; /* Adjust this value as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Light grey background */
}

#gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.gallery-controls button {
    padding: 5px 10px;
}

.member {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.member:hover {
    transform: translateY(-5px);
}

.member-image {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.member-image img {
    width: 80%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-content h2 {
    color: #333;
    margin-top: 0;
    font-size: 24px;
}

.member-content h3 {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
}

.bio p {
    text-align: justify;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 767px) {
    .member-image {
        margin-bottom: 20px;
    }
    .member-image img {
        width: 60%;
        max-width: 180px;
    }
}
