:root {
  --main-color: #2F80BC;
  --offwhite-color:#EBF6FA;
  --golden-color:#c9b447;
  --darkgrey:#212529;
  --marooncolor:linear-gradient(90deg,#8A0A0A,#630202);
  --twocolor:linear-gradient(90deg, #40BAF5, #2F80BB,#8A0A0A);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}

html{
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  background: var(--twocolor);
  background-position: center;
  background-size: cover;
  
}

.top-bar {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--offwhite-color);
  padding: 1rem 5rem;
  height: 9rem;
  z-index: 30;
  position: fixed;
  top: 0;

/*  position: fixed;*/
  filter: drop-shadow(0px 3px 9px #3f3f3f); 
}
.top-bar a{
  text-decoration: none;
  color:inherit;
}

.logo {
  font-weight: bold;
  transition: 0.6s;
  cursor:pointer;
}
.logo:hover{
  transform: scale(110%);
}
.logo img{
  height: 8rem;
  width: 8rem;
}

.institution-name {
  font-size: 2.5rem;
  font-weight: normal;
  color: var(--main-color);
  text-align: center;
  cursor: pointer;
  line-height: 2.4rem;
  transition: 0.6s;
}

.institution-name:hover{
  color:#3f3f3f;
  transform: scale(110%);
  
}

#twolinesheading{
  display: none;
}

#addr{
  font-size: 2rem;
  text-align: center;
  color: #3f3f3f;
  
}

.login{
  cursor: pointer;
  padding: 1rem 3rem; 
  border-radius: 50px;
  background:var(--main-color);
  filter: drop-shadow(2px 2px 2px #aaa);
  transition: 0.5s;
}

.login:hover{
  filter: unset;
}

.login a {
  text-decoration: none;
  color: #e9eef3;
  font-weight: normal;
  font-size: 1.2rem;

}
input[type="checkbox"]{
  display: none;
}

#loginid{
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/*code for menus*/

    #click:checked ~ .menu-btn i:before{
        content: "\f00d";
      }    
      .menulist ul{
          position: absolute;
          top: 9rem;
          padding-top: 1rem;
          left: 0;
          background: var(--main-color);
          /*left: -100%;*/
          overflow-y: hidden;
          overflow: hidden;
          max-height: 0;
         /*max-height: calc(100vh - 10rem);*/
          width: 100%;
          text-align: center;
          display: block;
          
          transition: all 0.5s ease;
        }

      #click:checked ~ ul{
          /*left: 0;*/
          max-height: calc(100vh - 9rem);
          overflow-y: auto;
          border-bottom: 3px solid #2f2f2f;
        }   
    

    .menulist ul li{
        width: 100%;
        margin: 1.3rem 0;
        list-style-type: none;

      }
      .menulist ul li a{
        width: 100%;
        margin-left: 0px;
        padding: 1rem 0;
        display: block;
        font-size: 1.6rem;
        color: #eee;
        text-decoration: none;
        transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      }
      

      .menulist i{
        color: var(--main-color);
        font-size: 2.2rem;
        cursor: pointer;
        z-index: 4;
      }

    .menulist ul li:hover::after{

      width: 0%;
    }

    .menulist ul li a:hover{
      background:#555;
      font-weight: bold;
      color: #eee;

    }

.main-content {
  display: flex;
  margin-top: 9rem;
  min-height: calc(100vh - 11rem);
  padding: 2rem;
  
  /*flex-wrap: wrap;*/
  background: var(--main-color);
  /*background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.8)),url(images\logo.jpg);*/
  background-position: center;
  position: relative;
}

.gradientlayer{
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.0) 0%,rgba(0,0,0,0.0) 20%,rgba(255,255,255,0.6) 30%,rgba(0,23,149,0.8) 40%,rgba(255,0,0,0.9) 60%,rgba(0,23,149,0.7) 70%,rgba(255,255,255,0.7) 80%,rgba(0,0,0,0.0) 100%);
  /*background: linear-gradient(135deg, rgba(0,0,0,0.0) 0%,rgba(0,0,0,0.0) 40%,rgba(249,149,44,0.9) 50%,rgba(255,255,255,0.9) 60%,rgba(255,255,255,0.8) 70%,rgba(37,146,49,0.8) 80%,rgba(37,146,49,0.8) 90%,rgba(0,0,0,0.0) 100%);*/
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  pointer-events: none;
  opacity: 0.8;
  animation-duration: 3s;
  animation-delay: 2s;
  animation-name: gradient;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
  animation-play-state: running;
}

.main-content:hover .gradientlayer{
  /*background-position: 100% 100%;*/
  animation-play-state: running;

}

@keyframes gradient{
  from{
    background-position: 0% 0%; 
  }
  to{
    background-position: 100% 100%;
  }
}



.news-section {
  flex: 1;
  background: var(--main-color);
  /*background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.8)),url(images\logo.jpg);*/
  background-position: center;
  background-size: cover;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  max-height: 75vh;
  overflow: hidden;
}

.news-section h2 {
  margin: 0 0 1rem;
  font-weight: normal;
  color: #fff;
  font-size: 2.2rem;
}

.news-scroll {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.news-scroll ul {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: scrollUp 30s linear infinite;
}

.news-scroll li {
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

@keyframes scrollUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

.updates_button{
  background:var(--twocolor);
  width: 90%;
  padding: 1rem;
  z-index: 3;
  cursor: pointer;
  transition: 0.5s;
  border-radius: 50px;
  color: #fff;
  transition: 0.8s ease;
}

.updates_button h3{
  text-align: center;
  font-weight: normal;
  font-size: 1.7rem;
}
.updates_button:hover{
  background: var(--marooncolor);
}
.updates_button a{
  text-decoration: none;
  color:#eee;
  width: 100%;
}
.carousel_menu{
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  
}

.cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-content: center;
  justify-content: space-around;

}

.cards a{
  text-decoration: none;
  color: var(--main-color);
  width: 100%;
  text-align: center;
}

.cards i{
  margin-right: 1rem;
  font-size: 1.8rem;
}

.card {
  width: 20%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
 
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--main-color);

  border-radius: 5px;
  filter: drop-shadow(3px 3px 2px #4f4f4f); 
  /*background: rgba(255,255,255,0.7);*/
  background:var(--offwhite-color);
  transition: 0.6s;
  cursor: pointer;

}

.card:hover{
  transform: scale(95%);
  background: var(--golden-color);
  color: #fff;
}

/*carousel*/

    .carousel {
            border-radius: 5px;
            border:5px solid var(--main-color);
            border-right-color: var(--offwhite-color);
            border-bottom-color: var(--offwhite-color);
            position: relative;
            width: 100%;
            height: 55vh;
           
            /*background:var(--main-color);*/
            overflow: hidden;
        }

        .carousel-inner {
            display: flex;
            transition: transform 1s ease;
            width: 100%;
            height: 100%;
        }

        .carousel-item {
            min-width: 100%;
            height: 100%;
            position: relative;
            

        }


        .carousel img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            
            
        }

    

        .carousel h3{
          position: absolute; 
        bottom: 0; 
        left: 50%; 
        background:rgba(203,154,73,0.7);
        line-height: 4rem;
        transform: translateX(-50%); 
        color: #fff; 
        z-index: 2;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
        opacity: 0;
        font-size: 2rem;
        width: 100%; /* Set width to a percentage */
        text-align: center; /* Center the text */
        
       /* font-family: "Great Vibes", cursive;*/
      font-weight: normal;
      font-style: normal;
        transition: opacity 0.7s;
        animation: fadeIn 0.5s forwards; /* Fade in animation */
        animation-delay: 1s; /* Delay before the animation starts */

    }

    @keyframes fadeIn {
      to {
          opacity: 1; /* Fully visible at the end of the animation */
        }
    }
        .carousel button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 1rem 0 1rem 0;
            cursor: pointer;
            padding: 1rem;
            transition: 0.5s ease;
        }

        .prev {
            left: 10px;
        }

        .next {
            right: 10px;
        }

        .carousel button:hover{
          background-color: rgba(255, 255, 255, 0.5);
        }

/*=============*/

/*message box*/
  .messagebox{

    width: 100%;
    margin:1rem auto;
    padding: 1rem;
    background:var(--offwhite-color);
  }
  .messagecontent{
    margin:6rem auto;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    grid-gap: 2rem;
  }
  .imgbox{
    flex:1 1 30%;
    min-width: 20rem;
    max-width: 40rem;
  }
  .imgbox img{
    width: 100%;
    height: auto;
    border-radius: 1rem;
    filter: drop-shadow(4px 4px 0px var(--main-color));
    cursor: pointer;
  }
  .message{
    flex:1;
  }

  .message h3{
      color: var(--main-color);
      font-size: 3rem;
      margin: 2rem;
      font-weight: normal;
      text-align: center;
  }
  .message p{
      font-size: 2.2rem;
      margin: 1rem;
      color:#1f1f1f;
      text-align: justify;
  }


/*reviews*/
.review-container{
      
      position: relative;
      padding: 5rem auto;
      width: 100%;
      min-height: 50rem;
      background-color: var(--offwhite-color);
      overflow-y: scroll;
    }
    .review-container .contents-wraper{
      width: 90%;
      min-height: inherit;
      margin: 2rem auto;
      padding: 5rem 2rem;
      text-align: center;
    }
    .contents-wraper .header h1{
      position: relative;
      margin: 3rem 0rem;
      font-size: 4rem;
      text-transform: uppercase;
      font-weight: 400;
      text-align: center;
      letter-spacing: 1px;
      color: var(--main-color)
    }
    .contents-wraper .header h1::before{
      content: '';
      width: 30rem;
      height: 2px;
      background-color: var(--main-color);
      border-radius: 15px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: -5px;
    }
    .contents-wraper .testRow{
      width: 100%;
      padding: 2rem 0;
      min-height: inherit;
      position: relative;
      overflow: hidden;
    }
    .testRow .testItem{
      width: 100%;
      height: 100%;
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }
    .testRow .testItem:not(.active){
      top: 0;
      left: -100%;
    }
    .testRow .testItem img{
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      outline: 2px solid #006994;
      /*outline-offset: 2px;*/
    }
    .testRow .testItem h3{
      font-size: 3rem;
      padding: 7px;
      color: var(--main-color);
      font-weight: normal;
    }
    .testRow .testItem h4{
      /*font-style: italic;*/
      font-size: 1.7rem;
    }
    .testRow .testItem p{
      font-size: 2rem;
      letter-spacing: 1px;
      line-height: 1.2;
      padding: 1rem;
      text-align: center;
    }
   
    /* Sliding animations */
@keyframes next1 {
  from { left: 0; opacity: 1; }
  to { left: -100%; opacity: 0; }
}
@keyframes next2 {
  from { left: 100%; opacity: 0; }
  to { left: 0; opacity: 1; }
}
@keyframes prev1 {
  from { left: 0; opacity: 1; }
  to { left: 100%; opacity: 0; }
}
@keyframes prev2 {
  from { left: -100%; opacity: 0; }
  to { left: 0; opacity: 1; }
}

.contents-wraper .indicators {
  display: flex;
  justify-content: center;   /* center the dots */
  overflow-x: auto;          /* horizontal scroll if too many dots */
  gap: 5px;
  padding: 5px 0;
  scrollbar-width: none;     /* hide scrollbar in Firefox */
}
.contents-wraper .indicators::-webkit-scrollbar {
  display: none;             /* hide scrollbar in Chrome/Safari */
}
.contents-wraper .indicators .dot {
  flex: 0 0 auto;            /* keep size fixed */
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.contents-wraper .indicators .dot.active {
  background-color: #333;
}

.testRow {
  touch-action: pan-y; /* allow vertical scroll while swiping horizontally */
}


/*footer*/
.footercontainer{
  width: 100%;
  background:var(--main-color);
  padding: 3rem;
}
.footercontainer p{
  color: #ddd;
  font-size: 1.2rem;
  text-align: center;
}
/* -----------------------mobile----------------------------------*/
/* ---------------media queries-----------------*/

@media screen and (max-width: 955px) {
      #login{
        display: none;
      }
      #menus{
        display: block;
      }
      /*code for menus*/

    #click:checked ~ .menu-btn i:before{
        content: "\f00d";
      }    
      .menulist ul{
          position: absolute;
          top: 9rem;
          padding-top: 1rem;
          left: 0;
          background: var(--main-color);
          /*left: -100%;*/
          overflow-y: hidden;
          overflow: hidden;
          max-height: 0;
         /*max-height: calc(100vh - 10rem);*/
          width: 100%;
          text-align: center;
          display: block;
          
          transition: all 0.5s ease;
        }

      #click:checked ~ ul{
          /*left: 0;*/
          max-height: calc(100vh - 9rem);
          overflow-y: auto;
          border-bottom: 3px solid #2f2f2f;
        }   
    

    .menulist ul li{
        width: 100%;
        margin: 1.3rem 0;
        list-style-type: none;

      }
      .menulist ul li a{
        width: 100%;
        margin-left: 0px;
        padding: 1rem 0;
        display: block;
        font-size: 1.6rem;
        color: #eee;
        text-decoration: none;
        transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      }
      

      .menulist i{
        color: var(--main-color);
        font-size: 2.2rem;
        cursor: pointer;
        z-index: 4;
      }

    .menulist ul li:hover::after{

      width: 0%;
    }

    .menulist ul li a:hover{
      background:#555;
      font-weight: bold;
      color: #eee;

    }

      /*----------------*/

      .main-content {
        min-height: calc(100vh - 8rem);
        padding: 0rem;
        padding-top:9rem;
        flex-wrap: wrap;
        margin-top: 0;
      }

      .news-section {
        flex-basis: 100%;
        width: 100%;
        height: 100%;
        padding: 1.5rem;
        background: none;
      }

      .news-section h2 {
        font-size: 1.8rem;

      }

      .news-scroll li {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
      }

      @keyframes scrollUp {
        0% { transform: translateY(50%); }
        100% { transform: translateY(-100%); }
      }

      .updates_button{
        width: 100%;
        border-radius: 0.5rem;
      }
      .updates_button h3{
        font-size: 1.4rem;
      }
      

      .cards {
        flex: 2;
        justify-content: space-around;
        gap:1rem;
        margin: 3rem auto;
      }

      .cards i{
        margin-bottom: 0;
        margin-right: 0.5rem;
        font-size: 1.5rem;
      }

      .card {
        min-width: 14rem;
        height: 4rem;
        font-size: 1.2rem;
        

      }

      /*carousel*/

    .carousel {
            margin: 3rem auto;
            border: 4px solid var(--main-color);
            width: 100%;
            height: 40vh;
        }

        
        .carousel h3{
          line-height: 3rem;
          font-size: 1.4rem;
        }
        .message h3{
          font-size: 2.1rem;
        }
        .message p{
          font-size: 1.8rem;
          color:555;        
        }
}

@media screen and (max-width: 870px){
      .imgbox{
          flex-basis:100%;
      }
      .message{
        flex-basis: 100%;
      }
}
@media(max-width: 650px){
      #onelineheading{
        display: none;
      }
      #twolinesheading{
        display: block;
      }
      .institution-name{
        font-size: 2rem;
        line-height: 1.7rem;
      }
      #addr{
        font-size: 1.1rem;
      }

}
@media(max-width: 550px){
      .container .contents-wraper{
        width: 90%;
      }
      .contents-wraper .header h1{
        font-size: 32px;
      }
      .testRow .testItem h3{
        font-size: 26px;
      }
      .testRow .testItem p{
        font-size: 1.8rem;
        letter-spacing: initial;
        line-height: initial;
      }

    }

@media screen and (max-width: 480px) {
    
    .top-bar {
        padding: 1rem 1rem;
        height: 8rem;
      }

      .logo img{
        height: 6rem;
        width: 6rem;
      }

      #login{
        display: none;
      }
      #menus{
        display: block;
      }
      .institution-name{
        font-size: 1.7rem;
        line-height: 1.7rem;
      }
      .institution-name:hover{
          transform: scale(100%);
      }
      #onelineheading{
        display: none;
      }
      #twolinesheading{
        display: block;
      }
      #addr{
        font-size: 1.1rem;
      }

      /*code for menus*/

    
      .menulist ul{
          position: absolute;
          top: 8rem;
        }

      #click:checked ~ ul{
          max-height: calc(100vh - 9rem);
        }   
    

    
      .main-content {
        min-height: calc(100vh - 8rem);
      }

      
        .carousel h3{
          line-height: 3rem;
          font-size: 1.4rem;
        }
        .message h3{
          font-size: 2.5rem;
        }
        .message p{
          font-size: 1.7rem;
          color:555;        
        }

/*=============*/


}