/* .section SECTION
末末末末末末末末末末末末末末末末末末末末末末末末末 */

.section {
  background: #F45B69;
  padding: 50px 0;
}

.section .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section h1 {
  font-size: 2.5rem;
}

.section h2 {
  font-size: 1.3rem;
}


/* TIMELINE
末末末末末末末末末末末末末末末末末末末末末末末末末 */

.timeline {
  white-space: nowrap;
  overflow-x: hidden;
}

.timeline ol {
  font-size: 0;
  width: 100vw;
  padding: 365px 0 250px 0;
  transition: all 1s;

}





.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 160px;
  height: 3px;
  background: #273476;

}

/*.timeline ol li:nth-child(5), .timeline ol li:nth-child(6), .timeline ol li:nth-child(7), .timeline ol li:nth-child(8){ background: #CE4A38 !important;}*/

.timeline ol li:nth-child(1):before {content:'';background-image:url(../images/history-1.png);background-repeat:no-repeat;background-size:cover;position:absolute;top: -155px; left: 37px;width:300px;height:348px;z-index:99999}

.timeline ol li:nth-child(1):after {content:'';background:red;position:absolute;top: -5px; left: 37px;width: 480px;height:250px;z-index:99999}

.timeline ol li:last-child {width: 248px;position:relative}

.timeline ol li:last-child:before {content:''; width: 300px; height:398px;background-image:url(../images/history-2.png);background-repeat:no-repeat;position:absolute;top: -252px; right: -286px;}
.timeline ol li:last-child:after {content:'';background-image:url(../imgs/pg11-pic5.png);background-repeat:no-repeat;background-size:cover;position:absolute;top: -183px; left: 250px;width:350px;height:288px;z-index:99999; }

.timeline ol li:not(:first-child) {
 /* margin-left: 14px;*/
}

.timeline ol li:not(:last-child)::after {
     content: '';
    position: absolute;
/*    left: calc(100% + 1px);*/
	left: 287px;
    bottom: -4px;
    width: 12px;
	border-radius: 50%;
    height: 12px;
    transform: translateY(-50%);
    background: #273476;
    transform: rotate(45deg);
} 


.timeline ol li div {
  position: absolute;
  left: calc(100% + 7px);
  width: 250px;
  padding: 0;
  font-size: 1rem;
  white-space: normal;
  color: #4D4D4F;
  text-align:center;
}

.timeline ol li:last-child div p{
 color:red;font-size:30px
}


/*.timeline ol li div::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 150px;
  height: 150px;
  border-style: solid;

}*/

.timeline ol li:nth-child(odd) div {top: -16px; transform: translateY(-100%);}
/*.timeline ol li:nth-child(odd) div::before {top: 100%;border-width: 8px 8px 0 0; border-color: white transparent transparent transparent;}*/
.timeline ol li:nth-child(even) div { top: calc(100% + 16px);}

.timeline ol li:nth-child(even) div::before { top: -8px; border-width: 8px 0 0 8px;border-color: transparent transparent transparent white;}
.timeline time { display: block; font-size: 26px; font-weight: bold; margin-bottom: 8px;position:relative; top: 14px;}
.timeline time:before {content: ''; position:absolute; border-right:2px solid #878786; min-height:25px; left: 125px; top: -19px;}


ol li p{font-size: 16px !important;font-style:normal;color:#221E1F; text-align:left; }


.timeline time { display: block; font-size: 26px; font-weight: bold; margin-bottom: 8px;position:relative; top: 14px;}
/*.timeline time:after {content:'';background-image:url(../imgs/time-bg.png);background-repeat:no-repeat;position:absolute;right:10px;top:-3px;width:70px;height:30px;border:none !important;}*/

.timeline ol li:nth-child(1) time, .timeline ol li:nth-child(3), .timeline ol li:nth-child(5), .timeline ol li:nth-child(7), .timeline ol li:nth-child(9), .timeline ol li:nth-child(11), .timeline ol li:nth-child(13), .timeline ol li:nth-child(15), .timeline ol li:nth-child(17), .timeline ol li:nth-child(19), .timeline ol li:nth-child(21), .timeline ol li:nth-child(23), .timeline ol li:nth-child(25), .timeline ol li:nth-child(27), .timeline ol li:nth-child(29) { position:relative; top:0;}




.timeline ol li:nth-child(1) time:before, .timeline ol li:nth-child(3) time:before, .timeline ol li:nth-child(5) time:before, .timeline ol li:nth-child(7) time:before, .timeline ol li:nth-child(9) time:before, .timeline ol li:nth-child(11) time:before, .timeline ol li:nth-child(13) time:before, .timeline ol li:nth-child(15) time:before, .timeline ol li:nth-child(17) time:before, .timeline ol li:nth-child(19) time:before, .timeline ol li:nth-child(21) time:before, .timeline ol li:nth-child(23) time:before, .timeline ol li:nth-child(25) time:before, .timeline ol li:nth-child(27) time:before, .timeline ol li:nth-child(29) time:before, .timeline ol li:nth-child(30) time:before {content: ''; position:absolute; border-right:2px solid #878786; min-height:20px; left: 125px;}

.timeline ol li:last-child span{background:red;position:absolute;top:0;left:0}

/* TIMELINE ARROWS
末末末末末末末末末末末末末末末末末末末末末末末末末 */

.timeline .arrows {display: flex;justify-content: center;position: relative; bottom: 0px;
}

.timeline .arrows .arrow__prev {
  margin-right: 20px;
}

.timeline .disabled {
  opacity: .5;
}

.timeline .arrows img {
  width: 45px;
  height: 45px;
}


/* GENERAL MEDIA QUERIES
末末末末末末末末末末末末末末末末末末末末末末末末末 */
@media screen and (max-width: 599px) {
  .timeline ol,
  .timeline ol li {
    width: auto; 
  }
  
  .timeline ol {
    padding: 0;
    transform: none !important;
  }
  
  .timeline ol li {
    display: block;
    height: auto;
    background: transparent;
  }
  
  .timeline ol li:first-child {
    margin-top: 25px;
  }
  
  .timeline ol li:not(:first-child) {
    margin-left: auto;
  }
  
  .timeline ol li div {
    width: 94%;
    height: auto !important;
    margin: 0 auto 25px;
  }
  
  .timeline ol li div {
    position: static;
  }
  
  .timeline ol li:nth-child(odd) div {
    transform: none;
  }
  
  .timeline ol li:nth-child(odd) div::before,
  .timeline ol li:nth-child(even) div::before {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: none;
    border-left: 1px solid white;
    height: 25px;
  }
  
  .timeline ol li:last-child,
  .timeline ol li:nth-last-child(2) div::before,
  .timeline ol li:not(:last-child)::after,
  .timeline .arrows {
    display: none;
  }
}