.moodle-workplace-section {
  padding: 5rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.moodle-workplace-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.moodle-workplace-image-area {
  position: relative;
  width: 520px;
  min-width: 320px;
}

.moodle-dots {
  position: absolute;
  top: 0;
  left: -90%;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.moodle-dots img {
  width: 100%;
  height: auto;
  display: block;
}

.moodle-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: visible;
}

.moodle-image-wrapper img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.moodle-logo-box {
  position: absolute;
  left: 85%;
  bottom: 10%;
  transform: translateX(-50%);
  background: #ffd600;
  padding: 2.5rem 3rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 3;
  display: flex;
  align-items: center;
}

.moodle-logo-box img {
  height: 48px;
  width: auto;
  display: block;
}

.moodle-workplace-content {
  flex: 1;
  min-width: 320px;
  max-width: 100%;
}

.moodle-workplace-content h2 {
  font-size: 3rem;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
}

.moodle-title-bold {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  color: #000;
}

.moodle-title-highlight {
  font-family: "Hattinant", sans-serif;
  font-weight: 500;
  font-size: 3rem;
  color: #000;
  position: relative;
  display: inline-block;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
}

.moodle-title-highlight.visible {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.moodle-title-highlight::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 40%;
  background-color: rgba(255, 215, 0, 1);
  transform: translateY(-50%);
  z-index: -1;
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
}

.moodle-title-highlight.visible::before {
  animation: highlightIn 0.8s ease forwards 0.4s;
}

@keyframes highlightIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

.moodle-workplace-content p {
  font-family: "Gilroy", sans-serif;
  font-size: 1.1rem;
  color: #222;
  margin-top: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .moodle-workplace-grid {
    flex-direction: column;
    gap: 2.5rem;
  }
  .moodle-workplace-image-area {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  .moodle-workplace-content {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .moodle-workplace-section {
    padding: 2.5rem 0 1.5rem 0;
  }
  .moodle-workplace-grid {
    gap: 1.5rem;
  }
  .moodle-workplace-content h2 {
    font-size: 1.6rem;
  }
  .moodle-title-highlight {
    font-size: 1.6rem;
  }
  .moodle-logo-box {
    padding: 1.2rem 2rem 1rem 1.5rem;
  }
}
