/* EDU Web — Coursera-inspired desktop shell. Mobile keeps bottom nav unchanged. */

html.edu-view-web {
  --edu-web-navy: #0B1426;
  --edu-web-navy-hover: #152238;
  --edu-web-navy-soft: #1A2942;
  --edu-canvas: #f3f2ef;
}

html.edu-view-web,
html.edu-view-web body.edu-view-web-body {
  min-height: 100%;
}

html.edu-view-web body.edu-view-web-body {
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.9);
  background: #f3f2ef;
}

.edu-web-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.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;
}

/* —— Header (Coursera-style) —— */

.edu-web-header {
  position: sticky;
  top: 0;
  z-index: 12000;
  background: #fff;
  border-bottom: 1px solid #d1d7dc;
  overflow-x: clip;
  overflow-y: visible;
}

.edu-web-header__tier--audience {
  background: linear-gradient(180deg, #0b1426 0%, #070d18 100%);
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edu-web-header__audience {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.edu-web-header__audience::-webkit-scrollbar {
  display: none;
}

.edu-web-header__audience-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.edu-web-header__audience-link:hover,
.edu-web-header__audience-link:focus-visible {
  color: #ffffff;
  background: #f97316;
  border-bottom-color: #f97316;
  outline: none;
}

.edu-web-header__audience-link.is-active {
  color: #ffffff;
  border-bottom-color: #f97316;
  background: rgba(255, 255, 255, 0.06);
}

.edu-web-header__audience-link.is-active:hover,
.edu-web-header__audience-link.is-active:focus-visible {
  background: #f97316;
}

.edu-web-header__audience-mobile {
  display: none;
}

.edu-web-header__tier--main {
  position: relative;
  background: #fff;
  overflow: visible;
}

.edu-web-header__bar {
  position: relative;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 10px 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "left search actions toggle";
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  overflow: visible;
}

.edu-web-header__left {
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.edu-web-header__brand-zone {
  display: contents;
}

.edu-web-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0B1426;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 0;
}

.edu-web-header__logo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #fff;
  background: #0B1426;
  flex-shrink: 0;
}

.edu-web-header__name {
  font-size: 21px;
  letter-spacing: -0.02em;
  color: #0B1426;
}

.edu-web-header__link--degrees {
  color: #6a6f73;
  font-weight: 700;
}

.edu-web-header__explore {
  display: inline-flex;
}

.edu-web-header__dropdown {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.edu-web-header__explore-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.edu-web-header__explore-trigger .edu-nav-icon {
  width: 16px;
  height: 16px;
  color: #6a6f73;
  transition: transform 0.18s ease;
}

.edu-web-header__dropdown:hover .edu-web-header__explore-trigger .edu-nav-icon,
.edu-web-header__dropdown.is-open .edu-web-header__explore-trigger .edu-nav-icon {
  transform: rotate(180deg);
}

.edu-web-header__mega {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  width: 100%;
  max-height: none;
  overflow: visible;
  background: #fff;
  border-block: 1px solid #d1d7dc;
  border-inline: none;
  border-radius: 0;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.12);
  z-index: 13000;
}

.edu-web-header__mega::before {
  content: "";
  position: absolute;
  bottom: 100%;
  inset-inline: 0;
  height: 12px;
}

.edu-web-header__tier--main:has(.edu-web-header__dropdown:hover) .edu-web-header__mega,
.edu-web-header__tier--main:has(.edu-web-header__dropdown:focus-within) .edu-web-header__mega,
.edu-web-header__tier--main:has(.edu-web-header__dropdown.is-open) .edu-web-header__mega,
.edu-web-header__tier--main:has(.edu-web-header__mega:hover) .edu-web-header__mega {
  display: block;
}

@media (min-width: 821px) {
  .edu-web-header__dropdown {
    position: static;
  }

  .edu-web-header__mega-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding-inline: 24px;
    box-sizing: border-box;
    width: 100%;
    min-height: auto;
  }

  .edu-web-header__mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .edu-web-header__mega-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.edu-web-header__mega-inner {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  min-height: auto;
}

.edu-web-header__mega-side {
  padding: 24px 20px;
  background: #f7f9fa;
  border-inline-end: 1px solid #e4e8ec;
}

.edu-web-header__mega-side h3,
.edu-web-header__mega-head h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6f73;
}

.edu-web-header__explore-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.edu-web-header__explore-tab {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1c1d1f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.edu-web-header__explore-tab:hover,
.edu-web-header__explore-tab.is-active {
  background: #fff;
  color: #0B1426;
}

.edu-web-header__mega-panels {
  min-width: 0;
}

.edu-web-header__mega-panel {
  display: none;
  padding: 24px 26px 26px;
  min-width: 0;
}

.edu-web-header__mega-panel.is-active {
  display: block;
}

.edu-web-header__mega-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.edu-web-header__mega-cats a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7f9fa;
  border: 1px solid #e4e8ec;
  text-decoration: none;
  color: #1c1d1f;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.edu-web-header__mega-cats a:hover {
  background: #fff;
  border-color: #c3c9d1;
  color: #0B1426;
}

.edu-web-header__mega-thumb--exam {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--exam-accent, #0B1426) 82%, #fff), var(--exam-accent, #0B1426));
  color: #fff;
  font-size: 20px;
}

.edu-web-header__link--teach {
  color: #0B1426 !important;
  font-weight: 800 !important;
}

.edu-web-header__link--teach:hover {
  color: #152238 !important;
}

.edu-web-header__mega-side-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #0B1426;
  text-decoration: none;
}

.edu-web-header__mega-side-link:hover {
  text-decoration: underline;
}

.edu-web-header__mega-main {
  padding: 20px 22px 22px;
  min-width: 0;
}

.edu-web-header__mega-panels .edu-web-header__mega-head {
  margin-bottom: 14px;
}

.edu-web-header__mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.edu-web-header__mega-head a {
  font-size: 13px;
  font-weight: 800;
  color: #0B1426;
  text-decoration: none;
  white-space: nowrap;
}

.edu-web-header__mega-head a:hover {
  text-decoration: underline;
}

.edu-web-header__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.edu-web-header__mega-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #1c1d1f;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.edu-web-header__mega-card:hover {
  background: #f7f9fa;
  box-shadow: inset 0 0 0 1px #e4e8ec;
}

.edu-web-header__mega-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eceff3;
}

.edu-web-header__mega-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-web-header__mega-card-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.edu-web-header__mega-card-text strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edu-web-header__mega-card-text small {
  font-size: 12px;
  font-weight: 600;
  color: #6a6f73;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edu-web-header__mega-empty {
  margin: 0;
  padding: 24px 8px;
  color: #6a6f73;
  font-size: 14px;
  font-weight: 600;
}

.edu-web-header__mega-inner--solo {
  grid-template-columns: 1fr;
}

@media (max-width: 1199px) and (min-width: 821px) {
  .edu-web-header__mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .edu-web-header__dropdown {
    width: 100%;
  }

  .edu-web-header__mega {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border-block: 1px solid #e4e8ec;
  }

  .edu-web-header__tier--main:has(.edu-web-header__dropdown:hover) .edu-web-header__mega,
  .edu-web-header__tier--main:has(.edu-web-header__dropdown:focus-within) .edu-web-header__mega {
    display: none;
  }

  .edu-web-header__tier--main:has(.edu-web-header__dropdown.is-open) .edu-web-header__mega {
    display: block;
  }

  .edu-web-header__mega-inner {
    grid-template-columns: 1fr;
  }

  .edu-web-header__mega-side {
    border-inline-end: 0;
    border-bottom: 1px solid #e4e8ec;
  }

  .edu-web-header__mega-grid {
    grid-template-columns: 1fr;
  }

  .edu-web-header__explore-trigger {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d1d7dc;
    border-radius: 10px;
    background: #fff;
    color: #1c1d1f;
    font-size: 15px;
    font-weight: 800;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(11, 20, 38, 0.12);
    position: relative;
    z-index: 2;
    cursor: pointer;
  }

  .edu-web-header__dropdown.is-open .edu-web-header__explore-trigger {
    border-color: #0B1426;
    background: rgba(11, 20, 38, 0.06);
    color: #0B1426;
  }

  .edu-web-header__explore-trigger .edu-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
  }

  .edu-web-header__mega-side h3 {
    display: none;
  }

  .edu-web-header__explore-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .edu-web-header__explore-tabs::-webkit-scrollbar {
    display: none;
  }

  .edu-web-header__explore-tabs li {
    flex: 0 0 auto;
  }

  .edu-web-header__explore-tab {
    width: auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #e4e8ec;
    background: #fff;
  }

  .edu-web-header__explore-tab.is-active {
    border-color: #0B1426;
    background: rgba(11, 20, 38, 0.08);
    color: #0B1426;
  }

  .edu-web-header__mega-side {
    padding: 14px 12px;
  }

  .edu-web-header__mega-panels {
    padding: 0 12px 12px;
  }
}

.edu-web-header__toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d1d7dc;
  background: #fff;
  color: #0B1426;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(11, 20, 38, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.edu-web-header__toggle:hover {
  border-color: #0B1426;
  background: rgba(11, 20, 38, 0.06);
}

.edu-web-header__toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 14px;
  gap: 4px;
  flex-shrink: 0;
}

.edu-web-header__toggle-icon > span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

html.edu-view-web.edu-web-nav-open .edu-web-header__toggle {
  border-color: #0B1426;
  background: rgba(11, 20, 38, 0.1);
  color: #0B1426;
  box-shadow: 0 0 0 1px rgba(11, 20, 38, 0.12);
}

html.edu-view-web.edu-web-nav-open .edu-web-header__toggle-icon > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

html.edu-view-web.edu-web-nav-open .edu-web-header__toggle-icon > span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

html.edu-view-web.edu-web-nav-open .edu-web-header__toggle-icon > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.edu-web-header__search-band {
  display: none;
}

.edu-web-header__search {
  grid-area: search;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 4px 4px 18px;
  border: 1px solid #1c1d1f;
  border-radius: 999px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.edu-web-header__search:focus-within {
  border-color: #0B1426;
  box-shadow: 0 0 0 1px #0B1426;
}

.edu-web-header__search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1c1d1f;
  min-width: 0;
}

.edu-web-header__search input::placeholder {
  color: #6a6f73;
}

.edu-web-header__search-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #0B1426;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.edu-web-header__search-btn:hover {
  background: #152238;
}

.edu-web-header__search-btn .edu-nav-icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

.edu-web-header__nav {
  display: none;
}

.edu-web-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #1c1d1f;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.edu-web-header__link:hover {
  color: #0B1426;
  background: #f7f9fa;
}

.edu-web-header__link.is-active {
  color: #0B1426;
  background: rgba(11, 20, 38, 0.08);
}

.edu-web-header__link.is-featured {
  color: #0B1426;
  font-weight: 800;
}

.edu-web-header__link.is-featured.is-active,
.edu-web-header__link.is-featured:hover {
  background: rgba(11, 20, 38, 0.1);
}

.edu-web-header__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #b32d0f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edu-web-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
  padding-inline-start: 16px;
  border-inline-start: 1px solid #e4e8ec;
}

.edu-web-header__actions-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.edu-web-header__auth-short {
  display: none;
}

.edu-web-header__nav-foot {
  display: none;
}

.edu-web-header__actions .edu-lang-switch {
  padding: 0;
  margin: 0;
  max-width: none;
}

.edu-web-header__actions-lang {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* محوّل اللغة في الهيدر — يتجاوز تنسيق الأدوار (طالب/مدرب/ولي أمر) */
html.edu-view-web .edu-web-header .edu-lang-switch,
html.edu-view-web .edu-web-header__actions-lang .edu-lang-switch,
html.edu-view-web .edu-web-header__actions-lang .edu-lang-dropdown {
  position: relative !important;
  top: auto !important;
  inset-inline-end: auto !important;
  inset-inline-start: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html.edu-view-web .edu-web-header__actions-lang .edu-lang-dropdown__panel {
  inset-inline-end: 0;
  inset-inline-start: auto;
}

html.edu-view-web .edu-web-header__actions-lang .edu-lang-dropdown__trigger {
  pointer-events: auto;
  cursor: pointer;
}

.edu-web-header__icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--edu-web-navy, #000000);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.edu-web-header__icon:hover {
  background: #eef2f7;
  border-color: #cbd5e1;
}

.edu-web-header__icon .edu-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}

.edu-web-header__icon .edu-nav-icon-svg,
.edu-web-header__icon .edu-nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.edu-web-header__icon--profile {
  background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
  overflow: hidden;
}

.edu-web-header__icon--profile.has-photo {
  padding: 0;
  background: #e2e8f0;
}

.edu-web-header__icon--profile.has-initials {
  background: linear-gradient(135deg, var(--brand, #0B1426), #152238);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.edu-web-header__profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.edu-web-header__profile-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-transform: uppercase;
}

.edu-web-header__icon em {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  pointer-events: none;
}

.edu-web-header__auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.edu-web-header__auth--login {
  color: #0B1426;
  border: 0;
  background: transparent;
  padding: 0 10px;
  min-height: 40px;
}

.edu-web-header__auth--login:hover {
  color: #152238;
  background: transparent;
}

.edu-web-header__auth--signup {
  color: #0B1426;
  border: 1px solid #0B1426;
  background: #fff;
  border-radius: 999px;
  padding: 0 16px;
}

.edu-web-header__auth--signup:hover {
  color: #152238;
  background: rgba(11, 20, 38, 0.06);
  border-color: #152238;
}

.edu-web-header__icon--logout {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}

.edu-web-header__icon--logout:hover {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fee2e2;
}

.edu-web-header__quick-logout-label {
  display: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* —— Main content —— */

.edu-web-content {
  flex: 1;
  width: min(1340px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

/* —— Footer (desktop web shell) —— */

.edu-web-footer {
  margin-top: auto;
  background: var(--edu-web-navy);
  color: #fff;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.edu-web-footer__inner {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
}

.edu-web-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  margin-bottom: 40px;
}

.edu-web-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-inline-end: 12px;
}

.edu-web-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.edu-web-footer__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--edu-web-navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(13, 27, 62, 0.35);
}

.edu-web-footer__brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.edu-web-footer__brand small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  max-width: 26ch;
}

.edu-web-footer__stores-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.edu-web-footer__store-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: auto;
}

.edu-web-footer__store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 40px;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.edu-web-footer__store-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.edu-web-footer__store-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.edu-web-footer__col h2 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.edu-web-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.edu-web-footer__col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.edu-web-footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}

.edu-web-footer__social {
  margin-top: 22px;
}

.edu-web-footer__social-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.edu-web-footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-web-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f97316;
  color: #ffffff;
  font-size: 17px;
  line-height: 0;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.edu-web-footer__social-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  fill: #ffffff;
}

.edu-web-footer__social-icon path {
  fill: #ffffff;
}

.edu-web-footer__social-link:hover {
  transform: translateY(-2px);
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.34);
}

.edu-web-footer__social-link:hover .edu-web-footer__social-icon,
.edu-web-footer__social-link:hover .edu-web-footer__social-icon path {
  fill: #ffffff;
}

.edu-web-footer__social-link.is-disabled {
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.edu-web-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.edu-web-footer__copy {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

/* —— Responsive —— */

@media (max-width: 1240px) {
  .edu-web-header__bar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "left search actions toggle";
    column-gap: 12px;
  }

  .edu-web-header__search {
    max-width: none;
  }

  .edu-web-header__name {
    font-size: 18px;
  }
}

@media (max-width: 1100px) {
  .edu-web-header__auth-long {
    display: none;
  }

  .edu-web-header__auth-short {
    display: inline;
  }

  .edu-web-header__auth {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  html.edu-view-web .edu-web-header__actions-lang .edu-lang-dropdown__code {
    display: none;
  }

  .edu-web-footer__grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  }

  .edu-web-footer__brand-col {
    grid-column: 1 / -1;
    padding-inline-end: 0;
  }
}

.edu-web-header__tier--main .edu-web-header__nav {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 820px) {
  .edu-web-header__tier--audience {
    display: none !important;
  }

  .edu-web-header__audience--desktop {
    display: none;
  }

  .edu-web-header__audience-mobile {
    display: block;
    position: relative;
    padding: 10px 14px 12px;
  }

  .edu-web-header__icon.edu-shop-icon {
    display: none !important;
  }

  .edu-web-header__audience-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    text-align: inherit;
    font: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .edu-web-header__audience-trigger:hover,
  .edu-web-header__audience-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    outline: none;
  }

  .edu-web-header__audience-mobile.is-open .edu-web-header__audience-trigger {
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.45);
  }

  .edu-web-header__audience-trigger-icon,
  .edu-web-header__audience-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .edu-web-header__audience-trigger-icon .edu-nav-icon-svg,
  .edu-web-header__audience-option-icon .edu-nav-icon-svg {
    width: 20px;
    height: 20px;
  }

  .edu-web-header__audience-trigger-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.25;
  }

  .edu-web-header__audience-trigger-copy small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.62);
  }

  .edu-web-header__audience-trigger-copy strong {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .edu-web-header__audience-trigger-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease;
  }

  .edu-web-header__audience-trigger-chevron .edu-nav-icon-svg {
    width: 18px;
    height: 18px;
  }

  .edu-web-header__audience-mobile.is-open .edu-web-header__audience-trigger-chevron {
    transform: rotate(180deg);
  }

  .edu-web-header__audience-menu {
    position: absolute;
    inset-inline: 14px;
    top: calc(100% - 4px);
    z-index: 5;
    margin: 0;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #111827 0%, #0b1426 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    max-height: min(72vh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .edu-web-header__audience-menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .edu-web-header__audience-menu[hidden] {
    display: none;
  }

  .edu-web-header__audience-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .edu-web-header__audience-option:hover,
  .edu-web-header__audience-option:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
  }

  .edu-web-header__audience-option.is-active {
    background: rgba(249, 115, 22, 0.16);
    color: #fff;
  }

  .edu-web-header__audience-option.is-active .edu-web-header__audience-option-icon {
    background: rgba(249, 115, 22, 0.22);
    color: #fdba74;
  }

  .edu-web-header__audience-option-label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
  }

  .edu-web-header__audience-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f97316;
  }

  .edu-web-header__audience-option-check .edu-nav-icon-svg {
    width: 18px;
    height: 18px;
  }

  .edu-web-header__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "left actions";
    padding: 12px 16px 10px;
    column-gap: 8px;
    row-gap: 0;
  }

  .edu-web-header__search {
    display: none !important;
  }

  .edu-web-header__dropdown,
  .edu-web-header__mega,
  .edu-web-header__actions-lang,
  .edu-web-header__toggle {
    display: none !important;
  }

  .edu-web-header__actions > a.edu-web-header__icon:not(.edu-web-header__icon--profile):not(.edu-web-header__icon--logout) {
    display: none !important;
  }

  .edu-web-header__icon--logout.edu-web-header__quick-logout {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    flex-shrink: 0;
  }

  .edu-web-header__quick-logout-label {
    display: inline;
    font-size: 12px;
    font-weight: 800;
  }

  .edu-web-header__icon--logout.edu-web-header__quick-logout .edu-nav-icon {
    width: 18px;
    height: 18px;
  }

  html.edu-view-web.edu-web-nav-open .edu-web-header__tier--main .edu-web-header__bar {
    grid-template-areas: "left actions";
  }

  html.edu-view-web.edu-web-nav-open .edu-web-header__nav {
    display: none !important;
  }

  .edu-web-header__left {
    min-width: 0;
    overflow: hidden;
  }

  .edu-web-header__link--degrees {
    display: none;
  }

  .edu-web-header__nav {
    display: none;
  }

  .edu-web-header__actions-auth {
    display: none;
  }

  .edu-web-header__nav-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e4e8ec;
  }

  .edu-web-header__nav-foot .edu-web-header__auth {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
  }

  .edu-web-header__nav-foot .edu-web-header__auth-long,
  .edu-web-header__nav-foot .edu-web-header__auth-short {
    display: inline;
  }

  .edu-web-header__search-band {
    display: none;
  }

  .edu-web-header__link {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
  }

  .edu-web-footer__inner {
    width: calc(100% - 32px);
  }

  .edu-web-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .edu-web-footer__brand-col {
    grid-column: auto;
  }

  .edu-web-footer__store-badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .edu-web-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .edu-web-header__bar {
    padding: 10px 12px;
    column-gap: 6px;
  }

  .edu-web-header__name {
    display: none;
  }

  .edu-web-header__actions {
    gap: 6px;
  }

  html.edu-view-web .edu-web-header__actions-lang .edu-lang-dropdown__trigger {
    min-height: 36px;
    padding: 0 8px;
    gap: 4px;
  }

  .edu-web-header__search-band {
    padding: 10px 12px 12px;
  }

  .edu-web-header__search {
    min-height: 48px;
    padding: 0 14px;
  }

  .edu-web-header__auth {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .edu-web-content {
    width: calc(100% - 24px);
    padding: 20px 0 32px;
  }
}
