*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.main-link {
  background-color: rgb(0, 41, 255);
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.main-link:hover {
  background-color: #ff0000;
}
.second-link {
  background-color: #00394f;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.second-link:hover {
  background-color: #001d29;
}
.separator {
  padding-bottom: 70px;
}
.main-heading span {
  color: #127d8e;
}
.main-heading span:after,
.main-heading span:before {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  /* background-color: #127d8e; */
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.main-heading span:after {
  inset-inline-start: 100%;
}
.main-heading span:before {
  inset-inline-end: 100%;
}
.main-heading span.special:before {
  display: none;
}
.main-heading h2 {
  color: #00394f;
}
.modal .modal-body img {
  width: 100%;
}
.modal.fade .modal-dialog {
  -webkit-transform: scale(0);
  transform: scale(0);
}
.modal.show .modal-dialog {
  -webkit-transform: none;
  transform: none;
}
body {
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 7px;
}
::-webkit-scrollbar-track {
  background-color: #eee;
  -webkit-box-shadow: inset 0 0 5px grey;
  box-shadow: inset 0 0 5px grey;
}
@-webkit-keyframes show_item {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  to {
    -webkit-transform: none;
    transform: none;
  }
}
@keyframes show_item {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  to {
    -webkit-transform: none;
    transform: none;
  }
}
.navbar .navbar-brand {
  color: #063152;
}
.navbar .collapse .navbar-nav .nav-link.active,
.navbar .collapse .navbar-nav .nav-link:hover {
  color: #ff0000 !important;
}
.landing {
  padding-block: 70px;
  background: linear-gradient(to bottom, #d9faff, #d9faff);
}
.features {
  padding-block: 70px;
}
.features .item {
  cursor: pointer;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.features .item svg {
  color: #d62127;
}
.about-us {
  padding-block: 70px;
}
.about-us .content .item {
  height: 33.3333333333%;
}
.about-us .content .item:last-of-type {
  border-bottom: 1px solid #dee2e6;
}
.about-us .content .item:before {
  font: var(--fa-font-solid);
  content: "\f00c";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 20px;
}
.about-us h2 {
  color: #063152;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 23px);
  /* font-family: 'Baloo 2', cursive; */
}
.about-us p{
  color: rgb(99, 99, 99);
}
.popular-classes {
  padding-block: 70px;
}
.popular-classes .class h2 {
  color: #00394f;
}
.popular-classes .class .list {
  width: 80%;
  margin: auto;
}
.popular-classes .class .list .item span {
  -ms-flex-preferred-size: 50%;
  width: 100%;
  /* flex-basis: 50%; */
}
/* .popular-classes .class .list .item span:first-child {
  -webkit-border-end: 1px solid #ddd;
  border-inline-end: 1px solid #ddd;
} */
.book-seat {
  padding-block: 70px;
}
.book-seat .content li:before {
  font: var(--fa-font-solid);
  content: "\f00c";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 20px;
  color: green;
}
.book-seat form {
  background-color: #127d8e;
}
.book-seat form h2 {
  background-color: #00394f;
}
.our-teachers {
  padding-block: 70px;
}
.our-teachers .item .image .overlay {
  opacity: 0;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  background: rgba(18, 125, 142, 0.6);
}
.our-teachers .item .image .overlay svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.our-teachers .item .image .overlay svg:hover {
  background-color: #fff;
  color: #000 !important;
}
.our-teachers .item:hover .overlay {
  opacity: 1;
}
.testimonial .swiper .swiper-slide p {
  text-indent: 2rem;
}
.testimonial .swiper .swiper-slide p:before {
  font: var(--fa-font-solid);
  content: "\f10d";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 20px;
  top: 2rem;
  inset-inline-start: -10px;
  font-size: 2rem;
  color: #127d8e;
}
.testimonial .swiper .swiper-slide img {
  width: 70px;
}
.testimonial .swiper .swiper-slide .name {
  color: #00394f;
}
.testimonial .swiper .swiper-pagination .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color: #000;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}
.testimonial .swiper .swiper-pagination .swiper-pagination-bullet-active {
  color: #fff;
  background: #007aff;
}
.articles {
  padding-block: 70px;
}
.articles .pagination .page-item.active a {
  background-color: #127d8e !important;
  border-color: #127d8e;
}
footer {
  background: linear-gradient(to bottom, #fff, #fff);
}
footer .row {
  padding-block: 70px;
}
footer ul li svg {
  width: 1rem !important;
  height: 1rem !important;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
footer ul li svg:hover {
  background-color: #1fd7f4;
}
footer .title {
  color: #063152;
}
footer .icon {
  color: #063152;
}
footer .links a {
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
footer .links a:hover {
  color: #1fd7f4 !important;
  -webkit-margin-start: 10px;
  margin-inline-start: 10px;
}
footer .links a:after {
  font: var(--fa-font-solid);
  content: "\f105";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 20px;
}
[dir="rtl"] footer .links a:after {
  content: "\f104";
}
footer form input[type="submit"] {
  background-color: #127d8e;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
footer form input[type="submit"]:hover {
  background-color: #1fd7f4;
}
footer .copy-right {
  padding-block: 35px;
}
footer .copy-right span {
  color: #1fd7f4;
}

/* Footer Bottom Margin */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 80px; /* Match or slightly exceed navbar height */
  }
}

.gallery {
  padding-block: 70px;
}
.gallery .btn-group .btn {
  border-color: #127d8e;
  color: #127d8e;
}
.gallery .btn-group .btn:hover {
  background-color: #127d8e;
  color: #fff;
}
.gallery .btn-group input:checked + .btn {
  background-color: #127d8e;
  color: #fff;
}
.gallery .item .overlay {
  width: 70%;
  height: 70%;
  background-color: #127d8e;
  cursor: pointer;
  opacity: 0;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.gallery .item:hover .overlay {
  opacity: 0.8;
}
.gallery .item.hide {
  display: none;
}
.gallery .item.show {
  display: block;
  -webkit-animation: show_item 1s;
  animation: show_item 1s;
}
.gallery .modal .btn-close {
  -webkit-margin-start: auto;
  margin-inline-start: auto;
}
.contact-us {
  padding-block: 70px;
}
.contact-us textarea {
  height: 200px;
}
.contact-us svg {
  background-color: #127d8e;
  width: 20px;
  height: 20px;
}
.breadcrumb-section {
  background-color: #127d8e;
  height: 50vh;
}
.breadcrumb-section .breadcrumb-item + .breadcrumb-item {
  padding: 0;
  -webkit-padding-start: 0.5rem;
  padding-inline-start: 0.5rem;
}
.breadcrumb-section .breadcrumb-item:before {
  color: #fff;
  padding: 0;
  -webkit-padding-end: 0.5rem;
  padding-inline-end: 0.5rem;
}
[dir="rtl"] .breadcrumb-section .breadcrumb-item:before {
  float: right;
}
p.text-muted.m-0.m-auto {
    text-align: justify;
}
.class.bg-light.text-center.rounded.overflow-hidden.border.aos-init.aos-animate {
    height: 36rem;
}
h1.display-3.fw-bold.aos-init.aos-animate {
  /* font-family: 'Baloo 2', cursive; */
  /* text-shadow: 2px 2px 0 #f58025; */
  color: #063152; /* inner word color (blue) */
}
.class.bg-light.text-center.rounded.overflow-hidden.border.aos-init.aos-animate {
    height: 34rem;
}

/**What is Little Genius section **/
.info-block {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  color: #063152;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

/* Animated linear gradient border */
.info-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #f58025,
    #d62127,
    #063152,
    #f58025
  );
  background-size: 300% 300%;
  animation: rotateLinearBorder 6s linear infinite;
  z-index: 0;
}

/* Inner mask to show thicker border (inset increased) */
.info-block::after {
  content: "";
  position: absolute;
  inset: 3px; /* increased from 1px to 3px for thicker border */
  background: #fffaf7;
  border-radius: inherit;
  z-index: 1;
}

.info-block h4,
.info-block p {
  position: relative;
  z-index: 2;
  margin: 0;
}

.info-block h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-block p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: #333;
}

.info-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Smooth rotating linear effect */
@keyframes rotateLinearBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
/** End What is Little Genius section **/

/**Little Genius Guaranteed section **/
.little-genius-intro {
  background: linear-gradient(180deg, #fff, #fff);
  padding: 60px 20px;
  /* font-family: 'Comic Sans MS', cursive, sans-serif; */
}

.little-genius-intro .container {
  max-width: 1200px;
  margin: auto;
}

.section-heading {
  margin-bottom: 50px;
}

.main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #d52127;
  font-weight: 800;
}

.main-title span {
  color: #063152;
}

.subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #333;
  margin-top: 10px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  padding: 30px 25px;
  max-width: 340px;
  flex: 1 1 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
}

.icon {
  font-size: 48px;
  /* margin-bottom: 15px; */
  margin-bottom: 2rem;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-inline: auto;
  color: #fff;
}

.rainbow-bg {
  background: linear-gradient(135deg, #f58025, #d62127);
}

.green-bg {
  background: linear-gradient(135deg, #2ecc71, #1abc9c);
}

.blue-bg {
  background: linear-gradient(135deg, #2a74d4, #6dd5fa);
}

.feature h3 {
  font-size: 20px;
  margin: 15px 0 10px;
  color: #063152;
  font-weight: 700;
}

.feature p {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}
/** End Little Genius Guaranteed section **/

.timeline-kindergarten {
    background: linear-gradient(to bottom, #fff, #fff);
    padding-bottom: 2rem;
    padding-top: 3rem;
    text-align: center;
  }

  .timeline-title {
    font-size: 2rem;
    color: #f58025;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
  }

  .timeline-scroll-wrapper {
    position: relative;
    overflow-x: hidden; /* Prevent manual scrolling */

    /* Hide scrollbar in all browsers */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE 10+ */
  }

  .timeline-scroll-wrapper::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Opera */
  }

  /* Timeline colored bar aligned to visible container */
  .timeline-scroll-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0; /* full width of visible container */
    height: 10px;
    background: repeating-linear-gradient(
      90deg,
      #ff6b6b,
      #ff6b6b 10px,
      #ffa502 10px,
      #ffa502 20px,
      #70a1ff 20px,
      #70a1ff 30px
    );
    border-radius: 5px;
    transform: translateY(-50%);
    z-index: 0;
  }

  .timeline-track {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 2rem 1rem;
    position: relative;
    min-width: 1500px; 
    animation: scroll-left 25s linear infinite;
    z-index: 1;
  }

  /* Pause animation on hover */
  .timeline-scroll-wrapper:hover .timeline-track {
    animation-play-state: paused;
  }

  .milestone {
    position: relative;
    text-align: center;
    flex: 0 0 auto;
    z-index: 1;
    min-width: 180px;
  }

  .milestone .icon {
    font-size: 3rem;
    margin-bottom: 2.5rem;
  }

  .milestone .year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
  }

  .milestone .label {
    font-size: 1rem;
    color: #555;
    margin-top: 0.25rem;
  }

  /* Large screens - static timeline, show only first 3 milestones, no animation */
  @media (min-width: 992px) {
    .timeline-track {
      min-width: auto !important;
      justify-content: center;
      animation: none !important;
    }
    /* Hide duplicates on large screens */
    .timeline-track .milestone:nth-child(n+4) {
      display: none;
    }

    /* Fix bar width to match 3 milestones + gaps and center it */
    .timeline-scroll-wrapper::before {
      left: 50%;
      right: auto;
      width: calc((180px * 3) + (60px * 2)); /* 3 milestones + 2 gaps */
      max-width: 600px;
      transform: translateX(-50%) translateY(-50%);
    }
  }

  /* Scroll animation keyframes */
  @keyframes scroll-left {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }


/* Form */

button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition {
    background: #010399 !important;
}
button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition:hover {
    background: #d52127 !important;
}
/* Slider */

.parents-share-carousel .swiper {
    width: 100%;
    height: auto;
  }
  .parents-share-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  .parents-share-carousel .swiper-slide img {
    border-radius: 20px;
    max-height: 400px;
    object-fit: cover;
    width: 100%;
  }
  .swiper-button-prev,
  .swiper-button-next {
    color: #d81b60;
  }

  /*Image programme */
  .package-programme .section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #d52127;
  font-weight: 800;
  /* font-family: 'Baloo 2', cursive; */
}
.package-programme .section-title span {
  color: #063152;
}

.programme-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.programme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.card-img {
  .card-img {
  width: 100%;
  height: auto;
  display: none; /* or visibility: hidden or position: absolute + zero size */
}
}

.card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.programme-card:hover .card-overlay {
  opacity: 1;
}

.programme-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.programme-card p {
  margin: 0;
  font-size: 1rem;
}

/* syllabus section */
.syllabus-section .section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #d52127;
  font-weight: 800;
  /* font-family: 'Baloo 2', cursive; */
}
.syllabus-section .section-title span {
  color: #063152;
}

.syllabus-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.syllabus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.syllabus-card .card-img{
.syllabus-card .card-img {
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  object-fit: cover;
  display: block;
}}

.syllabus-card .card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.syllabus-card:hover .card-overlay {
  opacity: 1;
}

.syllabus-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.syllabus-card p {
  margin: 0;
  font-size: 1rem;
}

/* What is little genius sention */

.little-genius-section {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    /* font-family: 'Baloo 2', cursive; */
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-title {
    font-size: clamp(30px, 6vw, 48px);
    font-weight: 900;
    color: #d52127;
  }

  .highlighted {
    color: #fff;
    text-shadow: 1px 1px 4px rgba(2, 128, 144, 0.6);
  }

  .cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .lg-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(2, 128, 144, 0.15);
    flex: 1 1 280px;
    max-width: 320px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
  }

  .lg-card:hover {
    box-shadow: 0 15px 30px rgba(2, 128, 144, 0.35);
    transform: translateY(-10px);
  }

  .icon-wrapper {
    background: #e0f7fa;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(2, 128, 144, 0.25);
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .lg-card h4 {
    color: #034b4b;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
  }

  .lg-card p {
    color: #2a4d5b;
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .cards-wrapper {
      flex-direction: column;
      align-items: center;
    }
  }

  /* About us*/
.about-us-section h2,
.about-us-section h5 {
  font-family: 'Poppins', sans-serif;
}

.about-us-section p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-us-section img {
  border: 8px solid #fff;
}

/* Seperator */
.custom-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin: 40px 0; */
}

.custom-line {
  flex-grow: 1;
  height: 6px;
  background-color: #000000;
}

.separator-svg {
     width: 100px;
  height: auto;
  

}

/* Header Registration */
.bg-blue {
  background-color: #0029ff;
}

.bg-red {
  background-color: #ff0000;
}

.speech-bubble {
  display: inline-block;
  background: #fff;
  border: 4px solid #000;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  max-width: 300px;
  margin-bottom: 20px;
  color: #000;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 30px;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
  margin-left: -10px;
  transform: rotate(45deg);
  border-right: none;
  border-left: 4px solid #000;
  border-bottom: 4px solid #000;
}
.hero-paragraph {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: #000; /* or your preferred dark tone */
  font-weight: 400;
  font-family: 'Arial', 'Segoe UI', sans-serif; /* Set a consistent font stack */
  max-width: 500px; /* Optional: limit width for readability */
  margin: 0 auto; /* Center on small screens if needed */
  text-align: left;
}

@media (max-width: 576px) {
  .hero-paragraph {
    text-align: center; /* Adjust text alignment for small screens if needed */
  }
}
.hero-image {
  max-width: 100%;     /* Shrinks image on large screens */
  height: auto;       /* Maintain aspect ratio */
}

@media (max-width: 992px) {
  .hero-image {
    max-width: 75%;   /* Slightly bigger on medium screens */
  }
}

@media (max-width: 576px) {
  .hero-image {
    max-width: 100%;   /* Bigger on mobile */
  }
}
.hero-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/*LITTLE GENIUS DETAILS*/
.text-highlight {
  color: #063152;
}

.icon-box {
  width: 60px;
  height: 60px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature-card {
  background-color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Social Media Widget Styles */

  @keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes slideInOut {
  0%, 100% {
    transform: translateX(20%);
  }
  50% {
    transform: translateX(0%);
  }
}

.social-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
  transform: translateX(20%);
}
.social-item:first-child {
  border-top-left-radius: 6px;
}

.social-item:last-child {
  border-bottom-left-radius: 6px;
}
.social-item:hover {
  transform: translateX(0%);
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.social-item:first-child {
  border-top-left-radius: 6px;
}

.social-item:last-child {
  border-bottom-left-radius: 6px;
}

.social-icons-wrapper {
  top: 30%;
  right: 0;
  z-index: 9999;
}

/* Move to bottom on small screens */
@media (max-width: 768px) {
  .social-icons-wrapper {
    top: auto !important;
    /* bottom: 30px !important; */
    bottom: 18rem !important;
    right: 0;
  }

  .social-item {
    animation: slideInOut 3s ease-in-out infinite;
  }
}

.fixed.flex.flex-col.space-y-0 > a {
  line-height: 0;
}

/* Nav bar fixed for mobile version */
@media (max-width: 991.98px) {
  .navbar-collapse {
    align-items: flex-end;
  }

  .navbar-nav {
    width: 100%;
    align-items: flex-end;
  }

  .navbar-nav .nav-item {
    width: auto;
  }
}

.section-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.section-divider img {
  max-width: 150px; /* You can adjust size */
  opacity: 0.4; /* Adjust brightness */
  filter: brightness(1.2); /* Make it a bit brighter */
}

/* Tittle Section Adjustment*/

/* Default (small screens) */
.hero-section h1 {
  font-size: 27px !important;
}

/* Medium devices (tablets) */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3rem;
  }
}

/* Extra large screens (optional) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 42px !important;
  }
}

/* Get In Touch Section Adjustment*/

a img:hover {
  transform: scale(1.1);
  transition: 0.3s ease-in-out;
}


/* Top border hero section */

/* .hero-section {
  position: relative;
  background-color: #fff;
  overflow: hidden;
} */

/* Top-left corner gradient border */
/* .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #010399, #d52127);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
} */

/* Top-right corner gradient border */
/* .hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #010399, #d52127);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
} */

/* Hover glow effect for the corner elements */
/* .hero-section:hover::before,
.hero-section:hover::after {
  transform: scale(1.05);
  box-shadow: 0 0 25px #d52127, 0 0 40px #010399;
} */



/* Hide .old-navbar on small and medium screens (less than 1024px) */
@media (max-width: 1023px) {
  .old-navbar {
    display: none !important;
  }
}

/* Show .old-navbar only on large screens (1024px and above) */
@media (min-width: 1024px) {
  .old-navbar {
    display: flex !important;
  }
}

@media (max-width: 991.98px) {
  /* Attached mobile bottom navbar matching website background */
  .navbar.fixed-bottom {
    position: fixed;
    left: 50%;
    bottom: 0; /* Attaches directly to bottom */
    transform: translateX(-50%);
    width: 100%; /* Full width on mobile for perfect bottom attach */
    max-width: 500px;
    background: #fff; /* Match website background */
    border-radius: 0; /* No top rounding so it’s flush with bottom */
    padding: 10px 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow above */
    z-index: 9999;
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separator */
    animation: fadeInUp 0.6s ease; /* Animation on load */
  }

  /* Align nav items in the center */
  .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    scroll-behavior: smooth;
  }

  /* Icon style */
  .nav-link i {
    color: #010399; /* Website blue tone for icons */
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  }

  /* Hover effect */
  .nav-link:hover i {
    transform: scale(1.2);
    color: #d52127; /* Website red tone on hover */
    text-shadow: 0 0 6px rgba(213, 33, 39, 0.5);
  }

  /* Active icon style */
  .nav-link.active i {
    color: #d52127; /* Red for active */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(213, 33, 39, 0.6);
    animation: glowPulse 1.8s infinite ease-in-out;
  }

  /* Optional: badge styling */
  .nav-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background: #d52127;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 999px;
  }

  .navbar.scrolled {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease-in-out;
  }
}

/* Animations remain global */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 6px #ffffff;
  }
  50% {
    text-shadow: 0 0 12px #ffffff, 0 0 20px #f58025;
  }
  100% {
    text-shadow: 0 0 6px #ffffff;
  }
}


/* Gallery Section */

/* ===== Gallery Section ===== */
#gallery {
  background: #fff;
}

/* ===== Gallery Tabs Styling ===== */
#gallery .btn-group .filter-btn {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: #000;
}

/* Hover effect for all tabs */
#gallery .btn-group .filter-btn:hover {
  background-color: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

/* Active tab style */
#gallery .btn-group input:checked + .filter-btn {
  background-color: #0029ff;
  color: #fff;
  border-color: #0029ff;
}

/* Default first tab active color on page load */
#gallery .btn-group .filter-btn:first-of-type {
  background-color: #0029ff;
  color: #fff;
  border-color: #0029ff;
}

/* ===== Gallery Grid Items ===== */
#gallery .item {
  position: relative;
  cursor: pointer;
}

#gallery .image {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

#gallery .image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#gallery .image:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* ===== Overlay Effect ===== */
#gallery .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 123, 255, 0.6);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

#gallery .image:hover .overlay {
  opacity: 1;
}

/* ===== Modal Image ===== */
.modal-img {
  max-width: 100%;
  border-radius: 8px;
}

/* ===== Prevent Oversized Images in Modal ===== */
.modal-dialog {
  max-width: unset;
}

.modal-content {
  background: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Instant Close for Gallery Modal Only ===== */
#galleryModal.modal.fade .modal-dialog {
  transition: none !important;
}

#galleryModal.modal.fade {
  transition: none !important;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  #gallery .btn-group .filter-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  #gallery .btn-group {
    flex-wrap: wrap;
  }
  #gallery .btn-group .filter-btn {
    margin-bottom: 8px;
  }
}

/* Button Design */

/* Base button styles */
a.btn-modern {
  position: relative !important;
  font-weight: 700 !important;
  padding: 14px 40px !important;
  font-size: 1rem !important;
  border-radius: 3px !important;
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.4s ease !important;
  overflow: hidden !important;
  display: inline-block !important;
  cursor: pointer;
  text-decoration: none !important; /* Remove underline */
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

a.btn-red {
  background: linear-gradient(45deg, #ff0000, #cc0000) !important;
  color: #fff !important;
  text-shadow: 0 0 5px #ff0000;
  box-shadow:
    0 4px 6px rgba(255, 0, 0, 0.4),
    0 0 15px rgba(255, 0, 0, 0.6);
}

a.btn-blue {
  background: linear-gradient(45deg, #0029ff, #000099) !important;
  color: #fff !important;
  text-shadow: 0 0 6px #0029ff;
  box-shadow:
    0 4px 6px rgba(0, 41, 255, 0.4),
    0 0 15px rgba(0, 41, 255, 0.6);
}

a.btn-modern:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(255, 0, 0, 0.8), /* red glow */
    0 0 25px rgba(0, 41, 255, 0.8); /* blue glow */
  text-shadow: 0 0 15px #fff !important;
  filter: brightness(1.1);
  text-decoration: none !important;
}

a.btn-modern::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -75% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(120deg, rgba(255,255,255,0.6), transparent) !important;
  transform: skewX(-25deg) !important;
  transition: all 0.7s ease !important;
  pointer-events: none !important;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
  z-index: 2;
}

/* Shine animation on hover for large screens */
a.btn-modern:hover::before {
  left: 150% !important;
  transition: none !important;
  animation: shine 3s linear infinite !important;
}

/* Pressed effect */
a.btn-modern:active {
  transform: translateY(0) scale(1) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(255, 0, 0, 0.6),
    0 0 15px rgba(0, 41, 255, 0.6);
}
a.btn-modern.auto-shine::before {
  animation-play-state: running !important;
  animation: shine 1.5s linear infinite !important;
  left: -75% !important;
  transition: none !important;
}

/* Keyframes for shine */
@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 150%;
  }
}

/* Automatically flashy on small & medium screens */
@media (max-width: 991.98px) {
  a.btn-modern::before {
    animation: shine 1.5s linear infinite !important; /* faster animation */
  }
  a.btn-modern:hover::before {
    animation-play-state: paused !important; /* pause on hover for control */
  }
}

/* Form Button */

/* Override for Netlify button with Tailwind classes */
button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition {
  position: relative !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 3px !important; /* override rounded */
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.4s ease !important;
  overflow: hidden !important;
  cursor: pointer;
  display: inline-block;
  background: linear-gradient(45deg, #0029ff, #000099) !important;
  color: #fff !important;
  box-shadow:
    0 4px 6px rgba(0, 41, 255, 0.4),
    0 0 15px rgba(0, 41, 255, 0.6);
  text-shadow: 0 0 6px #0029ff;
  text-decoration: none !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* Hover effect */
button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(0, 41, 255, 0.8);
  text-shadow: 0 0 15px #fff !important;
  filter: brightness(1.1);
  text-decoration: none !important;
  background: linear-gradient(45deg, #0029ff, #000099) !important;
}

/* Shine effect */
button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -75% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(120deg, rgba(255,255,255,0.6), transparent) !important;
  transform: skewX(-25deg) !important;
  transition: all 0.7s ease !important;
  pointer-events: none !important;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
  z-index: 2;
}

/* Shine animation on hover for large screens */
button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition:hover::before {
  left: 150% !important;
  transition: none !important;
  animation: shine 3s linear infinite !important;
}

/* Pressed effect */
button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition:active {
  transform: translateY(0) scale(1) !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(0, 41, 255, 0.6);
}

/* Keyframes for shine */
@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 150%;
  }
}

/* Automatically flashy on small & medium screens */
@media (max-width: 991.98px) {
  button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition::before {
    animation: shine 1.5s linear infinite !important; /* faster animation */
  }
  button.bg-pink-600.text-white.px-6.py-2.rounded.hover\:bg-pink-700.transition:hover::before {
    animation-play-state: paused !important; /* pause on hover for control */
  }
}

/* Scroll Up Button */
#scrollTopBtn:hover {
  background-color: #f58025; /* orange from your palette */
  transition: background-color 0.3s ease;
}

/* Banner scroller */
.custom-image-wrapper {
  width: 100%;
  max-width: 100%;
  background: transparent;
  overflow: hidden;
}

.custom-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  background: transparent;
}

@media (max-width: 992px) {
  .custom-image {
    max-height: 300px;
  }
}

/* On small screens: full width, no max-height */
@media (max-width: 576px) {
  .custom-image {
    width: 100% !important;
    max-height: none !important;
    border-radius: 12px;
  }
}

/* Pop Banner */

/* Popup background overlay */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 99999 !important; /* Make sure it's above all other elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);

  /* Center content with Flexbox */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Start hidden for animation */
  opacity: 0;
}

/* Fade-in animation for background */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Popup content box */
.popup-content {
  background: #fff;
  padding: 20px;
  max-width: 90%; /* Mobile friendly */
  width: 500px;
  border-radius: 10px;
  position: relative;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);

  /* Slight scale effect */
  transform: scale(0.95);
  opacity: 0;

  /* Ensure content is above everything else */
  z-index: 100000 !important;
}

/* Scale + fade-in animation for popup box */
@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes scaleDown {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.95); opacity: 0; }
}

/* Close button */
.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 100001; /* Highest so it's clickable */
}

/* Image styling */
.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


/* Music Control */

/* Music Control Container */
  .music-control {
    position: fixed;
    bottom: 80px; /* adjust to fit above bottom nav if you have one */
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse; /* Button on right, slider on left */
    z-index: 9999;
  }

  /* Music button - perfect circle with bottom nav colors */
  .music-btn {
    background: #fff; /* Match bottom nav */
    color: #010399;
    border: none;
    width: 48px;   /* Equal width */
    height: 48px;  /* Equal height */
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
  }

  /* Hover effect */
  .music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  }

  /* Icons default hidden */
  .play-icon,
  .pause-icon {
    display: none;
  }

  /* Show correct icon */
  .show-play .play-icon {
    display: inline-flex;
  }

  .show-pause .pause-icon {
    display: inline-flex;
  }

  /* Added: strictly hide opposite icon to prevent flicker */
  .music-btn.show-play .pause-icon {
    display: none !important;
  }

  .music-btn.show-pause .play-icon {
    display: none !important;
  }

  /* Volume slider - hidden by default */
  .volume-slider {
    width: 0;
    opacity: 0;
    appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
  }

  /* Show volume slider on hover */
  .music-control:hover .volume-slider {
    width: 100px;
    opacity: 1;
  }

  /* Slider thumb styling */
  .volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: #d52127; /* Accent color */
    border-radius: 50%;
    cursor: pointer;
  }

  .volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #d52127; /* Accent color */
    border-radius: 50%;
    cursor: pointer;
  }


/* <Br> for heading reviews */

/* Default, for all screen sizes */
.br-small-screen {
  display: none;
}

/* Show the <br> tag only on phone versions (small screens) */
@media (max-width: 767px) {
  .br-small-screen {
    display: block;
  }
}

/* Google Review */

/* Overall Rating */
.overall-rating {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rating-title h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rating-stars .rating-value {
  font-size: 2rem;
  font-weight: bold;
  margin-right: 10px;
}

.rating-stars .stars {
  font-size: 1.8rem;
  color: #fbbc04;
}

/* Reviews Section */
.reviews-section {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Slider Wrapper */
.review-slider-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Arrows */
.arrow {
  background-color: transparent;      /* removed circle background */
  border: none;
  border-radius: 0;                   /* no rounding */
  box-shadow: none;                   /* removed shadow */
  width: auto;                       /* auto width */
  height: auto;                      /* auto height */
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  
  font-size: 2.5rem;                 /* bigger arrow */
  font-weight: 700;                  /* bold arrow */
  color: #d52127;                    /* red arrow color */
  line-height: 1;
  user-select: none;                 /* prevent text selection */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15); /* subtle shadow */
}

.arrow:hover {
  background-color: transparent;    /* no bg on hover either */
  color: #010399;                   /* orange on hover */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);  /* stronger shadow on hover */
}


/* Review Slider */
.review-slider {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  flex: 1;
  align-items: stretch; /* Equal card heights */
}

/* Review Card */
.review-card {
  background-color: #fafafa;
  border-radius: 10px;
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Keeps logo at bottom */
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  /* Animation initial state */
  opacity: 0;
  transform: translateY(20px);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Animation active state */
.review-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Review Header */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}
.review-name {
  font-weight: bold;
  font-size: 1rem;
}
.review-date {
  font-size: 0.85rem;
  color: #888;
}

/* Review Stars */
.review-stars {
  color: #fbbc04;
  margin-bottom: 10px;
}

/* Review Text */
.review-text {
  flex-grow: 1;
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #333;
  text-align: justify;
}

/* Google Brand with hover effect */
.google-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #555;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.google-brand img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.review-card:hover .google-brand {
  opacity: 1;
}

/* Responsive Widths */
/* Mobile: 1 card */
@media (max-width: 767px) {
  .review-card {
    min-width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
}

/* Tablet: 2 cards */
@media (min-width: 768px) and (max-width: 1023px) {
  .review-card {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

/* Desktop: 3 cards */
@media (min-width: 1024px) {
  .review-card {
    min-width: calc(33.333% - 13.333px);
    max-width: calc(33.333% - 13.333px);
  }
}

/* Review Navbar */

#review-navbar,
#main-mobile-navbar {
  position: fixed;
  bottom: 0;
  left: 0; /* ✅ force alignment */
  right: 0; /* ✅ force alignment */
  width: 100%;
  max-width: none;
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  height: 56px;
  border-radius: 0;
  background: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  color: #063152;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform: none !important;           /* ✅ prevent any shift on tap */
  -webkit-transform: none !important;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#review-navbar:hover,
#main-mobile-navbar:hover {
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  transform: none;
}

#review-navbar .container,
#main-mobile-navbar .container {
  width: 100% !important;      /* ✅ force full width */
  max-width: 100% !important;  /* ✅ prevent Bootstrap container shrink */
  margin: 0 !important;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* Specific layout for review navbar container */
#review-navbar .container {
  display: flex;
  align-items: center; /* ✅ vertically center content */
  justify-content: flex-start;
  gap: 12px;
  white-space: nowrap;
  height: 100%; /* ✅ fill navbar height */
}

/* Specific layout for main mobile navbar container */
#main-mobile-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Disable any focus/active transforms that could shift content */
#review-navbar:active,
#review-navbar *:active,
#review-navbar:focus,
#review-navbar *:focus,
#main-mobile-navbar:active,
#main-mobile-navbar *:active,
#main-mobile-navbar:focus,
#main-mobile-navbar *:focus {
  outline: none !important;
  transform: none !important;
  -webkit-transform: none !important;
}

#review-navbar img {
  height: 32px;
  display: block;
  filter: none;
  user-select: none;
}

#review-navbar .review-text {
  font-weight: 600;
  font-size: 1rem;
  color: #063152;
  user-select: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

#review-navbar .d-flex.align-items-center {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  margin-left: auto !important; /* ✅ push rating to right */
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  cursor: default;
  transition: none;
}

#review-navbar .rating-score {
  color: #fbbc04;
  font-weight: 900;
  font-size: 1.4rem;
  margin-right: 6px;
  text-shadow: none;
  letter-spacing: 0.03em;
  user-select: none;
  line-height: 1;
  vertical-align: middle;
}

#review-navbar .fa-star,
#review-navbar .fa-star::before {
  display: none !important;
}

/* === Breathing Animation for Stars (Wave Effect) === */
@keyframes starBreath {
  0%, 100% {
    transform: scale(1);
    color: #fbbc04;
    text-shadow:
      0 0 3px rgba(251, 188, 4, 0.7),
      0 0 6px rgba(251, 188, 4, 0.5);
  }
  50% {
    transform: scale(1.1);
    color: #fff3b0;
    text-shadow:
      0 0 8px rgba(255, 255, 255, 1),
      0 0 15px rgba(251, 188, 4, 0.9);
  }
}

#review-navbar .review-stars {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 3px;
  user-select: none;
  line-height: 1;
  vertical-align: middle;
}

#review-navbar .review-stars span {
  display: inline-block;
  animation: starBreath 3.5s infinite ease-in-out; /* slower breathing */
}

#review-navbar .review-stars span:nth-child(1) { animation-delay: 0s; }
#review-navbar .review-stars span:nth-child(2) { animation-delay: 0.4s; }
#review-navbar .review-stars span:nth-child(3) { animation-delay: 0.8s; }
#review-navbar .review-stars span:nth-child(4) { animation-delay: 1.2s; }
#review-navbar .review-stars span:nth-child(5) { animation-delay: 1.6s; }

#main-mobile-navbar {
  background-color: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
}

#main-mobile-navbar.show {
  opacity: 1;
  visibility: visible;
}

.fade-navbar {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.fade-navbar.show {
  opacity: 1;
  visibility: visible;
}

/* Hide review-navbar and main-mobile-navbar on md (≥768px) and larger screens */
/* @media (min-width: 768px) {
  #review-navbar,
  #main-mobile-navbar {
    display: none !important;
  }
} */

/* === Alignment Fix (Extra Safety) === */
#review-navbar img,
#review-navbar .review-text,
#review-navbar .rating-score,
#review-navbar .review-stars {
  display: inline-flex;
  align-items: center;
}

#review-navbar .review-text,
#review-navbar .rating-score,
#review-navbar .review-stars {
  padding: 0;
}

#review-navbar .review-label {
  font-weight: 600;
  font-size: 1rem;
  color: #063152;
  user-select: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0; /* from alignment fix */
  display: inline-flex;
  align-items: center;
}

#review-navbar a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit; /* keep text color same */
}

#review-navbar a:hover {
  text-decoration: none; /* prevent underline on hover */
}

/* Only Mid & Lg screen navbar sticky */
@media (min-width: 768px) {
  .old-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
  }
}

/* image main section */
@media (min-width: 768px) {
  .hero-section, /* replace with your first section's class or id */
  .custom-image-wrapper {
    padding-top: 80px; /* match navbar height */
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .col-md-6.text-center {
    /* display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); */
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .col-lg-6.text-center[data-aos="zoom-in"] {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .col-lg-6.text-center[data-aos="zoom-in"] img {
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #contact .lg\:w-1\/2:first-of-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  #contact .lg\:w-1\/2:first-of-type > * {
    max-width: 500px; /* Optional: keeps content nicely contained */
  }
}


/* @media (min-width: 768px) and (max-width: 991px) {
  #contact .bg-white h2,
  #contact .bg-white button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
} */

@media (min-width: 992px) {
  #review-navbar,
  #main-mobile-navbar {
    display: none !important;
  }
}





.nav-label {
  font-size: 0.85rem; /* slightly larger text */
  margin-top: 0px;
  line-height: 1.2;
  color: #063152;
}

@media (max-width: 991px) {
  #main-mobile-navbar,
  #review-navbar {
    height: 64px;
  }

  #main-mobile-navbar .container,
  #review-navbar .container {
    height: 100%;
    align-items: center;
  }
}

@media (max-width: 991px) {
  #main-mobile-navbar a,
  #main-mobile-navbar a i,
  #main-mobile-navbar a span {
    color: #555 !important;
  }

  /* Only target non-star & non-score text spans in review navbar */
  #review-navbar a,
  #review-navbar a i,
  #review-navbar a span:not(.review-stars span):not(.rating-score) {
    color: #555 !important;
  }
}

@media (max-width: 991px) {
  /* Main mobile navbar logo */
  #main-mobile-navbar .navbar-brand img {
    max-height: 48px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
  }

  /* Google Review navbar logo */
  #review-navbar img {
    max-height: 48px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
  }

  /* Bigger text for review label */
  #review-navbar .review-label {
    font-size: 1rem; /* bigger label */
    font-weight: 600;
  }

  /* Bigger rating score */
  #review-navbar .rating-score {
    font-size: 1.6rem; /* larger score */
    font-weight: 900;
  }

  /* Bigger stars */
  #review-navbar .review-stars {
    font-size: 1.6rem; /* match score size */
    letter-spacing: 4px; /* slightly wider spacing */
  }
}

@media (max-width: 991px) {
  /* Center icon + text vertically inside bottom navbar */
  #main-mobile-navbar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 4px 0;
  }

  #main-mobile-navbar .nav-link i {
    margin-bottom: 0px;
  }
}

