@import url(http://fonts.googleapis.com/css?family=Raleway:400,700,500);

:root {
    --yellow: #FF8C00;
    --dark: #2f313a;
    --trans: all 0.4s ease 0s;
}

body {
    font-family: "Lato", Arial, Helvetica, serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

#services {
    padding: 50px 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: auto;
    line-height: 1.5;
}

/* Offer List */
.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    list-style: none;
}

/* Offer Item */
.member {
    width: 90%; /* More flexible width */
    max-width: 555px; /* Prevents it from being too wide */
    background: linear-gradient(to bottom right, #FF8C00, #ffffff);
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--trans);
}

.member a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    transition: var(--trans);
}

.thumb {
    flex: 0 0 70px;
    width: 70px; /* Remove percentage to avoid incorrect calculations */
    height: 70px;
    border-radius: 50%; /* Keeps it circular */
    overflow: hidden;
    background: var(--dark);
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure image fits properly */
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the circular area without stretching */
    border-radius: 50%;
    display: block;
}


/* Offer Details */
.description {
    flex: 1;
    text-align: left;
}

h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
    padding: 0px 0px 0px 10px;
}

.description p {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 5px 0;
    padding: 0px 0px 5px 10px;
}

.co-funder::after {
    content: attr(data-badge); /* Use the data-badge attribute for content */
    font-size: 10px;
    font-weight: bold;
    background: var(--yellow);
    color: var(--dark);
    padding: 3px 15px;
    position: absolute;
    top: -10px;
    right: 1px;
    transform: skew(-20deg);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hover Effect */
.member:hover {
    background: #ffcc00;
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .team {
        flex-direction: column;
    }

    .member {
        max-width: 100%;
    }

    .thumb {
        margin-right: 10px;
    }
}

/* Extra Fix for Smaller Screens */
@media (max-width: 600px) {
    .member {
        width: 100%; /* Ensures full width on small screens */
        max-width: 100%;
    }
}