.events-hero {
    padding: 145px 0;
    background-image: url('../../images/Image41.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
}

.events-hero .herov3-signature {
    margin-bottom: 0 !important;
}

/*/*/

.events-card_section {
    max-width: 1800px;
    margin: 0 auto;
    padding: 80px 0;
    width: 100%;
}

.events-filter_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.events-filter_top span {
    display: flex;
    align-items: center;
    gap: 20px;
}

.events-filter_top span .filter-btn {
    font-size: 18px;
    line-height: 100%;
    color: #111927;
    font-weight: 600;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1.33px solid #D5D7DA;
    background: transparent;
    transition: all 0.3s ease;
}

.events-filter_top span .filter-btn:hover {
    color: #6E2ACD;
    border: 1.33px solid #6E2ACD;
}

.events-filter_top span .filter-btn.active {
    color: #6E2ACD;
    border: 1.33px solid #6E2ACD;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sort-label {
    font-size: 16px;
    line-height: 140%;
    text-transform: uppercase;
    color: #6C737F;
    font-weight: 600;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 23px 24px;
  border: 1.33px solid #6E2ACD;
  border-radius: 16px;
  background: transparent;
  color: #6E2ACD;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.dropdown-toggle::after {
    content: none !important;
}

.dropdown-toggle:hover {
  border-color: #6a0dad;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #e0e0e0;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 6px;
  z-index: 10;
  list-style: none;
}

.dropdown-menu li {
    padding: 18px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    color: #111927;
}

.dropdown-menu li:hover {
  background: #E7E8E9;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown.open .dropdown-toggle .arrow {
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.dropdown-menu a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.events__cards-list {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-event {
    max-width: 585px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #D5D7DA;
}

.card-images {
    position: relative;
    img {
        max-height: 350px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.card-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 16px;
    border: 1px solid #D5D7DA;
    background: rgba(255, 255, 255, 0.4);
    border: 1.33333px solid #D5D7DA;
    backdrop-filter: blur(10.6667px);
    border-radius: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #111927;
}

.card-info {
    padding: 32px;
    display: block;
    border-top: 1px solid #D5D7DA;
}

.card-date {
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    color: #6C737F;
    margin-bottom: 32px;
}

.card-name {
    font-weight: 600;
    font-size: 30px;
    line-height: 140%;
    color: #111927 !important;
    text-decoration: none !important;
}

/**/

@media (max-width: 1820px) {
    .events-card_section {
        max-width: 100%;
        margin: 0 auto;
        padding: 80px 60px;
        width: 100%;
    }
}

@media (max-width: 1440px) {
    .events-hero {
        padding: 170px 0;
    }

    .events-hero .herov3-title {
        margin-bottom: 32px;
    }

    /**/

    .card-tag {
        top: 20px;
        left: 20px;
    }

    .card-date {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .card-name {
        font-size: 24px;
        line-height: 140%;
    }
}

@media (max-width: 1200px) {
    .events__cards-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .events-card_section {
        padding: 40px 24px;
    }

    .events-filter_top span .filter-btn {
        font-size: 16px;
    }

    .sort-container {
        align-items: center;
        gap: 20px;
    }

    .sort-label {
        font-size: 12px;
    }

    .dropdown-toggle {
        padding: 20px 24px;
        font-size: 16px;
    }
}
 
@media (max-width: 900px) {
    .events-hero {
        padding: 110px 24px;
    }
}

@media (max-width: 764px) {
    .card-info {
        padding: 24px;
    }

    .card-date {
        margin-bottom: 16px;
    }

    .card-name {
        font-size: 18px;
    }
}

@media (max-width: 650px) {
    .events-filter_top {
        justify-content: space-between;
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 550px) {
    .events-hero {
        padding: 220px 24px;
    }

    .events__cards-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .card-images {
        img {
            max-height: 180px;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}