:root {
  --blue-900: #0a2f6b;
  --blue-800: #0b3f8a;
  --blue-700: #0d56b6;

  --sky-50: #f3f7ff;

  --ink: var(--blue-900);
  --muted: #5b6474;
  --line: #e6ebf4;

  --radius: 16px;
  --font-main: "Outfit", sans-serif;
}

/* =========================================================
   RESET & BASE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-main);
  background: var(--sky-50);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea,
a {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.main {
  min-height: 100vh;
}

/* =========================================================
   PUBLIC DASHBOARD PAGE
========================================================= */
.public-dashboard-page {
  position: relative;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(13, 86, 182, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

/* =========================================================
   HERO DASHBOARD UMUM
========================================================= */
.student-hero {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 42px 0 58px;
  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 210px auto;
  background-position: center, center;
}

.student-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(4, 22, 55, 0.04), rgba(4, 22, 55, 0.24));
  pointer-events: none;
}

.student-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.student-hero-copy {
  max-width: 720px;
  min-width: 0;
}

.student-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.student-hero h1 {
  max-width: 690px;
  margin: 16px 0 14px;
  color: white;
  font-size: clamp(36px, 4.1vw, 54px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.student-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.student-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.student-main-btn,
.student-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transition: 0.22s ease;
}

.student-main-btn {
  background: white;
  color: var(--blue-900);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.student-outline-btn {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.student-main-btn:hover,
.student-outline-btn:hover {
  transform: translateY(-2px);
}

.student-outline-btn:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* =========================================================
   HERO STATS
========================================================= */
.student-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
  min-width: 0;
}

.student-stats div {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.student-stats strong {
  display: block;
  margin-bottom: 5px;
  color: white;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.student-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
}

/* =========================================================
   HERO PANEL
========================================================= */
.student-hero-panel {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.student-preview-card {
  width: min(100%, 390px);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.60);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.20),
    0 12px 30px rgba(10, 47, 107, 0.14);
  backdrop-filter: blur(18px);
}

.preview-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 900;
}

.student-preview-card h2 {
  margin: 14px 0 18px;
  color: var(--blue-900);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.6px;
}

.preview-list {
  display: grid;
  gap: 10px;
}

.preview-list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 15px;
  background: #f3f7ff;
  border: 1px solid var(--line);
}

.preview-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 700;
}

.preview-dot {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue-700);
}

/* =========================================================
   FLOW / CARA MENGIKUTI
========================================================= */
.learning-flow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  margin-top: 26px;
  margin-bottom: 8px;
}

.flow-card {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow:
    0 16px 40px rgba(10, 47, 107, 0.12),
    0 8px 18px rgba(10, 47, 107, 0.06);
}

.flow-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 900;
}

.flow-card h3 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: 18px;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* =========================================================
   COURSE SECTION
========================================================= */
.public-course-section {
  max-width: 100%;
  min-width: 0;
  padding: 42px 0 76px;
}

.public-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 900;
}

.public-section-heading h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -1px;
}

.public-section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
   FILTER TOOLBAR
========================================================= */
.course-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 180px auto;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(10, 47, 107, 0.06);
}

.course-toolbar input,
.course-toolbar select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  outline: none;
}

.course-toolbar input:focus,
.course-toolbar select:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(13, 86, 182, 0.1);
}

#resetCourseFilter {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff0f0;
  color: #b42318;
  border: 1px solid #ffd0d0;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

#resetCourseFilter:hover {
  background: #ffe3e3;
  transform: translateY(-1px);
}

/* =========================================================
   JENIS FILTER BUTTONS
========================================================= */
.jenis-filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.jenis-filter-btn {
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-800);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.jenis-filter-btn:hover {
  transform: translateY(-1px);
  background: #dceaff;
}

.jenis-filter-btn.is-active {
  color: white;
  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.86) 0%,
      rgba(13, 86, 182, 0.80) 48%,
      rgba(31, 111, 211, 0.72) 100%
    ),
    url("/images/baduy.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 120px auto;
  background-position: center, center;
  box-shadow: 0 10px 20px rgba(10, 47, 107, 0.16);
}

.course-empty-filter {
  margin-bottom: 18px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: white;
  font-size: 14px;
  font-weight: 800;
}

/* =========================================================
   COURSE GRID - 2 CARD PER BARIS
========================================================= */
.public-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 100%;
  min-width: 0;
}

.public-course-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow:
    0 12px 30px rgba(10, 47, 107, 0.10),
    0 6px 14px rgba(10, 47, 107, 0.05);
  cursor: pointer;
  transition: 0.24s ease;
  padding: 16px;
}

.public-course-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 48px rgba(10, 47, 107, 0.16),
    0 10px 22px rgba(10, 47, 107, 0.08);
}

.public-course-card:focus {
  outline: 4px solid rgba(13, 86, 182, 0.16);
}

.course-image-wrap {
  position: relative;
  width: 100%;
  min-height: 230px;
  height: 230px;
  overflow: hidden;
  border-radius: 18px;
  background: #e7f0ff;
  flex-shrink: 0;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.35s ease;
}

.public-course-card:hover .course-image {
  transform: scale(1.03);
}

.course-image-overlay {
  display: none;
}

.course-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
}

.course-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.course-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 900;
}

.course-card-body h3 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  font-weight: 900;
}

.course-card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.course-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.course-meta small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.course-detail-btn {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  color: white;
  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 130px auto;
  background-position: center, center;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: auto;
}

.course-detail-btn:hover {
  transform: translateY(-1px);
}

.public-empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  border-radius: 24px;
  background: white;
  border: 1px dashed var(--line);
}

.public-empty-state h3 {
  margin: 0 0 8px;
  color: var(--blue-900);
}

.public-empty-state p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   MODAL DETAIL
========================================================= */
.course-modal[hidden] {
  display: none !important;
}

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.course-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 45, 0.58);
  backdrop-filter: blur(8px);
}

.course-modal-card {
  position: relative;
  z-index: 2;

  width: min(980px, calc(100vw - 44px));
  height: min(760px, calc(100vh - 36px));

  display: grid;
  grid-template-columns: 0.78fr 1fr;

  overflow: hidden;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow:
    0 34px 90px rgba(10, 47, 107, 0.28),
    0 14px 34px rgba(10, 47, 107, 0.14);
}

.course-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;

  width: 44px;
  height: 44px;
  border-radius: 16px;

  background: white;
  color: #b42318;
  border: 1px solid #ffd0d0;

  font-size: 30px;
  line-height: 1;
  cursor: pointer;

  box-shadow: 0 10px 24px rgba(10, 47, 107, 0.10);
}

.modal-image-wrap {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.modal-content {
  height: 100%;
  min-width: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding: 22px 24px 20px;
  gap: 9px;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 6px;
  padding-right: 58px;
}

.modal-badges span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 900;
}

.modal-content h2 {
  margin: 0 0 6px;
  color: var(--blue-900);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  font-weight: 900;
}

.modal-content > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 12px;
}

.modal-info-grid div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 15px;
  background: #f3f7ff;
  border: 1px solid var(--line);
}

.modal-info-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.modal-info-grid strong {
  color: var(--blue-900);
  font-size: 12px;
  line-height: 1.35;
}

.access-box {
  display: grid;
  gap: 9px;
  margin: 0 0 6px;
}

.access-box h3 {
  margin: 0 0 1px;
  color: var(--blue-900);
  font-size: 16px;
  line-height: 1.2;
}

.access-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;

  min-width: 0;
  padding: 12px 15px;

  border-radius: 15px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(10, 47, 107, 0.05);
}

.access-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-900);
  font-size: 12.5px;
  line-height: 1.25;
}

.access-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.access-item a {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-height: 36px;
  padding: 0 14px;
  border-radius: 13px;

  color: white;
  background: var(--blue-800);

  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.access-item a:hover {
  background: var(--blue-900);
}

.access-item a.is-disabled,
.register-btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  background: #9aa6ba !important;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 4px;
}

.register-btn,
.cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;

  font-size: 12.5px;
  font-weight: 900;
}

.register-btn {
  color: white;
  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 130px auto;
  background-position: center, center;
}

.cancel-btn {
  background: #fff0f0;
  color: #b42318;
  border: 1px solid #ffd0d0;
  cursor: pointer;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  color: white;
  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 220px auto;
  background-position: center, center;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(3, 25, 66, 0.16);
  pointer-events: none;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 42px;
  padding: 58px 0 44px;
}

.footer-brand h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.footer-brand p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.8;
}

.footer-menu h3 {
  margin: 0 0 16px;
  color: white;
  font-size: 17px;
  font-weight: 900;
}

.footer-menu a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: 0.2s ease;
}

.footer-menu a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1050px) {
  .student-hero {
    padding: 40px 0 58px;
  }

  .student-hero-grid {
    grid-template-columns: 1fr;
  }

  .student-hero-panel {
    justify-content: flex-start;
  }

  .student-preview-card {
    width: 100%;
  }

  .course-toolbar {
    grid-template-columns: 1fr;
  }

  .course-toolbar input {
    grid-column: auto;
  }

  .jenis-filter-buttons {
    width: 100%;
  }

  .jenis-filter-btn {
    flex: 1;
  }

  .learning-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .course-modal-card {
    width: min(920px, calc(100vw - 36px));
    height: min(720px, calc(100vh - 32px));
  }

  .modal-content {
    padding: 22px;
  }
}

@media (max-width: 980px) {
  .public-course-grid {
    grid-template-columns: 1fr;
  }

  .public-course-card {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 900px) {
  .course-modal-card {
    width: 100%;
    height: auto;
    max-height: 92vh;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-image-wrap {
    height: auto;
    max-height: 420px;
  }

  .modal-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
  }

  .modal-content {
    height: auto;
    overflow: visible;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .access-item,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .access-item a,
  .register-btn,
  .cancel-btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .student-hero {
    padding: 34px 0 52px;
  }

  .student-hero h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .student-hero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .student-hero-actions {
    flex-direction: column;
  }

  .student-main-btn,
  .student-outline-btn {
    width: 100%;
  }

  .student-preview-card {
    padding: 20px;
  }

  .student-preview-card h2 {
    font-size: 22px;
  }

  .jenis-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .jenis-filter-btn {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .public-course-card {
    grid-template-columns: 120px 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .course-image-wrap {
    min-height: 150px !important;
    height: 150px !important;
    border-radius: 14px !important;
  }

  .course-tags {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .course-tags span {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  .course-card-body h3 {
    font-size: 17px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .course-card-body p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 9px !important;
  }

  .course-meta {
    gap: 3px !important;
    margin-bottom: 10px !important;
  }

  .course-meta small {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .course-detail-btn {
    height: 38px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-footer {
    margin-top: 52px;
    background-size: cover, 170px auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 42px 0 32px;
    gap: 28px;
  }

  .footer-brand h2 {
    font-size: 24px;
  }

  .footer-brand p {
    font-size: 14px;
  }

  .footer-bottom {
    padding: 16px 0;
  }
}

@media (max-width: 480px) {
  .student-stats {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .course-card-body {
    padding: 20px;
  }

  .course-modal {
    padding: 12px;
  }

  .course-modal-card {
    border-radius: 22px;
  }

  .public-course-card {
    grid-template-columns: 100px 1fr !important;
    gap: 10px !important;
  }

  .course-image-wrap {
    min-height: 130px !important;
    height: 130px !important;
  }

  .course-tags span {
    font-size: 10px !important;
    padding: 0 8px !important;
  }

  .course-card-body h3 {
    font-size: 15px !important;
  }

  .course-card-body p {
    font-size: 11px !important;
  }

  .course-meta small {
    font-size: 10px !important;
  }
}

/* =========================================================
   MODAL DETAIL - KONTEN KANAN SCROLL, FLAYER TETAP DIAM
========================================================= */
@media (min-width: 901px) {
  .course-modal-card {
    overflow: hidden !important;
  }

  .modal-image-wrap {
    height: 100% !important;
    overflow: hidden !important;
  }

  .modal-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .modal-content {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 18px !important;
  }

  .modal-content::-webkit-scrollbar {
    width: 6px;
  }

  .modal-content::-webkit-scrollbar-track {
    background: transparent;
  }

  .modal-content::-webkit-scrollbar-thumb {
    background: #d7e5f7;
    border-radius: 999px;
  }

  .modal-content::-webkit-scrollbar-thumb:hover {
    background: #b9cce8;
  }
}

/* =========================================================
   MODAL DETAIL - PERBESAR SEDIKIT JUDUL & TEXT
========================================================= */
.modal-badges span {
  font-size: 12px !important;
  padding: 6px 11px !important;
}

.modal-content h2 {
  font-size: 30px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.5px !important;
  font-weight: 900 !important;
}

.modal-content > p {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}

.modal-info-grid span {
  font-size: 11.5px !important;
}

.modal-info-grid strong {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

.access-box h3 {
  font-size: 18px !important;
}

.access-item strong {
  font-size: 14px !important;
}

.access-item p {
  font-size: 12.8px !important;
  line-height: 1.5 !important;
}

.access-item a {
  font-size: 12.5px !important;
}

.register-btn,
.cancel-btn {
  font-size: 13.5px !important;
}

/* =========================================================
   MOBILE HERO STATS - 4 CARD MUAT 1 LAYAR
========================================================= */
@media (max-width: 720px) {
  .student-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin-top: 20px !important;
    padding-bottom: 0 !important;
  }

  .student-stats div {
    min-width: 0 !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
  }

  .student-stats strong {
    margin-bottom: 4px !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .student-stats span {
    font-size: 9px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    word-break: normal !important;
  }
}

@media (max-width: 420px) {
  .student-stats {
    gap: 6px !important;
  }

  .student-stats div {
    padding: 9px 6px !important;
    border-radius: 13px !important;
  }

  .student-stats strong {
    font-size: 18px !important;
  }

  .student-stats span {
    font-size: 8px !important;
  }
}