/* =============================================================================
 * HUIT K8s Theme — CSS override (runtime-mounted, no rebuild required)
 * Mounted at: /openedx/staticfiles/huit-override.css via ConfigMap subPath
 * Loaded by: HuitCssInjectMiddleware → <link> appended before </head>
 * Scope: Override stock indigo CSS (header, footer, colors, radii, layout)
 * =============================================================================
 */

/* === Global font / colors === */
body, h1, h2, h3, h4, h5, h6, p, label, button {
  font-family: Inter, sans-serif !important;
}

/* === Primary color overrides (brand repaint) === */
:root {
  --primary: #034EA2;
  --secondary: #00D9FF;
}

/* =============================================================================
 * SECTION A: LMS
 * =============================================================================
 */
.course-info.about .main-cta a.register, .course-info.about .main-cta a strong, .course-info.about .main-cta>span.register, .course-info.about .main-cta a.add-to-cart {
  background: #034EA2 !important;
}

p a:not(.btn):hover, p a:not(.btn):focus, p a:visited:not(.btn):hover, p a:visited:not(.btn):focus {
  color: #034EA2 !important;
}

header.global-header {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}

header.global-header .huit-header-top {
  align-items: center !important;
  background: #034EA2 !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 32px !important;
  min-height: 92px !important;
  padding: 0 max(24px, calc((100vw - 1600px) / 2)) !important;
}

header.global-header .header-logo {
  height: 72px !important;
  margin: 0 !important;
  min-width: 280px !important;
}
header.global-header .header-logo a {
  align-items: center !important;
  display: flex !important;
  height: 100% !important;
  text-decoration: none !important;
  margin: 0 !important;
}
header.global-header .header-logo .logo {
  width: 248px !important;
  height: 50px !important;
}
body.indigo-dark-theme header.global-header .header-logo a .logo {
  display: block !important;
}

header.global-header .huit-header-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
  display: flex;
  height: 38px;
  justify-self: center;
  max-width: 560px;
  overflow: hidden;
  width: 100%;
}
header.global-header .huit-header-search input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #374151 !important;
  flex: 1;
  font-size: 16px !important;
  height: 100% !important;
  line-height: 38px !important;
  outline: 0 !important;
  padding: 0 16px 0 22px !important;
  font-family: 'MyriadPro', 'Inter', sans-serif !important;
}
header.global-header .huit-header-search input::placeholder {
  color: #a3a3a3 !important;
}
header.global-header .huit-header-search button {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  color: #034EA2 !important;
  cursor: pointer;
  display: flex;
  font-size: 30px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 14px 0 8px;
  box-shadow: none !important;
}

.theme-toggle-button .light-theme-icon, .theme-toggle-button .dark-theme-icon {
  display: flex !important;
  align-items: center !important; 
}

header.global-header .huit-header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  min-width: 0;
}
header.global-header .theme-toggle-button {
  align-items: center !important;
  color: rgba(255,255,255,0.9) !important;
  display: flex !important;
  gap: 6px !important;
  margin: 0 !important;
}
header.global-header .theme-toggle-button svg {
  height: 18px !important;
  width: 18px !important;
}
header.global-header .theme-toggle-button .light-theme-icon,
header.global-header .theme-toggle-button .dark-theme-icon {
  color: rgba(255,255,255,0.98) !important;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
header.global-header .theme-toggle-button .switch {
  display: inline-block !important;
  height: 28px !important;
  position: relative !important;
  width: 50px !important;
}
header.global-header .theme-toggle-button .switch input {
  height: 0 !important;
  opacity: 0 !important;
  width: 0 !important;
}
header.global-header .theme-toggle-button .slider {
  background-color: rgba(255,255,255,0.32) !important;
  border: 1px solid rgba(255,255,255,0.62) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.22) !important;
}
header.global-header .theme-toggle-button .slider:before {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
}
header.global-header .theme-toggle-button .switch input:checked + .slider {
  background-color: rgba(255,255,255,0.52) !important;
}

header.global-header .huit-auth-links {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 6px;
  white-space: nowrap;
}
header.global-header .huit-auth-links .huit-auth-icon {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  width: 42px;
}
header.global-header .huit-auth-links .huit-auth-icon svg {
  display: block;
  height: 42px;
  width: 42px;
}
header.global-header .huit-auth-links a,
header.global-header .huit-auth-links a:visited {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 0 !important;
  text-decoration: none !important;
}
header.global-header .huit-auth-links a:hover {
  text-decoration: underline !important;
}

header.global-header .huit-user-menu {
  align-items: center;
  display: flex;
}
header.global-header .huit-user-menu a,
header.global-header .huit-user-menu button,
header.global-header .huit-user-menu .toggle-user-dropdown {
  color: #fff !important;
}

/* User dropdown: nav-item wrapper */
header.global-header .huit-user-menu .nav-item {
  align-items: center;
  display: flex !important;
  position: static;
}
header.global-header .huit-user-menu .nav-item-dropdown {
  position: relative !important;
}

/* Combined trigger: avatar + username + caret */
header.global-header .huit-user-menu .toggle-user-dropdown {
  align-items: center;
  cursor: pointer;
  display: flex !important;
  gap: 8px;
  padding: 4px 6px;
  white-space: nowrap;
}
header.global-header .huit-user-menu .user-image-frame {
  border-radius: 50%;
  flex-shrink: 0;
  height: 32px;
  object-fit: cover;
  width: 32px;
}
header.global-header .huit-user-menu .huit-caret-icon {
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
header.global-header .huit-user-menu .toggle-user-dropdown[aria-expanded="true"] .huit-caret-icon {
  transform: rotate(180deg);
}

/* Dropdown panel — hidden by default */
header.global-header .huit-user-menu .dropdown-user-menu {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  display: flex !important;
  flex-direction: column;
  min-width: 180px;
  padding: 6px 0;
  position: absolute !important;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;
}
header.global-header .huit-user-menu .dropdown-user-menu.hidden {
  display: none !important;
}

/* Dropdown items */
header.global-header .huit-user-menu .dropdown-user-menu .dropdown-item {
  display: block !important;
  padding: 0;
}
header.global-header .huit-user-menu .dropdown-user-menu .dropdown-item a,
header.global-header .huit-user-menu .dropdown-user-menu .dropdown-item a:visited {
  color: #374151 !important;
  display: block !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 9px 18px !important;
  text-decoration: none !important;
  white-space: nowrap;
}
header.global-header .huit-user-menu .dropdown-user-menu .dropdown-item a:hover {
  background: #f3f4f6;
  color: #034EA2 !important;
}

/* Dark theme dropdown */
body.indigo-dark-theme header.global-header .huit-user-menu .dropdown-user-menu {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
}
body.indigo-dark-theme header.global-header .huit-user-menu .dropdown-user-menu .dropdown-item a,
body.indigo-dark-theme header.global-header .huit-user-menu .dropdown-user-menu .dropdown-item a:visited {
  color: #e5e7eb !important;
}
body.indigo-dark-theme header.global-header .huit-user-menu .dropdown-user-menu .dropdown-item a:hover {
  background: #374151;
}
body.indigo-dark-theme header.global-header .huit-header-menu {
  background: #0D0D0E !important;
}
body.indigo-dark-theme header.global-header .huit-header-menu a,
body.indigo-dark-theme header.global-header .huit-header-menu a:visited {
  color: #e5e5e5 !important;
}

header.global-header .huit-header-menu {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 72px;
  height: 58px;
  justify-content: flex-start;
  padding: 0 max(24px, calc((100vw - 1600px) / 2)) !important;
}
header.global-header .huit-header-menu a,
header.global-header .huit-header-menu a:visited {
  color: #3f3f46 !important;
  display: inline-flex !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 0 !important;
  text-decoration: none !important;
}
header.global-header .huit-header-menu a:hover {
  color: #034EA2 !important;
}
@media (max-width: 991px) {
  header.global-header .huit-header-menu a,
  header.global-header .huit-header-menu a:visited {
    width: 100% !important;
    padding: 12px 14px !important;
  }
}

/* Disable stock duplicated mobile container; we only use .huit-header-menu */
header.global-header #mobile-menu.mobile-menu {
  display: none !important;
}

header.global-header .hamburger-menu {
  display: none !important;
}

header.global-header .hamburger-menu {
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  height: 22px;
  width: 22px;
  margin-top: 12px;
}
header.global-header .hamburger-menu .line {
  background: #fff;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform .2s ease, opacity .2s ease;
  width: 22px;
}

header.global-header .hamburger-menu[aria-expanded="true"] .line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.global-header .hamburger-menu[aria-expanded="true"] .line:nth-child(2),
header.global-header .hamburger-menu[aria-expanded="true"] .line:nth-child(3) {
  opacity: 0;
}
header.global-header .hamburger-menu[aria-expanded="true"] .line:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
  header.global-header .huit-header-top {
    gap: 16px !important;
    min-height: 84px !important;
    padding: 0 16px !important;
  }
  header.global-header .header-logo {
    min-width: 220px !important;
  }
  header.global-header .header-logo .logo {
    height: 42px !important;
    width: 208px !important;
  }
  header.global-header .huit-header-search input {
    font-size: 16px !important;
  }
  header.global-header .huit-header-menu {
    gap: 28px;
    padding: 0 16px !important;
  }
  header.global-header .huit-header-menu a {
    font-size: 20px !important;
  }
}

@media (max-width: 991px) {
  header.global-header .huit-header-top {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  header.global-header .header-logo, header.global-header .huit-header-actions {
    height: 52px !important;
    min-width: 0 !important;
    order: 1;
  }
  header.global-header .header-logo a {
    margin-left: 40px !important;
  }
  header.global-header .header-logo .logo {
    height: 40px !important;
    width: 190px !important;
  }
  header.global-header .huit-header-actions {
    gap: 10px;
    margin-left: auto;
    order: 2;
  }
  header.global-header .huit-header-actions .huit-auth-links {
    font-size: 15px;
  }
  header.global-header .huit-header-search {
    order: 4;
    max-width: none;
    width: 100%;
  }
  header.global-header .huit-auth-links .huit-auth-icon {
    display: none;
  }
  header.global-header .hamburger-menu {
    display: inline-flex !important;
    order: 3;
  }
  header.global-header .huit-header-menu {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    gap: 0;
    height: auto;
    overflow: hidden;
    padding: 0 !important;
    width: 100%;
  }
  header.global-header .huit-header-menu a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: block !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    padding: 12px 14px !important;
    white-space: normal;
  }

  body.indigo-dark-theme header.global-header .huit-header-menu a {
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }

  body.mobile-menu-open header.global-header .huit-header-menu {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  header.global-header .huit-header-top {
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  header.global-header .header-logo, header.global-header .huit-header-actions {
    height: 46px !important;
  }
  header.global-header .header-logo .logo {
    height: 34px !important;
    width: 162px !important;
  }
  header.global-header .theme-toggle-button {
    gap: 4px !important;
  }
  header.global-header .theme-toggle-button svg {
    height: 16px !important;
    width: 16px !important;
  }
  header.global-header .huit-header-actions .huit-auth-links {
    font-size: 14px;
  }
  header.global-header .huit-header-search {
    height: 28px;
  }
  header.global-header .huit-header-search input {
    font-size: 16px !important;
    line-height: 28px !important;
    padding: 0 12px !important;
  }
  header.global-header .huit-header-search button {
    font-size: 24px;
    height: 28px;
    padding: 0 10px 0 6px;
  }
  header.global-header .huit-header-menu a {
    font-size: 16px !important;
    padding: 11px 12px !important;
  }
}

@media (max-width: 575px) {
  header.global-header .huit-header-actions .huit-auth-links {
    font-size: 13px;
    gap: 4px;
  }
  header.global-header .huit-header-actions {
    gap: 8px;
  }
  header.global-header .theme-toggle-button {
    display: none !important;
  }
}

.huit-footer {
  background: #034EA2;
  color: #fff;
  font-family: 'MyriadPro', 'Inter', sans-serif;
  padding: 40px max(24px, calc((100vw - 1600px) / 2));
}

.huit-footer-inner {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  justify-content: space-between;
}

.huit-footer-col--left {
  grid-column: span 1;
  border-right: 2px solid #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-right: 40px;
}

.huit-footer-col--right {
  grid-column: span 1;
  height: 100%;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  gap: 20px 32px;
}

.huit-footer-logo-link {
  display: block;
  line-height: 0;
  text-decoration: none !important;
}

.huit-footer-logo {
  height: 70px;
  max-height: 68px;
  width: auto;
}

.huit-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  width: 100%;
  justify-content: space-between;
}

.huit-social-btn {
  align-items: center;
  border-radius: 12px;
  color: #fff;
  display: flex;
  height: 44px;
  justify-content: center;
  text-decoration: none !important;
  transition: opacity .2s ease, transform .15s ease;
  width: 44px;
}

.huit-social-btn:hover,
.huit-social-btn:focus {
  opacity: .85;
  text-decoration: none !important;
  transform: translateY(-2px);
}

.huit-social-btn svg {
  height: 24px;
  width: 24px;
}

.huit-social-youtube  { background: #FF0000; }
.huit-social-instagram{ background: #F77737; }
.huit-social-zalo     { background: transparent; padding: 0; overflow: hidden; }
.huit-social-zalo svg { height: 44px; width: 44px; }
.huit-social-facebook { background: #1877F2; }
.huit-social-tiktok   { background: #010101; }

.huit-footer-school-name {
  grid-column: span 3;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

.huit-footer-campus {
  align-items: center;
  color: rgba(255,255,255,.9);
  display: flex;
  font-size: 16px;
  gap: 6px;
  line-height: 1.5;
  margin: 0 0 8px;
  white-space: nowrap;
}

.huit-footer-campus-pin {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .75;
}

.huit-footer-campus strong {
  font-weight: 700;
  white-space: nowrap;
}

.huit-footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.huit-footer-contact-label {
  align-items: center;
  color: #fff !important;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 5px;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 12px;
}

.huit-footer-contact-icon {
  display: inline-flex;
  opacity: .75;
}

.huit-footer-phone,
.huit-footer-email {
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.huit-footer-phone:hover,
.huit-footer-email:hover {
  text-decoration: underline !important;
}

.huit-footer-sitemap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.huit-footer-sitemap-link {
  color: #fff !important;
  font-size: 12px;
  text-decoration: none !important;
  white-space: nowrap;
}

.huit-footer-sitemap-link:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.huit-footer-contacts, .huit-footer-sitemap-container {
  padding-top: 10px;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .huit-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .huit-footer-col--left {
    justify-content: space-around;
    border-right: none;
    border-bottom: 2px solid #fff;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    padding-right: 0;
  }

  .huit-footer-logo {
    height: 50px;
  }
  
  .huit-footer-social {
    margin-top: 0;
    justify-content: space-around;
  }

  .huit-footer-col--right {
    grid-template-columns: max-content max-content;
    justify-content: center;
    padding-top: 24px;
  }

  .huit-footer-school-name {
    grid-column: span 2;
    margin-bottom: 0;
  }

  .huit-footer-campuses {
    grid-column: span 2;
  }

  .huit-footer-contacts, .huit-footer-sitemap-container {
    padding-top: 0;
  }
}

/* Tablet: stack left/right vertically, right shrinks to 2 cols */
@media (max-width: 991px) {

}

/* Large mobile: right col 2 columns */
@media (max-width: 767px) {

}

/* Small mobile: single column, compact padding */
@media (max-width: 575px) {
  .huit-footer-school-name {
    font-size: 16px !important;
  }

  .huit-footer-campus strong {
    font-size: 14px !important;
  }

  .huit-footer-campus {
    font-size: 12px !important;
  }

  .huit-footer-contact-label {
    font-size: 14px !important;
    gap: 4px !important;
  }

  .huit-footer-phone, .huit-footer-email {
    font-size: 12px !important;
  }

  .huit-footer-sitemap-link {
    font-size: 12px !important;
  }
}

/* =============================================================================
 * SECTION: Index Slider
 * =============================================================================
 */
.huit-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.huit-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1;
}

@media (max-width: 767px) {
  .huit-slider {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 575px) {
  .huit-slider {
    aspect-ratio: 4 / 3;
  }
}

.huit-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.huit-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.huit-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.huit-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.huit-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.huit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5) !important;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.5s ease-in-out, transform 0.5s ease-in-out !important;
  outline: none !important;
  box-shadow: none !important;
}

.huit-dot.active {
  background: #ffffff !important;
  transform: scale(1.3) !important;
}

.huit-dot:hover {
  background-color: rgba(255, 255, 255, 0.85) !important;
}

/* =============================================================================
 * Course
 * =============================================================================
 */
.courses-container {
  padding-top: 40px !important;
}

.courses-container .courses .courses-listing li .course {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  cursor: pointer !important;
}

.courses-container .courses .courses-listing li .course:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 4px 32px 4px rgba(0, 0, 0, 0.22) !important;
}

.courses-container .courses .courses-listing li .course .course-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.courses-container .courses .courses-listing li .course .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.courses-container .courses .courses-listing li .course .course-info {
  padding: 16px 18px 18px;
}

.courses-container .courses .courses-listing li .course .course-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* .courses-container .courses .courses-listing li .course .course-info h2, .courses-container .courses .courses-listing li .course .course-info .home>header .title>.heading-group p, .home>header .title>.heading-group .courses-container .courses .courses-listing li .course .course-info p, .courses-container .courses .courses-listing li .course .course-info section.outside-app h1, section.outside-app .courses-container .courses .courses-listing li .course .course-info h1 */
.courses-container .courses .courses-listing li .course .course-name {
  height: unset !important;
}

.courses-container .courses .courses-listing li .course .course-name .course-title {
  font-size: 1.05rem;
  font-weight: 700 !important;
}

.courses-container .courses .courses-listing li .course .course-name .course-code,
.courses-container .courses .courses-listing li .course .course-name .course-organization {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #474747 !important;
  font-weight: 500 !important;
}

.courses-container .courses .courses-listing li .course .course-date {
  font-size: 0.875rem;
  margin-top: 0;
  line-height: 1.5;
  border-top: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #474747 !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.courses-container .courses .courses-listing li .course .course-date.localized_datetime {
  font-size: 0.875rem;
  margin-top: 0;
  line-height: 1.5;
  border-top: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #474747 !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.courses-container .courses .courses-listing li .course .course-info .course-code {
  display: contents !important;
}

.courses-container .courses .courses-listing li .course .course-info .course-organization {
  margin: 0 !important;
}

/* Dark theme overrides */
body.indigo-dark-theme .courses-container .courses .courses-listing li .course {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  cursor: pointer !important;
}
body.indigo-dark-theme .courses-container .courses .courses-listing li .course:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 4px 32px 4px rgba(255, 255, 255, 0.12) !important;
}
body.indigo-dark-theme .courses-container .courses .courses-listing li .course .course-info .course-title,
body.indigo-dark-theme .courses-container .courses .courses-listing li .course .course-info .course-code,
body.indigo-dark-theme .courses-container .courses .courses-listing li .course .course-info .course-organization,
body.indigo-dark-theme .courses-container .courses .courses-listing li .course .course-date,
body.indigo-dark-theme .courses-container .courses .courses-listing li .course .course-date.localized_datetime {
  color: #F8F8F8 !important;
}
body.indigo-dark-theme .courses-container .courses .courses-listing li .course .course-date,
body.indigo-dark-theme .courses-container .courses .courses-listing li .course .course-date.localized_datetime {
  background: transparent !important;
}

/* Style course tabs to match Image 2 (both non-bootstrap and bootstrap layouts) */
.wrapper-course-material,
nav.course-tabs {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  /* padding: 12px max(24px, calc((100vw - 1600px) / 2)) !important; */
  padding: 12px 0 !important;
}

.wrapper-course-material .course-material,
nav.course-tabs .navbar-nav {
  background: #ffffff !important;
  background-color: #ffffff !important;
  max-width: 1600px;
  margin: 0 auto;
}

.wrapper-course-material .tabs.course-tabs,
nav.course-tabs .navbar-nav {
  border-bottom: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 32px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  flex-direction: row !important;
}

.wrapper-course-material .tabs.course-tabs li,
nav.course-tabs .navbar-nav li.nav-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: none !important;
}

.wrapper-course-material .tabs.course-tabs li a,
.wrapper-course-material .tabs.course-tabs li button,
nav.course-tabs .navbar-nav li.nav-item a.nav-link {
  border: none !important;
  border-bottom: 3px solid transparent !important;
  color: #4b5563 !important; /* medium-dark gray */
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 8px 0 12px 0 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  background-color: transparent !important;
  display: inline-block !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.wrapper-course-material .tabs.course-tabs li a:hover,
.wrapper-course-material .tabs.course-tabs li button:hover,
nav.course-tabs .navbar-nav li.nav-item a.nav-link:hover {
  color: #034EA2 !important; /* HUIT Primary */
  background: transparent !important;
  background-color: transparent !important;
}

.wrapper-course-material .tabs.course-tabs li a.active,
.wrapper-course-material .tabs.course-tabs li button.active,
.wrapper-course-material .tabs.course-tabs li.active a,
.wrapper-course-material .tabs.course-tabs li.active button,
nav.course-tabs .navbar-nav li.nav-item.active a.nav-link {
  color: #034EA2 !important; /* HUIT Primary */
  border-bottom: 3px solid #034EA2 !important;
  font-weight: 600 !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Dark theme overrides for course tabs if needed */
body.indigo-dark-theme .wrapper-course-material,
body.indigo-dark-theme nav.course-tabs {
  background: #111827 !important;
  background-color: #111827 !important;
  border-bottom: 1px solid #374151 !important;
}

body.indigo-dark-theme .wrapper-course-material .course-material,
body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs,
body.indigo-dark-theme nav.course-tabs .navbar-nav {
  background: #111827 !important;
  background-color: #111827 !important;
}

body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li a,
body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li button,
body.indigo-dark-theme nav.course-tabs .navbar-nav li.nav-item a.nav-link {
  color: #9ca3af !important;
}

body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li a:hover,
body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li button:hover,
body.indigo-dark-theme nav.course-tabs .navbar-nav li.nav-item a.nav-link:hover {
  color: #38bdf8 !important; /* lighter secondary or primary */
}

body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li a.active,
body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li button.active,
body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li.active a,
body.indigo-dark-theme .wrapper-course-material .tabs.course-tabs li.active button,
body.indigo-dark-theme nav.course-tabs .navbar-nav li.nav-item.active a.nav-link {
  color: #38bdf8 !important;
  border-bottom: 3px solid #38bdf8 !important;
}

/* =============================================================================
 * SECTION B: CMS Studio overrides
 * Scoped to body.view-dashboard / .wrapper-header-primary (Studio markers).
 * =============================================================================
 */
.window-wrap #content.content-wrapper {
  margin-top: var(--header-height) !important;
}

/* If preview menu is present, it already pushes the content wrapper down, so reset content margin-top */
.window-wrap .wrapper-preview-menu ~ #content.content-wrapper {
  margin-top: 0 !important;
}

@media (max-width: 1200px) {
  header.global-header .huit-header-top {
    min-height: 110px !important;
  }
}

@media (max-width: 991px) {
  .window-wrap #content.content-wrapper {
    margin-top: 0 !important;
  }
}

/* =============================================================================
 * SECTION C: Instructor Dashboard customizations
 * Scoped to .view-instructordash (Instructor Dashboard)
 * =============================================================================
 */

/* 0. Force visibility of global header on instructor dashboard */
body.view-instructordash header.global-header {
    display: block !important;
}

/* 1. Hide search bar, theme toggle, desktop header menu, and hamburger menu */
body.view-instructordash header.global-header .huit-header-search {
    display: none !important;
}
body.view-instructordash header.global-header .theme-toggle-button {
    display: none !important;
}
body.view-instructordash header.global-header .huit-header-menu {
    display: none !important;
}
body.view-instructordash header.global-header .hamburger-menu {
    display: none !important;
}

/* 1b. Custom User Dropdown styling for Instructor Dashboard */
body.view-instructordash header.global-header .huit-user-menu .toggle-user-dropdown {
    background-color: #ffffff !important;
    border-radius: 4px !important;
    padding: 6px 16px !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

body.view-instructordash header.global-header .huit-user-menu .toggle-user-dropdown .user-image-frame {
    display: none !important;
}

body.view-instructordash header.global-header .huit-user-menu .toggle-user-dropdown .username {
    color: #034EA2 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

body.view-instructordash header.global-header .huit-user-menu .toggle-user-dropdown .huit-caret-icon {
    color: #034EA2 !important;
}

body.view-instructordash header.global-header .main-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

/* 2. Hide default title and studio link */
.view-instructordash .instructor-dashboard-title {
    display: none !important;
}
.view-instructordash .wrap-instructor-info.studio-view {
    display: none !important;
}

/* 3. Style the preview menu bar to match Image 3 */
.wrapper-preview-menu {
    margin-top: 150px !important; /* Fallback for desktop with full header */
    margin-top: var(--header-height) !important;
}

.view-instructordash .wrapper-preview-menu {
    background-color: #034EA2 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 10px max(24px, calc((100vw - 1600px) / 2)) !important;
    box-shadow: none !important;
    margin-top: 92px !important; /* Fallback for instructor page */
    margin-top: var(--header-height) !important;
}


.view-instructordash .wrapper-preview-menu .preview-menu {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff !important;
}

.view-instructordash .wrapper-preview-menu .preview-actions {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex;
    align-items: center;
}

.view-instructordash .wrapper-preview-menu .action-preview {
    margin: 0 !important;
    padding: 0 !important;
}

.view-instructordash .wrapper-preview-menu .action-preview-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-instructordash .wrapper-preview-menu .action-preview-label {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    margin: 0 !important;
}

.view-instructordash .wrapper-preview-menu .action-preview-select {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    padding: 6px 30px 6px 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
}

.view-instructordash .wrapper-preview-menu .action-preview-select option {
    background-color: #034EA2 !important;
    color: #ffffff !important;
}

.view-instructordash .wrapper-preview-menu .action-preview-username-container {
    display: none !important;
}

.view-instructordash .wrapper-preview-menu .studio-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-instructordash .wrapper-preview-menu .studio-link-container .view-in-studio-label {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.view-instructordash .wrapper-preview-menu .view-in-studio {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 6px 16px !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease !important;
    box-shadow: none !important;
}

.view-instructordash .wrapper-preview-menu .view-in-studio:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* 4. Style custom banner */
.view-instructordash .instructor-banner-custom {
    background: linear-gradient(90deg, #F0F4FA 0%, #E3EBF5 100%) !important;
    border-radius: 12px !important;
    padding: 30px 40px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.view-instructordash .instructor-banner-custom .banner-title-column {
    flex: 1;
}

.view-instructordash .instructor-banner-custom .banner-title {
    color: #034EA2 !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    font-family: 'MyriadPro', 'Inter', sans-serif !important;
}

.view-instructordash .instructor-banner-custom .banner-illustration-column {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Style sub-tab navigation buttons as rounded pills with active gold border */
.view-instructordash .instructor-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    list-style: none !important;
}

.view-instructordash .instructor-nav .nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

.view-instructordash .instructor-nav .nav-item button.btn-link {
    background-color: #034EA2 !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    border-radius: 24px !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

.view-instructordash .instructor-nav .nav-item button.btn-link:hover {
    background-color: #023873 !important;
    color: #ffffff !important;
}

.view-instructordash .instructor-nav .nav-item button.btn-link.active-section {
    border-color: #FCC80D !important;
    background-color: #034ea2 !important;
    color: #ffffff !important;
}

body.view-in-course .wrapper-preview-menu .preview-menu {
    padding: 15px 0 !important;
}

/* Responsive adjustments for course preview menu */
@media (max-width: 991px) {
  .wrapper-preview-menu,
  .view-instructordash .wrapper-preview-menu {
    margin-top: 0 !important;
  }
  .wrapper-preview-menu {
    padding: 12px 16px !important;
  }
  .wrapper-preview-menu .preview-menu,
  .view-instructordash .wrapper-preview-menu .preview-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .wrapper-preview-menu .preview-actions,
  .view-instructordash .wrapper-preview-menu .preview-actions {
    width: 100% !important;
  }
  .wrapper-preview-menu .action-preview,
  .view-instructordash .wrapper-preview-menu .action-preview {
    width: 100% !important;
  }
  .wrapper-preview-menu .action-preview-form,
  .view-instructordash .wrapper-preview-menu .action-preview-form {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .wrapper-preview-menu .action-preview-label,
  .view-instructordash .wrapper-preview-menu .action-preview-label {
    text-align: left !important;
    margin-bottom: 2px !important;
  }
  .wrapper-preview-menu .action-preview-select,
  .view-instructordash .wrapper-preview-menu .action-preview-select {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .wrapper-preview-menu .action-preview-username-container,
  .view-instructordash .wrapper-preview-menu .action-preview-username-container {
    width: 100% !important;
    margin-top: 4px !important;
  }
  .wrapper-preview-menu .action-preview-username,
  .view-instructordash .wrapper-preview-menu .action-preview-username {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .wrapper-preview-menu .studio-link-container,
  .view-instructordash .wrapper-preview-menu .studio-link-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 12px !important;
  }
  .wrapper-preview-menu .view-in-studio,
  .view-instructordash .wrapper-preview-menu .view-in-studio {
    flex-grow: 1 !important;
    text-align: center !important;
  }

  /* Responsive styles for Instructor Dashboard Banner */
  .view-instructordash .instructor-banner-custom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 16px !important;
    gap: 16px !important;
  }
  .view-instructordash .instructor-banner-custom .banner-title-column {
    width: 100% !important;
  }
  .view-instructordash .instructor-banner-custom .banner-title {
    font-size: 22px !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }
  .view-instructordash .instructor-banner-custom .banner-illustration-column {
    margin: 0 auto !important;
  }
  .view-instructordash .instructor-banner-custom .banner-illustration-column svg {
    width: 150px !important;
    height: 95px !important;
  }
}