  .activities_type5 {
  position: relative;
  padding-bottom: 100px;
  padding-top: 100px;
  overflow: visible;
}
.activities_type5 .someSelector {
  padding: 0px 15px;
}
.activities_type5 .activities_box {
  margin-bottom: 2.2rem;
}
.activities_type5 .activities_box .a_b_row {
  position: relative;
}
.activities_type5 .activities_box .a_b_row::before {
  border-top: 1px solid #d4d4d4;
  content: "";
  width: 95%;
  display: inline-block;
  position: relative;
  left: 5%;
  top: 0;
  z-index: -1;
}

    .activities_type5 .activities_box .a_b_row::after {
        border-bottom: 1px solid #d4d4d4;
        content: "";
        width: 95%;
        display: inline-block;
        position: relative;
        left: 5%;
        top: 0;
        z-index: -1;
    }

        .activities_type5 .align-items-center a::before {
            border-left: 1px solid #d4d4d4;
            content: "";
            position: absolute;
            height: 100%;
            left: 5%;
            top: 0;
            z-index: -1;
        }

    .activities_type5 .activities_box .a_b_row .a_b_r_calendar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }
    .activities_type5 .activities_box .a_b_row .a_b_r_calendar::before {
        border-left: 1px solid #d4d4d4;
        content: "";
        position: absolute;
        height: 100%;
        left: 0;
    }

    .activities_type5 .activities_box .a_b_row .a_b_r_calendar::after {
        border-right: 1px solid #d4d4d4;
        content: "";
        position: absolute;
        height: 100%;
        right: 0;
    }


.activities_type5 .activities_box .a_b_row .a_b_r_calendar .year {
  color: #5e5e5e;
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.activities_type5 .activities_box .a_b_row .a_b_r_calendar .year::before,
.activities_type5 .activities_box .a_b_row .a_b_r_calendar .year::after {
  content: "|";
  display: inline-block;
  color: #878787;
  padding: 0px 20px;
}
.activities_type5 .activities_box .a_b_row .a_b_r_calendar .day {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}
.activities_type5 .activities_box .a_b_row a:hover h3 {
  color: var(--color-primary);
}
.activities_type5 .activities_box li {
  padding: 4px 0;
}
.activities_type5 .activities_box li::before {
  content: "";
  width: 16px;
  height: 3px;
  display: inline-block;
  background-color: var(--color-primary);
  position: relative;
  top: -4px;
}
.activities_type5 .activities_box .category {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  display: inline-block;
  padding: 0 10px;
  margin-top: 10px;
  font-size: 1.125rem;
}
.activities_type5 h2 {
  font-style: normal;
  font-weight: 700;
  font-size: 3.125rem;
  line-height: 60px;
  text-transform: uppercase;
  color: #1f1f1f;
  margin-bottom: 40px;
}
.activities_type5 h3 {
  font-style: normal;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 8px;
  margin-top: 8px;
  color: #1f1f1f;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 56px;
}
.activities_type5 h3 a {
  color: #1f1f1f;
}
.activities_type5 h3 a:hover {
  color: var(--color-primary);
}
.activities_type5 p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #878787;
  line-height: 26px;
  margin-bottom: 0;
  line-height: 1.6 !important;
}
.activities_type5 .decorative_thread {
  width: 48px;
  height: 4px;
  margin: 22px 0px 36px;
  background: var(--color-primary);
}
.activities_type5 .near_card {
  padding: 10px 0;
}
.activities_type5 .near_card_date {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 28px;
  color: var(--color-primary);
  padding-top: 15px;
  padding-bottom: 20px;
}
.activities_type5 .add_button {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  background: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  color: #000;
  padding: 14px;
  font-weight: 400;
  font-size: 0.875rem;
}
.activities_type5 .add_button span {
  width: 90%;
  text-align: center;
}
.activities_type5 .add_button:hover {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
}
.activities_type5 .read_more_box {
  text-align: right;
}
.activities_type5 .read_more {
  font-style: normal;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 24px;
  text-transform: uppercase;
  color: #1f1f1f;
  display: inline-flex;
  padding-right: 20px;
}
.activities_type5 .decorate_icon {
  position: relative;
  width: 44px;
  height: 10px;
  text-align: right;
  display: block;
  top: 3px;
  left: 15px;
}
.activities_type5 .decorate_icon::after {
  width: 44px;
  height: 2px;
  background: #1f1f1f;
  content: "";
  display: block;
  position: absolute;
  bottom: 0px;
  right: 2px;
}
.activities_type5 .decorate_icon::before {
  width: 8px;
  height: 2px;
  background: #1f1f1f;
  content: "";
  display: block;
  position: absolute;
  bottom: 3px;
  right: 2px;
  transform: rotate(38deg);
}
.activities_type5 .read_more_box a:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.activities_type5 .read_more_box a:hover .decorate_icon::before,
.activities_type5 .read_more_box a:hover .decorate_icon::after {
  background: var(--color-primary);
}
.activities_type5 .decorate_line3 {
  position: absolute;
  z-index: 888;
  width: 6px;
  height: 297px;
  left: 34px;
  top: -240px;
}

@media (max-width: 1650px) {
    .activities_type5 .decorate_line3 {
        left: 20px;
    }
}

@media (max-width: 1300px) {
    .activities_type5 .decorate_line3 {
        left: 10px;
    }
}

@media (max-width: 990px) {
    .activities_type5 .activities_box .a_b_row::before,
    .activities_type5 .align-items-center a::before,
    .activities_type5 .activities_box .a_b_row::after,
    .activities_type5 .activities_box .a_b_row .a_b_r_calendar .year,
    .activities_type5 .activities_box .a_b_row .a_b_r_calendar::before,
    .activities_type5 .activities_box .a_b_row .a_b_r_calendar::after {
        display: none;
    }

    .activities_type5 .activities_box .a_b_row .a_b_r_calendar .day {
        width: 50%;
        margin-bottom: 0;
        border: 1px solid #eee;
        padding: 5px 0;
    }

    .activities_type5 .add_button {
        width: 50%;
    }

    .activities_type5 .activities_box .a_b_row .a_b_r_calendar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .activities_type5 .a_b_row a:first-child {
        border: 1px solid #eee;
        border-bottom: 0;
        padding: 10px 10px 0;
    }
}

@media (max-width: 768px) {
  .activities_type5 .decorate_line3 {
    display: none;
  }
  .activities_type5 .near_card {
    margin-bottom: 80px;
  }
    .activities_type5 .a_b_row a:first-child {
        flex-direction: column;
    }

    .activities_type5 .activities_box .a_b_row .a_b_r_calendar {
        align-content: space-around;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
        justify-content: space-between;
    }

        .activities_type5 .activities_box .a_b_row .a_b_r_calendar .day {
            width:100%;
        }
    .activities_type5 .add_button {
        width:100%;
    }
}
@media (max-width: 480px) {
  .activities_type5 {
    padding-bottom: 0;
  }
  .activities_type5 h2 {
    margin-bottom: 10px;
    font-size: 2.5rem;
  }
}