/* Main Container */
.hec-body-content {
  /* background: linear-gradient(90deg, #2c3e50, #8e44ad, #e74c3c, #f39c12); */
  background: aliceblue;
}

.hec-media-heading {
  font-size: 42px;
  color: #1a4b8c;
  font-weight: 700;
  text-transform: uppercase;
  margin: 30px auto;
  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

.hec-media-heading .hec-media-highlight1 {
  color: #007bff;
  position: relative;
}

/* .hec-media-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background-color: #007bff;
} */

.hec-enm-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1320px;
  margin: auto;
  flex-wrap: wrap;
  padding: 2rem;
  flex-direction: row;
}

/* Responsive: Stack vertically and adjust size on small screens */
@media (max-width: 768px) {
  .hec-enm-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
  }

  .hec-enm-card {
    width: 100%;
    flex: 1 1 100%;
    /* height: 350px; */
    padding: 1rem;
  }

  .hec-enm-card h2 {
    font-size: 1.25rem;
  }

  .hec-enm-scroll-item img {
    height: 150px;
  }

  .hec-enm-overlay-caption h4 {
    font-size: 1rem;
  }

  .hec-enm-overlay-caption p {
    font-size: 0.85rem;
  }
}

/* Card Design */
.hec-enm-card {
  position: relative;
  flex: 1 1 30%;
  border: 4px solid transparent;
  border-radius: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.2));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Card Title */
.hec-enm-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Scroll Container */
.hec-enm-scroll-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE */
}

.hec-enm-scroll-content::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Scroll Inner Container */
.hec-enm-scroll-inner {
  display: flex;
  flex-direction: column;
}

/* Scroll Items */
.hec-enm-scroll-item {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Images */
.hec-enm-scroll-item img {
  width: 100%;
  height: 100%;


}

/* Overlay Captions */
.hec-enm-overlay-caption {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
  width: 100%;
  padding: 0.5rem;
}

.hec-enm-overlay-caption h4 {
  margin: 0;
  font-size: 1.1rem;
}

.hec-enm-overlay-caption p {
  margin: 0;
  font-size: 0.9rem;
}

/* Dark Mode Toggle Button */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}
