/* =========================================================
   Surakata - Custom style di atas Bootstrap 5.3
   Hanya override variabel + komponen khusus, sisanya
   memakai utility class Bootstrap.
   ========================================================= */

/* Font dimuat dari CSS (bukan <link> di HTML) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,700;1,400&display=swap');

:root {
  --sk-primary: #235BC7;
  --sk-navy: #143A80;
  --sk-accent: #EE873D;
  --sk-accent-hover: #DB752B;
  --sk-ink: #172B4D;
  --sk-ink-strong: #1B2F53;
  --sk-muted: #718098;
  --sk-soft: #EDF3FF;
  --sk-border: #E5EBF3;
  --sk-bg: #F5F7FB;

  /* Override variabel Bootstrap */
  --bs-primary: #235BC7;
  --bs-primary-rgb: 35, 91, 199;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: #172B4D;
  --bs-body-bg: #FFFFFF;
  --bs-secondary-color: #718098;
  --bs-border-color: #E5EBF3;
  --bs-link-color: #235BC7;
  --bs-link-hover-color: #143A80;
}

body { font-family: var(--bs-body-font-family); color: var(--sk-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--sk-ink); font-weight: 700; }
.text-muted-sk { color: var(--sk-muted) !important; }
.text-primary-sk { color: var(--sk-primary) !important; }
.bg-soft { background: var(--sk-soft); }
.bg-page { background: var(--sk-bg); }

/* ---------- Tombol ---------- */
.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sk-accent);
  --bs-btn-border-color: var(--sk-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sk-accent-hover);
  --bs-btn-hover-border-color: var(--sk-accent-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--sk-accent-hover);
  --bs-btn-active-border-color: var(--sk-accent-hover);
  --bs-btn-focus-shadow-rgb: 238, 135, 61;
  font-weight: 500;
  border-radius: .75rem;
}
.btn-accent.btn-lg { padding: .8rem 1.6rem; border-radius: 1rem; }
.btn-primary-sk {
  --bs-btn-color: #fff; --bs-btn-bg: var(--sk-primary); --bs-btn-border-color: var(--sk-primary);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--sk-navy); --bs-btn-hover-border-color: var(--sk-navy);
  --bs-btn-active-bg: var(--sk-navy); --bs-btn-active-border-color: var(--sk-navy);
  font-weight: 500; border-radius: .5rem;
}

/* ---------- Navbar ---------- */
.navbar-sk {
  background: #fff;
  box-shadow: 0 4px 24px rgba(23, 43, 77, .08);
  padding-block: 1rem;
  position: relative;
  z-index: 10;
}
.brand-mark {
  width: 44px; height: 44px;
  background: var(--sk-primary);
  color: #fff;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.brand-name { font-size: 2rem; line-height: 1; color: var(--sk-navy); font-weight: 400; letter-spacing: -.01em; }
.navbar-sk .nav-link { color: var(--sk-ink); font-weight: 500; font-size: 1.1rem; padding-inline: 1rem !important; }
.navbar-sk .nav-link:hover { color: var(--sk-primary); }
.navbar-sk .nav-link.active { color: var(--sk-primary); }
.navbar-sk .btn-accent { padding: .75rem 1.5rem; font-size: 1.05rem; border-radius: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex; align-items: center;
  background: linear-gradient(90deg, #023086 0%, rgba(13, 59, 134, .96) 45%, rgba(13, 59, 134, .55) 75%, rgba(13, 59, 134, .22) 100%), url('../img/admin-login.jpg') right center / cover no-repeat;
  color: #fff;
}
@media (max-width: 991.98px) {
  .hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13, 59, 134, .92) 0%, rgba(13, 59, 134, .78) 60%, rgba(13, 59, 134, .45) 100%);
  }
}
.hero .container { position: relative; z-index: 2; }
.hero-title {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1.13;
  color: #fff;
}
.hero-text { font-size: clamp(1.1rem, 2vw, 1.75rem); line-height: 1.5; max-width: 620px; }

/* ---------- Kartu kursus ---------- */
.course-card {
  background: #fff;
  border: 1px solid var(--sk-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20, 58, 128, .14); }
.course-card .card-body-sk { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.course-title { font-size: 1.15rem; font-weight: 600; margin: 0; }
.course-meta { color: var(--sk-muted); font-size: .8rem; }
.course-price { color: var(--sk-primary); font-weight: 700; font-size: 1.15rem; }
.course-foot {
  margin-top: auto;
  border-top: 1px solid var(--sk-border);
  padding-top: .75rem;
  display: flex; justify-content: space-between; align-items: center;
}
.link-detail { color: var(--sk-primary); font-size: .8rem; text-decoration: none; }
.link-detail:hover { text-decoration: underline; }
.btn-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--sk-primary); color: var(--sk-primary); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.btn-circle:hover { background: var(--sk-primary); color: #fff; }

.course-visual {
  position: relative; height: 180px; overflow: hidden; isolation: isolate;
}
.course-visual::before, .course-visual::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0;
}
.course-visual::before { width: 220px; height: 220px; left: -40px; top: -60px; opacity: .6; }
.course-visual::after  { width: 140px; height: 140px; left: calc(50% - 70px); top: 20px; opacity: .5; }
.visual-indigo { background: #3B4FA8; }
.visual-indigo::before { background: #2E3F8F; } .visual-indigo::after { background: #4A5BC4; }
.visual-purple { background: #7B3FA8; }
.visual-purple::before { background: #6A2E9A; } .visual-purple::after { background: #9B5CC9; }
.visual-teal { background: #2196A8; }
.visual-teal::before { background: #17818C; } .visual-teal::after { background: #35B5C3; }

.teacher-photo {
  position: absolute; z-index: 2;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 130px; height: 170px; object-fit: cover; object-position: top;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, .25);
}
.flag-badge {
  position: absolute; z-index: 3; top: 16px; left: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.teacher-badge {
  position: absolute; z-index: 4; left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, .87); color: var(--sk-ink);
  border-radius: 20px; padding: 3px 10px; font-size: .7rem; font-weight: 600;
}

/* ---------- Keunggulan ---------- */
.benefit-section { background: rgba(234, 236, 242, .9); }
.benefit-item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem 0; }
.benefit-icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--sk-soft); color: var(--sk-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.benefit-item h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.benefit-item p { color: var(--sk-muted); margin: 0; line-height: 1.6; }
@media (min-width: 768px) {
  .benefit-grid > div:nth-child(odd) .benefit-item { border-right: 1px solid #E0E5EF; padding-right: 2rem; }
  .benefit-grid > div:nth-child(even) .benefit-item { padding-left: 2rem; }
  .benefit-grid > div:nth-child(-n+2) .benefit-item { border-bottom: 1px solid #E0E5EF; }
}

/* ---------- CTA akhir ---------- */
.cta-title { font-size: clamp(1.9rem, 4vw, 3.25rem); font-weight: 700; }
.cta-text { font-size: clamp(1rem, 2vw, 1.4rem); color: var(--sk-muted); }

/* ---------- Header halaman (breadcrumb + judul) ---------- */
.page-header { background: var(--sk-soft); padding-block: 2.5rem; }
.breadcrumb-sk { font-size: .8rem; margin-bottom: 1.25rem; --bs-breadcrumb-divider-color: var(--sk-muted); --bs-breadcrumb-item-active-color: var(--sk-muted); }
.breadcrumb-sk a { color: var(--sk-muted); text-decoration: none; }
.breadcrumb-sk a:hover { color: var(--sk-primary); }

/* ---------- Kartu umum ---------- */
.card-sk { background: #fff; border: 1px solid #E0E8F5; border-radius: .75rem; }
.card-sk h2.card-heading { font-size: 1.1rem; font-weight: 600; color: var(--sk-ink-strong); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .6rem; align-items: center; font-size: .9rem; color: var(--sk-ink-strong); padding: .4rem 0; }
.check-list i { color: var(--sk-primary); }

.price-card { border-radius: 0 0 .75rem .75rem; border-top: 0; }
.price-big { font-size: 2rem; color: #245BD7; font-weight: 500; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; align-items: center; font-size: .85rem; padding: .55rem 0; color: var(--sk-ink-strong); }
.info-list i { color: var(--sk-primary); font-size: 1.1rem; }

/* ---------- Accordion modul ---------- */
.module-accordion .accordion-item {
  border: 1px solid #E0E8F5; border-radius: .75rem !important; overflow: hidden; margin-bottom: 1rem; background: #fff;
}
.module-accordion .accordion-button {
  gap: 1rem; padding: 1.1rem 1.25rem; background: #fff; box-shadow: none; color: var(--sk-ink-strong);
}
.module-accordion .accordion-button:not(.collapsed) { background: #fff; color: var(--sk-ink-strong); }
.module-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(35, 91, 199, .15); }
.module-accordion .accordion-button::after { filter: invert(33%) sepia(70%) saturate(1800%) hue-rotate(207deg); }
.module-num {
  background: var(--sk-soft); color: #245BD7; font-weight: 500; font-size: .75rem;
  padding: .3rem .6rem; border-radius: .4rem;
}
.module-title { font-weight: 600; font-size: .9rem; display: block; }
.module-sub { font-size: .75rem; color: var(--sk-muted); display: block; font-weight: 400; }
.module-accordion .accordion-body { padding: 0 1.25rem 1.25rem 4.5rem; font-size: .85rem; color: var(--sk-muted); }
.module-accordion .accordion-body ul { margin: 0; padding-left: 1.1rem; }
.module-accordion .accordion-body li { padding: .15rem 0; }

.avatar-initial {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--sk-soft); color: #245BD7; font-weight: 600; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}

.sticky-side { position: sticky; top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sk-navy); color: #fff; }
.site-footer .brand-mark-sm {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .13);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.site-footer .brand-name-sm { font-size: 1.5rem; font-weight: 400; }
.site-footer p, .site-footer a { color: #C3D5F5; font-size: .8rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-size: .8rem; font-weight: 500; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.25rem; margin-top: 2rem; font-size: .7rem; color: #B5CCF7; }
.footer-bottom a { font-size: .7rem; color: #B5CCF7; }
.dot-sep { margin-inline: .6rem; opacity: .7; }

/* ---------- Halaman Login / Registrasi ---------- */
.auth-brand-panel { background: var(--sk-navy); color: #fff; padding: 4rem; }
.auth-brand-panel.auth-admin-panel { background: linear-gradient(155deg, #0D285C 0%, #143A80 100%); }
.auth-brand-panel h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.5; }
.auth-chip {
  display: inline-block; background: var(--sk-soft); color: var(--sk-primary);
  font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: .3rem .65rem; border-radius: .4rem;
}
.auth-chip.accent { background: rgba(238, 135, 61, .2); color: #FFB37B; }
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .role-options { grid-template-columns: 1fr; } }
.role-option {
  position: relative; display: flex; align-items: center; gap: .75rem;
  border: 1px solid var(--sk-border); border-radius: .6rem; padding: .75rem .9rem;
  background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.role-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.role-option .ic {
  width: 36px; height: 36px; border-radius: .5rem; background: var(--sk-soft); color: var(--sk-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none;
}
.role-option b { display: block; font-size: .85rem; color: var(--sk-ink); }
.role-option small { display: block; font-size: .72rem; color: var(--sk-muted); }
.role-option:has(input:checked), .role-option.selected {
  border: 2px solid var(--sk-primary); background: var(--sk-soft); padding: calc(.75rem - 1px) calc(.9rem - 1px);
}
.role-option:focus-within { box-shadow: 0 0 0 .2rem rgba(35, 91, 199, .15); }
.auth-photo { border-radius: 20px; width: 100%; height: 300px; object-fit: cover; background: rgba(255, 255, 255, .1); }
.auth-form-wrap { max-width: 570px; width: 100%; }
.auth-title { font-size: 2rem; font-weight: 700; }
.form-label-sk { font-size: .8rem; font-weight: 600; color: var(--sk-ink); margin-bottom: .4rem; }
.form-control-sk {
  border: 1px solid var(--sk-border); border-radius: .5rem; padding: .75rem .9rem; font-size: .9rem; color: var(--sk-ink);
}
.form-control-sk:focus { border-color: var(--sk-primary); box-shadow: 0 0 0 .2rem rgba(35, 91, 199, .15); }
select.form-select,
.form-select.form-control-sk {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: none !important;
  padding-right: .9rem;
}
.form-hint { font-size: .75rem; color: var(--sk-muted); margin-top: .4rem; }
.form-check-input:checked { background-color: var(--sk-primary); border-color: var(--sk-primary); }
.auth-link { color: var(--sk-primary); font-weight: 600; text-decoration: none; font-size: .8rem; }
.auth-link:hover { text-decoration: underline; }
.btn-submit { padding: .75rem 1rem; font-size: .95rem; border-radius: .5rem; }
.input-icon { position: relative; }
.input-icon .form-control-sk { padding-right: 2.75rem; }
.input-icon .toggle-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--sk-muted); cursor: pointer; border-radius: .5rem; }
.input-icon .toggle-eye:hover { color: var(--sk-primary); }

@media (max-width: 991.98px) {
  .brand-name { font-size: 1.6rem; }
  .hero-photo { opacity: .35; right: -10%; }
  .auth-brand-panel { padding: 2rem; }
}

/* ---------- Interaksi JS ---------- */
body.no-scroll { overflow: hidden; }
.sk-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(23, 43, 77, .5); display: none; }
.sk-backdrop.show { display: block; }
@media (min-width: 992px) { .sk-backdrop.show { display: none; } }

.form-error { background: #FDECEC; color: #B42318; border-radius: .5rem; padding: .65rem .9rem; font-size: .8rem; }

/* ---------- Popup pembayaran ---------- */
.sk-modal { position: fixed; inset: 0; z-index: 1080; display: none; padding: 1rem; background: rgba(23, 43, 77, .55); overflow-y: auto; }
.sk-modal.open { display: flex; }
.sk-modal-dialog { position: relative; margin: auto; width: 100%; max-width: 540px; background: #fff; border-radius: 1rem; padding: 1.75rem; box-shadow: 0 24px 60px rgba(20, 58, 128, .3); }
.sk-modal-close { position: absolute; top: .9rem; right: .9rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sk-bg); color: var(--sk-ink); cursor: pointer; }
.sk-modal-close:hover { background: var(--sk-soft); color: var(--sk-primary); }
.modal-title-sk { font-size: 1.4rem; font-weight: 700; padding-right: 2.5rem; margin-bottom: .35rem; }
.pay-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--sk-soft); border-radius: .6rem; padding: .9rem 1rem; margin: 1.1rem 0 1.25rem; }
.pay-price { font-size: 1.2rem; font-weight: 700; color: var(--sk-primary); white-space: nowrap; }
.pay-step { font-size: .95rem; font-weight: 600; margin: 1.25rem 0 .75rem; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 480px) { .pay-options { grid-template-columns: 1fr; } }
.pay-option { position: relative; display: flex; align-items: center; gap: .7rem; border: 1px solid var(--sk-border); border-radius: .6rem; padding: .75rem; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.pay-option .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--sk-soft); color: var(--sk-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.pay-option b { display: block; font-size: .85rem; }
.pay-option small { color: var(--sk-muted); font-size: .72rem; }
.pay-option.selected { border: 2px solid var(--sk-primary); background: var(--sk-soft); padding: calc(.75rem - 1px); }
.pay-option:focus-within { box-shadow: 0 0 0 .2rem rgba(35, 91, 199, .15); }
.pay-note { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .75rem; color: var(--sk-muted); margin: .9rem 0 0; }
.pay-note i { color: var(--sk-primary); }
.pay-done { text-align: center; padding: 1.5rem .5rem .5rem; }
.pay-done .big { width: 72px; height: 72px; border-radius: 50%; background: #E7F6EE; color: #1E8A5B; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; }
