:root {
  --primary: #6d32d5;
  --primary-dark: #35116f;
  --primary-deep: #1f0a46;
  --primary-light: #eee7ff;

  --secondary: #d951d9;
  --accent: #ff9b72;
  --gold: #ffc866;

  --white: #ffffff;
  --background: #f8f6ff;
  --surface: #ffffff;

  --text: #241a38;
  --text-soft: #6f6680;
  --border: rgba(109, 50, 213, 0.13);

  --success: #24a866;

  --shadow-small:
    0 8px 24px rgba(57, 24, 104, 0.08);

  --shadow-medium:
    0 18px 45px rgba(57, 24, 104, 0.13);

  --shadow-large:
    0 25px 70px rgba(38, 13, 79, 0.2);

  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 30px;

  --container: 1180px;
  --header-height: 76px;
}


/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: "Nunito", sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}


/* GLOBAL */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 15px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(109, 50, 213, 0.13);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  line-height: 1.22;
}

.section-heading h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.section-heading p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}


/* BUTTON */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 25px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--white);
  background:
    linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 13px 30px rgba(109, 50, 213, 0.26);
}

.button-primary:hover {
  box-shadow:
    0 18px 38px rgba(109, 50, 213, 0.36);
}

.button-outline {
  color: var(--primary);
  background: var(--white);
  border-color: rgba(109, 50, 213, 0.25);
  box-shadow: var(--shadow-small);
}

.button-outline:hover {
  border-color: var(--primary);
}

.button-light {
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: var(--shadow-medium);
}

.button-whatsapp {
  color: var(--white);
  background: var(--success);
  box-shadow:
    0 15px 35px rgba(36, 168, 102, 0.25);
}

.button-icon {
  font-size: 0.8rem;
}


/* HEADER */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-small);
}

.navbar {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-tagline {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  position: relative;
  padding: 10px 11px;
  color: var(--text-soft);
  font-size: 0.91rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-login {
  margin-left: 8px;
  padding: 10px 18px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  font-weight: 800;
  box-shadow:
    0 8px 20px rgba(109, 50, 213, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--primary-light);
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 999px;
  transition: 0.25s ease;
}


/* HERO */
.hero {
  background: #e9ddff;
}

.hero-image-container {
  width: 100%;
  overflow: hidden;
  background: var(--primary-deep);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  padding-bottom: 30px;
}


/* INTRO */
.intro-section {
  background:
    radial-gradient(
      circle at top left,
      rgba(217, 81, 217, 0.09),
      transparent 32%
    ),
    var(--background);
}

.highlight-box {
  display: flex;
  max-width: 900px;
  align-items: flex-start;
  gap: 20px;
  margin-inline: auto;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
}

.highlight-icon {
  display: grid;
  width: 58px;
  min-width: 58px;
  height: 58px;
  place-items: center;
  background: var(--primary-light);
  border-radius: 17px;
  font-size: 1.55rem;
}

.highlight-box h2 {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
}

.highlight-box p {
  color: var(--text-soft);
}


/* PILLARS */
.pillars-section {
  background: var(--white);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card {
  position: relative;
  overflow: hidden;
  padding: 30px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-medium);
}

.pillar-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  background:
    linear-gradient(
      135deg,
      rgba(109, 50, 213, 0.08),
      rgba(217, 81, 217, 0.12)
    );
  border-radius: 0 0 0 100%;
  content: "";
}

.pillar-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(109, 50, 213, 0.25);
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.pillar-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 21px;
  place-items: center;
  background: var(--primary-light);
  border-radius: 17px;
  font-size: 1.55rem;
}

.pillar-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
}

.pillar-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}


/* LEARNING */
.learning-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      var(--primary-deep),
      var(--primary-dark) 50%,
      #6220a2
    );
}

.learning-section::before,
.learning-section::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(5px);
}

.learning-section::before {
  top: -180px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: rgba(217, 81, 217, 0.2);
}

.learning-section::after {
  bottom: -200px;
  left: -150px;
  width: 440px;
  height: 440px;
  background: rgba(255, 155, 114, 0.12);
}

.learning-section .container {
  position: relative;
  z-index: 1;
}

.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light p {
  color: rgba(255, 255, 255, 0.72);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.learning-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 25px 21px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-large);
  transition: transform 0.25s ease;
}

.learning-card:hover {
  transform: translateY(-7px);
}

.level-label {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 5px 10px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.learning-icon {
  margin-bottom: 16px;
  font-size: 2rem;
}

.learning-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.04rem;
  line-height: 1.4;
}

.learning-card p {
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--primary);
  font-weight: 800;
}

.card-link span {
  transition: transform 0.2s ease;
}

.card-link:hover span {
  transform: translateX(4px);
}


/* GALLERY */
.gallery-preview {
  background: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-medium);
}

.gallery-thumbnail {
  display: grid;
  height: 210px;
  place-items: center;
  font-size: 4rem;
}

.placeholder-purple {
  background:
    linear-gradient(135deg, #d7c3ff, #8d58e8);
}

.placeholder-pink {
  background:
    linear-gradient(135deg, #ffd6eb, #dc65c8);
}

.placeholder-blue {
  background:
    linear-gradient(135deg, #cce9ff, #6f78ec);
}

.gallery-content {
  padding: 24px;
}

.gallery-category {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-content h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
}

.gallery-content p {
  margin-bottom: 20px;
  color: var(--text-soft);
  font-size: 0.92rem;
}


/* COMMUNITY */
.community-cta {
  padding-top: 40px;
  background: var(--background);
}

.community-box {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 30px;
  padding: 55px;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      var(--primary-dark),
      var(--primary),
      var(--secondary)
    );
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
}

.community-box::before {
  position: absolute;
  top: -100px;
  right: -70px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.community-content {
  position: relative;
  z-index: 2;
}

.community-label {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.18);
}

.community-content h2 {
  margin-bottom: 13px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
}

.community-content p {
  max-width: 670px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
}

.community-visual {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
}

.community-circle {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  box-shadow:
    0 25px 55px rgba(26, 6, 61, 0.25);
  font-size: 5rem;
}

.floating-item {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  font-size: 1.45rem;
}

.item-one {
  top: 12px;
  left: 20px;
}

.item-two {
  top: 48px;
  right: 10px;
}

.item-three {
  right: 55px;
  bottom: 5px;
}


/* FOOTER */
.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(
      145deg,
      #17072e,
      #260a4d 55%,
      #341062
    );
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.75fr);
  gap: 46px;
  padding-top: 72px;
  padding-bottom: 55px;
}

.footer-brand {
  max-width: 390px;
}

.footer-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-logo-wrapper > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-brand-name {
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 1.17rem;
  font-weight: 800;
}

.footer-brand-tagline {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-brand p {
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-column h3 {
  margin-bottom: 19px;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.footer-column ul {
  display: grid;
  gap: 11px;
}

.footer-column a {
  font-size: 0.9rem;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.footer-column a:hover {
  padding-left: 4px;
  color: var(--white);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.86rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.72);
}

.footer-motto {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}


/* BACK TO TOP */
.back-to-top {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
  font-size: 1.15rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* ==================================================
   HALAMAN JALUR BELAJAR
================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
}

.learning-page-hero {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(217, 81, 217, 0.28),
      transparent 28%
    ),
    radial-gradient(
      circle at 15% 80%,
      rgba(255, 155, 114, 0.16),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--primary-deep),
      var(--primary-dark) 55%,
      #6623a5
    );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 60px;
}

.page-hero-text {
  max-width: 720px;
}

.page-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero-text h1 {
  margin-bottom: 20px;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: 1.14;
}

.page-hero-text p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.page-hero-visual {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
}

.learning-visual-main {
  display: grid;
  width: 230px;
  height: 230px;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.08)
    );
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 64px;
  box-shadow:
    0 35px 75px rgba(23, 4, 52, 0.35);
  font-size: 7rem;
  transform: rotate(-4deg);
}

.learning-visual-item {
  position: absolute;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: var(--shadow-large);
  font-size: 2rem;
}

.visual-ai {
  top: 5px;
  right: 10px;
  transform: rotate(7deg);
}

.visual-code {
  bottom: 7px;
  left: 3px;
  transform: rotate(-8deg);
}

.visual-game {
  right: -5px;
  bottom: 45px;
  transform: rotate(9deg);
}


/* CARA BELAJAR */
.learning-guide-section {
  background: var(--white);
}

.learning-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.learning-step-card {
  position: relative;
  padding: 30px 24px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.learning-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(109, 50, 213, 0.2);
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  background: var(--primary-light);
  border-radius: 17px;
  font-size: 1.55rem;
}

.learning-step-card h3 {
  margin-bottom: 9px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.08rem;
}

.learning-step-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
}


/* DAFTAR MATERI */
.course-section {
  padding: 95px 0;
  background: var(--background);
}

.course-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.course-section-header > div:first-child {
  max-width: 700px;
}

.course-section-header h2 {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.course-section-header p {
  color: var(--text-soft);
}

.course-search {
  display: flex;
  width: min(100%, 330px);
  min-width: 280px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-small);
}

.course-search input {
  width: 100%;
  min-height: 50px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

.course-search input::placeholder {
  color: #9d94ab;
}

.course-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-button {
  padding: 10px 17px;
  color: var(--text-soft);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  background:
    linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow:
    0 10px 24px rgba(109, 50, 213, 0.2);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.course-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-medium);
}

.course-card.hidden {
  display: none;
}

.course-card-top {
  position: relative;
  display: flex;
  height: 155px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
}

.course-card-top::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.course-purple {
  background: linear-gradient(135deg, #5a26bd, #a04be5);
}

.course-pink {
  background: linear-gradient(135deg, #a72fb6, #ef6aa6);
}

.course-orange {
  background: linear-gradient(135deg, #e87545, #f7b85b);
}

.course-blue {
  background: linear-gradient(135deg, #315acb, #48a6dc);
}

.course-green {
  background: linear-gradient(135deg, #178e79, #5ec78f);
}

.course-dark {
  background: linear-gradient(135deg, #222c4f, #5363a7);
}

.course-level {
  position: relative;
  z-index: 2;
  padding: 6px 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-icon {
  position: relative;
  z-index: 2;
  font-size: 3.4rem;
  filter: drop-shadow(0 10px 15px rgba(34, 10, 66, 0.18));
}

.course-card-content {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 25px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.course-meta span {
  padding: 4px 9px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.course-card-content h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.14rem;
  line-height: 1.4;
}

.course-card-content > p {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 0.91rem;
}

.course-topic-list {
  display: grid;
  gap: 9px;
  margin-bottom: 25px;
}

.course-topic-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.course-topic-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--primary);
  content: "✓";
  font-weight: 900;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.course-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-open {
  color: #15714a;
  background: #e7f8ef;
}

.status-soon {
  color: #9a621b;
  background: #fff3d8;
}

.course-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.course-button span {
  transition: transform 0.2s ease;
}

.course-button:hover span {
  transform: translateX(4px);
}

.course-button.disabled {
  color: #aaa3b2;
  pointer-events: none;
}

.empty-course-state {
  display: none;
  padding: 70px 20px;
  text-align: center;
}

.empty-course-state.visible {
  display: block;
}

.empty-course-state div {
  margin-bottom: 12px;
  font-size: 3rem;
}

.empty-course-state h3 {
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
}

.empty-course-state p {
  color: var(--text-soft);
}


/* CTA BAWAH */
.learning-bottom-cta {
  padding-top: 45px;
  background: var(--background);
}

.learning-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 50px;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      var(--primary-dark),
      var(--primary),
      var(--secondary)
    );
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
}

.learning-cta-box > div {
  max-width: 760px;
}

.learning-cta-label {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.18);
}

.learning-cta-box h2 {
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.25;
}

.learning-cta-box p {
  color: rgba(255, 255, 255, 0.78);
}
/* ==================================================
   FOOTER MEDIA SOSIAL LENGKAP
================================================== */

.social-links-detailed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-account {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.social-account:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.social-account:last-child {
  grid-column: 1 / -1;
}

.social-account-icon {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 11px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.social-facebook {
  background: #1877f2;
}

.social-instagram {
  background:
    linear-gradient(
      135deg,
      #833ab4,
      #fd1d1d,
      #fcb045
    );
}

.social-tiktok {
  color: #ffffff;
  background: #111111;
}

.social-youtube {
  background: #ff0000;
}

.social-blog {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );
}

.social-account-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.social-account-text small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-account-text strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.77rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-device-screen small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
}
.device-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.device-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 17px;
}

.device-feature-card > span {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  place-items: center;
  background: var(--primary-light);
  border-radius: 14px;
  font-size: 1.35rem;
}

.device-feature-card h3 {
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
}

.device-feature-card p {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.material-note {
  margin-top: 22px;
  padding: 18px 20px;
  color: var(--text-soft);
  background: #fff8e8;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
}

.material-note strong {
  color: var(--primary-dark);
}

/* ==================================================
   HALAMAN DETAIL MATERI
================================================== */
.material-breadcrumb-section {
  padding: 18px 0 10px;
  background: #f6f2ff;
  border-top: 1px solid rgba(109, 50, 213, 0.08);
}

.material-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.material-breadcrumb a:hover {
  color: var(--primary);
}

.material-hero {
  padding: 12px 0 42px;
  background:
    radial-gradient(circle at top right, rgba(217, 81, 217, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 155, 114, 0.10), transparent 28%),
    #f6f2ff;
}

.material-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.material-hero-content {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-small);
}

.material-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.material-labels span {
  padding: 7px 13px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.material-hero-content h1 {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.18;
}

.material-hero-content > p {
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.material-information {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.material-information > div {
  padding: 16px 14px;
  background: linear-gradient(180deg, #ffffff, #f8f4ff);
  border: 1px solid rgba(109, 50, 213, 0.10);
  border-radius: 20px;
  text-align: center;
}

.material-information strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
}

.material-information span {
  display: block;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.material-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary), var(--secondary));
  border-radius: 28px;
  box-shadow: var(--shadow-medium);
}

.material-hero-visual::before,
.material-hero-visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.material-hero-visual::before {
  top: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  background: rgba(255,255,255,0.09);
}

.material-hero-visual::after {
  left: -50px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.11);
}

.material-device-screen {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 300px);
  min-height: 270px;
  padding: 26px;
  place-items: center;
  text-align: center;
  color: var(--white);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  box-shadow: 0 24px 65px rgba(24, 6, 55, 0.24);
}

.material-device-screen span {
  display: block;
  margin-bottom: 6px;
  font-size: 4.5rem;
}

.material-device-screen strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
}

.material-device-screen small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.76);
  font-size: 0.8rem;
  font-weight: 700;
}

.material-floating-icon {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: var(--shadow-small);
  font-size: 1.5rem;
}

.material-icon-one { top: 24px; right: 28px; }
.material-icon-two { left: 28px; bottom: 24px; }
.material-icon-three { right: 22px; bottom: 110px; }

.material-content-section {
  padding: 18px 0 84px;
  background: #f6f2ff;
}

.material-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.material-sidebar {
  position: sticky;
  top: 94px;
}

.material-sidebar-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-small);
}

.material-sidebar-card h2 {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
}

.material-navigation {
  display: grid;
  gap: 10px;
}

.material-navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-soft);
  background: #faf8ff;
  border: 1px solid rgba(109, 50, 213, 0.10);
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  transition: 0.22s ease;
}

.material-navigation a span {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.material-navigation a:hover,
.material-navigation a.active {
  color: var(--primary-dark);
  background: #f2eaff;
  border-color: rgba(109, 50, 213, 0.2);
  transform: translateX(3px);
}

.material-main-content {
  display: grid;
  gap: 22px;
}

.material-block {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-small);
}

.material-block-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.material-block-number {
  display: grid;
  width: 58px;
  min-width: 58px;
  height: 58px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 18px;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.material-eyebrow {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.material-block-heading h2 {
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  line-height: 1.2;
}

.material-block p {
  color: var(--text-soft);
}

.objective-grid,
.benefit-grid,
.device-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.objective-card,
.benefit-card,
.device-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #faf8ff;
  border: 1px solid rgba(109, 50, 213, 0.10);
  border-radius: 20px;
}

.objective-card > span,
.benefit-card > span,
.device-feature-card > span {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 800;
}

.benefit-card,
.device-feature-card {
  display: block;
}

.benefit-card > span,
.device-feature-card > span {
  margin-bottom: 14px;
}

.benefit-card h3,
.device-feature-card h3,
.preparation-item h3,
.material-highlight strong,
.material-note strong,
.practice-box h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.02rem;
}

.material-video-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  margin-top: 18px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #faf6ff);
  border: 2px dashed rgba(109, 50, 213, 0.18);
  border-radius: 24px;
}

.video-placeholder-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  font-size: 1.5rem;
}

.material-video-placeholder h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
}

.material-highlight,
.material-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 18px 20px;
  background: #fff7e8;
  border-left: 4px solid var(--gold);
  border-radius: 16px;
}

.material-highlight > span {
  font-size: 1.4rem;
}

.preparation-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.preparation-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: #faf8ff;
  border: 1px solid rgba(109, 50, 213, 0.10);
  border-radius: 18px;
}

.preparation-item > span {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  font-weight: 800;
}

.material-practice {
  background: linear-gradient(145deg, #fff7ff, #fffdfb);
}

.practice-box {
  padding: 24px;
  background: linear-gradient(135deg, rgba(109, 50, 213, 0.07), rgba(217, 81, 217, 0.06));
  border: 1px solid rgba(109, 50, 213, 0.12);
  border-radius: 22px;
}

.practice-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.practice-box p {
  margin-bottom: 14px;
}

.practice-box ol {
  display: grid;
  gap: 10px;
  margin: 0 0 18px 18px;
  color: var(--text-soft);
}

.practice-status,
.reflection-message {
  margin-top: 14px;
  font-weight: 700;
}

.reflection-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label,
.understanding-fieldset legend {
  color: var(--primary-dark);
  font-weight: 800;
}

.form-group textarea {
  width: 100%;
  min-height: 110px;
  padding: 15px 16px;
  color: var(--text);
  background: #faf8ff;
  border: 1px solid rgba(109, 50, 213, 0.14);
  border-radius: 16px;
  resize: vertical;
  outline: none;
}

.form-group textarea:focus {
  border-color: rgba(109, 50, 213, 0.38);
  box-shadow: 0 0 0 4px rgba(109, 50, 213, 0.08);
}

.understanding-fieldset {
  padding: 18px;
  background: #faf8ff;
  border: 1px solid rgba(109, 50, 213, 0.10);
  border-radius: 20px;
}

.understanding-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.understanding-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(109, 50, 213, 0.10);
  border-radius: 16px;
  cursor: pointer;
}

.understanding-options input {
  accent-color: var(--primary);
  margin-top: 3px;
}

.material-bottom-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.material-nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-small);
  transition: 0.22s ease;
}

.material-nav-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.material-nav-button small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.material-nav-button strong {
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}


/* =====================================================
   YOUTUBE VIDEO EMBED - MATERIAL PAGES
===================================================== */
.material-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  overflow: hidden;
  background: #160b27;
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(63, 32, 91, 0.12);
}

.material-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.material-video + .material-note,
.material-video + .material-highlight {
  margin-top: 20px;
}

@media (max-width: 680px) {
  .material-video {
    border-radius: 16px;
  }
}


/* =====================================================
   DASHBOARD DAFTAR ISI MATERI - DRAWER RESPONSIF
   Daftar isi tidak terbuka otomatis. Dibuka lewat tombol.
===================================================== */
.material-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px;
}

.material-toc-toggle {
  position: sticky;
  top: 86px;
  z-index: 70;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  margin: 0 0 2px;
  border: 1px solid rgba(109, 50, 213, 0.18);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  color: var(--primary-dark);
  box-shadow: 0 10px 28px rgba(54, 28, 82, .12);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.material-toc-toggle:hover,
.material-toc-toggle:focus-visible {
  background: #f5efff;
  border-color: rgba(109, 50, 213, .34);
  outline: none;
}

.material-toc-toggle .toc-menu-icon {
  width: 22px;
  height: 18px;
  display: grid;
  align-content: space-between;
  flex: 0 0 auto;
}

.material-toc-toggle .toc-menu-icon i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.material-sidebar {
  position: fixed !important;
  inset: 0 auto 0 0;
  width: min(390px, calc(100vw - 28px));
  height: 100dvh;
  z-index: 1001;
  padding: 16px;
  background: rgba(246, 242, 255, .98);
  transform: translateX(-105%);
  transition: transform .28s ease;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 24px 0 60px rgba(35, 18, 55, .18);
}

.material-sidebar.toc-open {
  transform: translateX(0);
}

.material-sidebar-card {
  height: 100%;
  min-height: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}

.material-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.material-sidebar-header h2,
.material-sidebar-card > h2 {
  margin: 0;
}

.material-toc-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 50, 213, .16);
  border-radius: 12px;
  background: #f6f0ff;
  color: var(--primary-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.material-navigation {
  grid-template-columns: 1fr !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 3px 4px 10px 0;
  min-height: 0;
}

.material-navigation a {
  min-height: 54px;
  box-sizing: border-box;
  text-decoration: none;
}

.material-toc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24, 12, 38, .46);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.material-toc-overlay.toc-open {
  opacity: 1;
  visibility: visible;
}

body.material-toc-open {
  overflow: hidden;
}

.material-main-content {
  min-width: 0;
}

/* Media, tabel, kode, iframe, gambar tidak boleh melebar dari gadget */
.material-main-content img,
.material-main-content video,
.material-main-content iframe,
.material-main-content canvas,
.material-main-content svg {
  max-width: 100%;
}

.material-main-content pre,
.material-main-content code {
  max-width: 100%;
  overflow-x: auto;
}

.material-main-content table {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1600px) {
  .material-layout {
    max-width: 1320px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .material-toc-toggle {
    top: 78px;
  }
}

@media (max-width: 680px) {
  .material-toc-toggle {
    top: 70px;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .material-sidebar {
    width: min(92vw, 360px);
    padding: 10px;
  }

  .material-sidebar-card {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .material-navigation a {
    padding: 11px 12px;
    font-size: .9rem;
  }

  .material-navigation a span {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .material-toc-toggle,
  .material-toc-close,
  .material-navigation a {
    min-height: 48px;
  }
}

/* =====================================================
   CERITA DARI GURU
===================================================== */
.home-stories-section{padding:72px 0;background:#fbf9fe}
.home-stories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.story-card{background:#fff;border:1px solid #e9e0f2;border-radius:22px;padding:22px;height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:14px}
.story-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.story-level,.story-featured{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:900}
.story-level{background:#f3e8ff;color:#7e22ce}.story-featured{background:#fff7ed;color:#b45309}
.story-card blockquote{margin:0;color:#5f5268;line-height:1.75;font-size:16px;flex:1}
.story-person strong{display:block;color:#3b2450;font-family:Poppins,sans-serif}.story-person span,.story-person small{display:block;color:#817486;margin-top:3px}
.story-media{padding:10px 12px;border-radius:12px;background:#f8f5fc;color:#65566e;font-size:14px}
.story-work-link{color:#6d28d9;font-weight:900;text-decoration:none}
.home-stories-actions{margin-top:24px;display:flex;justify-content:center}
.home-stories-loading,.home-stories-empty{grid-column:1/-1;padding:26px;border:1px dashed #d9cbe6;border-radius:18px;text-align:center;color:#756879;background:#fff}
@media(max-width:900px){.home-stories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.home-stories-grid{grid-template-columns:1fr}}


/* =====================================================
   SMOOTH MATERIAL NAVIGATION
   Membuka halaman materi langsung ke isi utama
===================================================== */
html {
  scroll-behavior: smooth;
}

.material-content-section {
  scroll-margin-top: 96px;
}

.material-block {
  scroll-margin-top: 108px;
}

@media (max-width: 900px) {
  .material-content-section {
    scroll-margin-top: 82px;
  }

  .material-block {
    scroll-margin-top: 94px;
  }
}

@media (max-width: 620px) {
  .material-content-section {
    scroll-margin-top: 74px;
  }

  .material-block {
    scroll-margin-top: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
