/* ==========================================================================
   Arena Lomba — Design System (eni-ui.css)
   Satu sumber styling untuk seluruh halaman modul (Kreator, Pendidikan,
   Beasiswa) agar konsisten. Tidak menimpa style theme bawaan; hanya
   menambah token, komponen, dan normalisasi.
   ========================================================================== */

/* Token diambil dari computed style arenalomba.com (16 Nov 2026):
   primary #ef3f48 · topbar #5856d6 · link-blue #007aff · ink #152035
   btn-primary #4287f5 radius 20px · footer #010f22 · container 1200px
   body 16px/25.6 Inter · h2 32/600 Roboto · nav 12/500 uppercase Roboto · p Arimo 15/16 */
:root {
  --al-primary: #ef3f48;      /* primary theme sumber */
  --al-primary-dark: #d32f38;
  --al-secondary: #5856d6;    /* topbar / aksen sekunder */
  --al-blue: #4287f5;         /* btn-primary sumber */
  --al-link: #007aff;
  --al-accent: #ef3f48;
  --al-accent-dark: #d32f38;
  --al-tag: #ff2d55;          /* .post-cat sumber */
  --al-ink: #152035;          /* heading sumber */
  --al-ink-soft: #333333;     /* body text sumber */
  --al-muted: #757575;
  --al-line: #e6e9f2;
  --al-bg: #ffffff;
  --al-footer: #010f22;
  --al-white: #ffffff;
  --al-radius: 5px;           /* radius dominan theme sumber */
  --al-radius-sm: 5px;
  --al-radius-pill: 30px;
  --al-shadow: 0 0 40px 0 rgba(0,0,0,.05);   /* shadow sumber */
  --al-shadow-hover: 0 0 40px 0 rgba(0,0,0,.12);
  --al-gap: 30px;
  --al-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --al-font-head: 'Roboto', sans-serif;
  --al-font-para: 'Arimo', sans-serif;
}

/* --- Page shell --------------------------------------------------------- */
.al-page {
  background: var(--al-bg);
  padding-bottom: 50px;
  font-family: var(--al-font-para);
  font-size: 16px;
  line-height: 1.6;
  color: var(--al-ink-soft);
}
.al-page p { font-family: var(--al-font-para); font-size: 16px; line-height: 1.6; margin-bottom: 15px; color: var(--al-ink-soft); }
.al-page h1, .al-page h2, .al-page h3, .al-page h4 { font-family: var(--al-font-head); color: var(--al-ink); }
.al-page h2 { font-size: 24px; line-height: 1.25; font-weight: 500; }
.al-page h3 { font-size: 22px; font-weight: 500; }
.al-page h4 { font-size: 18px; line-height: 22px; font-weight: 500; }
.al-page a { color: var(--al-link); }
.al-page a:hover { color: var(--al-primary); }

/* --- Page heading / hero ------------------------------------------------ */
.al-hero {
  background: var(--al-secondary);      /* #5856d6 — sama dengan .top-bar .background4 sumber */
  color: #fff;
  padding: 34px 0 30px;
  margin-bottom: 30px;
  border-radius: 0;
  text-align: center;
}
.al-hero h1 {
  font-family: var(--al-font-head);
  font-size: 32px;                     /* h2 sumber */
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: normal;
  text-transform: none;
}
.al-hero p {
  font-family: var(--al-font-para);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255, 255, 255, .92);
}
@media (max-width: 767.98px) {
  .al-hero { padding: 24px 0 22px; margin-bottom: 20px; }
  .al-hero h1 { font-size: 24px; }      /* h2 sumber versi mobile */
  .al-hero p { font-size: 15px; }
}
.al-hero .al-breadcrumb { margin-top: 16px; }

/* --- Breadcrumb --------------------------------------------------------- */
.al-breadcrumb {
  font-size: 12.5px;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .82);
}
.al-breadcrumb a { color: #fff; opacity: .92; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.al-breadcrumb a:hover { opacity: 1; border-bottom-color: #fff; }
.al-breadcrumb span.sep { margin: 0 8px; opacity: .6; }

/* varian breadcrumb di atas latar terang */
.al-breadcrumb--light { color: var(--al-muted); }
.al-breadcrumb--light a { color: var(--al-primary); border-bottom-color: transparent; }
.al-breadcrumb--light a:hover { border-bottom-color: var(--al-primary); }

/* --- Card --------------------------------------------------------------- */
.al-card {
  background: var(--al-white);
  border: 1px solid #eeeeee;
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow);
  padding: 24px;
  transition: box-shadow .22s ease;
  height: 100%;
  font-family: var(--al-font-para);
}
.al-card--hover:hover { box-shadow: var(--al-shadow-hover); transform: translateY(-3px); }
.al-card + .al-card { margin-top: var(--al-gap); }
.al-grid > .al-card + .al-card, .al-split > .al-card + .al-card { margin-top: 0; }
.al-card__title {
  font-family: var(--al-font-head);
  font-size: 18px; font-weight: 500; color: var(--al-ink);
  margin: 0 0 10px; line-height: 22px;          /* h4 sumber */
}
.al-card__title a { color: inherit; text-decoration: none; }
.al-card__title a:hover { color: var(--al-accent); }
.al-card__text { font-family: var(--al-font-para); color: var(--al-ink-soft); font-size: 15px; line-height: 1.65; margin: 0; }
.al-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--al-line);
}

/* container lega tapi tidak meluber di HP */
.al-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 991.98px) { .al-container { padding: 0 20px; } }
@media (max-width: 575.98px) { .al-container { padding: 0 15px; } }

/* --- Tool card (dashboard tools) --------------------------------------- */
.al-tool-card { display: flex; flex-direction: column; }
.al-tool-card .al-card__footer { margin-top: auto; }
.al-tool-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.al-tool-icon {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--al-radius-sm);
  background: rgba(239, 63, 72, .1);
  color: var(--al-primary);
  font-size: 22px;
}
.al-tool-icon--accent { background: rgba(255, 45, 85, .12); color: var(--al-tag); }

/* --- Badges / pill ----------------------------------------------------- */
.al-badge {
  display: inline-block; padding: 5px 12px;
  border-radius: var(--al-radius-pill);
  font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  line-height: 1.5; white-space: nowrap;
}
.al-badge--primary { background: rgba(0,122,255,.1); color: var(--al-link); }
.al-badge--accent  { background: rgba(239,63,72,.12); color: var(--al-primary); }
.al-badge--ok      { background: rgba(28,168,105,.12); color: #128a54; }
.al-badge--warn    { background: rgba(240,164,0,.14); color: #a86d00; }
.al-badge--muted   { background: #eef1f7; color: var(--al-muted); }

/* --- Button (menimpa .btn theme hanya di dalam .al-page) --------------- */
.al-page .btn,
.al-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; padding: 13px 26px;
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  border-radius: var(--al-radius-pill); border: 1px solid transparent;
  line-height: 1.2; text-transform: none; cursor: pointer;
  transition: all .18s ease; text-decoration: none;
}
.al-page .btn::before { display: none; }           /* matikan overlay tema */
.al-page .btn-primary { background: var(--al-blue); border-color: var(--al-blue); color: #fff; }
.al-page .btn-primary:hover { background: #2f6fd8; border-color: #2f6fd8; color: #fff; }
.al-page .btn-danger { background: var(--al-accent); border-color: var(--al-accent); color: #fff; }
.al-page .btn-danger:hover { background: var(--al-accent-dark); border-color: var(--al-accent-dark); }
.al-page .btn-success { background: #128a54; border-color: #128a54; color: #fff; }
.al-page .btn-outline-primary { background: transparent; border-color: var(--al-primary); color: var(--al-primary); }
.al-page .btn-outline-primary:hover { background: var(--al-primary); color: #fff; }
.al-page .btn-outline-danger { background: transparent; border-color: var(--al-accent); color: var(--al-accent); }
.al-page .btn-outline-danger:hover { background: var(--al-accent); color: #fff; }
.al-page .btn-outline-secondary { background: transparent; border-color: var(--al-line); color: var(--al-ink-soft); }
.al-page .btn-outline-secondary:hover { background: #eef1f7; }
.al-page .btn-sm { padding: 9px 18px; font-size: 13px; }
.al-page .btn-block { width: 100%; }
.al-page .btn:disabled, .al-page .btn.disabled { opacity: .6; cursor: not-allowed; }

/* --- Form controls ----------------------------------------------------- */
.al-page .form-control {
  display: block; width: 100%;
  padding: 12px 15px;
  font-size: 14.5px; line-height: 1.55;
  color: var(--al-ink); background: #fff;
  border: 1px solid var(--al-line); border-radius: var(--al-radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
  height: auto;
}
.al-page textarea.form-control { min-height: 150px; resize: vertical; }
.al-page .form-control:focus {
  outline: none; border-color: var(--al-secondary);
  box-shadow: 0 0 0 3px rgba(88,86,214,.14);
}
.al-page .form-group > label,
.al-page .al-label {
  display: block; margin-bottom: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--al-ink);
}
.al-page .al-hint { font-size: 12.5px; color: var(--al-muted); margin-top: 6px; }

/* --- Alert ------------------------------------------------------------- */
.al-alert {
  border-radius: var(--al-radius-sm);
  padding: 15px 18px;
  font-size: 13.5px; line-height: 1.65;
  border: 1px solid transparent;
  margin-bottom: 20px;
}
.al-alert--info    { background: rgba(43,78,255,.06);  border-color: rgba(43,78,255,.18);  color: #1e35a8; }
.al-alert--warn    { background: rgba(240,164,0,.08);  border-color: rgba(240,164,0,.25);  color: #8a5b00; }
.al-alert--ok      { background: rgba(18,138,84,.08);  border-color: rgba(18,138,84,.22);  color: #0f6b41; }
.al-alert--danger  { background: rgba(255,90,95,.08);  border-color: rgba(255,90,95,.24);  color: #b02a2a; }

/* --- Stat grid --------------------------------------------------------- */
.al-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 22px; }
.al-stat {
  background: var(--al-bg); border: 1px solid var(--al-line);
  border-radius: var(--al-radius-sm); padding: 16px 14px; text-align: center;
}
.al-stat__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--al-muted); margin-bottom: 6px; }
.al-stat__value { font-family: var(--al-font-head); font-size: 24px; font-weight: 600; color: var(--al-ink); line-height: 1.2; }
.al-stat--ok .al-stat__value { color: #128a54; }
.al-stat--bad .al-stat__value { color: var(--al-accent); }
.al-stat--info .al-stat__value { color: var(--al-primary); }

/* --- Loading indicator -------------------------------------------------- */
.al-loading { display: none; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--al-muted); }
.al-loading.is-active { display: flex; }
.al-spinner {
  width: 18px; height: 18px; flex: 0 0 18px;
  border: 2.5px solid rgba(43,78,255,.22); border-top-color: var(--al-primary);
  border-radius: 50%; animation: al-spin .7s linear infinite;
}
@keyframes al-spin { to { transform: rotate(360deg); } }

/* --- Empty / error state ------------------------------------------------ */
.al-state { text-align: center; padding: 42px 20px; color: var(--al-muted); }
.al-state i { font-size: 34px; display: block; margin-bottom: 12px; opacity: .6; }
.al-state__title { font-size: 15px; font-weight: 700; color: var(--al-ink-soft); margin-bottom: 6px; }
.al-state__text { font-size: 13.5px; margin: 0; }

/* --- Table ------------------------------------------------------------- */
.al-page .table { margin-bottom: 0; }
.al-page .table thead th {
  border-top: 0; border-bottom: 1px solid var(--al-line);
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--al-muted); white-space: nowrap; padding: 12px 10px;
}
.al-page .table tbody td { border-top: 1px solid #f1f3f9; padding: 12px 10px; font-size: 13.5px; vertical-align: middle; }
.al-page .table-responsive { border-radius: var(--al-radius-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Tool page two-column split ---------------------------------------- */
.al-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--al-gap); align-items: stretch; }
.al-split > .al-card { display: flex; flex-direction: column; }
@media (max-width: 991.98px) { .al-split { grid-template-columns: 1fr; } }

/* --- Grid helpers ------------------------------------------------------ */
.al-grid { display: grid; gap: var(--al-gap); }
.al-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.al-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
  .al-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .al-grid--3, .al-grid--2 { grid-template-columns: 1fr; }
  .al-card { padding: 20px; }
  .al-hero { padding: 32px 0 30px; border-radius: 0 0 16px 16px; }
}

/* --- Prose (hasil baca) ------------------------------------------------ */
.al-prose { font-size: 14.5px; line-height: 1.8; color: var(--al-ink); white-space: pre-line; word-break: break-word; }
.al-out {
  background: #fbfcff; border: 1px dashed var(--al-line);
  border-radius: var(--al-radius-sm); padding: 18px; min-height: 180px;
  font-size: 14px; line-height: 1.75; color: var(--al-muted); white-space: pre-line; word-break: break-word;
}
.al-out.is-filled { color: var(--al-ink); border-style: solid; background: #fff; }

/* --- Misc -------------------------------------------------------------- */
.al-mt-xs { margin-top: 10px; } .al-mt-sm { margin-top: 16px; } .al-mt { margin-top: 24px; }
.al-mb-xs { margin-bottom: 10px; } .al-mb-sm { margin-bottom: 16px; } .al-mb { margin-bottom: 24px; }
.al-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* --- Footer links ------------------------------------------------------- */
.footer-links li { margin-right: 16px; }
.footer-links a {
  color: rgba(255,255,255,.78) !important;
  font-size: 13px; letter-spacing: .3px; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .16s ease, border-color .16s ease;
}
.footer-links a:hover { color: #fff !important; border-bottom-color: rgba(255,255,255,.6); }
.footer-copy-right p { color: rgba(255,255,255,.72); font-size: 12.5px; }

/* --- Normalisasi hero theme lama pada halaman modul -------------------- */
.al-page .archive-header { display: none; }

/* --- Stat label helper untuk halaman detail --------------------------- */
.al-stat__label + p { margin-top: 2px; }

/* --- Cegah overflow horizontal global di mobile ----------------------- */
html, body { overflow-x: hidden; }
.al-page img { max-width: 100%; height: auto; }
.al-page code {
  background: #eef1f7; padding: 1px 6px; border-radius: 5px;
  font-size: .88em; color: #b02a2a;
}

/* --- Mobile: paksa tombol tema lama tidak melebar --------------------- */
@media (max-width: 991.98px) {
  .eni-mobile-nav .btn,
  .eni-mobile-nav .btn-sm {
    min-width: 0 !important;
    width: auto !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    border-radius: 20px !important;
  }
  .eni-mobile-nav .btn::before { display: none !important; }
  .eni-mobile-nav .d-flex { flex-wrap: nowrap; gap: 8px; }
}

/* --- Mobile: form & tabel tidak boleh mendorong lebar ------------------ */
@media (max-width: 575.98px) {
  .al-page .form-control { font-size: 16px; }        /* cegah zoom iOS */
  .al-page .al-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .al-page .al-card { padding: 18px 16px; }
  .al-page .al-hero h1 { font-size: 1.32rem; }
  .al-page .table { min-width: 480px; }               /* scroll dalam .table-responsive */
  .al-page .btn { width: 100%; }
  .al-page .al-row-between .btn { width: auto; }
}

/* --- Mobile menu toggle: elemen kustom, bebas dari aturan .btn theme --- */
.eni-menu-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: #fff; color: var(--al-accent);
  border: 1.5px solid var(--al-accent);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .6px;
  line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.eni-menu-toggle:hover, .eni-menu-toggle:focus { background: var(--al-accent); color: #fff; outline: none; }
.eni-menu-toggle i { font-size: 15px; }

/* --- Grid & card: jangan pernah melebihi lebar kontainer -------------- */
.al-grid { min-width: 0; }
.al-grid > * { min-width: 0; }
.al-card { min-width: 0; }
.al-card__title, .al-card__text { overflow-wrap: anywhere; word-break: break-word; }
.al-tool-card__head { flex-wrap: wrap; }
.al-badge { white-space: normal; max-width: 100%; }

@media (max-width: 575.98px) {
  .al-page .al-card__footer { flex-wrap: wrap; }
  .al-page .al-card__footer .btn { width: auto; min-width: 0; }
  .al-page .al-tool-card__head .al-badge { font-size: 10.5px; padding: 4px 9px; }
}

/* --- Pagination: tidak boleh melebihi viewport di mobile ----------------- */
.pagination-area { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pagination-area .pagination { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
@media (max-width: 575.98px) {
  .pagination-area { overflow-x: visible; }
  .pagination-area .pagination .page-item { margin: 2px; }
  .pagination-area .pagination .page-link {
    padding: 5px 9px; font-size: 12.5px; min-width: 30px; text-align: center; line-height: 1.4;
  }
  /* sisakan: prev, 1..3, next */
  .pagination-area .pagination .page-item:nth-child(n+6):not(:last-child) { display: none; }
  .pagination-area .pagination .page-item:last-child { margin-left: 4px; }
}

/* --- .dark-mark adalah overlay off-canvas fixed: jangan pernah
       menyumbang lebar dokumen (penyebab +3px di /artikel versi mobile) --- */
.dark-mark { width: 100vw !important; max-width: 100% !important; left: 0 !important; }

/* --- Tabel konten artikel/lomba: responsif tanpa overflow halaman ------ */
.entry-main-content { font-family: 'Arimo', sans-serif; font-size: 16px; line-height: 1.65; color: #333; }
.entry-main-content p { margin-bottom: 15px; font-size: 16px; line-height: 1.65; }
.entry-main-content h2 { font-family: 'Roboto', sans-serif; font-size: 24px; font-weight: 600; color: #152035; margin: 30px 0 28px; line-height: 1.25; }
.entry-main-content h3 { font-family: 'Roboto', sans-serif; font-size: 22px; font-weight: 500; color: #152035; margin: 24px 0 14px; }
.entry-main-content ul, .entry-main-content ol { margin: 0 0 15px 22px; padding: 0; }
.entry-main-content li { margin-bottom: 8px; line-height: 1.65; }
.entry-main-content img { max-width: 100%; height: auto; border-radius: 5px; }
.entry-main-content blockquote {
  border-left: 4px solid #ef3f48; background: #fafafa;
  padding: 14px 18px; margin: 0 0 18px; color: #444; font-style: italic;
}
.entry-main-content a { color: #007aff; text-decoration: none; border-bottom: 1px solid rgba(0,122,255,.3); }
.entry-main-content a:hover { color: #ef3f48; border-bottom-color: #ef3f48; }
.entry-main-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  font-size: 15px; background: #fff;
}
.entry-main-content table th,
.entry-main-content table td {
  border: 1px solid #e6e9f2; padding: 10px 12px; vertical-align: top; text-align: left;
}
.entry-main-content table th { background: #f4f6fb; font-weight: 600; color: #152035; }
.entry-main-content table tr:nth-child(even) td { background: #fbfcfe; }

/* Bungkus tabel: scroll horizontal HANYA di dalam tabel, bukan halaman */
.table-scroll {
  width: 100%; max-width: 100%; display: block;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 0 20px; border-radius: 5px;
}
.table-scroll > table {
  margin-bottom: 0; min-width: 480px; width: 100%;
  table-layout: auto;
}
/* tabel di dalam wrapper tidak boleh melebarkan dokumen */
.entry-main-content .table-scroll table { max-width: none; }
@media (max-width: 767.98px) {
  .entry-main-content { font-size: 15.5px; }
  .entry-main-content table { font-size: 14px; }
}

/* Paksa scroll lokal untuk tabel lebar (spesifisitas tinggi, menang dari theme) */
.entry-main-content .table-scroll,
.single-post .table-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
}
.entry-main-content .table-scroll table,
.single-post .table-scroll table {
  max-width: none !important;
  width: max-content !important;
  min-width: 480px !important;
}

/* --- Navigasi akun di topbar (satu pintu login) ----------------------- */
.al-account-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 30px;
  background: rgba(255,255,255,.16);
  color: #fff !important; font-size: 14px; font-weight: 700;
  text-decoration: none; border: 1px solid rgba(255,255,255,.28);
  line-height: 1.2; transition: background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.al-account-pill:hover { background: rgba(255,255,255,.28); color: #fff !important; border-color: rgba(255,255,255,.5); }
.al-account-pill--solid { background: #fff; color: var(--al-secondary) !important; border-color: #fff; }
.al-account-pill--auth { min-width: 116px; justify-content: center; }
.al-account-pill--solid:hover { background: #efedff; color: var(--al-secondary) !important; border-color: #fff; }
.al-account-pill i { font-size: 13px; }
.al-account-pill--ghost { background: transparent; border: 2px solid rgba(255,255,255,.65); }
.al-account-pill--ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.85); }
.al-badge-role {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  background: #ef3f48; color: #fff; padding: 2px 7px; border-radius: 20px;
}
@media (max-width: 991.98px) {
  .al-account-pill { padding: 11px 20px; font-size: 13px; }
}

/* Tabel sidebar "Detail Lomba" bukan konten artikel: jangan kena min-width tabel konten */
.entry-main-content .table-scroll table { min-width: 480px !important; }
.sidebar-meta table,
.sidebar-meta table th,
.sidebar-meta table td { min-width: 0 !important; width: auto; }
table.table-plain,
table.table-plain th,
table.table-plain td { min-width: 0 !important; border: 0; background: transparent !important; }
@media (max-width: 991.98px) {
  .sidebar-meta table { font-size: 13.5px; }
}

/* Prioritas tertinggi: tabel non-konten tidak boleh punya min-width */
tbody tr td, tbody tr th { min-width: 0 !important; }
table.table-plain, table.table-plain * { min-width: 0 !important; max-width: 100% !important; }
table.table-plain td, table.table-plain th { white-space: normal !important; word-break: break-word; }


/* Mobile: hanya satu logo yang tampil (logo-mobile ATAU logo-tablet), cegah tumpang */
@media (max-width: 991.98px) {
  .logo-tablet, .logo-mobile { line-height: 0; }
  .logo-tablet img, .logo-mobile img { max-height: 32px !important; height: auto; vertical-align: middle; }
  .header-bottom .logo-mobile { display: inline-block !important; }
  .header-bottom .logo-tablet { display: none !important; }
  .eni-mobile-nav .logo-img { max-height: 40px !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .header-bottom .logo-tablet { display: inline-block !important; }
  .header-bottom .logo-mobile { display: none !important; }
}

/* Beranda punya header sendiri — terapkan aturan sama */
.header-logo img, .logo-mobile img, .logo-tablet img { max-width: 100%; }

/* Mobile nav: beri tinggi eksplisit agar logo tidak meluber dari bar */
.eni-mobile-nav .d-flex.align-items-center { min-height: 56px; height: auto; }
.eni-mobile-nav a { display: inline-flex; align-items: center; }
.eni-mobile-nav .logo-img { display: block; }
.eni-mobile-nav .py-10 { padding-top: 12px !important; padding-bottom: 12px !important; }

/* Anchor pembungkus logo harus block agar tingginya mengikuti gambar (bukan baseline inline) */
.logo-mobile a, .logo-tablet a, .header-logo a, .eni-mobile-nav a { display: inline-block; line-height: 0; }
.logo-mobile img, .logo-tablet img, .eni-mobile-nav img { display: block; }

/* Prioritas final: anchor logo mengikuti tinggi gambar */
a > img.logo-img { display: block !important; }
a:has(> img.logo-img) { display: inline-flex !important; align-items: center; line-height: 1 !important; }

/* Satu tombol search di mobile nav */
.al-mobile-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 8px;
  background: #f4f6fb; border: 1px solid #e6e9f2; border-radius: 50%;
  color: #152035; font-size: 15px; cursor: pointer;
}
.al-mobile-search:hover { background: #e8ecf6; }
@media (min-width: 992px) { .al-mobile-search { display: none !important; } }

/* Satu ikon pencarian per breakpoint — tidak pernah dobel */
@media (max-width: 991.98px) { .al-search-desktop { display: none !important; } }
@media (min-width: 992px)  { .al-mobile-search { display: none !important; } }

/* Tombol baca selengkapnya di kartu listing */
.btn-read-more{
  display:inline-flex;align-items:center;gap:6px;
  font-family:'Roboto',sans-serif;font-size:12px;font-weight:700;
  letter-spacing:.6px;text-transform:uppercase;
  color:#ef3f48;text-decoration:none;
  padding:0;background:none;border:0;
}
.btn-read-more i{font-size:11px;transition:transform .16s ease}
.btn-read-more:hover{color:#d32f38}
.btn-read-more:hover i{transform:translateX(3px)}

/* --- Hero besar khusus halaman Masuk / Daftar --------------------------- */
.al-hero--auth {
  padding: 58px 0 50px;
  background: linear-gradient(135deg, #5856d6 0%, #7b5cf0 55%, #9d6bf5 100%);
  border-radius: 0 0 28px 28px;
  position: relative; overflow: hidden;
}
.al-hero--auth::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.10); top: -210px; right: -90px;
}
.al-hero--auth::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08); bottom: -170px; left: -70px;
}
.al-hero--auth .al-container { position: relative; z-index: 1; }
.al-hero--auth h1 { font-size: 40px; }
.al-hero--auth p { font-size: 17px; }
@media (max-width: 767.98px) {
  .al-hero--auth { padding: 46px 0 42px; border-radius: 0 0 22px 22px; }
  .al-hero--auth h1 { font-size: 30px; }
  .al-hero--auth p { font-size: 16px; }
}

/* --- Info Lomba: filter + judul tengah (samakan arenalomba.com/lomba) --- */
.lomba-heading h2 { font-size: 44px; line-height: 1.2; }
.lomba-heading .breadcrumb { display: flex; justify-content: center; align-items: center; }
.lomba-filter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lomba-pill { background: #fff; border: 1px solid #d5d5d5; color: #333; border-radius: 999px; padding: 10px 22px; font-size: 15px; line-height: 1.2; cursor: pointer; text-transform: none; }
.lomba-pill:hover { border-color: #999; }
.lomba-pill.is-active { background: #ef3f48; border-color: #ef3f48; color: #fff; }
.lomba-filter .btn-cari, .lomba-filter .btn-reset { min-width: 135px; padding: 12px 24px; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-radius: 5px; cursor: pointer; text-align: center; text-decoration: none; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; }
.lomba-filter .btn-cari { background: #ef3f48; border: 1px solid #ef3f48; color: #fff; }
.lomba-filter .btn-cari:hover { background: #d92b34; border-color: #d92b34; color: #fff; }
.lomba-filter .btn-reset { background: #fff; border: 1px solid #d5d5d5; color: #333; }
.lomba-filter .btn-reset:hover { border-color: #999; color: #333; text-decoration: none; }
@media (max-width: 767px) { .lomba-heading h2 { font-size: 32px; } }

/* --- Top bar: semua aksi sebaris, ikon sosmed tidak turun baris (fix 2026-11-17) --- */
.topbar-actions { white-space: nowrap; }
.topbar-actions .list-inline-item { margin-right: 6px; }
.topbar-actions .list-inline-item:last-child { margin-right: 0; }
.topbar-date { white-space: nowrap; }

/* --- Kelas Pemberdayaan (2026-11-17, ala luarkampus.id/kelas) --- */
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kp-grid--home { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 991px) { .kp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .kp-grid, .kp-grid--home { grid-template-columns: 1fr; } }
.kp-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.kp-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.kp-poster { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 55%, #172554 100%); color: #fff; padding: 28px 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.kp-poster:hover { text-decoration: none; }
.kp-poster h3 { color: #facc15; font-size: 22px; line-height: 1.25; margin: 0; font-weight: 800; }
.kp-poster .kp-poster-sub { color: #dbeafe; font-size: 13px; margin-top: 8px; }
.kp-poster--detail { border-radius: 8px; margin-bottom: 26px; min-height: 220px; }
.kp-poster--detail h3 { font-size: 28px; }
.kp-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kp-card-body h4 { font-size: 17px; line-height: 1.35; margin: 0; }
.kp-card-body h4 a { color: #1a1a2e; }
.kp-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #666; margin-top: auto; }
.kp-badge-gratis { background: #16a34a; color: #fff; font-weight: 700; font-size: 11px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.kp-chip { background: #eef2ff; color: #3730a3; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.kp-pill { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid #d5d5d5; background: #fff; color: #333; font-size: 14px; margin: 0 8px 8px 0; text-decoration: none; }
.kp-pill:hover { text-decoration: none; }
.kp-pill.is-active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.kp-search { width: 100%; max-width: 420px; padding: 10px 16px; border: 1px solid #d5d5d5; border-radius: 999px; font-size: 14px; }
.kp-subscribe { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; }
.kp-subscribe h5 { font-size: 18px; margin: 0 0 8px; }
.kp-subscribe p { color: #64748b; font-size: 14px; margin: 0; }
.kp-subscribe input[type="email"] { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; font-size: 14px; margin: 12px 0; }
.kp-subscribe button { width: 100%; padding: 12px; border: none; border-radius: 999px; background: #2f7de1; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.kp-subscribe button:hover { background: #2568c4; }

/* Asisten chat (2026-11-18): tombol panah merah scroll-up pindah ke kiri bawah
   supaya tidak menutupi bubble asisten di kanan bawah.
   2026-11-18 (mobile): beri jarak safe-area bawah supaya panah tidak
   tenggelam di balik bilah gestur / toolbar browser HP. */
#scrollUp { left: 31px !important; right: auto !important; bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width:767px) {
    #scrollUp { left: 16px !important; right: auto !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Mobile (2026-11-18): cegah halaman geser ke samping + gambar meluber. */
@media (max-width:767px) {
    body { overflow-x: hidden; }
    img { max-width: 100%; height: auto; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Admin nav di HP (2026-11-18): label grup di atas, semua tombol menu
   lebar penuh dan sama besar supaya rapi. */
@media (max-width:767px) {
    .al-admin-nav-row { flex-direction: column; gap: 4px !important; }
    .al-admin-nav-row > span { min-width: 0 !important; padding-top: 0 !important; }
    .al-admin-nav-pills { flex-direction: column; flex: 1; }
    .al-admin-nav-pills .btn { width: 100%; text-align: center; }
}
