:root {
  --primary-color: #0F3F7F;
  --secondary-color: #D5B163;
  --font: "Fredoka", sans-serif;
}

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

/* Logo */
.logo-wrapper {
  z-index: 20;
  padding: 30px 40px 40px 300px;
  background-color: #ffffff;
  border-radius: 0px 70px 0px 0px;
  box-shadow: 4px 0px 0px 0px rgba(213, 177, 99, 1);
  position: absolute;
}
.logo-wrapper img {
  height: 80px;
}

/* Top Info Bar */
.header-gray-bg {
  background-color: #F8F8F8;
  width: 100%;
  padding: 10px 0;
}

.top-info-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid rgba(175, 175, 175, 0.2);
  padding-bottom: 20px;
  font-size: 16px;
}

.top-info-bar a {
  color: #333;
  text-decoration: none;
  margin-left: 15px;
}

.top-info-bar img {
  padding-right: 10px;
}

header {
    position: relative;
    width: 100%;
    z-index: 999;
    transition: all 0.5s ease; 
}

header.fix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: smoothScroll 0.5s forwards;
}

header.fix .web-logo img {
    height: 50px; 
    transition: all 0.5s ease;
}

header.fix nav#topMenu ul li a {
    transition: all 0.3s ease;
}

header.fix nav#topMenu ul li a:hover {
    transform: translateY(-2px);
}

@keyframes smoothScroll {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navbar */
.home-menu .navbar-nav .nav-item .nav-link {
    padding: 10px 20px;
    color: #333;
    transition: all 0.3s ease;
    font-size: 16px;
}

.home-menu .navbar-nav .nav-item.active .nav-link {
  color: var(--primary-color);
  font-weight: 600;
}

#topMenu .nav-link:hover {
  color: var(--primary-color);
  background-color: #ebf0ff;
  border-radius: 4px;
  font-weight: 500;
}


#topMenu .contact-us-with-icon .nav-link {
  background-color: var(--secondary-color);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  margin-left: 20px;
}
#topMenu .contact-us-with-icon .nav-link i {
  color: #fff;
  margin-right: 5px;
}
#topMenu .contact-us-with-icon .nav-link:hover {
  background-color: #d4a94a;
  text-decoration: none;
}

#topMenu .contact-us-with-icon.active .nav-link {
    background-color: #ddb45d;
    color: var(--primary-color);
}


/* Dropdown */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* Splide Slider */
.home_slides ul.splide__list li.splide__slide {
  height: 700px; /* desktop height */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  filter: brightness(0.9);
  position: relative;
}

/* Top Contact Info (optional overlay) */
.top-contact-info {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.top-contact-info a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.dropdown-item {
    font-size: 16px;
}

.top-contact-info a img {
  margin-right: 5px;
  width: 20px;
  height: 20px;
}

/* responsive */

@media (max-width: 1800px) { 
    .logo-wrapper {
    padding: 30px 40px 40px 250px;
    }
}

@media (max-width: 1700px) { 
    .logo-wrapper {
    padding: 30px 40px 40px 200px;

    }
}

@media (max-width: 1675px) { 
    .logo-wrapper {
    padding: 30px 40px 40px 200px;

    }
}

@media (max-width: 1630px) { 
    .logo-wrapper {
    padding: 30px 40px 40px 170px;
    }
}

@media (max-width: 1500px) { 
    .logo-wrapper {
    padding: 30px 40px 40px 100px;
    }
}


@media (max-width: 1450px) { 
    .logo-wrapper {
    padding: 30px 40px 40px 90px;

    }
}


@media (max-width: 1399px) { 
    .home-menu .navbar-nav .nav-item .nav-link {
    padding: 10px 10px;
}
}

@media (max-width: 1200px) { 
.logo-wrapper {
    padding: 30px 40px 40px 60px;
    }

.header-gray-bg .container {
        max-width: 1320px;
    }

}

@media (max-width: 1121px) { 

.logo-wrapper img {
    height: 70px;
}

.logo-wrapper {
    padding: 41px 30px 40px 30px;
}

}

@media (max-width: 1120px) { 
.logo-wrapper {
    padding: 30px 30px 40px 30px;
    }


}

@media (max-width: 1101px) { 

.logo-wrapper img {
    height: 70px;
}

.logo-wrapper {
    padding: 41px 30px 40px 30px;
}
}

@media (max-width: 1170px) { 

.logo-wrapper img {
    height: 70px;
}

.logo-wrapper {
    padding: 41px 30px 40px 30px;
}

}


@media (max-width: 1122px) { 

.logo-wrapper img {
    height: 70px;
}

.logo-wrapper {
    padding: 41px 30px 40px 30px;
}

}

@media (max-width: 1070px) { 

.logo-wrapper img {
    height: 65px;
}

    .logo-wrapper {
        padding: 41px 25px 45px 30px;
    }

}

@media(max-width: 1060px) {

    #topMenu {
        display: none !important;
    }

  .logo-bg {
    height: auto;
  }

    .logo-wrapper {
        position: relative;
        padding: 20px 20px 20px 60px;
        border-radius: 0 40px 0px 0px;
        box-shadow: none;
        margin: 0 auto;
        text-align: center;
        background-color: #ffffff;
        box-shadow: 4px 0px 0px 0px rgba(213, 177, 99, 1);
    }


  .logo-wrapper img {
    height: 60px;
  }

  /* top info bar */

    .row > .col-12.py-2 {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        flex-wrap: wrap; 
        padding: 10px 0;
    }

    #my-icon {
        display: block;
        margin: 0; 
        order: 2; 
    }

        .top-info-bar {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        order: 1;
        white-space: nowrap;
        margin-right: 35px;
        padding-top: 10px;
        border-bottom: none;
    }

    .top-info-bar a {
        margin-left: 0;
    }

 #my-icon {
    display: block !important;
}

#topMenu {
    display: none !important;
}

  nav#menu {
    width: 100%;
    background: #ffffff;
    padding: 20px;
  }

  nav#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  nav#menu ul li {
    border-bottom: 1px solid #eee;
  }

  nav#menu ul li a {
    display: block;
    padding: 14px 10px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
  }

  nav#menu ul li.active a {
    color: var(--primary-color);
    font-weight: 600;
  }

  header.fix {
    position: relative;
    box-shadow: none;
  }
}

@media (max-width: 920px) {

    .top-info-bar > a[href="mailto:eliteacademy343@gmail.com"] {
        display: none !important;
    }

    .top-info-bar > a[href="tel:+959421016034"] {
        display: none !important;
    }

    .top-info-bar > a[href="#"] {
        display: inline-block !important;
        margin-left: 10px;
    }
}

#my-icon {
    display: none;
}

@media (max-width: 530px) {
    .top-info-bar {
        display: none !important;
    }
    #my-icon {
        display: block !important;
    }
}

@media (max-width: 360px) {
.logo-wrapper img {
    height: 50px;
}

    .logo-wrapper {
        padding: 25px 30px 28px 30px;
    }
}


/* home banner slider */

.splide__caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  color: #fff;
  z-index: 4;
  padding: 0 15px;
}

.splide__slide__container h1 {
  font-weight: 500;
  font-size: 50px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.splide__slide__container p {
  font-size: 16px;
  line-height: 1.5;
}

.top-contact-info {
    position: absolute;
    top: 550px;
    left: 0%;
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0px;
    padding-left: 300px;
    padding-right: 80px;
    z-index: 2;
    clip-path: polygon(0% 0%, 0% 0%, 100% 0%, 100% 0%, 92% 150%, 0% 100%);
    width: 800px;
    align-items: center;
}


.top-contact-info img {
    width: 20px;   
    height: auto;
    margin-right: 10px;
}

.top-contact-info a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 16px;
}

/* Responsive adjustments */

@media (max-width: 1600px) {

.home_slides ul.splide__list li.splide__slide {
    height: 650px;
  }

.top-contact-info{
    top: 530px;
    padding-left: 150px;
}

}

@media (max-width: 1400px) {

.home_slides ul.splide__list li.splide__slide {
    height: 600px;
  }

.top-contact-info{
    display: none;
}

}

@media (max-width: 1300px) {
.home_slides ul.splide__list li.splide__slide {
    height: 550px;
    justify-content: flex-start;
  }
}

@media (max-width: 1200px) {
.home_slides ul.splide__list li.splide__slide {
    height: 500px;
    justify-content: flex-start;
  }

    .splide__slide__container h1 {
    font-size: 40px;
  }

}


@media (max-width: 1100px) {
.home_slides ul.splide__list li.splide__slide {
    height: 450px;
    justify-content: flex-start;
  }

  .splide__slide__container h1 {
    font-size: 34px;
  }

  .splide__slide__container p {
    font-size: 16px;
  }

  .splide__caption {
    top: 30%;
    padding: 0 20px;
  }
}

@media (max-width: 992px) {
  .home_slides ul.splide__list li.splide__slide {
    height: 400px;
  }


}

@media (max-width: 768px) {
  .home_slides ul.splide__list li.splide__slide {
    height: 250px;
    justify-content: flex-start;
  }

  .splide__slide__container h1 {
    font-size: 20px;
  }

    .splide__slide__container p {
    font-size: 14px;
    width: 320px;
  }

  .splide__caption {
    top: 25%;
  }

}

@media (max-width: 600px){
      .splide__slide__container{
        display: none;
      }
}

@media (max-width: 480px) {
  .home_slides ul.splide__list li.splide__slide {
    height: 250px;
  }

  .splide__slide__container h1 {
    font-size: 22px;
  }

  .splide__slide__container p {
    font-size: 12px;
  }

  .splide__caption {
    top: 20%;
  }
}

@media (max-width: 440px) {
  .home_slides ul.splide__list li.splide__slide {
    height: 220px;
  }
}

@media (max-width: 400px) {
  .home_slides ul.splide__list li.splide__slide {
    height: 200px;
  }
}

@media (max-width: 360px) {
  .home_slides ul.splide__list li.splide__slide {
    height: 150px;
  }

.splide__slide__container{
        display: none;
    }
}

/* home about-us section */

.home-about-us {
    padding: 120px 0 50px;
    font-family: var(--font); 
}


.home-about-us .title h2 {
    font-size: 24px;
    font-weight: medium;
    color: var(--secondary-color);
    padding-top: 7px;
}

.home-about-us h2 span {
    color: var(--primary-color); 
}

.home-about-us p {
    font-size: 16px;
    color: #555;
}

.home-about-us .col-sm-6 > .d-flex {
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.home-about-us .d-flex img {
    height: auto;
}

.about-img-col1{
    margin-right: 20px;
}

.home-about-us .year h3{
    font-size: 55px;
    color: #fff;
    padding-right: 20px;
}

.home-about-us .year p{
    font-size: 19px;
    color: #fff;
    align-items: center;
    padding-top: 12px;
}

.d-flex.year {
    background-color: var(--primary-color);
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 16px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 6px -5px 0 #0F3F7F;
    margin-top: 12px;
}

.read-more-btn:hover {
    background: #e9bc5c;
    transform: translateY(-2px);
    color: #fff;
}

/* responsive */

.home-about-us img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1000px) {
        .home-about-us h2 {
        font-size: 32px;
    }
}

@media (max-width: 1200px){

    .home-about-us .year {
        justify-content: center;
        text-align: center;
        margin-top: 15px;
        height: 80px;
    }

    .home-about-us .year h3 {
        font-size: 36px;
    }

    .home-about-us .year p {
        font-size: 16px;
    }

    .home-about-us h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .home-about-us p {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 991px) {

    .home-about-us .row {
        flex-direction: column;
    }

    .home-about-us .col-sm-6 {
        width: 100%;
        max-width: 100%;
    }

    .home-about-us .col-sm-6.d-flex {
        justify-content: center;
        margin-bottom: 30px;
    }

    .about-img-col1,
    .about-img-col2 {
        text-align: center;
    }

    .about-img-col1 img,
    .about-img-col2 img {
        max-width: 100%;
        height: auto;
    }

    .home-about-us .year {
        justify-content: center;
        text-align: center;
        margin-top: 20px;
        height: 75px;
    }

    .home-about-us .year h3 {
        font-size: 40px;
    }

    .home-about-us .year p {
        font-size: 16px;
    }

    .home-about-content {
        text-align: center;
        padding: 0 15px;
    }

    .home-about-content .title {
        justify-content: center;
    }

    .home-about-us h2 {
        font-size: 32px;
        line-height: 1.3;
    }

    .home-about-us p {
        font-size: 16px;
        line-height: 1.6;
    }

    .home-about-content .read-more-btn {
        display: inline-block;
        margin-top: 15px;
    }
}


@media (max-width: 767px) {

    .home-about-us {
        padding: 60px 0 30px;
        text-align: center;
    }

    .home-about-us h2 {
        font-size: 22px;
        line-height: 1.4;
    }

    .home-about-us .year{
        height: 70px;
    }

    .home-about-us .year h3 {
        font-size: 36px;
    }

    .home-about-us .year p {
        font-size: 14px;
    }

    .read-more-btn {
        font-size: 15px;
        padding: 10px 22px;
        margin-top: 15px;
    }
}


@media (max-width: 480px) {

    .home-about-us h2 {
        font-size: 22px;
    }

    .home-about-us p {
        font-size: 14px;
    }

    .home-about-us .year{
        font-size: 20px;
        margin-top: 15px;
        padding: 0px 0px;
        height: 70px;
    }

    .home-about-us .year p {
        font-size: 13px;
    }
}


@media (max-width: 360px) {

    .home-about-us .year{
        margin-top: 5px;
        padding: 0px 0px;
        height: 60px;
    }

    .home-about-us h2 {
        font-size: 18px;
    }

}

/* home our courses */

#home-our-courses {
    position: relative;
    padding-bottom: 100px;
    text-align: center;
    overflow: hidden;
}

#home-our-courses > div:first-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    width: 100%;
    height: auto;
    z-index: 0;
}

#home-our-courses > div:first-child img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#home-our-courses .container {
    position: relative;
    z-index: 2;
    padding-top: 150px;
}

#home-our-courses .home-our-courses-info .title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.home-our-courses-info .title h2 {
    color: #fff;
    font-size: 24px;
    align-items: center;
    padding-top: 10px;
}

#home-our-courses .home-our-courses-info h3 {
    font-size: 40px;
    color: #fff;
    line-height: 1.2;
}

/* Courses Cards */
#home-our-courses .row:nth-child(2) .col-sm-4 {
    position: relative;
    margin-bottom: 30px;
}

#home-our-courses .row:nth-child(2) .col-sm-4 p {
    position: absolute;
    bottom: 50px;
    left: 20px;
    margin: 0;
    color: #fff;
    font-size: 24px;
    padding: 0px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease; 
}

#home-our-courses .row:nth-child(2) .col-sm-4 {
    overflow: hidden; 
    border-radius: 30px; 
}

#home-our-courses .row:nth-child(2) .col-sm-4 .courses-img {
    width: 100%;
    max-width: 100%;
    box-shadow: 13px 13px 0px #e7bd60;
    border-radius: 30px;
    filter: brightness(0.8);
    transition: transform 0.5s ease; 
}

#home-our-courses .row:nth-child(2) .col-sm-4 a:hover p {
    color: rgba(241, 193, 129, 1); 
}

/* Arrow slide on hover */
#home-our-courses .row:nth-child(2) .col-sm-4 a:hover p img {
    transform: translateX(5px); 
    transition: transform 0.3s ease;
}

/* Hover zoom */
/* #home-our-courses .row:nth-child(2) .col-sm-4:hover .courses-img {
    transform: scale(1.1);
} */

#home-our-courses .row:nth-child(2) .col-sm-4 a {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* space between text and arrow */
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(8, 21, 46, 1); /* original text color */
}

/* Hover effect */
#home-our-courses .row:nth-child(2) .col-sm-4 a:hover {
    color: rgba(241, 193, 129, 1); /* primary color */
}

/* Move arrow slightly on hover */
#home-our-courses .row:nth-child(2) .col-sm-4 a img {
    transition: transform 0.3s ease;
}

#home-our-courses .row:nth-child(2) .col-sm-4 a:hover img {
    transform: translateX(5px); /* arrow slides right */
}



/* Responsive Adjustments */

@media (max-width: 576px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 24px;
    }
    #home-our-courses .row:nth-child(2) .col-sm-4 p {
        font-size: 16px;
        padding: 0 12px;
    }

    #home-our-courses > div:first-child img {
    width: 100%;
    height: 200px;
    display: block;
    margin: 0 auto;
    }

}

@media (max-width: 600px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 22px;
    }
    #home-our-courses .row:nth-child(2) .col-sm-4 p {
        font-size: 14px;
        padding: 0 10px;
    }
    #home-our-courses > div:first-child img {
    height: 200px;
    }
}

@media (min-width: 600px) and (max-width: 768px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 28px;
    }
    #home-our-courses .row:nth-child(2) .col-sm-4 p {
        font-size: 18px;
        padding: 0 16px;
    }
    #home-our-courses > div:first-child img {
    height: 220px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 32px;
    }
    #home-our-courses .row:nth-child(2) .col-sm-4 p {
        font-size: 20px;
        padding: 0 20px;
    }

    #home-our-courses > div:first-child img {
    height: 270px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 36px;
    }

    #home-our-courses > div:first-child img {
    height: 320px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 38px;
    }

    #home-our-courses > div:first-child img {
    height: 380px;
    }
}

@media (min-width: 1400px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 40px;
    }

     #home-our-courses > div:first-child img {
    height: 400px;
    }
}

@media (max-width: 575px) {

    #home-our-courses .row:nth-child(2) .col-sm-4 {
        margin-bottom: 20px;
        text-align: center;
    }

    #home-our-courses .home-our-courses-info .title img {
        content: url("/img/home/about-icon.png");
        height: auto;
    }
    

#home-our-courses .row:nth-child(2) .col-sm-4 {
    width: 400px;
    max-width: 100%;
    margin: 0 auto 40px auto; 
    display: block; 
}


    #home-our-courses .home-our-courses-info .title h2 {
        color: var(--secondary-color);
    }

    #home-our-courses .home-our-courses-info h3 {
        color: #333; 
        font-size: 30px;
    }

    #home-our-courses .courses-bg img {
        display: none !important;
    }

}

@media (max-width: 359px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 18px;
    }

    #home-our-courses .row:nth-child(2) .col-sm-4 p {
        font-size: 13px;
        padding: 0 8px;
    }

    #home-our-courses .courses-img {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 360px) and (max-width: 575px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 22px;
    }

    #home-our-courses .row:nth-child(2) .col-sm-4 p {
        font-size: 14px;
        padding: 0 10px;
    }

    #home-our-courses > div:first-child img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
}

@media (min-width: 576px) and (max-width: 599px) {
    #home-our-courses .home-our-courses-info h3 {
        font-size: 24px;
    }

}



/* home testimonial */
#home-testimonials {
    padding: 60px 0;
    position: relative;
}


.testimonial-card p {
    height: 200px;        
    overflow-y: auto;     
    overflow-x: hidden;   
    padding-right: 10px;  
    margin-bottom: 0;     
}


.testimonial-card p::-webkit-scrollbar {
    width: 6px;
}

.testimonial-card p::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}

.testimonial-card p::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
}

.testimonial-card p::-webkit-scrollbar-thumb:hover {
    background: #007bff; /* Matches your primary theme color */
}

#home-testimonials .home-testimonial-title {
    text-align: center;
    margin-bottom: 20px;
}

#home-testimonials .home-testimonial-title .title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#home-testimonials .home-testimonial-title .title h2 {
    font-size: 24px;
    color: var(--secondary-color, #0F3F7F);
    padding-top: 10px;
}

#home-testimonials .home-testimonial-title h3 {
    font-size: 40px;
    color: #414141;
    margin-top: 10px;
    margin-bottom: 40px;
}

.testimonial-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding-bottom: 100px;
}

.testimonial-row {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    transition: transform 0.6s ease;
}


.testimonial-col {
    flex: 0 0 33.333%;
    max-width: 32%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.testimonial-bg {
    background: #E8E8E8;
    padding: 30px;
    border-radius: 30px;
    min-height: 300px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 12% 80%, 0% 95%, 0% 0%);
    display: flex;
    flex-direction: column;
    transition: background 0.5s;
}

.testimonial-bg.active-slide {
    background: #0F3F7F;
    color: #fff;
}

.testimonial-bg img {
    width: 28px;
    margin-bottom: 12px;
}

.testimonial-bg p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: inherit;
}

.testimonial-col .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -45px;
    left: 20px;
    padding-left: 35px;
    position: relative;
    bottom: auto;
    left: auto;
}

.user-info img {
    border-radius: 50%;
    width: 73px;
}

.user-info h4 {
    font-size: 21px;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 14px;
    color: #777;
    margin: 0;
}


#home-testimonials .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 34%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

#home-testimonials .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 5px;
}

#home-testimonials .carousel-indicators .active {
    background-color: #0F3F7F;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .testimonial-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testimonial-row {
        gap: 20px;
    }
}

/* Desktop: 3 columns */
.testimonial-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
}

.testimonial-col {
    flex: 0 0 33.333%;
    max-width: 32%;
}

/* hover above 767 */
@media (min-width: 767px) {
    .testimonial-bg {
        transition: background 0.3s ease, color 0.3s ease;
        cursor: pointer; 
    }

    .testimonial-bg:hover {
        background-color: var(--primary-color, #0F3F7F); 
        color: #fff; 
    }

    .testimonial-bg:hover p {
        color: #fff; 
}
}

/* Mobile slider */
@media (max-width: 991px) {
    .testimonial-row {
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    .testimonial-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #home-testimonials .carousel-indicators {
        display: flex !important;
    }

    #home-testimonials .home-testimonial-title h3 {
        font-size: 30px;
}
}

@media (min-width: 992px) {
    #home-testimonials .carousel-indicators {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .testimonial-col {
        max-width: 31%;
        flex: 0 0 31%;
        height: 300px; /* fixed height */
    }

    .testimonial-bg p {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-info h4 {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .testimonial-bg p {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .testimonial-bg {
        padding: 20px;
        min-height: 250px; 
    }

    #home-testimonials .home-testimonial-title h3 {
        font-size: 22px;
}
}



/* admission */

.home-admission {
    padding: 50px 0 0px;
}

.home-admission .title h2 {
    font-size: 24px;
    font-weight: medium;
    color: var(--secondary-color);
    padding-top: 7px;
    padding-left: 10px;
}

.home-admission .col-sm-6 > .d-flex {
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.home-admission p {
    font-size: 16px;
    color: #555;
}

.admission-img-col1 {
    margin-left: 100px;
}

/* responsive */

@media (min-width: 1200px) {
    .home-admission .admission-img-col1 {
        margin-left: 100px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .home-admission .admission-img-col1 {
        margin-left: 0px;
    }

    .home-admission .title h2 {
        font-size: 22px;
    }

    .home-admission p {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .home-admission .row.d-flex {
        flex-direction: column;
    }

    .home-admission .col-sm-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .admission-img-col1 {
        margin-left: 0;
        text-align: center;
    }

    .home-admission .title h2 {
        font-size: 20px;
    }

    .home-admission p {
        font-size: 14px;
    }

    .home-admission .read-more-btn {
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .home-admission {
        padding: 30px 15px 0;
    }

    .home-admission .row.d-flex {
        flex-direction: column;
    }

    .home-admission .col-sm-6 {
        width: 100%;
        margin-bottom: 15px;
    }

    .admission-img-col1 {
        margin-left: 0;
        text-align: center;
    }

    .home-admission .title h2 {
        font-size: 18px;
    }

    .home-admission p {
        font-size: 13px;
    }

    .home-admission .read-more-btn {
        margin-bottom: 50px;
    }

}

@media (max-width: 480px) {
    .home-admission .admission-img-col1 {
        width: 360px;
    }

    .home-admission .admission-img-col1 img {
        width: 100%;
        height: auto;
    }
}
/* footer */

.ea-footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 0px 0 10px;
    width: 100%;
}

/* Logo */
.footer-logo-box {
    background: #ffffff;
    padding: 24px 16px;
    border-radius: 0 0 20px 20px;
    display: inline-block;
}

.footer-logo-box img {
    max-width: 100%;
    height: auto;
}

/* Main footer row */
.footer-main-row {
    display: flex;
    flex-wrap: wrap;
    gap: 150px;
    margin: 0 0 10px;
}

/* Contact & courses columns */
.footer-title {
    font-size: 21px;
    margin-bottom: 24px;
    margin-top: 60px;
}

.footer-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li,
.footer-links li {
    margin-bottom: 14px;
    font-size: 16px;
}

.footer-list li {
    display: flex;
    gap: 16px;
    font-weight: 350;
}

.footer-list li p {
    font-weight: 400;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    padding-left: 14px;
    font-size: 16px;
    position: relative;
}

.footer-links a::before {
    content: "›";
    position: absolute;
    left: 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 25px 0 15px;
}

.footer-bottom {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* Social icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.footer-social span {
    font-weight: 500;
}

.footer-social a {
    color: #ffffff !important;
    font-size: 20px;
    transition: 0.3s;
}

.footer-social a i {
    display: inline-block;           
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.footer-social a i {
    display: inline-block;              
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.footer-social a:hover i {
    color: #f1c181;                    
    transform: scale(1.2);           
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}


/* --------- Responsive --------- */

@media (max-width: 991px) {
    .footer-main-row {
        gap: 20px;
    }

    .footer-title {
        margin-top: 30px;
        font-size: 19px;
    }

    .footer-list li,
    .footer-links li {
        font-size: 16px;
    }

    .footer-social a {
        font-size: 22px;
        padding-right: 20px;
    }

    .footer-logo-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .footer-main-row {
        gap: 0px;
    }

    .footer-list li p {
        margin: 0;
    }

    .footer-links a {
        padding-left: 20px;
    }
    .footer-logo-box {
        margin: 0 auto;
    }
}

/* Extra small devices: 320px - 479px */
@media (max-width: 479px) {
    .footer-title {
        font-size: 16px;
        margin-top: 15px;
    }

    .footer-list li,
    .footer-links li {
        font-size: 12px;
    }

    .footer-social a {
        font-size: 20px;
    }
}

/* Large desktops: 1200px - 1400px */
@media (min-width: 1200px) and (max-width: 1400px) {
    .footer-main-row {
        gap: 80px;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-list li,
    .footer-links li {
        font-size: 15px;
    }

    .footer-social a {
        font-size: 24px;
    }

    .footer-social span {
    font-weight: 500;
    font-size: 14px; 
    }

}

@media (min-width: 992px) and (max-width: 1200px) {
    .ea-footer .col-lg-5.col-md-6 {
        width: 380px !important;
        flex: 0 0 380px !important;
    }

    .footer-main-row {
        gap: 50px;
    }

    .footer-social span {
    font-weight: 500;
    font-size: 14px; 
    }
}

/* inner banner */
#innerPageBanner {
    position: relative; 
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    height: 400px;
    top: auto;      
    z-index: 1;     
}

/* Overlay */
#innerPageBanner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.4); */
    z-index: 0;
}

/* Inner content */
#innerPageBanner .inner_banner_wrap {
    position: relative;
    z-index: 1;
}

#innerPageBanner h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

#innerPageBanner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 1rem;
}

#innerPageBanner .breadcrumb a {
    color: #fff;
    text-decoration: none;
}

#innerPageBanner .breadcrumb .active {
    color: #fff;
}


#innerPageBanner .inner_banner_wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#innerPageBanner h1 {
    font-size: 36px;
    font-weight: 500;
    margin: 0 0 10px 0;
}

#innerPageBanner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 16px;
}

#innerPageBanner .breadcrumb li {
    display: flex;
    align-items: center;
}

#innerPageBanner .breadcrumb li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

#innerPageBanner .breadcrumb li a:hover {
    text-decoration: underline;
}

#innerPageBanner .breadcrumb li span {
    color: #ddd;
}

#innerPageBanner .breadcrumb-arrow li+li::before {
    content: "›"; 
    margin: 0 8px;
    color: #ddd;
}

@media (max-width: 991px) {
    #innerPageBanner {
        min-height: 280px;
        padding: 70px 0;
    }

    #innerPageBanner h1 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    #innerPageBanner {
        min-height: 240px;
        padding: 60px 0;
        text-align: center;
    }

    #innerPageBanner .inner_banner_wrap {
        justify-content: center;
    }

    #innerPageBanner h1 {
        font-size: 26px;
    }

    #innerPageBanner .breadcrumb {
        justify-content: center;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #innerPageBanner {
        min-height: 220px;
        padding: 50px 15px;
    }

    #innerPageBanner h1 {
        font-size: 22px;
    }
}


/* rules and ethic */

    #rules-ethics .card-title {
        font-weight: 700;
    }
    #rules-ethics li {
        font-size: 1rem;
        line-height: 1.6;
    }
    #rules-ethics li i {
        min-width: 30px;
    }


/* contact us */

.contact-card {
    padding: 30px 20px;
    border-radius: 10px;
}

.contact-method {
    padding: 15px 0px;
    border-radius: 8px;
    flex: 1;
    font-size: 24px;
}

.contact-method h5 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem; 
}

.contact-method p {
    margin: 0;
    font-size: 0.85rem; 
}

.contact-method a {
    text-decoration: none; 
    color: #333;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline; 
}


.gray {
    color: #6c757d;
}

@media (max-width: 767px) {
    .contact-method {
        width: 100%;
    }
}

.contact-method a i {
    padding-top: 12px;
    font-size: 1.3rem; 
    color: var(--primary-color); 
    margin-right: 10px;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.contact-method a:hover i {
    color: var(--secondary-color);      
    transform: scale(1.2);
}


/* form */
.form-content {
    background: #eff6ff;
    padding: 60px 30px 60px 30px;
    border-radius: 40px;
}

.form-group {
    margin-bottom: 18px;
}

/* INPUT */
.reservation-form-control {
    background-color: #ffffff;
    border: 1px solid #cfdaf5;
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 14px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.reservation-form-control:hover {
    background-color: #ffffff;
    border-color: #b6c9f2;
}

.reservation-form-control:focus {
    background-color: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.reservation-form-control:disabled {
    background-color: #eef2f8;
    cursor: not-allowed;
}


/* BUTTON */
.btn-submit {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    color: #fff;
    background-color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26,115,232,0.3);
}

@media (max-width: 767px) {
    .pr-8, .pl-8 {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
}

.form-margin {
    display: flex;
    justify-content: center;
}

.btn-submit {
    width: 70%;          
    max-width: 420px;     
    text-align: center;
}

/* map */

#map{
    padding: 100px 0;
}

.location-map{
    border-radius: 20px;
}

.location-map {
    overflow: hidden;
    border-radius: 15px;
    height: 450px; 
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* responsive */

@media (max-width: 991px) {
    .contact-section .row > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .form-margin .btn-submit {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    #map {
        padding: 50px 0;
    }

    .location-map {
        height: 300px; 
        border-radius: 15px;
    }

    .contact-method {
        flex: 0 0 100%;
    }
}

@media(max-width: 575px){
.input-group.xs-margin {
    margin-bottom: 20px;
}
}

/* Rules and policy */

#rules-ethics .card-title {
    font-weight: 600;
    margin-bottom: 40px;
    padding-top: 40px;
    color: var(--primary-color);
}


#rules-ethics ul {
    list-style: none;
    padding-left: 0;
}

#rules-ethics li {
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 18px;
    border-bottom: 1px solid rgb(15, 63, 127, 0.2);
}

/* Diamond bullet */
#rules-ethics li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    transform: rotate(45deg);
}

/* admission form */

.form-title {
    margin-bottom: 60px;
    font-weight: 600;
    padding-top: 80px;
}

.admission-form-content {
    min-height: 100%;
}

.blue-bg {
    background: #e3eeff;
    height: 700px;
}

.yellow-bg {
    background: #e3eeff;
    height: 700px;
}

.admission-first-col{
    padding-right: 20px;
}

.btn-admission {
    background: var(--primary-color); 
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-admission:hover {
    color: #fff;
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-admission:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

.gender-wrapper {
    border: 1px solid #ced4da;
    border-radius: 50px;
    padding: 14px 15px 10px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    background: #fff;
}

.gender-placeholder {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    background: #fff;
    padding: 0 6px;
    transition: all 0.2s ease;
}

.male-option {
    padding-left: 110px;   
}


.btn-submit {
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* responsive */

@media (min-width: 991px) {
    .admission-form-content .row.g-0 {
        display: flex;
        flex-wrap: nowrap;
    }
}

@media (max-width: 991px) {

.blue-bg {
    width: 600px;
}

.yellow-bg {
    width: 600px;
}

.admission-form-content .row.g-0 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .admission-first-col {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    
    .admission-form-content .row.g-0 {
        flex-direction: column;
        gap: 20px;
    }

    .gender-wrapper .form-check-label {
        font-size: 14px;
    }

    .blue-bg, .yellow-bg {
        width: 100% !important;
        padding: 20px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    }

    .reservation-form-control {
        font-size: 14px;
        height: 42px;
    }

     .gender-wrapper {
        flex-direction: row;          
        align-items: center;         
        gap: 15px;                    
        padding: 8px 12px;           
        min-height: auto;             
    }

    .gender-placeholder {
        top: 50%;                     
        transform: translateY(-50%);
        left: 10px;
        font-size: 14px;
        background: #fff;
        padding: 0 6px;
    }

    .male-option {
        padding-left: 100px;           
    }

    .btn-admission {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
        max-width: 100%;
    }

    .form-title {
        padding-top: 30px;
        font-size: 22px;
        margin-bottom: 30px;
        text-align: center;
    }

    .row > .col-md-6, 
    .row > .col-md-4 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .admission-first-col {
        padding-right: 0;
    }

    .admission-form .form-group .form-control,
    .admission-form .reservation-form-control {
        width: 100%;
    }

    .admission-form .form-group {
        margin-bottom: 15px;
    }
}

/* testimonial */
    .section-title {
      text-align: center;
      margin-bottom: 60px;
    }

    .section-title h2 {
      font-weight: 600;
      font-size: 2.5rem;
      position: relative;
      display: inline-block;
      padding-bottom: 10px;
    }

    .section-title h2::after {
      content: '';
      width: 100px;
      height: 3px;
      background: var(--primary-color);
      display: block;
      margin: 8px auto 0;
      border-radius: 2px;
    }

.testimonial-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    border-radius: 20px;
    padding: 25px 25px 25px;
    box-shadow: 9px 9px 0px #e7bd60;
    transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #0F3F7F;
}

.testimonial-card .bi-quote {
    font-size: 2.5rem;
    color: #2575fc;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.15;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2575fc;
}

.testimonial-card h5 {
    font-weight: 500;
    margin-bottom: 2px;
    color: #333;
}

.testimonial-card small {
    font-size: 0.75rem;
    color: #555;
}

.testimonial-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-top: 10px;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Hover colors */
.testimonial-card:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
    color: #fff;
}

.testimonial-card:hover h5,
.testimonial-card:hover p,
.testimonial-card:hover small {
    color: #fff;
}

.testimonial-card:hover img {
    border-color: #fff;
}

.testimonial-card:hover small {
    color: #fff !important;
}


/* about */

.section-title-about {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
    color: var(--primary-color);
}

@me

.about-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.about-card h5 {
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card ul {
    padding-left: 18px;
}

.about-card ul li {
    margin-bottom: 10px;
}

.mission-vision {
    background: #eef4ff;
    padding: 70px 0 100px;
}

.mv-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    box-shadow: 10px 9px 0px #e7bd60;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-card h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mv-card p {
    margin-bottom: 0;
    line-height: 1.7;
}

.mv-card i {
    font-size: 3rem;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* courses */


#courses .major-card {
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

#courses .major-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#courses ul li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

#courses ul li:last-child {
  border-bottom: none;
}

#courses .optional {
  font-style: italic;
  color: #777;
}

.bottom-text {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 60px;
}

/* Alumni Gallery Section */
.alumni-gallery {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.alumni-gallery .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.alumni-gallery .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}

.overlay p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}