/* ------------------------------ */
/* Base                          */
/* ------------------------------ */

img {
  max-width: 100%;
}

/* ------------------------------ */
/* Layout container               */
/* ------------------------------ */

.ag-format-container {
  width: 1201px;
  margin: 0 auto;
  position: relative;
}

/* ------------------------------ */
/* Timeline title section         */
/* ------------------------------ */

.ag-timeline_title-box {
  padding: 0 0 30px;
  text-align: center;
}

.ag-timeline_tagline {
  font-size: 40px;
  color: rgb(84, 89, 95);
}

/* ------------------------------ */
/* Timeline main structure        */
/* ------------------------------ */

.ag-timeline {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.ag-timeline_line {
  position: absolute;
  top: 2px;
  left: 50%;
  bottom: 0;
  width: 4px;
  background-color: #000;
  overflow: hidden;
  transform: translateX(-50%);
}

.ag-timeline_line-progress {
  width: 100%;
  height: 20%;
  background-color: #c4281b;
}

/* ------------------------------ */
/* Timeline items                 */
/* ------------------------------ */

.ag-timeline_item:not(:nth-child(3n)) {
  margin: 0 0 50px;
  position: relative;
}

.ag-timeline-block_2 .ag-timeline_item:nth-child(3n) {
  margin: 0 0 50px;
  position: relative;
}

.ag-timeline-block_3 .ag-timeline_item:nth-child(2) {
  margin: 0 0 20px;
  position: relative;
}

.ag-timeline_item:nth-child(2n) {
  text-align: right;
}

.ag-timeline_item:nth-child(2n) .ag-timeline-card_desc {
  text-align: left;
  margin-right: 50px;
}

.ag-timeline-card_box {
  padding: 0 0 20px 50%;
}

.ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
  padding: 0 50% 20px 0;
}

.ag-timeline-block_2 .js-timeline_item:first-child .ag-timeline-card_box {
  padding-bottom: 112px;
}

/* ------------------------------ */
/* Timeline point + meta          */
/* ------------------------------ */

.ag-timeline-card_point-box {
  display: inline-block;
  margin: 0 50px 0 -25px;
}

.ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
  margin: 0 -28px 0 50px;
}

.ag-timeline-card_point {
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #1d1d1b;
  color: #fff;
  font-family: "ff-utility-web-pro", Sans-serif;
  font-size: 30px;
  text-align: center;
  border-radius: 50%;
}

.ag-timeline_item:nth-child(2n) .ag-timeline-card_point {
  margin-right: 3px;
}

.ag-timeline-card_meta-box {
  display: inline-block;
}

.ag-timeline-card_meta {
  margin: 10px 0 30px 0;
  font-family: "ff-utility-web-pro", Sans-serif;
  font-weight: bold;
  font-size: 30px;
  color: #c4281b;
}

.ag-timeline-block_3 .js-timeline_item:nth-child(1n) .ag-timeline-card_meta {
  margin: 10px 0 30px 78px;
}

.ag-timeline-block_3 .js-timeline_item:nth-child(2) .ag-timeline-card_meta {
  margin: 10px 78px 30px 0px;
}

.js-ag-active .ag-timeline-card_point {
  background-color: #c4281b;
}

.ag-timeline-block_2 .ag-timeline-card_point {
  z-index: 2;
  position: relative;
}

/* ------------------------------ */
/* Timeline cards                 */
/* ------------------------------ */

.ag-timeline-card_item {
  display: inline-block;
  width: 521px;
  margin: -457px 0 0;
  opacity: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.5s, opacity 0.5s;
  position: relative;
}

.ag-timeline_item:nth-child(2n + 1) .ag-timeline-card_item {
  transform: translateX(-200%);
}

.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  transform: translateX(200%);
}

@media only screen and (min-width: 1301px) {
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    margin-top: -350px;
  }
}

.ag-timeline_item:nth-child(3n) .ag-timeline-card_item {
  margin-top: -354px;
}

.ag-timeline-block_3 .ag-timeline_item:nth-child(3n) .ag-timeline-card_item {
  margin-top: -485px;
}

.js-ag-active.ag-timeline_item:nth-child(2n + 1) .ag-timeline-card_item,
.js-ag-active.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  opacity: 1;
  transform: translateX(0);
}

/* ------------------------------ */
/* Timeline card arrow            */
/* ------------------------------ */

.ag-timeline-card_arrow {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 18px;
  height: 18px;
  margin-top: 20px;
  background-color: #282828;
  transform: rotate(45deg);
}

.ag-timeline_item:nth-child(2n + 1) .ag-timeline-card_arrow {
  margin-left: calc(-18px / 2);
  margin-right: calc(-18px / 2);
}

.ag-timeline_item:nth-child(2n) .ag-timeline-card_arrow {
  left: 0;
  right: auto;
  margin-left: -10px;
}

/* ------------------------------ */
/* Timeline card image & info     */
/* ------------------------------ */

.ag-timeline-card_img {
  width: 100%;
  object-fit: cover;
}

@media only screen and (min-width: 768px) {
  .ag-timeline-card_img {
    height: 457px !important;
  }

  .ag-timeline-block_2 .js-timeline_item:nth-child(odd) .ag-timeline-card_img {
    height: 264px !important;
  }

  .ag-timeline-block_3 .js-timeline_item:nth-child(1) .ag-timeline-card_img {
    height: 417px !important;
  }

  .ag-timeline-block_3 .js-timeline_item:nth-child(3) .ag-timeline-card_img {
    height: 501px !important;
  }
}

.ag-timeline-card_info {
  margin-left: 80px;
}

.ag-timeline-card_title {
  display: none;
  margin: 10px 0 30px 0;
  font-weight: bold;
  font-size: 28px;
  color: #c4281b;
}

.ag-timeline-card_desc {
  line-height: 1.45;
  font-size: 16px;
  color: #000;
}

.ag-timeline-card_desc p {
  font-size: 15px;
  line-height: 25px;
}

.ag-timeline-block:not(.ag-timeline-block_2, .ag-timeline-block_3)
  .ag-timeline-card_desc
  p:first-child {
  margin-bottom: 15px;
  font-weight: 700;
}

.ag-timeline-card_desc button {
  border: none !important;
  padding-left: 0 !important;
  padding-top: 30px !important;
  display: flex;
  align-items: center;
}

.ag-timeline-card_desc button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 2px;
  margin-right: 10px;
  border-radius: 100%;
  background-color: #000;
}

.ag-timeline-card_desc button a {
  color: #c4281b;
}

.ag-timeline-card_desc .check_group {
  margin-top: 15px;
}

.ag-timeline-card_desc .check_wrapper {
  display: flex;
  flex-direction: row;
  column-gap: 14px;
  align-items: center;
}

.ag-timeline-card_desc .check_wrapper .check_wrapper_icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ------------------------------ */
/* Responsive rules               */
/* ------------------------------ */

@media only screen and (max-width: 979px) {
  .ag-timeline-card_item {
    margin-top: 0 !important;
  }

  .ag-timeline_line {
    left: 30px;
  }

  .ag-timeline_item:nth-child(2n) {
    text-align: left;
  }

  .ag-timeline-card_box,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
    padding: 0 0 20px;
  }

  .ag-timeline-card_meta-box {
    display: none;
  }

  .ag-timeline-card_point-box,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
    margin: 0 0 0 10px;
  }

  .ag-timeline-card_point {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .ag-timeline-card_item {
    width: auto;
    margin: -65px 0 0 75px;
  }

  .ag-timeline_item:nth-child(2n + 1) .ag-timeline-card_item,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    transform: translateX(200%);
  }

  .ag-timeline_item:nth-child(2n + 1) .ag-timeline-card_arrow {
    right: auto;
    left: 0;
  }

  .ag-timeline-card_title {
    display: block;
  }

  .ag-timeline-card_arrow {
    margin-top: 12px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 100%;
  }

  .ag-timeline-card_img {
    height: auto;
    width: auto;
  }
}

@media only screen and (max-width: 639px) {
  .ag-timeline_title {
    font-size: 60px;
  }

  .ag-timeline-card_info {
    padding: 10px 15px;
  }

  .ag-timeline-card_desc {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  .ag-format-container {
    width: 750px;
  }
}

@media (min-width: 980px) and (max-width: 1300px) {
  .ag-format-container {
    width: 100%;
  }

  .ag-timeline-card_item {
    width: 40%;
  }
}

@media (max-width: 767px) {
  .ag-timeline-card_info {
    margin-top: -51px;
    padding: 0;
  }
}

/* ------------------------------ */
/* Absolute corners               */
/* ------------------------------ */

.ag-timeline_list .ag-timeline_item .absolute-corner {
  position: absolute;
  width: 50px;
  height: 38px !important;
}

.ag-timeline_list .ag-timeline_item:nth-child(3) .absolute-corner {
  width: 38px;
  height: 50px !important;
}

.ag-timeline_list .ag-timeline_item:nth-child(4) .absolute-corner {
  width: 50px;
  height: 38px !important;
}

@media (min-width: 768px) {
  .ag-timeline_list .ag-timeline_item .absolute-corner {
    width: 150px;
    height: 115px !important;
  }

  .ag-timeline_list .ag-timeline_item:nth-child(3) .absolute-corner {
    width: 115px;
    height: 150px !important;
  }

  .ag-timeline_list .ag-timeline_item:nth-child(4) .absolute-corner {
    width: 150px;
    height: 115px !important;
  }
}

.ag-timeline_list .ag-timeline_item:first-child .absolute-corner {
  left: -2px;
  bottom: 3px;
}

@media (min-width: 768px) {
  .ag-timeline_list .ag-timeline_item:first-child .absolute-corner {
    left: -4px;
    bottom: -2px;
  }
}

.ag-timeline_list .ag-timeline_item:nth-child(2) .absolute-corner {
  top: -2px;
  right: -2px;
}

@media (min-width: 768px) {
  .ag-timeline_list .ag-timeline_item:nth-child(2) .absolute-corner {
    top: -6px;
    right: -5px;
  }
}

.ag-timeline_list .ag-timeline_item:nth-child(3) .absolute-corner {
  bottom: 3px;
  right: -3px;
}

@media (min-width: 768px) {
  .ag-timeline_list .ag-timeline_item:nth-child(3) .absolute-corner {
    bottom: -1px;
    right: -7px;
  }
}

.ag-timeline_list .ag-timeline_item:nth-child(4) .absolute-corner {
  bottom: 3px;
  left: -3px;
}

@media (min-width: 768px) {
  .ag-timeline_list .ag-timeline_item:nth-child(4) .absolute-corner {
    bottom: 0px;
  }
}
