/* Global mobile tweaks for welcome page */

@media (max-width: 767.98px) {
  /* Reduce top/bottom spacing on sections for smaller screens */
  section {
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Pull banner a bit closer to the top on mobile */
  #banner {
    padding-top: 0.5rem !important;
  }

  #banner .container.pt-4 {
    padding-top: 0.75rem !important;
  }

  /* Banner text sizing */
  #banner h1.lexicon-heading {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  #banner h5 {
    font-size: 0.95rem;
  }

  #banner .btn-primary-2 {
    padding: 0.5rem 1.6rem;
    font-size: 0.9rem;
  }

  /* Ensure slider images don’t overflow */
  #banner .slider-banner img {
    width: 100%;
    height: auto;
  }

  /* Counter section: add spacing and center text */
  #counter .counter-back-text {
    font-size: 2.3rem;
  }

  #counter h4,
  #counter p {
    font-size: 0.9rem;
  }

  /* Testing Center cards & images */
  #testingCenter .course-box {
    height: auto !important;
  }

  #testingCenter .testing-center-img {
    height: auto !important;
    width: 100% !important;
    object-fit: cover;
  }

  /* Add On Service & Courses cards – let height be flexible and images responsive */
  #addOnService .course-box,
  #addOnService .custom-card,
  #courses .course-box,
  #courses .custom-card {
    height: auto !important;
    justify-content: flex-start;
  }

  #addOnService .course-box img,
  #addOnService .custom-card img,
  #courses .course-box img,
  #courses .custom-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Add a bit of space between course image and button on mobile */
  #courses .course-box .btn,
  #courses .custom-card .btn {
    margin-top: 0.5rem;
  }

  /* Mock Test cards – flexible height and responsive images */
  #mockTest .course-box {
    height: auto !important;
  }

  #mockTest .course-box img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Swiper preparation slider – show 1 card per view */
  .preparationSwiper .swiper-slide {
    width: 100% !important;
  }
}

/* Preparation Center card equal height handling */

@media (max-width: 767.98px) {
  #preparationCenter .course-box {
    height: 360px !important;
    display: flex;
    flex-direction: column;
  }

  #preparationCenter .course-box img {
    height: 200px !important;
    object-fit: cover;
  }
}

/* Mobile Bottom Navigation – welcome page only */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  border-top: 1px solid #f0f0f0;
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  color: #555555;
  font-size: 0.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
  color: #888888;
}

.mobile-bottom-nav .nav-item span {
  line-height: 1;
}

/* Active state styling */
.mobile-bottom-nav .nav-item.active {
  color: #a20108;
  font-weight: 600;
}

.mobile-bottom-nav .nav-item.active i {
  color: #a20108;
}

.mobile-bottom-nav .nav-item.active span {
  color: #a20108;
}

/* Center (Lexifly) item - neutral by default */
.mobile-bottom-nav .center-item .center-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.1rem;
  box-shadow: none;
}

.mobile-bottom-nav .center-item .center-icon i {
  color: #888888;
  margin-bottom: 0;
}

/* When Lexifly is active, highlight like others */
.mobile-bottom-nav .nav-item.center-item.active .center-icon {
  background: #a20108;
  border-color: #a20108;
  box-shadow: 0 4px 12px rgba(162, 1, 8, 0.4);
}

.mobile-bottom-nav .nav-item.center-item.active .center-icon i {
  color: #ffffff;
}

/* Add bottom padding so last content isn’t hidden behind nav */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 70px;
  }
}

/* Lexifly section mobile refinements */
@media (max-width: 767.98px) {
  #lexifly .lexifly-wrapper {
    height: auto !important;
    padding: 24px 0 40px 0 !important;
  }

  #lexifly .lexifly-img {
    width: 150px !important;
    height: 90px !important;
  }

  #lexifly .lexifly-logo {
    width: 105px !important;
    height: 105px !important;
    border-width: 4px !important;
    top: 38% !important;
  }

  #lexifly .lexifly-item p {
    font-size: 0.8rem !important;
    margin-top: 0.5rem !important;
  }

  #lexifly .lexifly-indicators {
    bottom: 8px !important;
    gap: 6px !important;
  }
}

/* Book For Consultancy responsiveness */
@media (max-width: 767.98px) {
  #bookForConsultancy {
    text-align: center;
    padding: 3rem 1.5rem !important;
    background-position: center center !important;
  }

  #bookForConsultancy h2 {
    font-size: 1.5rem;
  }

  #bookForConsultancy p {
    font-size: 0.95rem;
  }

  #bookForConsultancy .consultancy-btn {
    width: 100%;
    max-width: 260px;
  }
}

/* Footer main logo responsiveness */
.footer-main-logo {
  width: 70vw;
  max-width: 260px;
  height: auto;
}

@media (max-width: 575.98px) {
  .footer-main-logo {
    width: 80vw;
    max-width: 240px;
  }
}

/* Footer layout responsiveness */
@media (max-width: 767.98px) {
  footer .col-md-3 {
    text-align: center !important;
    margin-bottom: 1.25rem;
  }

  footer .lexicon-heading {
    margin-bottom: 0.6rem;
  }

  .footer-mail-input {
    width: 100% !important;
    text-align: left;
    margin-bottom: 0.75rem;
  }

  footer .btn.btn-primary-2 {
    width: 100%;
  }

  footer .footer-social-link.fs-2 {
    font-size: 1.6rem !important;
  }
}

/* Footer socials: keep icons responsive on tablets/small desktops (768–1400px) */
@media (min-width: 768px) and (max-width: 1400px) {
  footer .footer-socials {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem 1rem !important; /* row-gap, column-gap */
    max-width: 100%;
  }

  footer .footer-social-link.fs-2 {
    font-size: 1.75rem !important;
    line-height: 1;
  }
}

/* Footer vertical spacing tweaks for all screens */
footer .container {
  padding-top: 2.5rem !important;
  padding-bottom: 1.5rem !important;
}

footer .row.mb-4,
footer .row.mb-3 {
  margin-bottom: 1.5rem !important;
}

footer .row.mt-4 {
  margin-top: 1.5rem !important;
}

/* Footer separator line spacing */
.footer-separator {
  width: 100%;
  height: 2px;
  background-color: var(--color-one);
  margin: 1.25rem 0 0.75rem 0;
}@media (max-width: 767.98px) {
  .footer-separator {
    margin: 1rem 0 0.75rem 0;
  }
}
