@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300&family=Rufina&display=swap");

.carousel-open:checked + .carousel-item {
  position: static;
  opacity: 100;
}

.carousel-item {
  -webkit-transition: opacity 0.6s ease-out;
  transition: opacity 0.6s ease-out;
  height: 641px;
  background-repeat: no-repeat;
  background-size: cover;
}

#carousel-1:checked ~ .control-1,
#carousel-2:checked ~ .control-2,
#carousel-3:checked ~ .control-3,
#carousel-4:checked ~ .control-4,
#carousel-5:checked ~ .control-5 {
  display: block;
}

.carousel-indicators {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 2%;
  left: 0;
  right: 0;
  text-align: center;
}

#carousel-1:checked
  ~ .control-1
  ~ .carousel-indicators
  li:nth-child(1)
  .carousel-bullet,
#carousel-2:checked
  ~ .control-2
  ~ .carousel-indicators
  li:nth-child(2)
  .carousel-bullet,
#carousel-3:checked
  ~ .control-3
  ~ .carousel-indicators
  li:nth-child(3)
  .carousel-bullet,
#carousel-4:checked
  ~ .control-4
  ~ .carousel-indicators
  li:nth-child(4)
  .carousel-bullet,
#carousel-5:checked
  ~ .control-5
  ~ .carousel-indicators
  li:nth-child(5)
  .carousel-bullet {
  color: #2b6cb0;
}

.carousel {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  margin-top:5px;
}

.carousel-item-1 img,
.carousel-item-2 img,
.carousel-item-3 img,
.carousel-item-4 img {
  display: block;
  width: 100%;
  height: 100%;
}

.btn {
  font-family: "Rufina", serif;
  background-color: #002D5B;
  padding: 10px 20px;
  margin-top: 10px;
  color: white;
}

/*.inner-content {*/
/*  position: absolute;*/
  /*width: 280px;*/
  /*top: 300px;*/
  /*left: 12%;*/
/*  width: 40%;*/
/*  top: 150px;*/
/*  left: 15%;*/
/*  font-family: "Rubik", sans-serif;*/
/*  font-weight: 300;*/
/*  letter-spacing: 1px;*/
/*}*/

.inner-content {
  position: absolute;
  width: 35%;
  top: 300px;
  left: 12%;
}
.inner-content p{
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
}

.inner-content-1 {
  position: absolute;
  width: 40%;
  top: 150px;
  left: 15%;
  padding: 10px;
}

.inner-content-1 span {
  display: block;
}
.inner-content-1 .span1 {
  font-family: "Rubik", sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.inner-content-1 .heading {
  font-family: "Rufina", serif;
  font-size: 45px;
  margin-bottom: 20px;
}
.inner-content-1 .span2 {
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: lighter;
  margin-bottom: 15px;
}

/* New Images Styles */

.slide-2-img,.slide-3-img,.slide-4-img{
  object-fit: cover;
  object-position: center center;
}

.text-white{
  color: white;
}
.inner-content-4{
  top: 200px;
}
.inner-content-4 p, .inner-content-3 p , .inner-content-2 p{
  font-weight: bold;
}

/* End New Images styles */

@media screen and (max-width: 600px) {
  /* overlapping icon none */
  .icon-bar2 {
    display: none;
  }
  .carousel-item{
    height: 460px;
  }
  .carousel{
    width: 100%;
    margin-top:0;
  }

  /* slide 1 */

  .carousel-item-1 img {
    display: none;
  }

  .carousel-item-1 {
    background-image: url("../images/banner.jpg");
    background-position: left top;
  }
  .inner-content-1 .heading {
    font-size: 2em;
  }
  .inner-content-1 .span1 {
    font-size: 16px;
  }
  .inner-content-1 .span2 {
    font-size: 16px;
  }
  .inner-content-1{
    top: 10px;
    width: 80%;
    padding-left: 20px;
    left: 10%;
  }

  /* other slides */
  .inner-content {
    width: 100%;
    top: 250px;
    left: 0;
    height: 200px;
  }
}

@media screen and (max-width: 500px) {
  .inner-content {
    background-color: rgb(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
  }
  .inner-content p {
    font-weight: lighter;
    font-size: 14px;
  }
  .slide-2-img,
  .slide-4-img {
    object-position: right;
  }
  .inner-content-2 {
    position: absolute;
    top: 0;
  }
  .inner-content-4 {
    position: absolute;
    top: 0;
  }
}