* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 35px;
    background: rgb(228, 220, 220);
}

.wrapper {
    max-width: 1100px;
    width: 100%;
    position: relative;

}

.wrapper i {
    height: 50px;
    width: 50px;
    background: rgb(118, 233, 118);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25 rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);

}

.wrapper i:first-child {
    left: -22px;

}

.wrapper i:last-child {
    right: -22px;

}

.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    height: 340px;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    display: flex;
    cursor: pointer;
    width: 98%;
    padding-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card .img {
    background: green;
    width: 145px;
    height: 145px;
    border-radius: 50%;

}

.card .img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
}

.card h2 {
    font-weight: 500;
    font-size: 1.56rem;
    margin: 30px 0 5px;
}

.card span {
    color: #6a6d78;
    font-size: 1.31rem;

}

@media screen and (max-width: 900px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);

    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;

    }

}

/* SEO and Accessibility Improvements - ADD THESE TO YOUR EXISTING CSS */

/* Header styling for better SEO structure */
header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #2c5f2d, #4a7c59);
    color: white;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: bold;
}

header p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 20px 0;
    background: #2c5f2d;
    color: white;
    margin-top: 30px;
    width: 100%;
}

/* Update body to accommodate header/footer */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
    background: rgb(228, 220, 220);
}

/* Wrapper adjustment for new layout */
.wrapper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 0 35px;
}

/* Focus states for accessibility */
.card:focus-within {
    outline: 2px solid #4a7c59;
    outline-offset: 2px;
}

.wrapper i:focus {
    outline: 2px solid #4a7c59;
    outline-offset: 2px;
}

/* Better responsive design for header/footer */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .wrapper-container {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 15px 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .wrapper-container {
        padding: 0 15px;
    }
}
