/* Reset box-sizing and apply a common font family */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;

}


@media (min-width: 280vh) {

  body {
    width: 150vh;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* Style links globally */


/* Column container */
.row {
  margin-right: 5vh !important;
  margin-left: 3vh !important;
  display: flex;
  flex-wrap: wrap;
  margin-top: 0px;
  margin-bottom: 2vh;


}


/* Sidebar/left column */
.left-side {
  flex: 1.5;
  flex-shrink: 0; 
  background-color: #ffffff;

 
}

.left-side h2 {
  font-size: 28px;
  margin-bottom: 0 !important;
  margin-left: 0; /* Add this line to reset the left margin */
}

.about-us-text {
  line-height: 1.6;
  font-size: 16px;
  max-height: 180px; /* Adjust the maximum height as needed */
  overflow: auto;
  margin-left: -7px;
}



.left-side a {
  color: #007bff;
  text-decoration: none;

}

.left-side a:hover {
  text-decoration: underline;
}

.services-header a {
  color: black ;
}

.services-header a:hover {
  color: rgb(22, 100, 255) ;

}



.services-container {
  display: flex;
  justify-content: start;
  width: 100%;
}



/* Position the figcaption absolutely */
.services-container .service-item {
  position: relative;
  margin: 0px;
  text-align: left; /* Align text left */
  
}

#left-service-item{
  margin-right: 1vh;
}


.services-container .service-item figcaption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.74);
  color: #e2e2e2;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  text-align: left;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}




.services-container .service-item:hover figcaption {
  background: rgba(0, 32, 173, 0.692);
  transition: transform 0.3s ease; /* Add a smooth transition effect */
}



.services-container .service-item figcaption p {
  margin: 5px;
}

.services-container .service-item figcaption h2{
  margin: 0;
  text-align: center;
  padding: 5px;
}

/* Media query for smaller screens */
@media (max-width: 1400px) {
  .service-item h2{
    font-size: 17px;
    font-weight: 700;
  }
  .service-item p {
    font-size: 10px; /* Adjust the font size for smaller screens */
  }
}


.service-item img {

  opacity: 1;
  max-width: 100%;
  height: 150px;
}





/* Main column */
.middle {
  flex: 2;
  background-color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
  
}

.middle video {
  width: 100%;
  height: auto;
  min-width: 300px;
  
}


/* Right column */
.right-side {
  flex: 0.5;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;

  background-color: #ffffff;
  
  margin-right: -20px;
  overflow: hidden;

}
.right-side h4 {
  margin-bottom: 50px;
  
}

.right-side a {
  
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 50px;
    line-height: 20px;
}


.right-side a:hover {
  text-decoration: underline;
}




.row2 {

  flex-wrap: wrap;
  margin-right: 5vh !important;
  margin-left: 3vh !important;
  
  display: flex;

}
.row2 img{

  width: 200px;
  padding: 3vh;
  transition: transform 0.3s ease-in-out;
}

.row2 img.anab {
  width: 180px; /* Adjust the width as per your requirement */
}



.row2 img:hover {
  transform: scale(1.1);
}


.left-side2 {
  flex: 1;
  flex-shrink: 0;
  background-color: #ffffff;
}

.right-side2 {
  flex: 1;
  flex-shrink: 0; 
  background-color: #ffffff;
 
}



.flip-card {
  background-color: transparent;
  width: 100%;
  height: 30vh;
  border: 1px solid #f1f1f1;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: opacity 0.4s;
}

.left-side2 .flip-card:hover .flip-card-inner {
  opacity: 1;
}

.right-side2 .flip-card:hover .flip-card-inner {
  opacity: 1;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background-color: transparent;
  background-size: cover;
  background-position: center;
}

.left-side2 .flip-card-front {
  background-image: url('media/accreditations-home-2.jpg');
}

.right-side2 .flip-card-front {
  background-image: url('media/registrations.jpg');
}

.flip-card-front h2 {
  background-color: rgba(1, 51, 218, 0.61);
  padding: 20px;
  padding-right: 140px;
  padding-left: 140px;
  color: whitesmoke;
}

.flip-card-back {
  height: 100%;
  width: 100%;
  opacity: 0;
  background-image: url('media/pattern2.jpg');
  background-color: rgb(174, 206, 253);
  color: rgb(255, 255, 255);
  transition: opacity 0.8s;
}
.left-side2 .flip-card:hover .flip-card-back {
  opacity: 1;
}

.right-side2 .flip-card:hover .flip-card-back {
  opacity: 1;
}

.flip-card .overlay-text {
  position: absolute;
  top: 0.1px; /* Adjust the distance from the top as needed */
  left: 50%;
  transform: translateX(-50%);
  color: #000000;
  text-align: center;
  font-size: 18px;
}

.flip-card-back img {
  margin-top: 2vh;
}

.row2-5 {
  margin-right: 5vh !important;

  padding: 50px;
  padding-top: 70px;
  padding-bottom: 70px;
  display: flex;
}

.row2-5 .left-side2-5 {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  text-align: left;
  line-height: 35px;
  font-size: 30px;
  font-weight: 500;
}

.left-side2-5 {
  flex: 1;
}

.right-side2-5 {
  flex: 2;
  background-color: #ffffff;
}





.gallery-container img {
  width: 150px;
  height: 150px;
  padding: 20px;
  margin-right: 1vh;
  
  border: 2px solid #e0e0e0; /* Set a light color border */
  transition: border-color 0.3s ease; /* Add transition for smooth effect */
}

.gallery-container img:hover {
  border-color: #66b2ff; /* Change border color on hover */
}





.row3 {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  overflow: hidden;
  height: 40vh; /* Match the height with the slideshow-container */
}
.slideshow-container:hover {
  padding: 0; /* Change padding on hover */
}


.left-side3 {
  flex: 1;
  flex-shrink: 0; 
  background-color: #ffffff;
  padding: 10px;
}

.left-side3 img {
  width: 80%;
  padding-left: 1vh;
  
}

.left-side3 h3, p {
  text-align: left;
  padding-left: 1vh;
}

.right-side3 {
  flex: 5;
  flex-shrink: 0; 
  background-color: #eeeeee;
  color:#000;
  padding: 6vh;

  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
}

.slideshow-container:hover .row3 .right-side3 {
  background-color: rgb(28, 106, 250);
  color: white;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  margin-top: 20px;
}

.active {
  background-color: #717171;
}






.main-gallery {
  background: #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
  border-top: solid 5px #1c6bff;
  height:  36vh; 
  width: 98%;
  margin: 0 auto; /* Center the element horizontally */
  transition: background-color 0.3s;
  margin-bottom: 40px;

}

.main-gallery:hover {
  background-color: #1c6bff;
}

.gallery-cell {
  width: 100%;

}

.testimonial {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.testimonial-avatar {
  width: 50px;

}

.testimonial-quote {
  display: block;
  font-size: 14px;
  font-weight: 300;
  padding: 20px;
  text-align: justify;
  padding-right: 60px;
  padding-left: 60px;
  
}


.testimonial-author {
  display: block;
  font-weight: 800;
  color: #1c6bff;
  font-size: 14px;
}

.main-gallery:hover .testimonial-quote,
.main-gallery:hover .testimonial-author {
  color: #fff; /* Change text color to white on hover */
}

.main-gallery .flickity-page-dots {
  bottom: -25px;
}
/* white circles */
.flickity-page-dots .dot {

  opacity: 1;
  background: transparent;
  border: 2px solid rgb(6, 6, 6);
}
/* fill-in selected dot */
.flickity-page-dots .dot.is-selected {
  background: rgb(46, 121, 251);
  border: rgb(43, 0, 255);
}

.testimonial-heading {
  text-align: center;
  color: #4163ff9c;
  font-weight: 500;
  margin-bottom: 1px;
  }
  

 /* Media query for mobile devices */
@media (max-width: 767px) {
  /* Reset box-sizing and apply a common font family */


  body {
    font-family: 'Open Sans', sans-serif;
  }

  
  .not-nav{
    padding-left:10px ;
    padding-right: 10px;
  }



  /* Adjusting row margins */
  .row,
  .row2,
  .row2-5,
  .row3 {
    margin: 0!important;
  }
.middle{
  display: none;
}
  /* Adjusting column flex properties */
  .left-side,
  .middle,
  .right-side,
  .left-side2,
  .right-side2,
  .left-side2-5,
  .right-side2-5,
  .left-side3,
  .right-side3 {
    flex: 100%;
    margin: 0!important;
  }

  /* Adjusting font sizes for headings */
  .row .left-side h2 {
    font-size: 20px;
  }

  .row .left-side p, .row .left-side a {
    font-size: 12px;
  }


  .row .right-side{
    display: none;
  }

  .row .right-side h4 {
    margin-bottom: 10px;
    font-size: 15px;
  }
  .row .right-side p, .row .right-side a {
    font-size: 12px;

  }


  .row2 {
    margin-top: 10px!important;
  }

.flip-card{
  height: 100px;
  margin-top: 10px!important;
}

  .flip-card-inner {
    opacity: 1 ;
  }

  .flip-card-back {
    opacity: 1 ;
  }




  .flip-card .overlay-text {
    position: absolute;
    top: 0.1px; /* Adjust the distance from the top as needed */
    left: 50%;
    transform: translateX(-50%);
    color: #000000;
    text-align: center;
    white-space: nowrap; /* Prevent text from wrapping */
    font-size: 10px;
    font-weight: bold;
  }
  
  .flip-card-back img {
    width: 100px;
  }


  .row2 img.anab {
    width: 100px; /* Adjust the width as per your requirement */
  }
  


  .row2-5 {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the content horizontally */
    margin-bottom: 10px!important;
    margin-top: 10px!important;
  }
  
  .row2-5 .left-side2-5 p{
    font-size: 0.8rem;
    text-align: center;
    line-height: normal;
    margin-bottom: 0px!important;
  }
  

  .left-side2-5,
  .right-side2-5 {
    width: 100%; /* Ensure each side takes up the full width */
  }
  
 
  .gallery-container img {
    width: 90px;
    height: 90px;

  }
  
  .testimonial-heading, .main-gallery {
    display: none;
  }
 
  
  




  

}

