/* EDUKASI PAGE CUSTOM STYLES */

/* HERO SECTION */
.hero {
  padding: 80px 8%;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  flex: 1.2;
  text-align: left;
}

.hero .badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-dark);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 30px;
}

.hero button {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.hero-icon {
  width: 280px;
  height: 280px;
  min-width: 280px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  animation: floating 4s ease-in-out infinite;
}

.hero-icon i {
  font-size: 120px;
  color: var(--primary);
}

/* KELAS SECTION */
.kelas {
  padding: 80px 8%;
  text-align: center;
  background: white;
}

.kelas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1300px;
  margin: 45px auto 0;
}

.kelas-card {
  background: var(--bg-main);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.kelas-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--primary-light);
  border-radius: 50%;
  right: -40px;
  top: -40px;
  opacity: 0.5;
  transition: var(--transition);
}

.kelas-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: white;
  border-color: var(--primary-light);
}

.kelas-card:hover::after {
  transform: scale(1.4);
  opacity: 0.8;
}

.kelas-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  width: fit-content;
}

.kelas-card i {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  background: white;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.kelas-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.kelas-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  flex: 1;
}

.kelas-action {
  margin-top: 24px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

/* GAME BANNER SECTION */
.game-section {
  padding: 80px 8%;
  background: var(--bg-main);
}

.game-box {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.game-icon {
  font-size: 72px;
  margin-bottom: 0;
  display: inline-block;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.game-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  color: white;
  margin-bottom: 14px;
}

.game-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

.game-box button {
  border: none;
  background: white;
  color: var(--forest);
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.game-box button:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
}

/* MODAL CLASS DETAIL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: left;
  animation: popup 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes popup {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content span {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  transition: var(--transition);
}

.modal-content span:hover {
  color: var(--text-primary);
}

.modal-content h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--forest);
  font-size: 26px;
  margin-bottom: 16px;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.ppt-btn {
  width: 100%;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ppt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 6%;
  }

  .hero-text { text-align: center; }

  .game-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
}

/* MOBILE RESPONSIVE FIT (IPHONE 12 PRO & SMARTPHONES) */
@media (max-width: 600px) {
  .hero {
    padding: 40px 16px;
    gap: 30px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero button {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .hero-icon {
    width: 180px;
    height: 180px;
    min-width: 180px;
  }

  .hero-icon i {
    font-size: 80px;
  }

  .kelas {
    padding: 40px 16px;
  }

  .kelas-container {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 25px;
  }

  .kelas-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .kelas-card h3 {
    font-size: 20px;
  }

  .game-section {
    padding: 40px 16px;
  }

  .game-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 18px;
    gap: 20px;
    border-radius: 24px;
  }

  .game-icon {
    font-size: 54px;
  }

  .game-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .game-box p {
    font-size: 14px;
    line-height: 1.5;
  }

  .game-box button {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .modal-content {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .modal-content h2 {
    font-size: 22px;
  }
}