/* ============================================================
   ALADI POPPINS OVERRIDE (2026-09-23)
   Client request: Poppins everywhere — Regular for body text,
   Bold for headings, across website and LMS.
   Loaded LAST in all layouts so it wins the cascade.
   Rollback: remove the <link> to this file from the layouts.
   ============================================================ */

@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/poppins/Poppins-Regular.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/poppins/Poppins-Medium.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/poppins/Poppins-SemiBold.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('../../fonts/poppins/Poppins-Bold.woff2') format('woff2');}

/* body text everywhere */
html body, body,
button, input, optgroup, select, textarea,
p, span, a, li, td, th, label, small, dt, dd, figcaption,
blockquote, address, code, pre {
  font-family:'Poppins', sans-serif !important;
}

/* headings bold everywhere */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family:'Poppins', sans-serif !important;
  font-weight:700 !important;
}
/* ============================================================
   ALADI FOOTER — landing-page design, ported to the LMS (2026-09-23)
   Scoped under #aladi-foot so LMS CSS (bootstrap/theme) can't bleed in.
   Loaded LAST in all layouts (same file as the Poppins override).
   Rollback: restore footer partial backup in /root/backups/, or remove
   the #aladi-foot block from this file.
   ============================================================ */

/* ---- fonts stay consistent even inside the footer ---- */
#aladi-foot,
#aladi-foot *:not(svg):not(svg *) {
  font-family: "Poppins", sans-serif !important;
}

/* ---- base band (matches landing: deep maroon + faint gold lattice) ---- */
#aladi-foot.footer-area {
  background-color: #45101F;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='55px' height='55px' viewBox='0 0 55 55'><path d='M27.5 1.5 53.5 27.5 27.5 53.5 1.5 27.5Z' fill='none' stroke='%23BE9B4E' stroke-opacity='.10' stroke-width='1'/></svg>");
  background-size: 55px 55px;
  color: rgba(255,255,255,.72);
  padding: 72px 0 30px;
  margin: 0;
}

/* landing's .wrap: 1200px centered container */
#aladi-foot .foot-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,40px);
}

/* ---- 4-column grid (1.6fr brand + three 1fr link columns) ---- */
#aladi-foot .foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

/* ---- brand column ---- */
#aladi-foot .foot-brand p { margin-top: 16px; max-width: 32ch; font-size: 15px; }
#aladi-foot .foot-brand .contact { margin-top: 18px; font-size: 15px; }
#aladi-foot .foot-brand .contact a { color: #D8BE84; font-weight: 600; text-decoration: none; }
#aladi-foot .foot-brand .foot-logo { height: 36px; width: auto; display: block; margin-bottom: 4px; }

/* ---- link columns ---- */
#aladi-foot .foot-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
#aladi-foot .foot-col a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .18s;
}
#aladi-foot .foot-col a:hover { color: #fff; }

/* ---- social circles ---- */
#aladi-foot .foot-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  list-style: none;
  padding: 0;
}
#aladi-foot .foot-social li { margin: 0; }
#aladi-foot .foot-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  transition: background .18s, border-color .18s;
}
#aladi-foot .foot-social a:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
#aladi-foot .foot-social svg { width: 18px; height: 18px; }

/* ---- bottom bar ---- */
#aladi-foot .foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}
#aladi-foot .foot-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
#aladi-foot .foot-legal a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .18s; }
#aladi-foot .foot-legal a:hover { color: #fff; }

/* ---- responsive (same breakpoints as the landing) ---- */
@media (max-width: 960px) {
  #aladi-foot .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  #aladi-foot .foot-grid { grid-template-columns: 1fr; }
  #aladi-foot .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   POPPINS CATCH-ALL (2026-09-23)
   Anything the tag-level rules above miss (JS-injected overlays,
   dynamic modals, plugin UI) still gets Poppins.
   Exclusions keep icon fonts and code blocks working:
   Font Awesome / Bootstrap Icons / Material, code, pre, kbd, samp.
   ============================================================ */
body *:not(svg):not(svg *):not(i):not([class*='fa-']):not([class*='bi-']):not([class*='icon']):not(.material-icons):not(code):not(pre):not(kbd):not(samp) {
  font-family: 'Poppins', sans-serif !important;
}

/* ============================================================
   ALADI 2026-09-24: courses-page mobile filter + category bolding
   ============================================================ */
.aladi-mfilter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 10px 18px;
  border: 1.5px solid #701A36; border-radius: 100px;
  background: #fff; color: #701A36;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.aladi-mfilter-btn i { font-size: 13px; }
.aladi-sheet { display: none; }
@media (max-width: 767.98px) {
  #aladi-filter-col { display: none; }
  .aladi-sheet {
    display: block; position: fixed; inset: 0; z-index: 1050;
    pointer-events: none;
  }
  .aladi-sheet-backdrop {
    position: absolute; inset: 0; background: rgba(28,23,25,.5);
    opacity: 0; transition: opacity .25s;
  }
  .aladi-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: #fff; border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    transition: transform .3s cubic-bezier(.22,.61,.36,1);
    max-height: 82vh; display: flex; flex-direction: column;
    box-shadow: 0 -20px 60px rgba(28,23,25,.25);
  }
  .aladi-sheet.open { pointer-events: auto; }
  .aladi-sheet.open .aladi-sheet-backdrop { opacity: 1; }
  .aladi-sheet.open .aladi-sheet-panel { transform: none; }
  .aladi-sheet-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #ECE6E4;
    font-weight: 700; font-size: 15px;
  }
  .aladi-sheet-close {
    border: none; background: none; font-size: 20px;
    color: #1C1719; padding: 6px 10px; cursor: pointer;
  }
  .aladi-sheet-body { overflow-y: auto; padding: 8px 20px 34px; }
  .aladi-sheet-body .row.mb-4 { margin-bottom: 8px !important; }
}
/* parent categories bold, children regular (sidebar + sheet) */
#parent-category > li.category > a > span:first-child { font-weight: 700; }
#child-category li.category > a > span:first-child { font-weight: 400; }

/* ============================================================
   ALADI 2026-09-24 (2): footer breathing room + pagination
   ============================================================ */
/* restore the theme's 110px top margin our footer port removed
   (old footer had it; without it the footer touches pagination
   and section ends on short pages) */
#aladi-foot.footer-area { margin-top: 110px; }

/* pagination: centered inside the courses column it paginates,
   not the full page (the filter column would offset it) */
.entry-pagination { display: flex; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; }
.entry-pagination .pagination { margin: 0; }
