.events {
    background: linear-gradient(to right, white, rgb(222, 242, 255));
    margin-top: 0;
}

.events-container {

    justify-content: center;
    padding: 50px 150px;
}

.section-header {
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 700px;
}

.icon-events {
    background-color: rgba(203, 222, 242, 0.351);
    padding: 10px;
    border-radius: 12px;
    height: fit-content;
}

.icon-events .icon {
    height: 50px;
    height: 50px;
}

.section-header .box-header {
    display: block;
}

.section-header h2 span {
    display: inline-block;
    position: relative;
}

.section-header .box-header {
    margin-bottom: 0;
}

.section-header:hover h2 span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.section-header p {
    max-width: 500px;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.71);
}

.events-grid {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

.event-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.598);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.126);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    width: 350px;
    max-width: 350px;
    min-width: 260px;
    height: 380px;
}

.event-card a{
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.event-image {
    position: relative;
    height: 47%;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(45grad, #ff652e, #ffa163);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.event-content {
    padding: 1.5rem;
    position: relative;
    height: 50%;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: clamp(1.1rem, 4vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    color: #2e3c7e;
}

.event-card:hover .event-title {
    color: var(--accent);
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.unavailable {
    font-weight: lighter;
    color: rgba(21, 44, 72, 0.541);
    font-size: 2rem;
    margin: 40px auto;
}

.event-desc {
    color: black;
    word-wrap: break-word;
}

.event-location {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.9rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-location i {
    color: #e74c3c;
}

.event-description {
    line-height: 1.2rem;
    color: #2c3e50;
}

@media (max-width: 992px) {
    .event-card {
        width: 330px;
        height: 380px;
    }
}

@media (max-width: 767px) {
  .events-container {
    padding: 40px 15px;
  }
    .event-card {
        width: 290px;
        height: 380px;
    }
}
@media (max-width: 567px) {
    .icon-events .icon {
        height: fit-content;
    }

    .page-header {
        padding: 0;
    }
  .events-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
    .event-card {
        width: 260px;
        height: 350px;
    }
    
    .event-content {
        padding: 1rem 0.8rem;
    }
}
