:root {
  --backround-color: #011f4b;
  --primary-color: #6497b1;
  --secondary-color: #c51f5d;
}

/* body {
  background: var(--backround-color);
  color: var(--primary-color);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding: 0 20px;
} */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.grid-band{
  background-color: var(--backround-color);
}

.grid-band2{
  background-color: #e8eef7;
}


.timeline-class {
  background: var(--backround-color);
  line-height: 1.4;
  /* font-family: "Roboto"; */
  color: #fff;
  padding-bottom: 50px;
}

.click_custom {
  font-size: 20px;
  font-weight: bold;
  color: #2e7d32; /* a deeper green for visibility */
  background-color: #e8f5e9; /* light green background */
  border-radius: 6px;
  padding: 4px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.click_custom:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.band a {
  background-color: #e8f5e9 !important;
  display: block; /* ensures background covers full card */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  padding: 10px;
  text-decoration: none;
}



.larger-bold-text {
  font-size: 20px;
  font-weight: bold;
}

.main-header {
  font-family: "Montserrat";
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* margin-top: 40px; */
  color: #f4f4f4;
}

.main-header h3,
.main-header h1 {
  font-weight: 300;
}

.main-header h1 {
  font-size: 3rem;
  padding: 10px 0;
}

.main-header-custom-h2 {
  font-size: 2rem;
  /* padding: 10px 0; */
}

/* Top Down Arrow */
.main-header .down-arrow {
  background: var(--primary-color);
  width: 300px;
  height: 20px;
  border-radius: 2px;
  margin-bottom: 40px;
  position: relative;
}
.main-header .down-arrow::before {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 0;
  height: 0;
  width: 0;
  border: solid;
  border-width: 19px 150px 0 150px;
  border-color: var(--primary-color) transparent transparent transparent;
}

#timeline ul {
  list-style: none;
  margin-top: 50px;
}

/* Central Line */
#timeline ul li {
  position: relative;
  width: 0;
  border-left: 6px dotted var(--primary-color);
  margin: 0 auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
table, th, td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}
/* Dots */
#timeline ul li:before {
  content: "";
  position: absolute;
  top: 0;
  left: -11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fafafa;
  transition: background 1s ease-in-out;
}

/* Year */
#timeline ul h3 {
  font-family: "Montserrat";
  font-weight: 300;
  font-size: 1.5rem;
  text-align: center;
  margin: 30px 0 10px;
}

/* Boxes &  Bottom Text */
#timeline ul li > div {
  width: 350px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: all 1s ease-in-out;
}
#timeline ul li > div p {
  padding-top: 20px;
}
#timeline ul li:nth-child(2n + 0) > div {
  margin-left: 200px;
  transform: translateX(60px);
}
#timeline ul li:nth-child(4n + 0) > div {
  margin-left: -554px;
  transform: translateX(-60px);
}
#timeline ul li > div > div  {
  position: relative;
  top: -14px;
  background: var(--secondary-color);
  width: 350px;
  padding: 5px 10px;
}
/* Top boxes arrows */
#timeline ul li > div:before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  border-style: solid;
}
#timeline ul li:nth-child(2n + 0) > div:before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent var(--secondary-color) transparent transparent;
}
#timeline ul li:nth-child(4n + 0) > div:before {
  transform: translateX(365px);
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent var(--secondary-color);
}

/* Show Boxes */
#timeline ul li.show > div {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  
}

/* #timeline ul li.show:before {
  content: "";
  display: block; 
  transform: scale(3); 
  transform-origin: center;
  background: var(--secondary-color) url("img/logos/iisc.jpg") no-repeat center;
  background-size: cover;
} */


/* #timeline-logo{
  content: "";
  display: block;
  transform: scale(3);
  transform-origin: center;
  background: var(--secondary-color) url(img/logos/iisc.jpg) no-repeat center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: -11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition-behavior: normal;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
  transition-delay: 0s;
  transition-property: background;
  box-sizing: border-box;
  
} */

.green-text {
  color: green;
}
.red-text {
  color: red;
}
@media (max-width: 900px) {
  #timeline ul li > div,
  #timeline ul li > div > div {
    width: 200px;
  }
  #timeline ul li:nth-child(4n + 0) > div {
    margin-left: -264px;
  }
  #timeline ul li:nth-child(4n + 0) > div:before {
    transform: translateX(215px);
}
}

@media (max-width: 600px) {
  .main-header h1 {
    font-size: 2rem;
  }
  #timeline ul li {
    margin: 0 50px;
  }
  #timeline ul li > div,
  #timeline ul li > div > div {
    width: calc(100vw - 170px);
  }
  #timeline ul h3 {
    text-align: unset;
    padding-left: 30px;
  }
  #timeline ul li:nth-child(4n + 0) > div {
    margin-left: 70px;
    transform: translateX(60px);
  }
  #timeline ul li:nth-child(4n + 0) > div:before {
    transform: translateX(0);
    border-width: 8px 16px 8px 0;
    border-color: transparent var(--secondary-color) transparent transparent;
  }
  #timeline ul li.show > div {
    transform: none;
  }
}
