/* =====================================================
   Nov24V5_full.css — Full theme styles + logo fix + a11y
   ===================================================== */

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography & general layout ---------- */
img { padding-right: 6px !important; }
h1 { color: #663399 !important; font-size: 2.5em !important; }
h2 { color: #663399 !important; font-size: 2em !important; font-weight: 700 !important; }
h3 { color: #663399 !important; font-size: 1.6em !important; font-weight: 700 !important; }
h4 { color: #663399 !important; font-size: 1.2em !important; font-weight: 700 !important; }
p { font-size: 18px !important; }

.pages.show .page-title {
  font-size: 2.5em !important;
  font-weight: 700 !important;
  margin: 15px 0 !important;
  color: #663399 !important;
}
.pages.show .course-title { display: none !important; }

/* ---------- Buttons & hovers ---------- */
.preview_quiz_button a,
.preview_quiz_button a:visited { color: #fff !important; }

.Button:hover, .Button a:hover {
  background: #EEFCE9 !important;
  color: #000 !important;
  font-weight: 700 !important;
}
tr:hover, .ig-row:hover { background-color: #EEFCE9 !important; }
a:hover { color: #2A6C14 !important; font-weight: 700 !important; }

/* ---------- Video embeds ---------- */
.video-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.video-column { width: 500px; }
.video-column iframe { width: 100%; height: auto; aspect-ratio: 16/9; }
@media (max-width: 768px) {
  .video-container { flex-direction: column; align-items: center; }
  .video-column { width: 100%; max-width: 600px; }
}

/* ---------- Footer & base spacing ---------- */
.show-content { margin-bottom: 10px !important; }
.ic-Layout-wrapper, #content-wrapper, #content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ---------- Module navigation ---------- */
.module-sequence-footer { z-index: 100 !important; padding-bottom: 100px !important; }
.module-sequence-footer-button--previous .Button,
.module-sequence-footer-button--next .Button {
  background: #46bc23 !important;
  color: #000 !important;
  font-weight: 700 !important;
  position: relative !important;
  z-index: 9999 !important;
  padding: 5px 10px !important;
}
.module-sequence-footer-button--previous,
.module-sequence-footer-button--next { z-index: 10000; }

/* =====================================================
   Global Nav — active state, centering, catalog icon
   ===================================================== */

/* Edge-to-edge white for active menu item */
.ic-app-header__menu-list { padding: 0 !important; }
.ic-app-header__menu-list-item--active,
.ic-app-header__menu-list-item.ic-app-header__menu-list-item--active a.ic-app-header__menu-list-link {
  background: #fff !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Center icons/text for all items */
.ic-app-header__menu-list-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}
.ic-app-header__menu-list-item .menu-item-icon-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}
.ic-app-header__menu-list-item--active a.ic-app-header__menu-list-link {
  height: 100% !important;
  min-height: 70px !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
.ic-app-header__menu-list-item--active .menu-item__text {
  color: #000 !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin-top: 8px !important;
  font-size: 13px !important;
}
.ic-icon-svg { display: block !important; margin: 0 auto !important; }

/* Catalog icon color */
.ic-app-header__menu-list-item a.custom-catalog-link svg * {
  stroke: #fff !important;
  fill: #fff !important;
}

/* =====================================================
   TOP LOGO — full-width, on white, never cropped
   ===================================================== */

/* Stack nav vertically so logo pushes menu down */
.ic-app-header__main-navigation {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: auto !important;
}

/* White background behind logo (extends above and below) */
.ic-app-header__logomark-container {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
  height: auto !important;
  padding: 6px 0 4px 0 !important; /* tightened bottom space */
  margin: 0 !important;
  background: none !important;
  overflow: visible !important;
  border: 0 !important;
  z-index: 1 !important;
}

/* White band across entire width (above and below logo) */
.ic-app-header__logomark-container::before {
  content: "";
  position: absolute;
  top: -6px; /* slight white space above */
  left: -20px;
  right: -20px;
  bottom: 0; /* ends right at bottom edge of logo */
  background: #fff !important;
  z-index: 0;
}

/* Logo: centered on top of white, fills width */
.ic-app-header__logomark {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100px !important;
  background-size: contain !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

/* Responsive logo size adjustments */
@media (max-height: 900px) { .ic-app-header__logomark { height: 110px !important; } }
@media (max-height: 800px) { .ic-app-header__logomark { height: 120px !important; } }
@media (max-height: 700px) { .ic-app-header__logomark { height: 100px !important; } }

/* Menu just under the logo */
.ic-app-header__menu-list { margin-top: 6px !important; }

/* Keep expand toggle above everything */
.ic-app-header__secondary-navigation {
  z-index: 10000 !important;
  position: relative !important;
}

/* =====================================================
   Footer — centered image with two accessible links
   ===================================================== */
#footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background: transparent;
  color: #000;
  padding: 8px 0 !important;
  text-align: center;
  display: flex;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  position: relative;
  border-top: 1px solid #d3d3d3;
}
.combined-logo-wrapper {
  position: relative;
  display: inline-block;
  width: 220px !important;
  height: auto !important;
  margin: 0 !important;
}
.combined-logo { width: 100% !important; height: auto !important; display: block; }
.logo-link {
  position: absolute !important;
  top: 0;
  bottom: 0;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  text-decoration: none;
}
.logo-link.left-side { left: 0; width: 25%; }
.logo-link.right-side { right: 0; width: 62.5%; }

/* =====================================================
   Cards (optional)
   ===================================================== */
.card-container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; max-width: 1200px; margin: 0 auto; }
.card {
  flex: 1 1 calc(25% - 40px);
  background-color: #f5f0ff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
  margin: 10px;
}
.card:hover { transform: scale(1.05); }
@media (max-width: 1200px) { .card { flex: 1 1 calc(33.333% - 40px); } }
@media (max-width: 900px) { .card { flex: 1 1 calc(50% - 40px); } }
@media (max-width: 600px) { .card { flex: 1 1 100%; } }

/* =====================================================
   Footer Adjustment (15% Larger Logo, Reduced Padding)
   ===================================================== */
#footer {
  padding: 4px 0 !important; /* reduced padding */
}

.combined-logo-wrapper {
  width: 300px !important; /* increased size by ~15% */
}

@media screen and (max-width: 900px) {
  .combined-logo-wrapper {
    width: 260px !important;
  }
}