/* Brainseed Academy Website Styles - Light Mode Only */

:root {
  --primary-blue: #2b3a8a;
  --secondary-blue: #4a5bc7;
  --primary-orange: #ff6b35;
  --secondary-orange: #ff8a65;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --white: #ffffff;
  --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Light mode media query for additional specificity */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Arial", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.navbar-brand img {
  flex-shrink: 0;
}

.navbar-brand .text-primary {
  color: var(--primary-blue) !important;
}

.navbar-brand .text-warning {
  color: var(--primary-orange) !important;
}

/* Mobile navbar brand optimization */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand img {
    height: 30px !important;
  }

  .navbar-brand span {
    font-size: 0.95rem;
  }
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-gray) !important;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.dropdown-item {
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Hero Section */
/* Hero Banner Carousel */
.hero-banner-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  z-index: 1;
}

.hero-banner-carousel .carousel {
  position: relative;
  z-index: 1;
}

.hero-banner-carousel .carousel-item {
  height: 400px; /* Adjust height as needed */
}

.hero-banner-carousel .carousel-item img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-carousel .carousel-control-prev,
.hero-banner-carousel .carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.hero-banner-carousel .carousel-control-prev:hover,
.hero-banner-carousel .carousel-control-next:hover {
  opacity: 1;
}

.hero-banner-carousel .carousel-indicators {
  bottom: 25px;
  position: absolute;
  z-index: 2;
  margin-bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.hero-banner-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 3px;
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.8);
}

.hero-banner-carousel .carousel-indicators button.active {
  opacity: 1;
  background: var(--primary-orange);
}

/* Responsive hero banner */
@media (max-width: 768px) {
  .hero-banner-carousel .carousel-item {
    height: 250px;
  }
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

/* Course Cards */
.course-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card .card-body {
  padding: 1.5rem;
}

.course-card h5 {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--primary-blue);
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--primary-orange);
  border: none;
  color: var(--white);
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background: var(--secondary-orange);
  transform: translateY(-2px);
}

/* Statistics Section */
.stats-section {
  background: var(--purple-gradient);
  color: var(--white);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  margin: 2rem 0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
}

/* Achievements Carousel */
.achievements-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 60px;
  margin: 0 auto;
}

.achievements-carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.achievement-card {
  flex: 0 0 23%; /* Show exactly 4 cards at a time with some margin */
  background: var(--white);
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  aspect-ratio: 3/4;
  min-height: 180px;
  max-height: 240px;
}

.achievement-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.achievement-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.achievement-card:hover img {
  transform: scale(1.05);
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(43, 58, 138, 0.3);
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-btn:hover {
  background: var(--primary-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.carousel-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--primary-orange);
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: var(--primary-blue);
}

/* About Page Styles */
.hexagon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.hexagon-image {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hexagon-image:hover {
  transform: rotate(5deg) scale(1.05);
}

.hexagon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Teaching Method Styles */
.key-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item .icon {
  width: 60px;
  height: 60px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--white);
}

/* Why Choose Section */
.why-choose-diagram {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 3rem auto;
}

.central-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: var(--purple-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  font-weight: 600;
  z-index: 2;
}

.orbit-item {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 15px;
  box-sizing: border-box;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(43, 58, 138, 0.25);
}

.contact-info-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--white);
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-section h5 {
  color: var(--primary-orange);
  margin-bottom: 1rem;
  font-weight: 600;
}

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

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-orange);
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin: 0 5px;
  transition: background 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-orange);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
  .achievement-card {
    flex: 0 0 31%; /* Show 3 cards on tablet */
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .why-choose-diagram {
    width: 100%;
    height: 400px;
  }

  .orbit-item {
    position: relative;
    margin: 1rem auto;
    width: 100px;
    height: 100px;
    font-size: 0.8rem;
  }

  .central-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 2rem auto;
  }

  .achievement-card {
    flex: 0 0 47%; /* Show 2 cards on mobile */
    min-height: 180px;
    max-height: 250px;
  }

  .achievements-carousel-wrapper {
    padding: 20px 30px;
  }

  .achievements-carousel-container {
    gap: 15px;
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .feature-card,
  .course-card,
  .contact-form {
    margin: 1rem 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-blue) !important;
}

.text-orange-custom {
  color: var(--primary-orange) !important;
}

.bg-light-custom {
  background: var(--light-gray) !important;
  position: relative;
  z-index: 10;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header Styles */
.about-hero-section,
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
  background-image: url("../assets/images/aboutbanner.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 40vh;
}

.page-header .hero-overlay,
.about-hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 58, 138, 0.7);
  z-index: 1;
}

.page-header .container,
.about-hero-section .container {
  position: relative;
  z-index: 2;
}

.page-header .hero-title,
.about-hero-section .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .breadcrumb,
.about-hero-section .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.page-header .breadcrumb-item + .breadcrumb-item::before,
.about-hero-section .breadcrumb-item + .breadcrumb-item::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-orange);
  margin: 0 8px;
}

.page-header .breadcrumb-item a,
.about-hero-section .breadcrumb-item a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-header .breadcrumb-item a:hover,
.about-hero-section .breadcrumb-item a:hover {
  color: var(--primary-orange);
}

.page-header .breadcrumb-item.active,
.about-hero-section .breadcrumb-item.active {
  color: var(--primary-orange);
  font-weight: 600;
}

/* Mobile optimization for page headers */
@media (max-width: 768px) {
  .page-header,
  .about-hero-section {
    padding: 100px 0 40px;
    min-height: 25vh;
  }

  .page-header .hero-title,
  .about-hero-section .hero-title {
    font-size: 2.2rem;
  }

  .page-header .breadcrumb,
  .about-hero-section .breadcrumb {
    font-size: 0.95rem;
  }
}

/* Courses Mega Menu Styles */
.courses-mega-menu {
  min-width: 600px;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: white;
  z-index: 1040;
}

.courses-mega-menu .dropdown-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-blue) !important;
  padding: 10px 0 15px 0;
  border-bottom: 2px solid var(--primary-blue);
  margin-bottom: 15px;
}

.courses-mega-menu .dropdown-item {
  padding: 8px 15px;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.courses-mega-menu .dropdown-item:hover {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: white;
  transform: translateX(5px);
}

.courses-mega-menu .dropdown-item i {
  width: 20px;
  text-align: center;
}

/* Mobile mega menu fix */
@media (max-width: 991.98px) {
  /* Override Bootstrap dropdown behavior on mobile */
  .navbar-nav .dropdown-menu.show {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    background-color: #f8f9fa !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    transform: none !important;
    animation: none !important;
    z-index: 1041 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .courses-mega-menu {
    min-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    position: static !important;
    transform: none !important;
    background-color: #f8f9fa !important;
    padding: 15px !important;
    z-index: 1041 !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Force display when show class is added with scrolling preserved */
  .courses-mega-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
  }

  /* Ensure mobile dropdown is hidden by default */
  .courses-mega-menu {
    display: none;
  }

  .courses-mega-menu .row {
    flex-direction: column !important;
  }

  .courses-mega-menu .col-6 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }

  /* Remove individual column scrolling - scroll as one unified section */
  .courses-mega-menu .col-6 {
    overflow: visible !important;
    max-height: none !important;
    padding-right: 15px !important;
  }

  .courses-mega-menu .dropdown-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }

  .courses-mega-menu .dropdown-item {
    padding: 12px 15px !important;
    margin-bottom: 2px !important;
    border-radius: 5px !important;
    background-color: white !important;
    border: 1px solid #e9ecef !important;
  }

  .courses-mega-menu .dropdown-item:hover {
    background-color: var(--primary-blue) !important;
    transform: none !important;
  }

  /* Ensure dropdown stays open when clicking inside */
  .navbar-collapse.show .dropdown-menu {
    position: static !important;
  }

  /* Keep dropdown arrow visible */
  .navbar-nav .dropdown-toggle::after {
    display: inline-block !important;
  }

  /* Mobile dropdown override for Bootstrap behavior */
  .navbar-nav .dropdown-menu.show {
    display: block !important;
  }

  /* Prevent Bootstrap from interfering with mobile mega menu */
  @media (max-width: 991.98px) {
    .dropdown-menu[data-bs-popper] {
      position: static !important;
      inset: unset !important;
      margin: 0 !important;
      transform: none !important;
    }

    /* Make sure mobile navigation is properly stacked */
    .navbar-nav {
      width: 100%;
    }

    .navbar-nav .nav-item {
      width: 100%;
    }

    .navbar-nav .dropdown {
      width: 100%;
    }

    /* Ensure mobile dropdown is visible and accessible */
    .navbar-collapse {
      z-index: 1050;
      position: relative;
    }

    .dropdown-menu {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      bottom: auto !important;
      float: none !important;
    }

    /* Override any Bootstrap hiding behavior */
    .show > .dropdown-menu {
      display: block !important;
    }

    .dropdown-menu.show {
      display: block !important;
    }

    /* Force override Bootstrap dropdown hiding */
    .dropdown-menu[data-bs-popper="static"] {
      position: static !important;
      inset: unset !important;
      margin: 0 !important;
      transform: none !important;
    }

    /* Completely override Bootstrap mobile behavior */
    .navbar-nav .dropdown-menu {
      position: static !important;
      transform: none !important;
      inset: unset !important;
      margin: 0 !important;
      border: none !important;
    }

    /* Fallback: Pure CSS dropdown for mobile */
    .navbar-nav .dropdown:hover .dropdown-menu,
    .navbar-nav .dropdown:focus-within .dropdown-menu {
      display: block !important;
      opacity: 1 !important;
      visibility: visible !important;
    }

    /* Custom scrollbar styling for mobile - unified container only */
    .courses-mega-menu::-webkit-scrollbar {
      width: 6px;
    }

    .courses-mega-menu::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 3px;
    }

    .courses-mega-menu::-webkit-scrollbar-thumb {
      background: var(--primary-blue);
      border-radius: 3px;
    }

    .courses-mega-menu::-webkit-scrollbar-thumb:hover {
      background: var(--primary-orange);
    }

    /* Smooth scroll behavior for entire container */
    .courses-mega-menu {
      scroll-behavior: smooth;
    }

    /* Add subtle shadow to indicate scrollable content */
    .courses-mega-menu {
      box-shadow: inset 0 -15px 15px -15px rgba(0, 0, 0, 0.1);
    }

    /* Ensure scrollbar is always visible when content overflows */
    .courses-mega-menu.show {
      scrollbar-width: thin;
      scrollbar-color: var(--primary-blue) #f1f1f1;
    }

    /* Force scroll when content exceeds container */
    .courses-mega-menu.show .row {
      min-height: calc(100% + 1px);
    }
  }
}

/* Additional height adjustments for different devices */
@media (max-width: 991.98px) and (max-height: 667px) {
  /* iPhone 6/7/8 and similar small screens */
  .courses-mega-menu,
  .courses-mega-menu.show {
    max-height: 60vh !important;
  }
}

@media (max-width: 991.98px) and (max-height: 568px) {
  /* iPhone 5/SE and very small screens */
  .courses-mega-menu,
  .courses-mega-menu.show {
    max-height: 50vh !important;
  }
}
