
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #003366;
}

.hero-elearning {
  background: linear-gradient(135deg, #003366, #FFC000);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.hero-elearning h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-elearning .home-link {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

/* Description Card */
.description-card {
  background-color: #f5f5f5;
  border-radius: 16px;
  padding: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.description-card h2 {
  color: #003366;
  margin-bottom: 1rem;
}

.description-card p {
  font-size: 1rem;
  color: #333;
}

.demo {
  text-align: center;
  margin-top: 3rem;
}

.demo h2,
.demo p {
  margin-bottom: 1rem;
}

.open-demo-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.open-demo-btn:hover {
  background-color: #FFD700;
  color: #003366;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: none;
}

.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f0f4f8;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  text-align: center;
  width: 300px;
}

.popup-box.show,
.popup-overlay.show {
  display: block;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #333;
}



/* Container */
.draggable-box {
  position: fixed;
  top: 10%;
  left: 10%;
  width: 640px;
  height: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  resize: both;
}

/* Header */
.box-header {
  background: #003366;
  color: white;
  padding: 0.7rem 1rem;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin-left: 10px;
  cursor: pointer;
}

/* Frame */
#elearning-frame {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  border: none;
}

/* Fullscreen */
.fullscreen {
  top: 5% !important;
  left: 5% !important;
  width: 90% !important;
  height: 90% !important;
}

/* Responsive */
@media (max-width: 768px) {
  .draggable-box {
    width: 95%;
    height: 70%;
    left: 2.5%;
    top: 15%;
  }
}


footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  .hero-elearning h1 {
    font-size: 1.8rem;
  }

  .hero-elearning p {
    font-size: 1rem;
  }

  .description-card {
    padding: 1.5rem;
    margin: 1.5rem 1rem;
  }

  .embed-wrapper iframe,
  .form-wrapper iframe {
    height: 400px; /* reduce height on mobile */
  }
}

