.avisa-toefl,
.avisa-toefl *,
.avisa-toefl *::before,
.avisa-toefl *::after {
  box-sizing: border-box;
}

body.avisa-toefl-shell-light #main,
body.avisa-toefl-shell-dark #main,
body:has(.avisa-toefl) #main {
  padding: 0;
}

body.avisa-toefl-shell-light #main .inner-wrap,
body.avisa-toefl-shell-light #primary,
body.avisa-toefl-shell-light #content,
body.avisa-toefl-shell-light .entry-content,
body.avisa-toefl-shell-dark #main .inner-wrap,
body.avisa-toefl-shell-dark #primary,
body.avisa-toefl-shell-dark #content,
body.avisa-toefl-shell-dark .entry-content,
body:has(.avisa-toefl) #main .inner-wrap,
body:has(.avisa-toefl) #primary,
body:has(.avisa-toefl) #content,
body:has(.avisa-toefl) .entry-content {
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

body.avisa-toefl-shell-dark.custom-background,
body.avisa-toefl-shell-dark #page,
body.avisa-toefl-shell-dark #main,
body.avisa-toefl-shell-dark #colophon {
  background: #081821 !important;
}

body.avisa-toefl-shell-dark #masthead,
body.avisa-toefl-shell-dark #header-text-nav-container,
body.avisa-toefl-shell-dark .footer-socket-wrapper {
  color: #eef7fa;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 201, 76, .08), transparent 20rem),
    linear-gradient(160deg, #0f2430, #0a1d28);
}

body.avisa-toefl-shell-dark #header-text-nav-container {
  border-bottom-color: rgba(89, 191, 212, .45);
}

body.avisa-toefl-shell-dark #site-title a,
body.avisa-toefl-shell-dark #site-description,
body.avisa-toefl-shell-dark #site-navigation a,
body.avisa-toefl-shell-dark .footer-socket-wrapper,
body.avisa-toefl-shell-dark .footer-socket-wrapper a {
  color: #eef7fa;
}

body.avisa-toefl-shell-dark #site-navigation a:hover,
body.avisa-toefl-shell-dark #site-navigation a:focus,
body.avisa-toefl-shell-dark #site-navigation .current_page_item > a,
body.avisa-toefl-shell-dark #site-navigation .current-menu-item > a {
  color: #59bfd4;
}

body.avisa-toefl-shell-dark #site-navigation ul ul,
body.avisa-toefl-shell-dark #site-navigation .sub-menu {
  background: #102b39;
  border: 1px solid rgba(89, 191, 212, .32);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

body.avisa-toefl-shell-dark #site-navigation ul ul li,
body.avisa-toefl-shell-dark #site-navigation .sub-menu li {
  background: transparent;
  border-bottom-color: rgba(89, 191, 212, .22);
}

body.avisa-toefl-shell-dark #site-navigation ul ul a,
body.avisa-toefl-shell-dark #site-navigation .sub-menu a {
  color: #eef7fa;
  background: transparent;
  border-bottom-color: rgba(89, 191, 212, .22);
}

body.avisa-toefl-shell-dark #site-navigation ul ul a:hover,
body.avisa-toefl-shell-dark #site-navigation ul ul a:focus,
body.avisa-toefl-shell-dark #site-navigation .sub-menu a:hover,
body.avisa-toefl-shell-dark #site-navigation .sub-menu a:focus {
  color: #081821;
  background: #59bfd4;
}

body.avisa-toefl-shell-dark .footer-socket-wrapper {
  border-top-color: rgba(89, 191, 212, .45);
}

.avisa-toefl {
  --avisa-blue: #19778a;
  --avisa-blue-dark: #114760;
  --avisa-yellow: #f2c94c;
  --toefl-blue: #005eb8;
  --toefl-navy: #102f57;
  --avisa-ink: #243239;
  --avisa-muted: #63747b;
  --avisa-line: #dce7eb;
  --avisa-paper: #ffffff;
  --avisa-canvas: #f5f8fb;
  --avisa-soft: #edf6f8;
  --avisa-shadow: 0 22px 60px rgba(17, 71, 96, .14);
  --avisa-focus: rgba(25, 119, 138, .24);
  width: min(1120px, calc(100% - 36px));
  margin: 24px auto 72px;
  color: var(--avisa-ink);
  font: 17px/1.62 Arial, Helvetica, sans-serif;
}

.avisa-toefl[data-theme="dark"] {
  --avisa-blue: #59bfd4;
  --avisa-blue-dark: #b9e0ea;
  --toefl-blue: #63b7ff;
  --toefl-navy: #e6f3ff;
  --avisa-ink: #eef7fa;
  --avisa-muted: #a8bac2;
  --avisa-line: rgba(221, 239, 244, .18);
  --avisa-paper: #0f2430;
  --avisa-canvas: #081821;
  --avisa-soft: #173745;
  --avisa-shadow: 0 18px 45px rgba(0, 0, 0, .26);
  background:
    radial-gradient(circle at 100% 0, rgba(242, 201, 76, .08), transparent 22rem),
    linear-gradient(160deg, #081821, #0d2230 58%, #081821);
  border-radius: 8px;
}

.avisa-toefl h2,
.avisa-toefl h3,
.avisa-toefl p {
  margin-top: 0;
}

.avisa-toefl h2,
.avisa-toefl h3,
.avisa-toefl button {
  padding-bottom: 0;
  font-family: inherit;
}

.avisa-toefl p {
  font-size: inherit;
  line-height: inherit;
}

.avisa-toefl img {
  margin-bottom: 0;
}

.avisa-toefl a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.avisa-toefl__topbar {
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
}

.avisa-toefl__brand {
  display: none;
}

.avisa-toefl__controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.avisa-toefl__theme,
.avisa-toefl__lang button {
  min-height: 42px;
  border: 1px solid var(--avisa-line);
  border-radius: 999px;
  color: var(--avisa-blue-dark);
  background: var(--avisa-paper);
  box-shadow: 0 10px 28px rgba(28, 70, 98, .08);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.avisa-toefl__theme {
  height: 42px;
  margin: 0 !important;
  padding: 0 14px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.avisa-toefl__theme:hover,
.avisa-toefl__lang button:hover,
.avisa-toefl__lang button[aria-pressed="true"] {
  border-color: var(--toefl-blue);
}

.avisa-toefl__theme:focus-visible,
.avisa-toefl__lang button:focus-visible,
.avisa-toefl__button:focus-visible,
.avisa-toefl__cards a:focus-visible {
  outline: 4px solid var(--avisa-focus);
  outline-offset: 3px;
}

.avisa-toefl__theme-icon {
  width: 44px;
  height: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  background: var(--avisa-soft);
  border-radius: 999px;
}

.avisa-toefl__sun,
.avisa-toefl__moon {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 50%;
}

.avisa-toefl__sun {
  background: var(--avisa-yellow);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, .22);
}

.avisa-toefl__moon {
  position: relative;
  background: var(--avisa-blue-dark);
}

.avisa-toefl__moon::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -2px;
  width: 13px;
  height: 13px;
  background: var(--avisa-soft);
  border-radius: 50%;
}

.avisa-toefl[data-theme="dark"] .avisa-toefl__sun,
.avisa-toefl[data-theme="light"] .avisa-toefl__moon {
  opacity: .42;
}

.avisa-toefl__lang {
  width: auto;
  height: 42px;
  min-height: 0;
  padding: 4px;
  display: inline-flex;
  gap: 2px;
  align-items: center;
  background: var(--avisa-paper);
  border: 1px solid var(--avisa-line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(28, 70, 98, .08);
}

.avisa-toefl__lang button {
  width: 36px;
  min-width: 36px;
  height: 32px;
  min-height: 0;
  max-height: 32px;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  font-size: 12px;
  line-height: 1 !important;
}

.avisa-toefl__lang button[aria-pressed="true"] {
  color: #fff;
  background: var(--toefl-blue);
}

.avisa-toefl__hero {
  min-height: 0;
  padding: clamp(20px, 3.6vw, 42px) 0 clamp(36px, 4.8vw, 52px);
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(380px, .88fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.avisa-toefl__kicker {
  margin: 0 0 14px !important;
  color: var(--toefl-blue);
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.avisa-toefl h2 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--avisa-ink);
  font-size: clamp(42px, 4.45vw, 58px);
  line-height: 1.06;
  font-weight: 700;
}

.avisa-toefl h3 {
  margin-bottom: 12px;
  color: var(--avisa-ink);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.14;
  font-weight: 700;
}

.avisa-toefl__lead,
.avisa-toefl__section-head > p,
.avisa-toefl__split > div:first-child > p {
  color: var(--avisa-muted);
  font-size: clamp(17px, 1.55vw, 20px) !important;
}

.avisa-toefl__lead {
  max-width: 650px;
  margin-bottom: 24px !important;
}

.avisa-toefl__actions,
.avisa-toefl__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.avisa-toefl__actions {
  margin-bottom: 24px;
}

.avisa-toefl__button {
  min-height: 52px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--toefl-blue);
  border-radius: 5px;
  font-weight: 800;
  text-decoration: none !important;
}

.avisa-toefl__button:hover {
  transform: translateY(-1px);
}

.avisa-toefl__button--primary {
  color: #fff !important;
  background: var(--toefl-blue);
}

.avisa-toefl__button--secondary {
  color: var(--toefl-navy) !important;
  background: transparent;
}

.avisa-toefl__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  max-width: 650px;
  border: 1px solid var(--avisa-line);
  border-radius: 7px;
  background: var(--avisa-line);
}

.avisa-toefl__facts > span {
  padding: 15px 17px;
  display: block;
  background: var(--avisa-paper);
  color: var(--avisa-muted);
  font-size: 14px;
}

.avisa-toefl__facts strong {
  display: block;
  margin-bottom: 2px;
  color: var(--toefl-navy);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.avisa-toefl__lockup-panel {
  position: relative;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(135deg, rgba(0, 94, 184, .12), rgba(242, 201, 76, .2)),
    var(--avisa-soft);
  border: 1px solid rgba(0, 94, 184, .12);
  border-radius: 8px;
  box-shadow: var(--avisa-shadow);
  animation: avisaToeflPanelIn 650ms ease both;
}

.avisa-toefl__lockup-panel::before {
  content: "";
  position: absolute;
  inset: -16px auto auto -16px;
  width: 68px;
  height: 68px;
  border-top: 4px solid var(--avisa-yellow);
  border-left: 4px solid var(--avisa-yellow);
  opacity: .95;
}

.avisa-toefl__lockup {
  min-height: clamp(300px, 30vw, 390px);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe9f4;
  border-radius: 3px;
}

.avisa-toefl__lockup img {
  width: min(330px, 92%);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: avisaToeflLogoIn 620ms ease 280ms forwards;
}

.avisa-toefl__lockup p {
  margin-bottom: 0;
  color: #4f6471;
}

.avisa-toefl__lockup-label {
  color: var(--toefl-navy) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.avisa-toefl[data-theme="dark"] .avisa-toefl__lockup-panel {
  background: linear-gradient(145deg, rgba(23, 55, 69, .94), rgba(13, 38, 68, .94));
  border-color: rgba(89, 191, 212, .14);
}

.avisa-toefl__section,
.avisa-toefl__split,
.avisa-toefl__cta {
  margin-top: 22px;
}

.avisa-toefl__section {
  padding: clamp(28px, 4vw, 42px);
  background: linear-gradient(180deg, var(--avisa-paper), var(--avisa-canvas));
  border: 1px solid var(--avisa-line);
  border-radius: 7px;
}

.avisa-toefl__section-head {
  max-width: 800px;
  margin-bottom: 24px;
}

.avisa-toefl__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.avisa-toefl__cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avisa-toefl__cards article {
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: var(--avisa-paper);
  border: 1px solid var(--avisa-line);
  border-top: 3px solid var(--toefl-blue);
  border-radius: 7px;
}

.avisa-toefl__cards strong {
  display: block;
  margin-bottom: 10px;
  color: var(--toefl-navy);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.avisa-toefl__cards p {
  margin-bottom: 0;
  color: var(--avisa-muted);
}

.avisa-toefl__cards a {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  color: var(--toefl-navy) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.avisa-toefl__split {
  padding: clamp(28px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1fr minmax(280px, .72fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  background: linear-gradient(180deg, var(--avisa-paper), var(--avisa-canvas));
  border: 1px solid var(--avisa-line);
  border-radius: 7px;
}

.avisa-toefl__note {
  margin-bottom: 0 !important;
  color: var(--avisa-muted);
  font-size: 14px !important;
}

.avisa-toefl__test-list {
  display: grid;
  gap: 10px;
}

.avisa-toefl__test-list div {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--avisa-ink);
  background: var(--avisa-canvas);
  border: 1px solid var(--avisa-line);
  border-left: 4px solid var(--avisa-yellow);
  border-radius: 5px;
}

.avisa-toefl__test-list strong {
  color: var(--toefl-navy);
}

.avisa-toefl__cta {
  padding: clamp(28px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  color: #fff;
  background: linear-gradient(125deg, #102f57, #005eb8);
  border-radius: 8px;
  box-shadow: var(--avisa-shadow);
}

.avisa-toefl__cta-actions {
  width: min(100%, 340px);
  display: grid;
  grid-template-columns: 1fr;
  justify-self: end;
  gap: 12px;
}

.avisa-toefl__cta h3 {
  color: #fff;
}

.avisa-toefl__cta p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .8);
}

.avisa-toefl__cta .avisa-toefl__kicker {
  color: rgba(255, 255, 255, .76);
}

.avisa-toefl__cta .avisa-toefl__button--primary {
  color: #102f57 !important;
  background: #fff;
  border-color: #fff;
}

.avisa-toefl__cta .avisa-toefl__button--secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .72);
}

.avisa-toefl__cta .avisa-toefl__button {
  width: 100%;
  min-width: 0;
  padding-right: 18px;
  padding-left: 18px;
  text-align: center;
}

.avisa-toefl[data-lang="en"] [data-de],
.avisa-toefl[data-lang="de"] [data-en] {
  display: none !important;
}

@keyframes avisaToeflPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avisaToeflLogoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avisa-toefl *,
  .avisa-toefl *::before,
  .avisa-toefl *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 940px) {
  .avisa-toefl__hero,
  .avisa-toefl__split,
  .avisa-toefl__cta {
    grid-template-columns: 1fr;
  }

  .avisa-toefl__cta-actions {
    justify-self: start;
  }

  .avisa-toefl__hero {
    min-height: auto;
    gap: 28px;
    padding-top: 18px;
  }

  .avisa-toefl__hero-copy,
  .avisa-toefl__lockup-panel {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .avisa-toefl {
    width: calc(100% - 24px);
    margin-top: 18px;
    margin-bottom: 56px;
    font-size: 16px;
  }

  .avisa-toefl__topbar {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .avisa-toefl__actions,
  .avisa-toefl__cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .avisa-toefl__controls {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .avisa-toefl__theme {
    flex: 0 0 auto;
  }

  .avisa-toefl h2 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.08;
  }

  .avisa-toefl h3 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .avisa-toefl__hero {
    padding: 12px 0 34px;
  }

  .avisa-toefl__lead,
  .avisa-toefl__section-head > p,
  .avisa-toefl__split > div:first-child > p {
    font-size: 17px !important;
  }

  .avisa-toefl__facts,
  .avisa-toefl__cards,
  .avisa-toefl__cards--two {
    grid-template-columns: 1fr;
  }

  .avisa-toefl__lockup-panel {
    margin-top: 6px;
    padding: 14px;
  }

  .avisa-toefl__lockup-panel::before {
    inset: -10px auto auto -10px;
    width: 54px;
    height: 54px;
  }

  .avisa-toefl__lockup {
    min-height: 0;
    padding: 28px 20px;
  }

  .avisa-toefl__section,
  .avisa-toefl__split,
  .avisa-toefl__cta {
    padding: 26px 20px;
  }

  .avisa-toefl__cards article {
    padding: 20px;
  }

  .avisa-toefl__button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .avisa-toefl__controls {
    gap: 6px;
  }

  .avisa-toefl__theme {
    padding-right: 12px;
  }

  .avisa-toefl__theme-icon {
    width: 40px;
  }
}
