.main-container {
  position: relative;
  min-height: 450px;
  margin-top: 120px;
  padding: 40px 60px;
}

/* Global responsive image handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* For image wrappers where crop is allowed */
.image-wrapper,
.category-icon,
.feature-icon,
.course-card,
.logo-item {
  overflow: hidden;
}

.search-icon {
  border-style: solid;
  border-color: #dee2e6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-content {
  animation: fadeIn 2s ease;
}

.top-image {
  position: absolute;
  max-width: 300px;
  width: auto;
  height: auto;
  opacity: 0.8;
  z-index: -1;
  object-fit: contain;
}

.top-image.top-right {
  top: 0;
  right: 0;
}

.top-image.bottom-left {
  bottom: 0;
  left: 0;
}

@media (max-width: 1000px) {
  .main-container {
    padding: 0px 30px;
    min-height: 300px;
    margin-top: 50px;
  }

  .top-image {
    display: none;
  }

  .header-content {
    padding-top: 20px;
  }

  .categories-flex-container {
    margin: -15px;
  }
}

.header-logo {
  max-width: 250px;
  width: 100%;
  height: auto;
  margin: 20px auto;
  object-fit: contain;
}

.search-container {
  max-width: 750px;
  margin: 30px auto;
  position: relative;
}

.categories-container-desktop {
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .categories-container-desktop {
    display: none !important;
  }
}

.categories-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  border-radius: 10px;
  cursor: pointer;
  margin: 5px;
  width: 100px;
}

.category-item:hover {
  transform: translate(0, -5px);
  transition: transform 0.5s ease;
}

.category-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f8ff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-style: solid;
  border-width: 1px;
  border-color: rgba(147, 147, 147, 0.2);
}

.category-icon img {
  width: 30px;
  height: 30px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.category-name {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 5px;
}

.bold-text {
  font-weight: bold;
  color: #00417e;
}

.partner-container {
  padding: 40px 60px;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  width: 100px;
}

.logo-img {
  width: 70px;
  height: 70px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

.logo-text {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.dot {
  height: 8px;
  width: 20px;
  background-color: #bbb;
  border-radius: 10px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.dot:hover {
  background-color: #999;
  transform: scale(1.05);
}

.dot.active {
  background-color: #00417e;
  width: 30px;
}

.dot:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
}

.dot:hover:after {
  width: 100%;
}

@media (max-width: 1000px) {
  .desktop-logos {
    display: none;
  }

  .partner-container {
    padding: 40px 20px;
  }
}

@media (min-width: 1000px) {
  .mobile-carousel {
    display: none;
  }
}

.container-testimonial-header {
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px 60px 0px 60px;
}

blockquote {
  margin: 5px;
  line-height: 1.6;
  position: relative;
}

.quote-mark {
  float: left;
  height: 40px;
  width: auto;
  max-width: 100%;
  margin-right: 12px;
  margin-top: 3px;
  object-fit: contain;
}

.navigation-testimonial {
  display: none;
}

.navigation-testimonial button {
  font-size: 20px;
  color: white;
  background: #023E8A;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.1);
}

.testimonial.expanded {
  max-height: 3000px;
  margin-bottom: 16px;
}

.testimonial blockquote p {
  margin-top: 0;
}

.read-more {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: linear-gradient(to bottom, rgba(245, 245, 245, 0), rgba(245, 245, 245, 1) 70%);
  padding: 40px 0 16px;
  cursor: pointer;
}

cite {
  font-style: normal;
}

.testimonial {
  border-style: solid;
  border-color: #d1d7dc;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #ffffff;
  padding: 16px;
  border-radius: 5px;
  border-width: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  max-height: 300px;
  transition: max-height 0.3s ease-out;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials::-webkit-scrollbar {
  display: none;
}

.testimonial-container {
  margin: 0px auto;
  padding: 40px 60px;
  position: relative;
  background: #F7F9FA;
}

h1 {
  color: #2D2F31;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 600;
}

h2 {
  color: #2D2F31;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 600;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media screen and (max-width: 1000px) {
  .container-testimonial-header {
    padding: 20px 30px;
  }

  .testimonial-container {
    padding: 30px 30px;
  }

  .testimonials {
    display: -webkit-inline-box;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    -ms-overflow-style: none;
    overflow: hidden;
    scroll-behavior: smooth;
  }

  .navigation-testimonial {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
  }
}

.feature-container {
  margin: 0 auto;
  padding: 40px 60px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mobile-content-wrapper {
  display: none;
}

.features-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border-radius: 1px;
  border-style: solid;
  border-color: #d1d7dc;
  border-width: 1px;
  height: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  overflow: hidden;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateX(5px);
}

.feature-strip {
  width: 0;
  height: 100%;
  background-color: #004AAD;
  transition: width 0.3s ease;
}

.feature-card.active .feature-strip {
  width: 6px !important;
}

.feature-card.active {
  border-color: #003987 !important;
}

.feature-content-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 30px;
  height: 30px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.feature-content {
  flex-grow: 1;
  overflow: hidden;
}

.feature-title {
  color: #2D2C2A;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-description {
  color: #6A6F73;
  line-height: 1.5;
  font-size: 0.95rem;
}

.image-column {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.feature-text {
  flex-grow: 1;
  text-align: left;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 320px;
  position: relative;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
  border-style: solid;
  border-color: #d1d7dc;
  border-width: 2px;
  will-change: opacity;
}

.feature-image.active {
  opacity: 1;
}

@media screen and (max-width: 1000px) {
  .feature-container {
    padding: 20px 30px;
  }

  .content-wrapper {
    display: none;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 24px;
  }

  .mobile-content-wrapper {
    display: block;
  }

  .image-wrapper {
    min-height: 220px;
  }
}

.cards-container {
  position: relative;
  height: auto;
  min-height: 430px;
  background: white;
}

.feature-card-mobile {
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: opacity 0.5s ease;
}

.feature-card-mobile.active {
  opacity: 1;
}

.feature-content-mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-content-mobile img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.feature-text {
  flex-grow: 1;
  text-align: left;
}

.feature-title-mobile {
  color: #004AAD;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-description-mobile {
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
}

.navigation-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
}

.feature-dot {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: #E5E7EB;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-dot.active {
  background: #004AAD;
  width: 32px;
}

.explore-container {
  margin: 0 auto;
  padding: 15px 60px 15px 60px;
  background: #F7F9FA;
  display: none;
}

.course-tabs {
  border-bottom: 1px solid #ddd;
  margin-bottom: 24px;
}

.course-tabs .nav-link {
  color: #6c757d;
  padding: 16px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: bold;
}

.course-tabs .nav-link.active {
  color: #00417e;
  border-bottom: 3px solid #00417e;
  background-color: transparent;
}

.category-dropdown {
  display: none;
  margin-bottom: 24px;
  width: 100%;
}

.category-dropdown .btn {
  width: 100%;
  text-align: left;
  position: relative;
  background-color: white;
  color: #00417e;
  border: 2px solid #DEE2F9;
  font-weight: bold;
  padding: 12px 16px;
}

.category-dropdown .btn::after {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.category-dropdown .dropdown-menu {
  width: 100%;
}

.category-dropdown .dropdown-item.active {
  background-color: #0d6efd;
  color: white;
}

.course-card {
  cursor: pointer;
  border: 1px solid #d1d7dc;
  border-style: solid;
  transition: all 0.3s ease;
  height: 100%;
  padding: 7px;
}

.course-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-img {
  width: 100%;
  height: 160px;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-details {
  padding: 16px;
}

.course-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.organization {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instructor {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-all-container {
  text-align: left;
}

.show-all-btn {
  background-color: #00417e;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  margin-top: 20px;
}

.show-all-btn:hover {
  color: white;
  background-color: #0b5ed7;
}

.explore-container-header {
  margin: 0 auto;
  background-color: #ffffff;
  padding: 0px 60px 0px 60px;
  display: none;
}

@media (max-width: 1000px) {
  .explore-container-header {
    padding: 0px 30px;
  }

  .explore-container {
    padding: 15px 30px 15px 30px;
  }

  .course-tabs {
    display: none !important;
  }

  .category-dropdown {
    display: block !important;
  }

  .course-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.container-stats-main {
  display: none;
}

.stats-container {
  background-color: #F7F9FA;
  padding: 5px 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.row {
  --bs-gutter-x: 0.5rem;
}

.stats-row {
  transition: opacity 0.5s ease;
}

.visible-row {
  display: flex;
  opacity: 1;
}

.stat-item {
  text-align: center;
  padding: 15px 10px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #023E8A;
  margin-bottom: 0;
}

.hidden-row {
  display: none;
  opacity: 0;
}

@media (max-width: 1000px) {
  .stat-item {
    margin-bottom: 0;
    padding: 5px 2px;
  }

  .stat-label {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .stat-value {
    font-size: 22px;
  }
}
