/* ===================== BCIT WORLD header redesign ===================== */
nav.bw-nav-bar .dropdown-menu.mega-menu,
nav.bw-nav-bar ul.dropdown-menu {
  box-shadow: 0 16px 32px rgba(20,10,10,0.18);
  border: none;
  border-top: 3px solid #167A4D;
  border-radius: 0 0 10px 10px;
  background: #fff;
}
.bw-utility-strip {
  background: #5C1220;
  color: #F3E4D9;
  font-size: 13px;
  padding: 6px 20px;
}
.bw-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.bw-utility-row a { color: #F3E4D9; text-decoration: none; }
.bw-utility-row a:hover { text-decoration: underline; }
.bw-utility-left, .bw-utility-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.bw-utility-social { display: flex; gap: 12px; }
.bw-utility-social a { opacity: .85; }
.bw-utility-social a:hover { opacity: 1; }

nav.bw-nav-bar {
  background: #fff !important;
  border-bottom: 1px solid rgba(36,26,27,0.10);
}
nav.bw-nav-bar .bw-nav-inner {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  height: auto !important;
  padding: 10px 20px;
}
nav.bw-nav-bar .navbar-header {
  display: block !important;
  background: transparent !important;
  float: none;
  padding: 8px 0 !important;
  text-align: left !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap;
  order: 1;
  flex: 0 0 auto;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
nav.bw-nav-bar .navbar-collapse {
  order: 2;
  flex: 1 1 0%;
  min-width: 0;
  width: auto !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
nav.bw-nav-bar .bw-cta {
  order: 3;
  margin-left: auto;
  margin-top: -14px;
}
nav.bw-nav-bar .navbar-header .navbar-toggle {
  vertical-align: middle;
  margin: 0 12px 0 0;
  float: none;
}
@media (max-width: 1023px) {
  nav.bw-nav-bar .navbar-header {
    position: relative !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    padding-right: 50px !important;
  }
  nav.bw-nav-bar .navbar-header .navbar-toggle {
    display: inline-block !important;
    position: absolute !important;
    right: 0;
    top: 50%;
    margin: 0 !important;
    transform: translateY(-50%);
  }
}
.bw-brand { display: inline-block; vertical-align: middle; text-decoration: none; }
.bw-logo-plate { display: inline-block; vertical-align: middle; }
.bw-logo-plate img {
  position: static !important;
  display: inline-block !important;
  vertical-align: middle;
  height: 46px;
  width: 200px;
}
nav.bw-nav-bar .navbar-toggle {
  border-color: rgba(36,26,27,0.15);
  margin: 0;
}
nav.bw-nav-bar .navbar-toggle .fa-bars { color: #5C1220; }
nav.bw-nav-bar .navbar-collapse {
  background: #fff !important;
  border: none;
  box-shadow: none;
}
nav.bw-nav-bar ul.nav.navbar-nav {
  height: auto !important;
  margin: 0 !important;
}
@media (min-width: 1024px) {
  nav.bw-nav-bar ul.nav.navbar-nav {
    display: flex !important;
    align-items: center;
  }
}
nav.bw-nav-bar ul.nav.navbar-nav > li > a {
  color: #241A1B !important;
  font-weight: 600;
  text-shadow: none !important;
  background: transparent !important;
  padding: 14px 10px !important;
}
@media (min-width: 1024px) and (max-width: 1400px) {
  nav.bw-nav-bar ul.nav.navbar-nav > li > a {
    padding: 14px 7px !important;
    font-size: 12px !important;
  }
}
nav.bw-nav-bar ul.nav.navbar-nav > li > a:hover,
nav.bw-nav-bar ul.nav.navbar-nav > li > a:focus {
  color: #167A4D !important;
}
.bw-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #167A4D;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.bw-cta:hover { background: #0F5C39; color: #fff; }

nav.bw-nav-bar .bw-mobile-only-link { display: none !important; }

@media (max-width: 1023px) {
  .bw-utility-strip { display: none; }
  nav.bw-nav-bar .bw-nav-inner { flex-wrap: wrap; }
  nav.bw-nav-bar .navbar-collapse { flex-basis: 100%; order: 4; }
  nav.bw-nav-bar .bw-mobile-only-link { display: block !important; }
}

/* Vertical "Book demo" tab */
.bw-demo-tab {
  position: fixed;
  top: 55%;
  right: 0;
  width: 118px;
  height: 38px;
  margin-top: -19px;
  margin-right: -40px;
  transform: rotate(-90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #167A4D;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.bw-demo-tab:hover { background: #0F5C39; }

/* Mobile sticky Call + WhatsApp dock */
.bw-mobile-dock { display: none; }
@media (max-width: 767px) {
  .bw-mobile-dock {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  }
  .bw-mobile-dock a {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
  }
  .bw-mobile-dock .bw-dock-call { background: #5C1220; }
  .bw-mobile-dock .bw-dock-wa { background: #25D366; }
  body { padding-bottom: 56px; }
  .bw-cta { display: none; }
}

/* Demo modal quick-contact row */
.bw-modal-divider {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 12px; color: #777;
}
.bw-modal-divider::before, .bw-modal-divider::after { content: ""; flex: 1; height: 1px; background: #e2e2e2; }
.bw-modal-quick { display: flex; gap: 8px; padding: 0 15px 15px; }
.bw-modal-quick a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; color: #fff;
}
.bw-modal-quick .bw-mq-call { background: #5C1220; }
.bw-modal-quick .bw-mq-wa { background: #25D366; }

/* body{overflow-x:hidden} in style.css triggers the CSS spec quirk where
   overflow-y computes to "auto" on body, and since body,html{height:100%}
   pins body to exactly viewport height, body becomes its own scrolling box
   with an internal scrollbar that eats ~15px from its own width -- that's
   the white gap on the right of full-width sections. The hero banner relies
   on the height:100% chain (html->body->wrapper->banner) to size itself via
   vh-equivalent percentages, so height:100% must stay -- only neutralize the
   overflow so body doesn't clip/scroll its own box; the taller content then
   overflows visibly and the outer <html> (which already has overflow-y:auto)
   handles the real page scroll, same as it does now for html's own height. */
body {
  overflow-y: visible !important;
}
body > .wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ===================== Enquiry modal redesign ===================== */
.bw-enquiry-modal {
  border-radius: 16px !important;
  overflow: hidden;
  border: none !important;
}
.bw-enquiry-header {
  position: relative;
  background: linear-gradient(135deg, #5C1220, #7A1B2C);
  color: #fff;
  padding: 28px 24px 22px;
  text-align: center;
}
.bw-enquiry-close {
  position: absolute !important;
  top: 12px;
  right: 14px;
  color: #fff !important;
  opacity: 0.85 !important;
  text-shadow: none !important;
  font-size: 22px !important;
  font-weight: 400 !important;
}
.bw-enquiry-close:hover { opacity: 1 !important; }
.bw-enquiry-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.bw-enquiry-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.bw-enquiry-header p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
}
.bw-enquiry-form {
  padding: 22px 22px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bw-enquiry-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0ddd9;
  border-radius: 10px;
  padding: 0 14px;
  background: #FAF8F6;
}
.bw-enquiry-field:focus-within {
  border-color: #167A4D;
  box-shadow: 0 0 0 3px rgba(22,122,77,0.12);
}
.bw-enquiry-field i {
  color: #5C1220;
  width: 16px;
  text-align: center;
  flex: 0 0 auto;
}
.bw-enquiry-field input,
.bw-enquiry-field select {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 0 !important;
  width: 100%;
  font-size: 14px;
  color: #241A1B;
}
.bw-enquiry-field input:focus,
.bw-enquiry-field select:focus {
  outline: none;
}
.bw-enquiry-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #167A4D;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  cursor: pointer;
  margin-top: 4px;
}
.bw-enquiry-submit:hover { background: #0F5C39; color: #fff; }

/* ===================== Course page content polish ===================== */
/* .our-features sections use the theme's shadow/padding styles only when
   wrapped in a child .item -- these course pages skip that wrapper, so every
   section renders as a bare, undifferentiated text block. Style the actual
   .info wrapper directly instead of touching 26 pages of markup. */
.our-features {
  margin-bottom: 22px;
}
.our-features > .info,
.our-features > .col-md-12.info {
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #167A4D;
  box-shadow: 0 2px 14px rgba(36,26,27,0.08);
  padding: 26px 28px;
}
.our-features .info h2,
.our-features .info h3,
.our-features .info h4 {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  color: #5C1220 !important;
  font-size: 21px !important;
  margin: 0 0 14px !important;
}
.our-features .info p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #3a3330;
}
.our-features .info ul {
  list-style: none;
  padding-left: 2px;
  margin: 0;
}
.our-features .info li {
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: #3a3330;
}

/* Kill the unsupported decorative "Algerian" font used inline on headings --
   it isn't a real web font, so every browser without it silently falls back
   to a generic serif; make the fallback intentional instead of accidental. */
[style*="Algerian"] {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Course page H1 */
.site-heading h1 {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  color: #5C1220 !important;
  font-weight: 800 !important;
  font-size: 32px !important;
  text-shadow: none !important;
  letter-spacing: -0.3px;
}
@media (max-width: 767px) {
  .site-heading h1 { font-size: 23px !important; }
  .our-features > .info,
  .our-features > .col-md-12.info { padding: 20px; }
}

/* Syllabus / data tables */
table.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
@media (max-width: 767px) {
  /* Long course-name cells can force the table wider than the viewport;
     scope the overflow to the table itself instead of the page. */
  table.table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
table.table thead th,
table.table thead.thead-dark th {
  background: #5C1220 !important;
  color: #fff !important;
  padding: 12px 14px;
  font-weight: 700;
  border: none !important;
  font-size: 15px !important;
}
table.table tbody th,
table.table tbody td {
  padding: 11px 14px !important;
  border-bottom: 1px solid #eee !important;
  border-top: none !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
}
table.table tbody tr:nth-child(even) {
  background: #FAF8F6;
}

/* Instructor bio card */
.about-area .our-features .info {
  background: transparent;
  box-shadow: none;
  border-left: none;
  padding: 0;
}
.about-area .our-features .info h3 {
  color: #5C1220 !important;
}

/* ===================== 404 page ===================== */
.bw-404 {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 20px 10px;
  text-align: center;
}
.bw-404 p.bw-404-code {
  font-size: 96px;
  font-weight: 800;
  color: #5C1220;
  line-height: 1;
  margin: 0;
}
.bw-404 h1 {
  font-size: 26px;
  font-weight: 800;
  color: #241A1B;
  margin: 6px 0 10px;
}
.bw-404 p {
  font-size: 15.5px;
  color: #6b5b57;
  margin: 0 0 8px;
  line-height: 1.7;
}
.bw-404-hi {
  font-size: 14px;
  color: #9a8d89;
}
.bw-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 10px;
}
.bw-404-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.bw-404-home { background: #5C1220; color: #fff !important; }
.bw-404-home:hover { background: #4A0E1A; }
.bw-404-wa { background: #25D366; color: #fff !important; }
.bw-404-wa:hover { background: #1DA851; }
.bw-404-call { background: #fff; color: #5C1220 !important; border: 2px solid #5C1220; }
.bw-404-call:hover { background: #FAF3F3; }

.bw-404-popular {
  max-width: 980px;
  margin: 30px auto 60px;
  padding: 0 20px;
}
.bw-404-popular h2 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #241A1B;
  margin: 0 0 4px;
}
.bw-404-popular > p {
  text-align: center;
  font-size: 14px;
  color: #6b5b57;
  margin: 0 0 24px;
}
.bw-404-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 767px) {
  .bw-404-grid { grid-template-columns: 1fr; }
  .bw-404 p.bw-404-code { font-size: 64px; }
  .bw-404 { padding-top: 30px; }
}
.bw-404-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  border-left: 3px solid #167A4D;
  box-shadow: 0 2px 10px rgba(36,26,27,0.07);
  padding: 16px 18px;
  text-decoration: none;
}
.bw-404-card:hover { box-shadow: 0 4px 16px rgba(36,26,27,0.12); }
.bw-404-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #5C1220;
  margin: 0 0 6px;
}
.bw-404-card p {
  font-size: 13.5px;
  color: #6b5b57;
  margin: 0;
  line-height: 1.5;
}
