/* Container styling */
.container {
    padding: 3rem 0;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Grid layout */
.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 0 1rem;
}

/* Card styling */
.card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 400px;
    justify-content: space-between;
    animation: fadeIn 0.5s ease-in;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Animation definition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card body styling */
.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333;
    justify-content: flex-end;
}

/* Text styling */
.card-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

.card-name {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #555;
}

.card-text,
.bio-text {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
}

/* Image styling */
.card-img-top {
    width: 40%;
    height: 150px;
    object-fit: cover;
    align-self: center;
    margin-top: 20px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Center the text content */
.text-center {
    text-align: center;
}

/* See More button styling */
.see-more-btn {
    background-color: #92163A;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    display: block;
    text-align: center;
    margin: 10px auto 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.see-more-btn:hover {
    background-color: #75132F;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.see-more-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(146, 22, 58, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .row {
        grid-template-columns: repeat(3, 1fr);
    }
    .card {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
        display: flex;
        justify-content: center; /* Center the columns horizontally */
        flex-wrap: wrap; /* Ensure columns wrap properly */
    }
    .card {
        min-height: 420px;
        position: center;
    }
    .card-img-top {
        height: 120px;
    }
    .see-more-btn {
        padding: 0.6rem 1.2rem;
    }
    .col {
        flex: 0 0 auto; /* Allow the column to size based on content */
        max-width: 100%; /* Ensure the column doesn’t exceed the container width */
        text-align: center; /* Center the content inside the card */
    }
}

@media (max-width: 576px) {
    .row {
        grid-template-columns: 1fr;
        display: flex;
        justify-content: center; /* Center the columns horizontally */
        flex-wrap: wrap; /* Ensure columns wrap properly */
    }
    .card {
        min-height: 450px;
        text-align: center;
    }
    .card-img-top {
        height: 100px;
    }
    .see-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .container {
        padding: 2rem 0;
    }
    .col {
        flex: 0 0 auto; /* Allow the column to size based on content */
        max-width: 100%; /* Ensure the column doesn’t exceed the container width */
        text-align: center; /* Center the content inside the card */
    }
    
}