body {
  height: 600px;
  margin: 0;
  display: grid;
  grid-template-rows: 500px 100px;
  grid-template-columns: 1fr 30px 30px 30px 30px 30px 1fr;
  align-items: center;
  justify-items: center;
  background-color: white;

}

.dropdown:hover .dropdown-content,
.dropdown:hover .dropdown-content:hover {
  display: block;
}

.navbar {
  background: #012846;
  font-family: "Anta", sans-serif;
  font-weight: 400;
  font-style: normal;
  top: 0%;
  position: absolute;
  width: 100%;
}

nav {
  /* height: 100vh; */
  height: 50px;
  width: 70vw;
  min-width: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0.5px;
  /* font-weight: 500; */
  padding: 0 10px;
}

nav a:after {
  content: "";
  position: absolute;
  background-color: #216b8c;
  ;
  height: 3px;
  width: 0;
  left: 0;
  bottom: -10px;
  transition: 0.5s;

}

nav a:hover {
  color: #9bdcff;
}

nav a:hover:after {
  width: 100%;
}


.dropdown-content {
  display: none;
  position: absolute;
  text-decoration: none;
  background-color: #081520;
  min-width: 160px;
  z-index: 2;
  margin-top: 10px;
  transition: opacity 1s ease-in-out;
  /* Adjusted transition duration */
}

.dropdown-content a {
  color: #ffffff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  color: #1868a7;
  transition-duration: 0.1s;
}

.back-video {
  position: fixed;
  right: 0;
  /* bottom: 0; */
  top: 0;
  z-index: -1;
  filter: brightness(0.4);

}

main#carousel {
  grid-row: 1 / 2;
  grid-column: 1 / 8;
  width: 100vw;
  height: 500px;
  top: 40px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 600px;
  --items: 5;
  --middle: 3;
  --position: 1;
  /* pointer-events:; */
}






.item .photo1 {
  margin-top: 20px;
  text-align: center;
}

.item h2 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 5px;
}

.item .info1 .bottom {
  text-align: center;
}

.item .info1 p {
  margin: 10px;
  text-align: center;
}

.item .info1 .info {
  text-align: justify;
}

.item {
  background-color: linear-gradient(rgba(8, 40, 66, 1), rgba(54, 103, 142, 1));
}

.item .photo2 {
  margin-top: 20px;
  text-align: center;
}

.item .kartik {
  margin-top: 20px;
  text-align: center;
}

.item .jeel {
  margin-top: 20px;
  text-align: center;
}

.item .radhe {
  margin-top: 20px;
  text-align: center;
}

.bottom {
  display: flex;
  justify-content: center;

}



.bottom1 {
  display: flex;
  justify-content: center;
  position: relative;
  bottom: -30px;
}

.bottom2 {
  display: flex;
  justify-content: center;
  position: relative;
  bottom: -15px;
}

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


.bottom>div {
  margin: 0 6px;
  /* Optional: Adjust the spacing between elements */
}

.bottom1>div {
  margin: 0 6px;
  /* Optional: Adjust the spacing between elements */
}

.bottom2>div {
  margin: 0 6px;
  /* Optional: Adjust the spacing between elements */
}

.bottom3>div {
  margin: 0 6px;
  /* Optional: Adjust the spacing between elements */
}


div.item {
  position: absolute;
  width: 300px;
  height: 400px;
  border-radius: 18px;
  background-color: coral;
  --r: calc(var(--position) - var(--offset));
  --abs: max(calc(var(--r) * -1), var(--r));
  transition: all 0.25s linear;
  transform: rotateY(calc(-10deg * var(--r))) translateX(calc(-300px * var(--r)));
  z-index: calc((var(--position) - var(--abs)));
}

input[type="radio" i] {
  position: sticky;
  top: 50%;
  left: 45%;
}

div.item:nth-of-type(1) {
  --offset: 1;
  background: linear-gradient(rgba(8, 40, 66, 1), rgba(54, 103, 142, 1));
  color: white;

}


div.item:nth-of-type(2) {
  --offset: 2;
  background: linear-gradient(rgba(60, 7, 83, 2), rgba(114, 4, 85, 3));
  color: white;
}

div.item:nth-of-type(3) {
  --offset: 3;
  background: linear-gradient(rgba(8, 40, 66, 1), rgba(54, 103, 142, 1));
  color: white;
}

div.item:nth-of-type(4) {
  --offset: 4;
  background: linear-gradient(rgba(60, 7, 83, 2), rgba(114, 4, 85, 3));
  color: white;
}

div.item:nth-of-type(5) {
  --offset: 5;
  background: linear-gradient(rgba(8, 40, 66, 1), rgba(54, 103, 142, 1));
  color: white;
}

input:nth-of-type(1) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

input:nth-of-type(1):checked~main#carousel {
  --position: 1;
}

input:nth-of-type(2) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

input:nth-of-type(2):checked~main#carousel {
  --position: 2;
}

input:nth-of-type(3) {
  grid-column: 4 /5;
  grid-row: 2 / 3;
}

input:nth-of-type(3):checked~main#carousel {
  --position: 3;
}

input:nth-of-type(4) {
  grid-column: 5 / 6;
  grid-row: 2 / 3;
}

input:nth-of-type(4):checked~main#carousel {
  --position: 4;
}

input:nth-of-type(5) {
  grid-column: 6 / 7;
  grid-row: 2 / 3;
}

input:nth-of-type(5):checked~main#carousel {
  --position: 5;
}