/* iMedic.ID — modern public theme layer */
:root {
  --im-primary: #2563eb;
  --im-primary-dark: #1d4ed8;
  --im-cyan: #06b6d4;
  --im-ink: #0f172a;
  --im-muted: #64748b;
  --im-bg: #f5f8fc;
  --im-surface: #ffffff;
  --im-line: #e2e8f0;
  --im-radius: 24px;
  --im-shadow: 0 24px 60px -28px rgba(15, 23, 42, .28);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.modern-theme {
  overflow-x: hidden;
  background: var(--im-bg);
  color: var(--im-ink);
  font-family: "Segoe UI", "Open Sans", "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modern-theme h1,
body.modern-theme h2,
body.modern-theme h3,
body.modern-theme h4,
body.modern-theme h5,
body.modern-theme h6 {
  letter-spacing: -.025em;
  text-shadow: none;
}

body.modern-theme a:not(.btn) {
  color: var(--im-primary);
}

body.modern-theme a:not(.btn):hover {
  color: var(--im-primary-dark);
}

body.modern-theme .page-header-alpha .navbar-brand {
  color: #fff;
}

/* Jangan biarkan pseudo-element tema lama membuat latar persegi saat scrolled. */
body.modern-theme .page-header-alpha .navbar-topmenu::before,
body.modern-theme .page-header-alpha .navbar-topmenu::after {
  display: none !important;
}

body.modern-theme .page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item a {
  color: rgba(255, 255, 255, .82);
}

body.modern-theme .page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item a:hover,
body.modern-theme .page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item.active a {
  color: #fff;
}

/* Background */
body.modern-theme .page-cover .cover-bg {
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(14, 165, 233, .28), transparent 62%),
    radial-gradient(800px 500px at 88% 18%, rgba(34, 211, 238, .20), transparent 58%),
    linear-gradient(135deg, #06162b 0%, #0a3260 52%, #0e7490 100%) !important;
}

body.modern-theme .page-cover .cover-bg-mask {
  opacity: .22;
}

/* Header */
body.modern-theme .page-header-alpha .navbar-brand .text .line {
  font-weight: 700;
  letter-spacing: -.02em;
}

body.modern-theme .page-header-alpha .navbar-brand .text .line.sub {
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  letter-spacing: .01em;
}

body.modern-theme .page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item a {
  font-weight: 600;
  letter-spacing: .01em;
  opacity: .82;
}

body.modern-theme .page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item a:hover,
body.modern-theme .page-header-alpha .navbar-topmenu .navbar-nav-menu .nav-item.active a {
  opacity: 1;
}

@media (min-width: 768px) {
  body.modern-theme .page-header-alpha .navbar-topmenu {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55);
  }

  body.modern-theme .page-header-alpha.scrolled.scrolled-white .navbar-topmenu {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(15, 23, 42, .08);
    box-shadow: 0 14px 40px -24px rgba(15, 23, 42, .45);
  }

  body.modern-theme .page-header-alpha.scrolled.scrolled-white .navbar-brand .text .line {
    color: var(--im-ink);
  }

  body.modern-theme .page-header-alpha.scrolled.scrolled-white .navbar-brand .text .line.sub {
    color: var(--im-muted);
  }

  body.modern-theme .page-header-alpha.scrolled.scrolled-white .navbar-topmenu .navbar-nav-menu .nav-item a {
    color: #475569;
    opacity: 1;
  }

  body.modern-theme .page-header-alpha.scrolled.scrolled-white .navbar-topmenu .navbar-nav-menu .nav-item a:hover,
  body.modern-theme .page-header-alpha.scrolled.scrolled-white .navbar-topmenu .navbar-nav-menu .nav-item.active a {
    color: var(--im-primary);
  }
}

body.modern-theme .page-header-alpha .btn-outline-white {
  border-width: 1px;
  background: rgba(255, 255, 255, .08);
}

body.modern-theme .page-header-alpha .btn-outline-white:hover {
  background: rgba(255, 255, 255, .18);
}

/* Hero */
body.modern-theme .section-home.landing-home {
  background:
    radial-gradient(1000px 620px at 15% 0%, rgba(14, 165, 233, .20), transparent 62%),
    radial-gradient(800px 520px at 92% 8%, rgba(34, 211, 238, .14), transparent 58%) !important;
  padding-top: 8.5rem;
  padding-bottom: 3rem;
}

body.modern-theme .section-home .title-desc {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

body.modern-theme .section-home .display-title {
  color: #fff;
}

body.modern-theme .section-home .display-3 {
  font-size: clamp(2.65rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: none;
}

body.modern-theme .hero-eyebrow,
body.modern-theme .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .85rem;
  padding: .38rem .72rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(226, 242, 255, .9);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.modern-theme .section-eyebrow {
  border-color: #dbeafe;
  background: #eff6ff;
  color: var(--im-primary);
}

body.modern-theme .hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.35rem;
}

body.modern-theme .hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(241, 248, 255, .9);
  font-size: .76rem;
  font-weight: 600;
}

body.modern-theme .hero-badges i {
  color: #67e8f9;
}

body.modern-theme .hero-note {
  margin: 1rem 0 0;
  color: rgba(226, 242, 255, .68);
  font-size: .78rem;
}

body.modern-theme .section-subtitle {
  max-width: 620px;
  margin: .65rem auto 0;
  color: var(--im-muted);
  line-height: 1.7;
}

body.modern-theme .section-home .title-desc h4 {
  color: rgba(226, 242, 255, .86);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
}

body.modern-theme .section-home .illustr-center {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

body.modern-theme .section-home .illustr-center img {
  filter: drop-shadow(0 32px 55px rgba(0, 0, 0, .38));
}

/* Section typography */
body.modern-theme .section-title .display-4,
body.modern-theme .section-title .display-5 {
  font-weight: 800;
  letter-spacing: -.045em;
}

body.modern-theme .section-title .display-4 {
  font-size: clamp(2rem, 4vw, 3rem);
}

body.modern-theme .title-desc.reduced p {
  color: var(--im-muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.modern-theme .section-description.bg-white,
body.modern-theme .section-twoside.bg-white {
  background: var(--im-bg) !important;
}

/* Buttons */
body.modern-theme .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, .55);
}

body.modern-theme .btn-primary {
  background: linear-gradient(135deg, var(--im-primary), var(--im-cyan));
  border-color: transparent;
}

body.modern-theme .btn-primary:hover,
body.modern-theme .btn-primary:focus {
  background: linear-gradient(135deg, var(--im-primary-dark), #0891b2);
  border-color: transparent;
  transform: translateY(-1px);
}

body.modern-theme .btn-white {
  background: #fff;
  color: var(--im-primary);
}

body.modern-theme .btn-white:hover,
body.modern-theme .btn-white:focus {
  background: #f0f7ff;
  color: var(--im-primary-dark);
}

/* Feature cards */
body.modern-theme .feature-card {
  height: 100%;
  padding: 2rem 1.5rem;
  border: 1px solid var(--im-line);
  border-radius: var(--im-radius);
  background: var(--im-surface);
  box-shadow: 0 18px 42px -30px rgba(15, 23, 42, .45);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.modern-theme .feature-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--im-shadow);
}

body.modern-theme .feature-card .item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.15rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

body.modern-theme .feature-card .item-icon .icon,
body.modern-theme .feature-card .item-icon i {
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: var(--im-primary) !important;
  font-size: 1.55rem;
}

body.modern-theme .feature-card .item-name {
  margin-bottom: .55rem;
  color: var(--im-ink);
  font-size: 1.15rem;
  font-weight: 700;
  background: none !important;
  -webkit-text-fill-color: currentColor;
}

body.modern-theme .feature-card .item-desc p {
  color: var(--im-muted);
  line-height: 1.7;
}

/* CTA */
body.modern-theme .landing-cta {
  background:
    radial-gradient(700px 340px at 18% 10%, rgba(34, 211, 238, .22), transparent 62%),
    linear-gradient(135deg, #071a35 0%, #0b3f75 55%, #0e7490 100%) !important;
}

body.modern-theme .landing-cta .display-title {
  color: #fff;
  text-shadow: none;
}

/* Blog cards */
body.modern-theme .post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

body.modern-theme .post-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0e7490);
}

body.modern-theme .post-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

body.modern-theme .post-card:hover .post-cover-wrap img {
  transform: scale(1.045);
}

body.modern-theme .post-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, .8);
  font-size: 2.2rem;
}

body.modern-theme .post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.5rem;
}

body.modern-theme .post-category {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: .65rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--im-primary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.modern-theme .post-card .item-name {
  margin-bottom: .5rem;
  color: var(--im-ink);
}

body.modern-theme .post-card .item-desc {
  flex: 1;
}

body.modern-theme .post-card .item-desc p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: .9rem;
}

body.modern-theme .post-read-more {
  color: var(--im-primary);
  font-size: .88rem;
  font-weight: 700;
}

/* Article */
body.modern-theme .modern-article {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--im-line);
  border-radius: var(--im-radius);
  background: #fff;
  box-shadow: 0 18px 48px -32px rgba(15, 23, 42, .42);
}

body.modern-theme .modern-article .post-heading h1 {
  color: var(--im-ink);
  font-weight: 800;
}

body.modern-theme .modern-article .lead {
  color: var(--im-muted);
}

/* Footer */
body.modern-theme .section-footer.bg-white {
  background: #0b1220 !important;
  color: #cbd5e1;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-brand .text {
  color: #f8fafc;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-brand .text .line.sub {
  color: #94a3b8;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-nav a {
  color: #cbd5e1;
  font-weight: 600;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-nav a:hover {
  color: #67e8f9;
}

body.modern-theme .footer.footer-alpha .socials-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #e2e8f0;
}

body.modern-theme .footer.footer-alpha .socials-nav a:hover {
  background: rgba(103, 232, 249, .16);
  color: #67e8f9;
}

body.modern-theme .footer.footer-alpha .text-danger {
  color: #67e8f9 !important;
}

body.modern-theme .footer.footer-alpha a {
  color: #e2e8f0;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  text-align: center;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-brand img {
  flex: 0 0 auto;
  margin-right: 0;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-brand .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

body.modern-theme .footer.footer-alpha .footer-nav .navbar-brand .text .line.sub {
  white-space: normal;
  line-height: 1.35;
}

body.modern-theme .footer.footer-alpha p {
  color: rgba(226, 232, 240, .62);
}

/* Auth / registration */
body.modern-theme .auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 8.5rem 1rem 4rem;
  background:
    radial-gradient(900px 520px at 14% 12%, rgba(14, 165, 233, .24), transparent 60%),
    radial-gradient(780px 480px at 90% 18%, rgba(34, 211, 238, .16), transparent 58%) !important;
}

body.modern-theme .auth-wrapper {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0;
}

body.modern-theme .auth-card {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 30px;
  background: rgba(255, 255, 255, .97);
  color: var(--im-ink);
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .65);
  text-align: left;
}

body.modern-theme .auth-card .auth-title {
  margin: .85rem 0 .5rem;
  color: var(--im-ink);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

body.modern-theme .auth-lead {
  margin-bottom: 1.5rem;
  color: var(--im-muted);
  line-height: 1.7;
}

body.modern-theme .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--im-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.modern-theme .auth-card .form-group {
  margin-bottom: 1.05rem;
  text-align: left;
}

body.modern-theme .auth-card label {
  margin-bottom: .4rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}

body.modern-theme .auth-card .form-control {
  min-height: 50px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  color: var(--im-ink);
  box-shadow: none;
}

body.modern-theme .auth-card .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

body.modern-theme .auth-card .form-hint {
  display: block;
  margin-top: .4rem;
  color: #94a3b8;
  font-size: .76rem;
}

body.modern-theme .captcha-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: .55rem;
}

body.modern-theme .captcha-question {
  display: inline-flex;
  align-items: center;
  padding: .55rem .8rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--im-primary);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

body.modern-theme .captcha-row .form-control {
  min-width: 0;
}

body.modern-theme .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body.modern-theme .auth-domain {
  display: flex;
  align-items: stretch;
}

body.modern-theme .auth-domain .input-group-addon {
  display: inline-flex;
  align-items: center;
  padding: .55rem .7rem;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

body.modern-theme .auth-domain .input-group-addon:first-child {
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

body.modern-theme .auth-domain .input-group-addon:last-child {
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

body.modern-theme .auth-domain .form-control {
  border-radius: 0;
}

body.modern-theme .auth-actions {
  margin-top: 1.25rem;
}

body.modern-theme .auth-actions .btn {
  min-height: 50px;
}

body.modern-theme .auth-footnote {
  margin: 1.15rem 0 0;
  color: var(--im-muted);
  font-size: .82rem;
  text-align: center;
}

body.modern-theme .auth-status-wrap {
  min-height: 1.4rem;
  margin-top: .35rem;
}

body.modern-theme .auth-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
}

body.modern-theme .auth-status.ok {
  color: #059669;
}

body.modern-theme .auth-status.no {
  color: #dc2626;
}

body.modern-theme .auth-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: .25rem auto 1rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 2rem;
}

body.modern-theme .auth-card-success .auth-title,
body.modern-theme .auth-card-success .auth-lead {
  text-align: center;
}

body.modern-theme .auth-card-success .auth-footnote {
  text-align: center;
}

/* Responsive refinements */
@media (max-width: 767px) {
  body.modern-theme .section-home.landing-home {
    padding-top: 6.5rem;
    padding-bottom: 1.5rem;
  }

  body.modern-theme .section-home .display-3 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  body.modern-theme .auth-page {
    align-items: flex-start;
    padding-top: 6.5rem;
  }

  body.modern-theme .auth-card {
    border-radius: 22px;
  }

  body.modern-theme .feature-desc .col-12,
  body.modern-theme .feature-desc .anim {
    opacity: 1 !important;
    transform: none !important;
  }

  body.modern-theme .page-header-alpha .all-menu-wrapper {
    height: 100vh;
    max-height: 100vh;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    background: linear-gradient(180deg, #071a35 0%, #0b2f5c 100%);
  }

  body.modern-theme .page-header-alpha .all-menu-wrapper .navbar-nav-menu .nav-item a {
    color: #fff;
    opacity: .82;
  }

  body.modern-theme .page-header-alpha .all-menu-wrapper .navbar-nav-menu .nav-item.active a,
  body.modern-theme .page-header-alpha .all-menu-wrapper .navbar-nav-menu .nav-item a:hover {
    color: #67e8f9;
    opacity: 1;
  }

  body.modern-theme .page-header-alpha .all-menu-wrapper .navbar-nav-actions {
    margin-top: 1.25rem;
  }

  body.modern-theme .page-header-alpha .all-menu-wrapper .navbar-nav-actions .btn {
    width: 100%;
    opacity: 1;
    color: #fff;
  }

  body.modern-theme .auth-domain {
    flex-wrap: wrap;
  }

  body.modern-theme .auth-domain .input-group-addon {
    display: none;
  }

  body.modern-theme .auth-card .auth-domain .form-control {
    border-radius: 14px !important;
  }

  body.modern-theme .section-title .display-4 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  body.modern-theme .carousel-swiper-hash .items-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
  }

  body.modern-theme .carousel-swiper-hash .items-pagination .swiper-pagination-bullet {
    flex: 0 0 auto;
    min-height: 38px;
    padding: .42rem .65rem;
    font-size: .82rem;
    line-height: 1.15;
  }

  body.modern-theme .modern-article {
    padding: 1.2rem;
  }

  body.modern-theme .modern-article .container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  body.modern-theme .modern-article .container > .row {
    margin-left: 0;
    margin-right: 0;
  }

  body.modern-theme .modern-article .container [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  body.modern-theme .modern-article .post-heading h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.12;
  }

  body.modern-theme .modern-article .post-heading .lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    color: var(--im-muted);
    font-size: .9rem;
  }

  body.modern-theme .modern-article .post-heading .lead i {
    color: var(--im-primary);
  }
}
