.hero__section {
    margin-top: 4.25rem;
    background: linear-gradient(
            90deg,
            #0f0d0a 30.51%,
            rgba(72, 59, 51, 0.073) 96.76%
        ),
        url("https://res.cloudinary.com/deklnqsqn/image/upload/v1733734648/mve4nnmw7xviwacgm6p9.png");

    color: white;
    background-position: center;
    height: 50vh;
    min-height: 600px;
    display: grid;
    place-content: center;
}
.hero__section .badge {
    border-radius: 8px;
    text-align: center;
    padding: 0.5rem 1.5rem;
    background-color: #81401c;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 1.2rem;
}
.hero__section ul {
    list-style-type: none;
}
.hero__section ul li {
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.375rem;
    display: flex;
    align-items: start;
    gap: 5px;
    margin-bottom: 0.7rem;
}
.hero__section ul li span:first-child {
    display: flex;
    align-items: center;
}
.hero__section ul li:last-child {
    grid-column-start: 1;
    grid-column-end: 4;
}
.hero__section h1 {
    font-weight: 300;
    line-height: 2rem;
    font-size: 1.875rem;
}
.hero__section .container > div:nth-of-type(1) {
    margin: 1rem 0 1.5rem;
}
.hero__section .container a {
    background-color: var(--primary);
    width: 100%;
    /* width: 221px; */
    text-decoration: none;
    color: white;
    font-size: 0.84rem;
    line-height: 1.146rem;
    padding: 0.8rem 2.5rem;
    text-align: center;
    display: inline-block;
}

/* upcoming events */
.upcoming-events__section {
    padding: 2rem 0;
    background-color: #f8f8f9;
}
.upcoming-events__section .container h2 {
    text-align: center;
    font-weight: 300;
    font-size: 1.5rem;
}
.upcoming-events__section .container .grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}
.upcoming-events__section .event-card {
    background-color: #fff;
}
.upcoming-events__section .event-card > div:first-child {
    background-image: url("https://res.cloudinary.com/deklnqsqn/image/upload/v1733744511/stransact/e4vvzahx7uzwq8jkcauo.png");
    background-position: center;
    background-size: cover;
    height: 100px;
}
.upcoming-events__section .event-card h3 {
    font-size: 1.2rem;
    padding: 1rem 1rem 0;
    font-weight: 300;
}
.upcoming-events__section .event-card ul {
    list-style-type: none;
    padding: 0.5rem 1rem 0;
    grid-template-columns: 1fr;
    display: grid;

}
.upcoming-events__section .event-card ul li {
    font-size: 14px;
    line-height: 1.875rem;
    padding: 0.2rem 0;
}
.upcoming-events__section .event-card div:last-of-type {
    padding: 0.8rem 1rem 2rem;
    position: relative;
    width: fit-content;
}

.upcoming-events__section .event-card a span {
    transform: translate(0px, 2px);
    transition: all linear 0.2s;
    position: absolute;
    right: 3px;
}
.upcoming-events__section .event-card a:hover span {
    transform: translate(5px, 2px);
    position: absolute;
    transition: all linear 0.2s;
}
.upcoming-events__section .event-card a {
    text-decoration: none;
    color: #000000;
    font-size: 0.9rem;
    color: var(--primary);
}


/* recent-events section */
.search-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.search {
    border: 1px solid #C5C5C5;
    color: #54575E;
    font-size: 14px;
    padding: 0.3rem 0.3rem 0.3rem 2rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 0.3rem;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    fill: #54575E;
    pointer-events: none;
}

.recent-events__section {
    background-color: #f8f8f9;
    padding: 2.2rem 0;
}
.recent-events__section .container:last-of-type {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 2rem;
}
.recent-events__section .container:last-of-type .recent-event-card {
    background-color: #ffffff;
}
.recent-events__section .recent-event-card > div {
    width: 100%;
    height: 170px;
    background-color: #7f7f78;
}
.recent-events__section .container:first-child div:last-of-type {
   margin-top: 1.2rem;
}

.recent-events__section .container:first-child h3 {
    font-weight: 300;
    font-size: 1.5rem;
}
.recent-events__section .recent-event-card h5 {
    padding: 1rem;
    color: black;
    font-weight: 300;
}
@media (min-width: 768px) {
    /* hero section */
    .hero__section .container a {
        width: 221px;
    }
    .hero__section ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-width: 400px;
        gap: 3px;
    }
    .hero__section h1 {
        line-height: 3.75rem;
        font-size: 2.625rem;
    }
    .hero__section ul li {
        align-items: center;
    }
    .hero__section {
        display: block;
    }

    /* upcoming events */
    .upcoming-events__section .container .grid-section {
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
    .upcoming-events__section {
        padding: 4rem 0;
    }
    .upcoming-events__section .container h2 {
        font-size: 2.5rem;
    }

    .upcoming-events__section .event-card ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .search {
        font-size: 16px;
        padding: 0.45rem 0.5rem 0.45rem 2.5rem;
    }

    .search-icon {
        left: 0.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    /* recent events */
    .recent-events__section {
        padding: 4rem 0;
    }
    .recent-events__section .container:last-of-type {
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
    .recent-events__section .container:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .recent-events__section .container:first-child h3 {
        font-size: 2rem;
    }
    .recent-events__section .container:first-child input {
        width: auto;
    }
    .recent-events__section .container:first-child div:last-of-type {
        margin-top: 0;
     }
     .recent-events__section .container:first-child input:last-of-type {
         margin-top: 0;
     }
}
