/* ==========================================
   MATERI BASA JAWA - PREMIUM FULL COLOR UI
   MODERN + BATIK NUSANTARA + ELEGAN
========================================== */

/* ROOT COLOR */
:root {
  --primary: #1f6f5b;
  --primary-dark: #155346;
  --accent: #2ecc71;
  --blue: #3b82f6;
  --gold: #c9a227;
  --brown: #8b5e34;

  --text: #1f2937;
  --muted: #6b7280;

  --glass: rgba(255,255,255,0.85);
  --shadow: 0 12px 30px rgba(0,0,0,0.12);
  --radius: 18px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* BODY (FULL MOTIF + COLOR) */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  color: var(--text);
  line-height: 1.6;

  background:
    url("data:image/svg+xml,%3Csvg width='140' height='140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231f6f5b' fill-opacity='0.05'%3E%3Cpath d='M60 0c20 0 20 20 0 20s-20 20 0 20 20 20 0 20-20 20 0 20'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 20% 20%, rgba(46,204,113,0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,0.2), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(201,162,39,0.15), transparent 50%),
    linear-gradient(135deg, #f0fdf4, #eff6ff);
}

/* ==========================================
   HEADER (FULL COLOR + GLOW BATIK)
========================================== */
.header {
  text-align: center;
  padding: 70px 20px 50px;

  background: linear-gradient(135deg, var(--primary), var(--accent), var(--blue));
  color: white;

  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;

  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* motif glow */
.header::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;

  width: 250px;
  height: 250px;

  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
}

.header::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;

  width: 280px;
  height: 280px;

  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}

/* TITLE */
.header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

/* SUBTITLE */
.header p {
  margin-top: 8px;
  font-size: 1rem;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* ==========================================
   CONTAINER
========================================== */
.materi-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 70px;
}

/* ==========================================
   BACK BUTTON
========================================== */
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  margin-bottom: 25px;

  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);

  border: 1px solid rgba(0,0,0,0.08);

  color: var(--primary);
  text-decoration: none;
  font-weight: 600;

  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.back-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  transform: translateY(-3px);
}

/* ==========================================
   CARD
========================================== */
.materi-card {
  background: var(--glass);
  backdrop-filter: blur(12px);

  padding: 26px;
  margin-bottom: 22px;

  border-radius: var(--radius);
  box-shadow: var(--shadow);

  border-left: 6px solid var(--gold);

  position: relative;
  overflow: hidden;

  transition: 0.3s ease;
}

/* hover */
.materi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* batik accent */
.materi-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;

  width: 200px;
  height: 200px;

  background: radial-gradient(circle, rgba(31,111,91,0.1), transparent 70%);
}

/* TITLE */
.materi-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;

  /* fallback (WAJIB) */
  color: var(--primary);

  /* gradient */
  background: linear-gradient(135deg, var(--primary), var(--blue));

  /* support semua browser */
  -webkit-background-clip: text;
  background-clip: text;

  /* teks transparan */
  -webkit-text-fill-color: transparent;

  /* fix rendering */
  display: inline-block;
}

/* TEXT */
.materi-card p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ==========================================
   CONTOH BOX
========================================== */
.contoh {
  margin-top: 15px;
  padding: 15px 18px;

  background: linear-gradient(135deg, #fffdf7, #fef3c7);
  border-left: 4px solid var(--gold);

  border-radius: 12px;

  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==========================================
   FOOTER (FULL COLOR)
========================================== */
.footer {
  margin-top: auto;
  text-align: center;

  padding: 30px 20px;

  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;

  position: relative;
}

/* garis atas */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;

  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 600px) {

  .header {
    padding: 55px 15px 40px;
  }

  .header h1 {
    font-size: 1.7rem;
  }

  .materi-card {
    padding: 18px;
  }

  .back-btn {
    width: 100%;
  }
}