/* ==========================================================================
   Derventio Mega Menu
   File name: megamenu.css

   Purpose:
   - Do not fake the layout with fixed widths.
   - Header behaves like the live site content: full-width wrapper with responsive
     horizontal padding, flex row alignment, and no JS width measuring.
   - Mega menu is positioned inside the same header container.
   ========================================================================== */

:root {
    --de-opt2-blue: var(--de-opt2-brand, #004fc4);
    --de-opt2-blue-dark: #06295c;
    --de-opt2-navy: #071f44;
    --de-opt2-text: #10243f;
    --de-opt2-muted: #5e6f84;
    --de-opt2-border: #e4eaf2;
    --de-opt2-surface: #ffffff;
    --de-opt2-bg-soft: #f7faff;
    --de-opt2-school-bg: #eef6ff;
    --de-opt2-college-bg: #f1fbf4;
    --de-opt2-green: #42a35a;
    --de-opt2-teal: #19a5a7;
    --de-opt2-purple: #7947c7;
    /*
    Matches the live-site approach better than hardcoded content widths:
    a fluid page gutter that grows on large screens and shrinks on smaller screens.
  */
    --de-opt2-page-gutter: clamp(24px, 14.7vw, 410px);
}

.de-opt2-header {
    --de-opt2-blue: var(--de-opt2-brand, #004fc4);
}

/* Scoped reset */
.de-opt2-header,
.de-opt2-header * {
  box-sizing: border-box;
}

.de-opt2-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: var(--de-opt2-surface);
  border-bottom: 1px solid var(--de-opt2-border);
  box-shadow: 0 8px 28px rgba(7, 31, 68, 0.06);
  color: var(--de-opt2-text);
  font-family: inherit;
}

.de-opt2-header a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Header layout
   Overrides Bootstrap .container only within this header.
   This makes the header work like the fluid/flex content rows on the site.
   ========================================================================== */

.de-opt2-header > .container {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--de-opt2-page-gutter) !important;
  padding-right: var(--de-opt2-page-gutter) !important;
}

.de-opt2-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-height: 76px;
}

/* Prevent old .header-logo rules affecting this header */
.de-opt2-header .header-logo {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.de-opt2-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 190px;
}

.de-opt2-logo img,
.de-opt2-logo .header-logo {
  display: block;
  width: auto !important;
  max-width: 230px !important;
  height: 64px !important;
  max-height: 64px !important;
  object-fit: contain;
}

/* Desktop nav */
.de-opt2-desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.de-opt2-desktop-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 21px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.de-opt2-desktop-nav li {
  position: relative;
  margin: 0;
  padding: 0;
}

.de-opt2-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #111c2f;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.de-opt2-nav-link:hover,
.de-opt2-nav-link:focus,
.de-opt2-header.is-mega-open .de-opt2-has-mega > .de-opt2-nav-link,
.de-opt2-simple-dropdown:hover > .de-opt2-nav-link {
  color: var(--de-opt2-blue);
  border-bottom-color: var(--de-opt2-blue);
  outline: 0;
}

.de-opt2-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* Actions */
.de-opt2-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: 4px;
}

.de-opt2-actions .btn,
.de-opt2-mobile-demo {
  white-space: nowrap;
}

/* ==========================================================================
   Product mega menu
   Positioned inside the same fluid/flex header container.
   ========================================================================== */

.de-opt2-mega {
  display: none !important;
  position: absolute !important;
  z-index: 10000 !important;
  top: 100%;
  left: var(--de-opt2-page-gutter);
  right: var(--de-opt2-page-gutter);
  width: auto;
  max-width: none !important;
  transform: none !important;
  background: var(--de-opt2-surface);
  border: 1px solid var(--de-opt2-border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 24px 60px rgba(7, 31, 68, 0.12);
}

.de-opt2-header.is-mega-open .de-opt2-mega {
  display: block !important;
}

.de-opt2-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
}

.de-opt2-mega__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 2.1fr) minmax(255px, 0.8fr);
  gap: 26px;
  padding: 24px 42px 28px;
}

.de-opt2-featured-products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.de-opt2-product-card {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36%;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid var(--de-opt2-border);
  border-radius: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  text-decoration: none !important;
}

.de-opt2-product-card:hover,
.de-opt2-product-card:focus {
  transform: translateY(-2px);
  border-color: rgba(0, 79, 196, 0.25);
  box-shadow: 0 18px 40px rgba(7, 31, 68, 0.12);
  outline: 0;
}

.de-opt2-product-card--school {
  background: linear-gradient(135deg, var(--de-opt2-school-bg), #ffffff);
}

.de-opt2-product-card--college {
  background: linear-gradient(135deg, var(--de-opt2-college-bg), #ffffff);
}

.de-opt2-product-card__copy {
  display: block;
  padding: 26px 18px 24px 26px;
  position: relative;
  z-index: 2;
}

.de-opt2-card-icon,
.de-opt2-list-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.de-opt2-card-icon {
  width: 30px !important;
  height: 30px !important;
  margin-bottom: 8px;
}

.de-opt2-list-icon {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
}

.de-opt2-card-icon svg,
.de-opt2-list-icon svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 30px !important;
  max-height: 30px !important;
  overflow: visible;
}

.de-opt2-card-icon path,
.de-opt2-list-icon path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.de-opt2-card-icon--blue {
  color: var(--de-opt2-blue);
}

.de-opt2-card-icon--green,
.de-opt2-list-icon--green {
  color: var(--de-opt2-green);
}

.de-opt2-list-icon--purple {
  color: var(--de-opt2-purple);
}

.de-opt2-list-icon--teal {
  color: var(--de-opt2-teal);
}

.de-opt2-product-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--de-opt2-navy);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.05;
}

.de-opt2-product-card small {
  display: block;
  margin-bottom: 17px;
  color: var(--de-opt2-blue);
  font-size: 14px;
  font-weight: 700;
}

.de-opt2-product-card em {
  display: block;
  max-width: 260px;
  margin-bottom: 20px;
  color: #394a61;
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.de-opt2-product-card b {
  color: var(--de-opt2-blue);
  font-size: 14px;
  font-weight: 800;
}

.de-opt2-card-image {
  position: relative;
  display: block;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 34%, rgba(255,255,255,0.88) 34.5% 36%, rgba(255,255,255,0) 36.5%),
    linear-gradient(145deg, #cbd8e8, #879bb6);
}

.de-opt2-card-image::before,
.de-opt2-card-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #f2c9b2, #a55f45);
  opacity: 0.9;
}

.de-opt2-card-image::before {
  right: 36px;
  width: 44px;
  height: 82px;
}

.de-opt2-card-image::after {
  right: 7px;
  width: 36px;
  height: 65px;
  background: linear-gradient(180deg, #dec2a5, #4f5c6e);
}

.de-opt2-card-image--school {
  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 34%, rgba(255,255,255,0.88) 34.5% 36%, rgba(255,255,255,0) 36.5%),
    linear-gradient(145deg, #d8e6f7, #7d98c8);
}

.de-opt2-card-image--college {
  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 34%, rgba(255,255,255,0.88) 34.5% 36%, rgba(255,255,255,0) 36.5%),
    linear-gradient(145deg, #d8eadf, #80a985);
}

.de-opt2-product-list {
  display: grid !important;
  align-content: start;
  gap: 16px;
  padding: 2px 0 0 4px;
  border-left: 1px solid var(--de-opt2-border);
}

.de-opt2-product-list a {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  padding: 5px 0 5px 28px;
  border-radius: 8px;
  text-decoration: none !important;
}

.de-opt2-product-list a:hover,
.de-opt2-product-list a:focus {
  color: var(--de-opt2-blue);
  outline: 0;
}

.de-opt2-product-list strong {
  display: block;
  color: var(--de-opt2-navy);
  font-size: 15px;
  font-weight: 800;
}

.de-opt2-product-list small {
  display: block;
  margin-top: 3px;
  color: var(--de-opt2-muted);
  font-size: 13px;
}

/* Smaller dropdowns */
.de-opt2-simple-dropdown {
  position: relative;
}

.de-opt2-dropdown {
  position: absolute;
  top: 76px;
  left: 50%;
  z-index: 10000;
  display: none !important;
  width: 270px;
  padding: 10px;
  transform: translateX(-50%);
  background: var(--de-opt2-surface);
  border: 1px solid var(--de-opt2-border);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 45px rgba(7, 31, 68, 0.12);
}

.de-opt2-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.de-opt2-simple-dropdown:hover .de-opt2-dropdown,
.de-opt2-dropdown:hover {
  display: grid !important;
}

.de-opt2-dropdown a {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.de-opt2-dropdown a:hover,
.de-opt2-dropdown a:focus {
  background: var(--de-opt2-bg-soft);
  color: var(--de-opt2-blue);
}

/* Mobile */
.de-opt2-mobile-toggle,
.de-opt2-mobile-menu {
  display: none;
}

@media (max-width: 1400px) {
  :root {
    --de-opt2-page-gutter: 56px;
  }
}

@media (max-width: 1200px) {
  :root {
    --de-opt2-page-gutter: 32px;
  }

  .de-opt2-desktop-nav ul {
    gap: 14px;
  }

  .de-opt2-container {
    gap: 18px;
  }

  .de-opt2-logo {
    min-width: 170px;
  }
}

@media (max-width: 1040px) {
  :root {
    --de-opt2-page-gutter: 20px;
  }

  .de-opt2-container {
    min-height: 66px;
  }

  .de-opt2-desktop-nav,
  .de-opt2-actions,
  .de-opt2-mega {
    display: none !important;
  }

  .de-opt2-logo {
    min-width: 0;
  }

  .de-opt2-logo img,
  .de-opt2-logo .header-logo {
    height: 54px !important;
    max-height: 54px !important;
    max-width: 190px !important;
  }

  .de-opt2-mobile-toggle {
    display: inline-grid;
    gap: 5px;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--de-opt2-navy);
    cursor: pointer;
  }

  .de-opt2-mobile-toggle span {
    display: block !important;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .de-opt2-mobile-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .de-opt2-header.is-open .de-opt2-mobile-toggle span:nth-child(1),
  body.de-opt2-menu-open .de-opt2-mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .de-opt2-header.is-open .de-opt2-mobile-toggle span:nth-child(2),
  body.de-opt2-menu-open .de-opt2-mobile-toggle span:nth-child(2) {
    opacity: 0;
  }

  .de-opt2-header.is-open .de-opt2-mobile-toggle span:nth-child(3),
  body.de-opt2-menu-open .de-opt2-mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .de-opt2-mobile-menu {
    display: none;
    background: var(--de-opt2-surface);
    border-top: 1px solid var(--de-opt2-border);
    box-shadow: 0 20px 44px rgba(7, 31, 68, 0.12);
  }

  .de-opt2-header.is-open .de-opt2-mobile-menu,
  body.de-opt2-menu-open .de-opt2-mobile-menu {
    display: block;
  }

  .de-opt2-mobile-menu__inner {
    display: grid;
    gap: 9px;
    width: 100%;
    max-height: calc(100vh - 66px);
    margin-inline: auto;
    padding: 14px 0 18px;
    overflow-y: auto;
  }

  .de-opt2-mobile-menu__inner > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 6px;
    border-bottom: 1px solid var(--de-opt2-border);
    color: var(--de-opt2-navy);
    font-size: 14px;
    font-weight: 800;
  }

  .de-opt2-mobile-menu__inner > a b {
    color: var(--de-opt2-blue);
  }

  .de-opt2-mobile-card {
    display: grid !important;
    grid-template-columns: 1fr 34%;
    min-height: 93px !important;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid var(--de-opt2-border) !important;
    border-radius: 8px;
  }

  .de-opt2-mobile-card > span:first-child {
    display: grid;
    align-content: center;
    padding: 15px 12px;
  }

  .de-opt2-mobile-card strong {
    color: var(--de-opt2-navy);
    font-size: 17px;
  }

  .de-opt2-mobile-card small {
    margin-top: 3px;
    color: var(--de-opt2-muted);
    font-weight: 600;
  }

  .de-opt2-mobile-card b {
    margin-top: 8px;
    color: var(--de-opt2-blue);
    font-size: 13px;
  }

  .de-opt2-mobile-card--school {
    background: linear-gradient(135deg, var(--de-opt2-school-bg), #fff);
  }

  .de-opt2-mobile-card--college {
    background: linear-gradient(135deg, var(--de-opt2-college-bg), #fff);
  }

  .de-opt2-mobile-card__image {
    display: block;
    min-height: 93px;
    background: linear-gradient(145deg, #d8e6f7, #7d98c8);
  }

  .de-opt2-mobile-card--college .de-opt2-mobile-card__image {
    background: linear-gradient(145deg, #d8eadf, #80a985);
  }

  .de-opt2-mobile-demo {
    margin-top: 8px;
    border: 0 !important;
    min-height: 46px !important;
  }
}


/* ==========================================================================
   Mega menu screenshot preview cards
   Replace the previous screenshot-card CSS with this.
   ========================================================================== */

.de-opt2-featured-products--preview-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.de-opt2-product-card--preview {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(150px, 0.85fr);
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--de-opt2-border);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(7, 31, 68, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

    .de-opt2-product-card--preview:hover,
    .de-opt2-product-card--preview:focus {
        transform: translateY(-2px);
        border-color: var(--de-opt2-brand, var(--de-opt2-blue));
        box-shadow: 0 18px 40px rgba(7, 31, 68, 0.12);
        outline: 0;
    }

    .de-opt2-product-card--preview.de-opt2-product-card--school {
        background: linear-gradient(135deg, #fff7ef 0%, #ffffff 58%);
    }

    .de-opt2-product-card--preview.de-opt2-product-card--college {
        background: linear-gradient(135deg, #effcfb 0%, #ffffff 58%);
    }

    .de-opt2-product-card--preview .de-opt2-product-card__copy {
        display: block;
        padding: 24px 18px 22px 24px;
        position: relative;
        z-index: 2;
    }

    .de-opt2-product-card--preview .de-opt2-product-card__preview {
        position: relative;
        display: block;
        min-height: 100%;
        overflow: hidden;
    }

        .de-opt2-product-card--preview .de-opt2-product-card__preview::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient( 90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.28) 35%, rgba(255,255,255,0) 70% );
            pointer-events: none;
        }

    .de-opt2-product-card--preview .de-opt2-product-card__preview img {
        position: absolute;
        top: 22px;
        right: -34px;
        width: 300px;
        max-width: none;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 14px 34px rgba(7, 31, 68, 0.18);
    }

    .de-opt2-product-card--preview.de-opt2-product-card--school .de-opt2-product-card__preview {
        background: radial-gradient(circle at 80% 35%, rgba(243,117,0,0.22), transparent 44%), linear-gradient(145deg, #fff4e8, #ffd9ad);
    }

    .de-opt2-product-card--preview.de-opt2-product-card--college .de-opt2-product-card__preview {
        background: radial-gradient(circle at 80% 35%, rgba(0,166,163,0.18), transparent 44%), linear-gradient(145deg, #e3faf7, #d8eadf);
    }

    .de-opt2-product-card--preview .de-opt2-product-card__preview::after {
        content: "";
        position: absolute;
        right: 16px;
        bottom: 0;
        width: 42px;
        height: 72px;
        border-radius: 999px 999px 0 0;
        opacity: 0.75;
        z-index: 2;
    }

@media (max-width: 1300px) {
.de-opt2-product-card--preview {
    grid-template-columns: 1fr;
}

    .de-opt2-product-card--preview .de-opt2-product-card__preview {
        min-height: 120px;
    }

            .de-opt2-product-card--preview .de-opt2-product-card__preview img {
                top: 16px;
                right: -18px;
                width: 260px;
            }
}

@media (max-width: 1200px) {
    .de-opt2-featured-products--preview-cards {
        gap: 14px;
    }

    .de-opt2-mega__inner {
        gap: 18px;
        padding: 20px 28px 24px;
    }
}

.de-opt2-product-card--school b,
.de-opt2-product-card--school small,
.de-opt2-product-card--school strong,
.de-opt2-product-card--school:hover b,
.de-opt2-product-card--school:focus b {
    color: #F37500 !important;
}

.de-opt2-product-card--school:hover,
.de-opt2-product-card--school:focus {
    border-color: #F37500 !important;
}

.de-opt2-product-card--college b,
.de-opt2-product-card--college small,
.de-opt2-product-card--college strong,
.de-opt2-product-card--college:hover b,
.de-opt2-product-card--college:focus b {
    color: #00A6A3 !important;
}

.de-opt2-product-card--college:hover,
.de-opt2-product-card--college:focus {
    border-color: #00A6A3 !important;
}

/* Optional subtle teal glow */
.de-opt2-product-card--college:hover,
.de-opt2-product-card--college:focus {
    box-shadow: 0 18px 40px rgba(7, 31, 68, 0.12), 0 0 0 1px rgba(0, 166, 163, 0.15);
}

.de-opt2-card-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 150px;
    margin-bottom: 12px;
    object-fit: contain;
}

.de-opt2-product-card--preview .de-opt2-product-card__copy strong {
    margin-top: 0;
}


.de-opt2-list-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.de-opt2-product-links a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.de-opt2-header[data-de-opt2-menu] .de-opt2-nav-link:hover,
.de-opt2-header[data-de-opt2-menu] .de-opt2-nav-item.is-open > .de-opt2-nav-link {
    color: #f37500 !important;
}

    .de-opt2-header[data-de-opt2-menu] .de-opt2-nav-item.is-open > .de-opt2-nav-link::after,
    .de-opt2-header[data-de-opt2-menu] .de-opt2-nav-link:hover::after {
        background: #f37500 !important;
    }

/* SchoolIP card hover */
.de-opt2-product-card--school:hover,
.de-opt2-product-card--school:focus-within {
    border-color: #f37500 !important;
    box-shadow: 0 12px 32px rgba(243,117,0,0.18) !important;
}

/* SchoolIP links */
.de-opt2-product-card--school .de-opt2-product-card__copy strong,
.de-opt2-product-card--school .de-opt2-product-card__cta,
.de-opt2-product-card--school .de-opt2-product-card__eyebrow {
    color: #f37500 !important;
}

/* right-hand menu hover */
.de-opt2-product-links a:hover {
    border-color: rgba(243,117,0,0.2) !important;
    background: rgba(243,117,0,0.04) !important;
}

    .de-opt2-product-links a:hover strong {
        color: #f37500 !important;
    }

    /* hover icon tint */
    .de-opt2-product-links a:hover .de-opt2-list-logo {
        transform: scale(1.06);
    }

/* active menu underline */
.de-opt2-nav-item.is-open::after {
    background: #f37500 !important;
}


/* ==========================================================================
   Mobile menu final stable implementation
   ========================================================================== */

@media (max-width: 1040px) {
  body.de-opt2-menu-open {
    overflow: hidden;
  }

  .de-opt2-header > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .de-opt2-mobile-menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
    overflow-y: auto;
    background: #ffffff;
    border-top: 1px solid var(--de-opt2-border);
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .de-opt2-header.is-open .de-opt2-mobile-menu,
  body.de-opt2-menu-open .de-opt2-mobile-menu {
    display: block;
  }

  .de-opt2-mobile-menu__inner {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0 0 38px;
    overflow: visible;
  }

  .de-opt2-mobile-section {
    border-bottom: 1px solid var(--de-opt2-border);
    background: #ffffff;
  }

  .de-opt2-mobile-section__toggle,
  .de-opt2-mobile-top-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 0 !important;
    background: #ffffff !important;
    color: var(--de-opt2-navy) !important;
    font: inherit;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-align: left;
    text-decoration: none !important;
    box-sizing: border-box;
  }

  .de-opt2-mobile-top-link {
    border-bottom: 1px solid var(--de-opt2-border) !important;
  }

  .de-opt2-mobile-section__toggle span:first-child,
  .de-opt2-mobile-top-link span:first-child,
  .de-opt2-mobile-section__panel > a > span:first-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .de-opt2-mobile-toggle-chevron,
  .de-opt2-mobile-row-chevron {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    margin-left: 12px !important;
    color: var(--de-opt2-blue) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .de-opt2-mobile-section.is-open > .de-opt2-mobile-section__toggle {
    color: var(--de-opt2-blue) !important;
  }

  .de-opt2-mobile-section.is-open > .de-opt2-mobile-section__toggle > .de-opt2-mobile-toggle-chevron {
    transform: rotate(90deg);
  }

  .de-opt2-mobile-section__panel {
    display: none;
    padding: 0;
    background: #ffffff;
  }

  .de-opt2-mobile-section.is-open > .de-opt2-mobile-section__panel {
    display: block;
  }

  .de-opt2-mobile-section__panel > a:not(.de-opt2-mobile-card) {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 20px 0 28px;
    border: 0;
    border-bottom: 1px solid rgba(228, 234, 242, 0.85);
    background: #ffffff;
    color: var(--de-opt2-navy);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    box-sizing: border-box;
  }

  .de-opt2-mobile-section__panel > a:not(.de-opt2-mobile-card):hover,
  .de-opt2-mobile-section__panel > a:not(.de-opt2-mobile-card):focus,
  .de-opt2-mobile-top-link:hover,
  .de-opt2-mobile-top-link:focus {
    background: color-mix(in srgb, var(--de-opt2-blue) 5%, white) !important;
    color: var(--de-opt2-blue) !important;
    outline: 0;
  }

  .de-opt2-mobile-section__panel > a.de-opt2-mobile-card,
  .de-opt2-mobile-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42% !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    min-height: 126px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(228, 234, 242, 0.95) !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  .de-opt2-mobile-card > span:first-child {
    display: grid !important;
    align-content: center !important;
    padding: 18px 18px 18px 28px !important;
  }

  .de-opt2-mobile-card strong {
    display: block;
    margin: 0 0 4px;
    color: var(--de-opt2-navy);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.12;
  }

  .de-opt2-mobile-card small {
    display: block;
    margin: 0;
    color: var(--de-opt2-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
  }

  .de-opt2-mobile-card b {
    display: block;
    margin-top: 9px;
    color: var(--de-opt2-blue);
    font-size: 13px;
    font-weight: 850;
  }

  .de-opt2-mobile-card__image {
    position: relative !important;
    display: block !important;
    min-height: 126px !important;
    overflow: hidden !important;
    border-left: 1px solid rgba(228, 234, 242, 0.8) !important;
  }

  .de-opt2-mobile-card__image img {
    position: absolute !important;
    top: 18px !important;
    right: -58px !important;
    z-index: 1 !important;
    display: block !important;
    width: 245px !important;
    max-width: none !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 26px rgba(7, 31, 68, 0.16) !important;
  }

  .de-opt2-mobile-card__image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.14) 48%, rgba(255,255,255,0) 78%);
    pointer-events: none;
  }

  .de-opt2-mobile-card--school {
    background: linear-gradient(135deg, #fff7ef, #ffffff) !important;
  }

  .de-opt2-mobile-card--school .de-opt2-mobile-card__image {
    background:
      radial-gradient(circle at 65% 55%, rgba(243, 117, 0, 0.2), transparent 42%),
      linear-gradient(145deg, #fff3e7, #ffd9ad) !important;
  }

  .de-opt2-mobile-card--school strong,
  .de-opt2-mobile-card--school b {
    color: #f37500 !important;
  }

  .de-opt2-mobile-card--college {
    background: linear-gradient(135deg, #effcfb, #ffffff) !important;
  }

  .de-opt2-mobile-card--college .de-opt2-mobile-card__image {
    background:
      radial-gradient(circle at 65% 55%, rgba(0, 166, 163, 0.2), transparent 42%),
      linear-gradient(145deg, #e3faf7, #b9dfc4) !important;
  }

  .de-opt2-mobile-card--college strong,
  .de-opt2-mobile-card--college b {
    color: #00a6a3 !important;
  }

  .de-opt2-mobile-actions {
    display: grid;
    gap: 12px;
    margin: 24px 20px 42px;
    padding: 0 0 30px;
    border-top: 0 !important;
    background: #ffffff;
  }

  .de-opt2-mobile-demo,
  .de-opt2-mobile-login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px !important;
    width: 100%;
    padding: 0 18px !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none !important;
  }

  .de-opt2-mobile-demo {
    border: 1px solid var(--de-opt2-blue) !important;
    background: var(--de-opt2-blue) !important;
    color: #ffffff !important;
  }

  .de-opt2-mobile-login {
    border: 1px solid var(--de-opt2-blue) !important;
    background: #ffffff !important;
    color: var(--de-opt2-blue) !important;
  }
}

@media (max-width: 480px) {
  .de-opt2-header > .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .de-opt2-mobile-section__toggle,
  .de-opt2-mobile-top-link {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .de-opt2-mobile-section__panel > a:not(.de-opt2-mobile-card) {
    padding-left: 22px;
    padding-right: 16px;
  }

  .de-opt2-mobile-section__panel > a.de-opt2-mobile-card,
  .de-opt2-mobile-card {
    grid-template-columns: minmax(0, 1fr) 40% !important;
    min-height: 118px !important;
  }

  .de-opt2-mobile-card > span:first-child {
    padding-left: 22px !important;
  }

  .de-opt2-mobile-card__image {
    min-height: 118px !important;
  }

  .de-opt2-mobile-card__image img {
    width: 220px !important;
    right: -62px !important;
  }

  .de-opt2-mobile-actions {
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 42px;
  }
}


/* Final desktop hover colour fix */
@media (min-width: 1041px) {
    .de-opt2-header[data-de-opt2-menu] .de-opt2-nav-link:hover,
    .de-opt2-header[data-de-opt2-menu] .de-opt2-nav-link:focus,
    .de-opt2-header[data-de-opt2-menu] .de-opt2-simple-dropdown:hover > .de-opt2-nav-link,
    .de-opt2-header[data-de-opt2-menu].is-mega-open .de-opt2-has-mega > .de-opt2-nav-link {
        color: var(--de-opt2-blue) !important;
        border-bottom-color: var(--de-opt2-blue) !important;
    }

    .de-opt2-header[data-de-opt2-menu] .de-opt2-dropdown a:hover,
    .de-opt2-header[data-de-opt2-menu] .de-opt2-dropdown a:focus,
    .de-opt2-header[data-de-opt2-menu] .de-opt2-product-list a:hover strong,
    .de-opt2-header[data-de-opt2-menu] .de-opt2-product-list a:focus strong {
        color: var(--de-opt2-blue) !important;
    }

    .de-opt2-header[data-de-opt2-menu] .de-opt2-dropdown a:hover,
    .de-opt2-header[data-de-opt2-menu] .de-opt2-dropdown a:focus {
        background: color-mix(in srgb, var(--de-opt2-blue) 6%, white) !important;
    }
}