.custom-container {
    display: flex;
    margin: 30px;
    padding: 12px;
    color: #000;
    font-size: 20px;
    max-width: 100%;
    margin: auto;
    box-sizing: border-box;
    position: relative;
    align-items: center;
    justify-content: center;
}

.post-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.coach-card {
    position: relative;
    margin: 25px; /* Space between cards */
    width: 25vw; /* Width relative to the viewport width */
    height: 80vh; /* Height relative to the viewport height */
    border-radius: 10px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 5;
    transition: transform 0.2s;
    overflow: hidden;
    background-color: #fff;
}

.coach-card:hover {
    transform: scale(1.05);
}

.coach-card img {
    width: 100%;
    height: 75%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    background-color: #f0f0f0;
}

.coach-card div {
    padding: 0 10px; /* Removed top padding to close gap with image */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #000;
    height: 25%;
}

.coach-card .time {
    font-size: 0.8em;
    color: red;
    margin: 0; /* Removed bottom margin to close gap with title */
}

.coach-card h2 {
    margin: 5px 0 0 0; /* Added top margin to separate from time */
    padding: 0;
    font-size: 1.3em;
    text-align: left;
    color: black;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 1024px) {
    .coach-card {
        width: 40vw; /* Adjust width for smaller screens */
        height: 60vw; /* Adjust height for smaller screens */
    }
}

@media (max-width: 767px) {
    .coach-card {
        width: 95vw; /* Adjust width for mobile screens */
        height: 120vw;
        margin: 15px auto; /* Center card with margin */
    }
    .custom-container {
        padding: 10px;
}
.coach-card:hover {
    transform: none;
}
    .coach-card img {
    height: 80%;
}
}

@media (min-width: 2000px) {
.custom-container {
    padding: 24px;
    font-size: 40px;
}


.coach-card {
    position: relative;
    margin: 50px; /* Space between cards */
    width: 25vw; /* Width relative to the viewport width */
    height: 80vh; /* Height relative to the viewport height */
    border-radius: 20px;
}

.coach-card:hover {
    transform: scale(1.05);
}

.coach-card img {
    width: 100%;
}

.coach-card div {
    padding: 0 20px; /* Removed top padding to close gap with image */
}


.coach-card h2 {
    margin: 10px 0 0 0; /* Added top margin to separate from time */
}


}