/*======================================
=                  Fonts               =
======================================*/
@font-face {
  font-family: 'Plain';
  src: url('../fonts/Plain-Regular.woff2') format('woff2'),
    url('../fonts/Plain-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Plain';
  src: url('../fonts/Plain-Light.woff2') format('woff2'),
    url('../fonts/Plain-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}



@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Regular.woff2') format('woff2'),
    url('../fonts/lato/Lato-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/*@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Black.woff2') format('woff2'),
    url('../fonts/lato/Lato-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}*/



/*======================================
=                 Colors                =
======================================*/
:root {
  --primary-color: #00549f;
  --secondery-color: #8ebae5;
  --white-color: #ffffff;
  --dark-color: #011930;
  --about-bg-color: #f9f9f9;
  --bg-color: #011930;

  --dark-blue: #012751;

  --gray-color: #909090;
  --link-color: #404040;
  --p-color: #666262;


  /* RWTH COLOR PALETTE */

  /* RWTH-Blau Color Palette */
  --rwth-blue-darker: #00549f;
  --rwth-blue-dark: #407fb7;
  --rwth-blue-sky: #8ebae5;
  --rwth-blue-light-sky: #c7ddf2;
  --rwth-blue-light: #e8f1fa;

  /* RWTH-orange Color Palette */

  --rwth-orange: #f6a800;
  --rwth-orange-light: #fabe50;



  --base-font-family: 'Plain', sans-serif;
  --font-weight-bold: bold;
  --font-weight-normal: normal;
  --font-weight-light: 300;
  --font-weight-thin: 100;


  --big-font-size: 60px;
  --h1-font-size: 48px;
  --h2-font-size: 36px;
  --h3-font-size: 28px;
  --h4-font-size: 24px;
  --h5-font-size: 22px;
  --h6-font-size: 22px;
  --p-font-size: 18px;
  --base-font-size: 16px;
  --menu-font-size: 14px;


  --border-radius-large: 100%;
  --border-radius-small: 2px;
}


body {
  background: var(--white-color);
  font-family: var(--base-font-family);
  overflow-x: hidden;
  width: 100%;
}




/*======================================
=                 Typography            =
======================================*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-thin);
  line-height: normal;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 20px 0;
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: -2px;
}

h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: -1px;
  margin: 0;
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  color: var(--gray-color);
  font-size: var(--h6-font-size);
  line-height: inherit;
  margin: 0;
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
  line-height: 1.5em;
}

b,
strong {
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
}

.section {
  padding: 7rem 0;
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: var(--font-weight-bold);
}


.rwth-blue-color {
  color: var(--primary-color);
}

.rwth-light-color {
  color: var(--secondery-color);
}

/*======================================
=                 Buttons              =
======================================*/

.custom-btn {
  background: transparent;
  border-radius: var(--border-radius-small);
  padding: 14px 24px;
  color: var(--white-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.custom-btn:hover {
  color: var(--primary-color);
}

.custom-btn:focus {
  box-shadow: none;
}

.custom-btn.bordered:hover,
.custom-btn.bordered:focus,

.custom-btn.bg-color:hover,
.custom-btn.bg-color:focus {
  background: var(--white-color);
  border-color: transparent;
  color: var(--primary-color);
}

.bordered {
  border: 1px solid var(--white-color);
  color: var(--white-color);
}

.bg-color {
  background: var(--primary-color);
  color: var(--white-color);
}



.section-title h2 {
  margin-bottom: 2.5rem;
  color: white;
  letter-spacing: 5px;

}



/*======================================
=                 General              =
======================================*/

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

a {
  color: var(--link-color);
  font-weight: normal;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:active,
a:focus {
  color: var(--primary-color);
  outline: none;
  text-decoration: none;
}


/*======================================
=            colors palette            =
======================================*/

.primary-color {
  color: var(--rwth-blue-darker) !important;
}

.secondery-color {
  color: var(--rwth-blue-light-sky);
}

.rwth-orange {
  color: var(--rwth-orange) !important;
}


/*======================================
=                 Modal               =
======================================*/

.modal-content {
  padding: 2rem 3rem;
}

.modal-header,
.modal-body,
.modal-footer {
  border: 0;
  padding: 0;
}

.membership-form a {
  color: var(--primary-color);
}




/*======================================
=                 Navbar               =
======================================*/

.black-nav {
  background: var(--dark-color);
  width: 100%;
  height: 2rem;

}

.logo-bg {
  width: auto;
  height: auto;
  position: absolute;
  top: -2rem;
  background-color: #ffffff;
  display: inline-block;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: top 0.3s ease-in-out;

}

.logo {
  width: 350px;
  padding: 2.2rem 1rem;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease;

}





/*======================================
=                 Navigation            =
======================================*/

.navbar-collapse {
  color: var(--dark-color);
  background-color: var(--white-color);
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  max-width: 100%;
  /* overflow: hidden; */

}



.navbar {
  background: var(--white-color);
  margin-top: 2rem;
  height: 50px;
  transition: top 0.3s ease-in-out;
  /* Smooth transition */
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 1.5rem;
  /* padding-left: 1.5rem; */
}

.navbar-brand {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  padding-top: 0;
}

.nav-item .nav-link {
  display: block;
  color: var(--dark-color);
  font-family: 'Lato', sans-serif !important;
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  padding: 2px 6px;
  white-space: nowrap
}

.nav-item .nav-link.active,
.nav-item .nav-link:hover {
  color: var(--primary-color);
}

.navbar .social-icon li a {
  color: var(--dark-color);
}

.navbar-toggler {
  border: 0;
  padding-right: 0;
  cursor: pointer;
  margin: 0 10px 0 0;
  /* width: 30px; */
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--primary-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--primary-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}




/*======================================
=         Dropdown Language            =
======================================*/

.nav-item .dropdown-menu {
  background-color: white;
  border: 1px solid #ddd;
}

.dropdown-item {
  color: #333;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}



/*======================================
=              Hero Section            =
======================================*/

/* Hero Section With Canvas is in the canvas.css */
.hero {
  background-image: url('../images/SuperC2.jpg');

  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  vertical-align: middle;
  /* min-height: 100vh; */
  min-height: auto;
  padding-top: 8rem;
  padding-bottom: 6rem;
  position: relative;
}


.hero-title {
  font-size: 7rem;
  letter-spacing: -0.1rem;
  line-height: 0.8;
}


.hero-text {
  font-family: 'Lato', sans-serif !important;
  line-height: 0.9;
  margin-top: 0;
}

.hero-text-bold {
  color: var(--white-color);
  /* Blue color for "Computational" */
  font-weight: 700;
  /* Bold weight */
  font-size: 6rem;

}

.hero-notUpercase {
  text-transform: none;
  font-size: 4rem !important;
  white-space: nowrap;

}


.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  /* Or the closest font*/
  font-size: 4rem;
  /* Adjust font size as needed */
  font-weight: 900;
  /* Thin weight */
  color: var(--secondery-color);
  /* Light color to match the example */
  letter-spacing: 0;
  /* Spacing between letters */
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  /* Adjust spacing from "Computational" */
  line-height: 1.2;
  /* Adjust line-height for spacing */
}


/* Responsive Adjustments */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.08rem;
  }

  .hero-text-bold {
    font-size: 2.5rem;
  }

  .hero-notUpercase {
    font-size: 1.5rem !important;
    white-space: nowrap;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .hero-subtitle {
    font-size: 2rem;
    letter-spacing: 0.08rem;
  }

  .hero-text-bold {
    font-size: 3.5rem;
  }

  .hero-notUpercase {

    text-transform: none;
    font-size: 2rem !important;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1300px) {
  .hero-subtitle {
    font-size: 4rem;
    letter-spacing: 0.08rem;
  }

  .hero-text-bold {
    font-size: 5rem;
  }
}





/*======================================
=              About Section            =
======================================*/


.dark-section {
  background-color: #212529;
  padding: 5rem 0;
}

.white-section {
  background: var(--about-bg-color);
  padding: 5rem 0;
  color: var(--dark-color);
}

.waves-bg {
  /* background-image: url('../images/waves-bg2.png'); */
  /* opacity: 0.3; */
  background-color: #e5e5f7;
  opacity: 0.8;
  background-image: radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
  background-size: 10px 10px;
}


.boxes {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-rwth {
  font-size: var(--big-font-size);

}

.about {
  background: var(--about-bg-color);
}


.rwth-p-font {
  font-size: var(--h6-font-size);
  color: var(--p-color);
}


.about_text span {
  font-weight: bold;
}

/* Responsive Adjustments */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .why-rwth {
    font-size: var(--h2-font-size);

  }

  .rwth-p-font {
    font-size: var(--h6-font-size);
    color: var(--p-color);
  }

}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .why-rwth {
    font-size: var(--h1-font-size);

  }
}




/*======================================
=         Studies Section              =
======================================*/


#studies-section {
  overflow-x: hidden;
}

.team-thumb {
  position: relative;

}

.team-thumb img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}

/* When the user hovers over the container */
.team-thumb:hover img {
  transform: scale(1.1);
}

.team-thumb:hover .team-info {
  opacity: 1;
}

/* added */
.team-info {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centers the text */
  color: white;
  /* Makes the text visible over the image */
  text-align: center;
  /* Centers the text */
  background: rgba(0, 0, 0, 0.5);
  /* Optional: Adds a translucent background behind the text for better readability */
  padding: 10px;
  /* Adds some padding for the text */
  width: 100%;
}

.team-info h3,
.team-info span {
  margin: 0;
}



.team-info span {
  font-weight: var(--font-weight-light);
  opacity: 0.85;
}

.team-info .social-icon {
  position: absolute;
  top: 10px;
  right: 20px;
}

.team-info .social-icon li {
  display: block;
}


/* ======== Flip-Card Styles ======== */


.flip-card {
  perspective: 1000px;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}

.flip-card-front {
  position: relative;
  overflow: hidden;
}

.card-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;

}

.card-info-overlay h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.card-info-overlay span {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .flip-card-back p {
    font-size: 0.8rem;
  }
}


/* Responsive Adjustments */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

  .card-info-overlay span {
    font-size: smaller;
  }
  .team-thumb {
    /* position: relative;
    width: 100%;
    height: 200px;
    max-width: 400px;
    margin: 10px auto;
    overflow: hidden;
    background-color: var(--dark-color); */

    margin: 10px auto;
    overflow: hidden;
    height: auto;
    object-fit: contain;
    margin: 10px auto;
  }

  .team-thumb img {
    /* width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    transition: all 0.3s ease-in-out; */

    width: 100%;
    /* height: auto; */
    max-height: 250px;
    object-fit: cover;
  }

  .flip-card,
  .flip-card-inner,
  .flip-card-front,
  .flip-card-back {
    height: auto !important;
    min-height: 300px;
  }

  .flip-card-front img {
    border-radius: 8px;
  }

  .team-info {
     bottom: 0%;
    left: 50%;
    transform: translate(-50%, -50%); 

  }

  .team-info-back-card {
    bottom: 0%;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .team-info-back-card h3 {
    font-size: 1.2rem;
  }

  .team-info-back-card p {
    font-size: 0.8rem;
  }

  .team-info-back-card button {
    font-size: 0.7rem;
  }


}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}



/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  #institutes .img-title {
    font-size: 20px;
  }
}










/*---------------------------------------
     Testemonial               
  -----------------------------------------*/
.class {
  background: var(--bg-color);
}

.class-thumb img {
  border-radius: 2px 2px 0 0;
  min-height: 250px;
}

.class-info {
  background: var(--white-color);
  box-shadow: 6px 0 38px rgba(20, 20, 20, 0.10);
  border-radius: 0 0 2px 2px;
  padding: 1rem 2rem;
  position: relative;
}

.class-info img {
  border-radius: 2px 2px 0 0;
}

.class-info strong {
  color: var(--gray-color);
}

.class-price {
  background: var(--primary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  display: block;
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  line-height: 3.5rem;
  text-align: center;
}


.carousel-inner h5,
.carousel-inner p {
  color: white !important;
}


.carousel-inner i {
  color: gray !important;
}




/*---------------------------------------
     FOOTER              
  -----------------------------------------*/

/* 
  .footer {
    background-color: rgb(63, 63, 63);
  } */



.footer h5 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer ul {
  padding: 0;
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #f8d210;
  /* Highlight color for hover */
}

.footer .bi {
  margin-right: 8px;
  /* Icon spacing */
}



/*---------------------------------------
     SOCIAL ICON              
  -----------------------------------------*/

.social-icon {
  position: relative;
  padding: 0;
  margin: 5px 0 0 0;
}

.social-icon li {
  display: inline-block;
  list-style: none;
}

.social-icon li a {
  text-decoration: none;
  display: inline-block;
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-bold);
  margin: 5px 10px;
  text-align: center;
}

.social-icon li a:hover {
  color: var(--primary-color);
}


/*---------------------------------------
     RESPONSIVE STYLES              
  -----------------------------------------*/

@media screen and (max-width: 992px) {

  .section {
    padding: 5rem 0;
  }


  .navbar .social-icon {
    margin-top: 22px;
  }

  .navbar-collapse,
  .site-footer {
    text-align: center;
    z-index: 2000;
  }

  .navbar-collapse ul li {
    border-bottom: 1px solid rgb(142, 142, 142);
    z-index: 2000;
  }

  .schedule-table {
    display: block;
  }

  .modal-content {
    padding: 2rem;
  }

}

@media screen and (max-width: 767px) {

  h1 {
    font-size: 38px;
  }

  .about-working-hours {
    border-left: 0;
    padding: 22px 0 0 0;
  }

  .contact h2 span {
    display: block;
  }

}

/* Mobile Device */


@media screen and (max-width: 480px) {
  .logo-bg {
    width: 200px;
  }

  .logo {
    width: 250px;
    padding: 1rem 0.5rem;
  }

}





.card-header .fa {
  transition: .3s transform ease-in-out;
}

.card-header .collapsed .fa {
  transform: rotate(90deg);
}

.card-header h4 {
  font-weight: var(--font-weight-normal);
}



/* section seprator */

:root {
  --section-1-color: #009999;
  --section-2-color: #006666;
  --section-3-color: #003333;
  --section-empty-color: #ccffff;
}

.block {
  width: 100%;
  height: 100px;
  background: #ccffff;
}

.block h1 {
  padding-top: 25px;
  padding-bottom: 25px;
  text-align: center;
  font-family: "Lobster", serif;
  font-size: 3em;
  letter-spacing: 0.1em;
}

.ss::before,
.ss::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.ss {
  position: relative;
  height: 30vh;
  min-height: 150px;
}

#section1 {
  background: var(--section-1-color);
}

#section1::after {
  background: var(--section-1-color);
}

#section2 {
  background: var(--section-2-color);
}

#section2::after {
  background: var(--section-2-color);
}

#section3 {
  background: var(--section-3-color);
}

#section-empty {
  background: inherit;
}


:root {
  --ss-triangle-dimmensons: 100px;
}

.ss-triangle-bottom::after {
  left: 50%;
  width: var(--ss-triangle-dimmensons);
  height: var(--ss-triangle-dimmensons);
  -webkit-transform: translateX(-50%) rotate(45deg);
  transform: translateX(-50%) rotate(45deg);
}

.ss-triangle-bottom::after {
  bottom: calc(-1*var(--ss-triangle-dimmensons)/2);
  z-index: 9999;
}



/* Back to top button */

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  /* background-color: --var(--primary-color); */
  z-index: 9999;
}













/* Testemonials  */

/* Make the left/right control areas smaller and remove any gray overlay */
.carousel-control-prev,
.carousel-control-next {
  width: auto;
  /* or use something like 5% instead of 15% */
  background: none;
  /* remove default background */
  border: none;
  opacity: 10;
  /* ensure they stay visible */
}

/* Adjust the arrow icons themselves */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 2rem 2rem;
  /* make arrow icons smaller or bigger as needed */
  width: 2rem;
  height: 2rem;
  filter: invert(1);
  /* turn them white on dark backgrounds */
}

.carousel-control-next {
  right: -40px;
}

.carousel-control-prev {
  left: -40px;
}

@media screen and (max-width: 480px) {

  .carousel-control-next,
  .carousel-control-prev {
    display: none;
  }


}

/* Testimonial Carousel Styles */
.testimonial-carousel {
  position: relative;
  width: 100%;
  padding: 2rem 0;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
  padding: 1rem;
  width: 100%;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  background: rgba(48, 48, 48, 0.4);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.5s ease;
  transform: scale(0.9);
  opacity: 0.7;
  filter: blur(2px);
}

.testimonial-card.active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  /* background: rgba(255, 255, 255, 0.15); */
  background: rgba(0, 0, 0, 0.4);
}

.testimonial-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.testimonial-name {
  color: #000000;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.testimonial-title {
  color: rgba(48, 47, 47, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: bold;

}

.testimonial-text {
  color: rgba(38, 38, 38, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Puse the card by Hover */

/* show a “paused” icon in the top-right corner */
.testimonial-carousel.paused::before {
  content: "\f28b";
  /* Unicode for FontAwesome “pause” */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: rgba(108, 106, 106, 0.8);
  pointer-events: none;
  /* clicks pass through */
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* optional: fade it out when you resume quickly */
.testimonial-carousel:not(.paused)::before {
  opacity: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(69, 69, 69);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: rgb(237, 236, 236);
  border: 1px solid rgb(69, 69, 69);
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .carousel-container {
    gap: 0;
    width: 100%;
  }

  .testimonial-card {
    flex: 0 0 100%;
    margin: 0;
    transform: scale(1);
    opacity: 1;
    filter: none;
  }

  .testimonial-card.active {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .testimonial-carousel {
    padding: 1rem 0;
  }

  .carousel-container {
    padding: 0;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-img {
    width: 100px;
    height: 100px;
  }

  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-name {
    font-size: 1.1rem;
  }

  .testimonial-title {
    font-size: 0.8rem;
  }
}





/* Institutes page  */

.head-text {
  padding-left: 10px !important;

}

.head-text p {

  margin-bottom: 2px !important;
}

.justify-text {
  text-align: justify;
  /* text-align-last: justify; */
}


.institute-video {
  padding: 0 30px;
}

.text-section h4 {
  font-weight: 400;
}


@media (max-width: 768px) {

  .head-text {
    margin: 0 !important;
    padding: 0 34px !important;
    width: 100% !important;

  }

  .subtext {
    max-width: 100%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    text-align: justify;
    text-align-last: justify;
  }
}




/* Life section */


/* ======== Custom Mobile Navbar Styles ======== */
.navbar-collapse.custom-open {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  color: white;
  font-size: 1.2rem;
  padding-top: 3rem;
  transition: all 0.4s ease-in-out;
  z-index: 1050;
  display: block;
  opacity: 1;
}

.navbar-collapse.custom-close {
  opacity: 0;
  right: -60%;
  transition: all 0.4s ease-in-out;
}

@media screen and (max-width: 480px) {
  .navbar-collapse ul li a {
    font-size: 1.4rem;
  }
}





/* ————————————————————————————————————————————————
   MOBILE SLIDING HAMBURGER MENU (≤480px)
   slides in from the right, 50% width, 100% height,
   semi-transparent white background, fade & font enlarge
———————————————————————————————————————————————— */

@media screen and (max-width: 480px) {
  .navbar-collapse {
    position: fixed !important;
    top: 0;
    right: 0;
    height: 100vh !important;
    width: 50vw;
    max-width: none;
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
    /* push links below the top bar */
  }

  .navbar-collapse.show {
    transform: translateX(0);
    opacity: 1;
  }

  .navbar-collapse .nav-link {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    transition: opacity 0.3s ease-in-out 0.1s;
    opacity: 0;
  }

  .navbar-collapse.show .nav-link {
    opacity: 1;
  }

  /* keep the toggler above the sliding panel */
  .navbar-toggler {
    z-index: 1100;
  }
}

/* disable background scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}