@font-face {
  font-family: "Century Gothic";
  src: url("../fonts/Century Gothic.eot");
  src: url("../fonts/Century Gothic.eot?#iefix") format("embedded-opentype"),
    url("../fonts/Century Gothic.woff2") format("woff2"),
    url("../fonts/Century Gothic.woff") format("woff"),
    url("../fonts/Century Gothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CenturyGothic-Bold";
  src: url("../fonts/CenturyGothic-Bold.eot");
  src: url("../fonts/CenturyGothic-Bold.eot?#iefix") format("embedded-opentype"),
    url("../fonts/CenturyGothic-Bold.woff2") format("woff2"),
    url("../fonts/CenturyGothic-Bold.woff") format("woff"),
    url("../fonts/CenturyGothic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-1: #0a0f26;
  --header-text: #ffffff;
  --color-2: #5261be;
  --color-2-dark: #414ea3;
  --navy-dark: #0a0f26;
  --navy-mid: #23306b;
  --card-bg: #5261be;
  --card-text: #ffffff;
  --card-bg-soft: #e8f6fd;
  --text-dark: #282929;
  --heading-light: #ffffff;
  --heading-accent: #5261be;
  --section-rule: rgba(170, 184, 235, 0.32);
  --nav-tests: #dc3545;
  --card-detail: #de4766;
  --inweb: #da1c2f;
  --font-body: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-heading: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--text-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

h1 {
  text-align: center;
  color: var(--color-2);
  letter-spacing: 1px;
  font-weight: 700;
}

h2 {
  color: var(--color-2);
  font-size: 34px;
  letter-spacing: 1px;
  padding: 50px 0 20px;
  text-align: center;
  font-weight: 700;
}

h3 {
  color: var(--heading-light);
  font-size: 22px;
  padding-bottom: 10px;
  text-align: center;
  font-weight: 700;
}

h4 {
  text-align: center;
}

p,
li {
  letter-spacing: 1px;
  color: var(--text-dark);
  line-height: 30px;
  text-align: center;
}

.clearfix {
  clear: both;
  padding: 30px;
}

.clearfix2 {
  clear: both;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100000;
  padding: 10px 16px;
  background: #fff;
  color: var(--color-2);
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header — sticky without layout jump: outer height stays fixed;
   only shadow / logo scale change when condensed. */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  min-height: 88px;
  height: auto;
  background-color: var(--color-1);
  /* Light edge so the bar reads against the same dark page surface */
  box-shadow:
    0 1px 0 rgba(170, 184, 235, 0.28),
    0 10px 28px rgba(170, 184, 235, 0.16);
  transition: box-shadow 0.25s ease;
  transform: translateZ(0);
  overflow: visible;
}

body.admin-bar header.site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.site-header {
    top: 46px;
  }
}

/* Condensed look — no height change (that was the scroll jump). */
header.site-header.is-stuck {
  box-shadow:
    0 1px 0 rgba(170, 184, 235, 0.36),
    0 12px 32px rgba(170, 184, 235, 0.22);
}

header.site-header.is-stuck .navbar {
  padding-top: 8px;
  padding-bottom: 8px;
}

header.site-header.is-stuck .site-logo,
header.site-header.is-stuck .navbar-brand img {
  transform: scale(0.82);
}

header.site-header.is-stuck .navbar-nav .nav-link {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

header.site-header.is-stuck .header-call-btn {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {
  header.site-header,
  header.site-header .navbar,
  header.site-header .site-logo,
  header.site-header .navbar-brand img {
    transition: none;
  }
}

header.site-header .site-header__inner {
  align-items: center;
  max-width: 100%;
  min-height: 88px;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 991.98px) {
  header.site-header {
    min-height: 72px;
  }

  header.site-header .site-header__inner {
    min-height: 72px;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
  }

  header.site-header .navbar {
    position: static;
  }

  /* Full-width panel under the bar — not clipped by header height. */
  header.site-header .navbar-collapse {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    max-height: min(70vh, calc(100dvh - 72px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--color-1);
    padding: 8px 16px 20px;
    border-top: 1px solid var(--section-rule);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
    z-index: 1040;
  }

  header.site-header .navbar-collapse .navbar-nav {
    align-items: stretch;
    width: 100%;
  }

  header.site-header .navbar-collapse .nav-item {
    width: 100%;
  }

  header.site-header .navbar-collapse .nav-link {
    text-align: center;
    width: 100%;
  }

  header.site-header .header-call-btn {
    display: flex;
    width: 100%;
    margin: 12px 0 4px;
    justify-content: center;
  }
}

/* Keep anchor targets clear of the sticky header. */
html {
  scroll-padding-top: 100px;
}

[id] {
  scroll-margin-top: 100px;
}

.header-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 22px;
  padding: 14px 28px;
  border-radius: 6px;
  background-color: var(--color-2);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-call-btn:hover {
  background-color: var(--color-2-dark);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .header-call-btn {
    margin: 12px 0 4px;
    width: 100%;
  }
}

header.site-header .navbar {
  float: none;
  padding-top: 12px;
  padding-bottom: 12px;
  transition: padding 0.25s ease;
}

#logo,
.navbar-brand img,
.site-logo {
  float: none;
  display: block;
  width: auto;
  height: 52px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: left center;
  max-width: 300px;
  object-fit: contain;
  object-position: left center;
  cursor: pointer;
  line-height: 0;
}

.navbar-brand:hover .site-logo,
.navbar-brand:focus-visible .site-logo {
  opacity: 0.85;
}

.navbar-brand:focus-visible {
  outline: 2px solid var(--header-text, #fff);
  outline-offset: 4px;
  border-radius: 6px;
}

.navbar-nav {
  list-style-type: none;
}

.navbar-nav .nav-item {
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* A soft plate behind the label instead of an underline, so the indicator
   never competes with the text on the dark header. */
.navbar-nav .nav-link {
  position: relative;
  color: var(--header-text) !important;
  padding: 11px 16px !important;
  border-radius: 8px;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--header-text) !important;
  text-decoration: none;
  background-color: color-mix(in srgb, var(--header-text) 12%, transparent);
}

.navbar-nav .nav-link.active {
  color: var(--header-text) !important;
  text-decoration: none;
  background-color: color-mix(in srgb, var(--header-text) 18%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .navbar-nav .nav-link {
    transition: none;
  }
}

/* Dropdown submenus */
.navbar-nav .dropdown-menu {
  background-color: var(--color-1);
  border: 1px solid color-mix(in srgb, var(--color-2) 45%, transparent);
  border-radius: 12px;
  padding: 8px 0;
  margin-top: 0;
  min-width: 240px;
  text-align: left;
}

.navbar-nav .dropdown-menu .dropdown-item {
  color: var(--header-text);
  font-size: 90%;
  letter-spacing: 1px;
  padding: 9px 20px;
  white-space: normal;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu .dropdown-item.active {
  background-color: var(--color-2);
  color: #fff;
}

/* Caret button that opens submenus on touch devices. */
.submenu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 14px;
  color: inherit;
  line-height: 0;
  cursor: pointer;
}

.submenu-toggle__icon {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
  transform: rotate(-135deg) translate(-2px, -2px);
}

@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
  .navbar-nav .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    display: none;
    position: static;
    float: none;
    border: 0;
    padding-left: 12px;
    background-color: transparent;
  }

  .navbar-nav .dropdown-menu.show {
    display: block;
  }

  .navbar-nav .nav-item.dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .navbar-nav .nav-item.dropdown > .dropdown-menu {
    flex: 0 0 100%;
  }

  .navbar-nav .nav-link.dropdown-toggle::after {
    display: none;
  }

  .submenu-toggle {
    display: block;
    color: var(--header-text);
  }

  .navbar-nav .tests-item .submenu-toggle {
    color: var(--nav-tests);
  }
}

@media (prefers-reduced-motion: reduce) {
  .submenu-toggle__icon {
    transition: none;
  }
}

.navbar-nav .nav-link.tests,
.navbar-nav .tests-item .nav-link,
.navbar-nav .nav-item.tests-item .nav-link {
  color: var(--nav-tests) !important;
}

.navbar-nav .nav-link.tests:hover,
.navbar-nav .tests-item .nav-link:hover {
  color: var(--nav-tests) !important;
  filter: brightness(0.92);
  text-decoration: none;
}

.navbar-toggler {
  border-color: color-mix(in srgb, var(--header-text) 45%, transparent);
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

.navbar-collapse {
  background-color: var(--color-1);
}

/* Hero / banners */
/* Front page hero */
.site-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: 110px 0 100px;
  background-color: var(--color-1);
  background-image: none;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.site-hero.has-image {
  background-color: var(--color-1);
}

/* Soft veil: photo lightly shows through the brand navy. */
.site-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--color-1) 78%, transparent) 0%,
      color-mix(in srgb, var(--color-1) 68%, transparent) 48%,
      color-mix(in srgb, var(--color-1) 62%, transparent) 100%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--color-1) 88%, transparent) 0%,
      color-mix(in srgb, var(--color-1) 55%, transparent) 50%,
      transparent 100%
    );
}

.site-hero__inner {
  position: relative;
  z-index: 1;
}

.site-hero__col {
  text-align: left;
}

.site-hero__title {
  color: var(--heading-accent);
  text-align: left;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(2.55rem, 5.2vw, 4.15rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  text-shadow: 0 2px 28px rgba(8, 14, 36, 0.45);
}

.site-hero__accent {
  color: #fff;
}

.site-hero__text {
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
  font-size: clamp(1.15rem, 1.55vw, 1.38rem);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
  max-width: 34em;
  text-shadow: 0 1px 18px rgba(8, 14, 36, 0.4);
}

.site-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-2);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 18px 38px;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(18, 28, 70, 0.28);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.site-hero__btn:hover {
  background-color: var(--color-2-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Fade in from bottom */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Photo banners taken from the live site. The dark overlay keeps the white
   page heading readable over the photograph. */
.page-banner {
  width: 100%;
  min-height: 320px;
  height: 380px;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-banner--courses {
  background-image:
    linear-gradient(180deg, rgba(7, 12, 32, 0.72) 0%, rgba(7, 12, 32, 0.55) 55%, rgba(7, 12, 32, 0.85) 100%),
    url("../images/banners/courses.webp");
}

.page-banner--gallery {
  background-image:
    linear-gradient(180deg, rgba(7, 12, 32, 0.72) 0%, rgba(7, 12, 32, 0.55) 55%, rgba(7, 12, 32, 0.85) 100%),
    url("../images/banners/gallery.webp");
}

@media (max-width: 767.98px) {
  .page-banner {
    min-height: 200px;
    height: 240px;
  }
}

/* Back to top */
#topButton {
  height: auto;
  width: auto;
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 10060;
  cursor: pointer;
  padding: 0;
}

#topButton.is-visible {
  display: block;
}

html.atlantis-cookie-bar-visible #topButton {
  bottom: calc(7.5rem + 12px);
}

#topButton a {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  background: color-mix(in srgb, var(--color-2) 92%, #000);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

#topButton img {
  width: auto;
  height: 22px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

/* Home intro */
.index-text {
  max-width: 900px;
  margin: 0 auto;
}

/* Home courses — solid brand navy */
.courses,
.home.courses,
section.courses {
  width: 100%;
  height: auto;
  background-color: var(--color-1);
  background-image: none;
}

.courses h2,
.home.courses h2,
.courses .section-title {
  color: var(--heading-accent);
  font-weight: 700;
}

.courses p,
.home.courses p,
.courses li {
  color: var(--heading-light);
}

.courses h3,
.home.courses h3 {
  color: var(--heading-light);
  font-weight: 700;
}

.one,
.two,
.three,
.four {
  height: 100px;
  width: 100px;
}

.click,
.btn-atlantis {
  outline: none;
  background-color: #fff;
  border: none;
  margin-bottom: 50px;
  border-radius: 40px;
  padding: 20px 60px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-2);
  display: inline-block;
}

.click:hover,
.btn-atlantis:hover {
  background-color: var(--card-bg-soft);
  color: var(--color-2);
}

.courses .click--on-dark,
.click.click--navy {
  background-color: var(--color-2);
  color: #fff;
}

/* Partners */
.blist {
  width: 80%;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.blist2 {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding-bottom: 20%;
  background-image: url("../images/list.webp");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}

/* Referentna lista – full width marquee */
.partners-marquee {
  width: 100%;
  overflow: hidden;
  padding: 30px 0 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-marquee__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: atlantis-marquee 45s linear infinite;
}

.partners-marquee:hover .partners-marquee__track {
  animation-play-state: paused;
}

.partners-marquee__item {
  flex: 0 0 auto;
}

.partners-marquee__item img {
  height: 70px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s ease;
}

.partners-marquee__item img:hover {
  filter: none;
}

@keyframes atlantis-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .partners-marquee__track {
    gap: 36px;
  }

  .partners-marquee__item img {
    height: 52px;
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 24px;
  align-items: center;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto 40px;
  padding: 10px 0 30px;
}

.partners-grid img {
  max-height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0.15);
}

.partners-grid img:hover {
  filter: none;
}

.partners-grid img[hidden] {
  display: none !important;
}

.text-primary {
  color: var(--color-2) !important;
}

/* Privacy */
.privacy-page p {
  text-align: left;
}

.privacy-page ul {
  text-align: left;
  list-style-type: disc;
  padding-left: 1.4rem;
}

.privacy-page li {
  text-align: left;
}

/* Language tests */
#language-tests {
  background-color: #f9fafc;
  border-radius: 10px;
}

/* ------------------------------------------------------------------
   Home page — continuous #0A0F26 surface (hero → courses → tests →
   partners → CTA → footer). Light section leftovers are overridden.
   ------------------------------------------------------------------ */
body.home {
  background-color: var(--color-1);
}

body.home .site-content {
  background-color: var(--color-1);
}

body.home #language-tests {
  background-color: var(--color-1);
  border-radius: 0;
}

body.home #language-tests h2,
body.home #language-tests .text-primary {
  color: var(--heading-accent) !important;
}

body.home #language-tests > .text-center > p,
body.home #language-tests .mb-5 > p {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.home .test-card {
  background-color: var(--color-2) !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

body.home .test-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32) !important;
}

body.home .test-card .card-title,
body.home .test-card .card-text {
  color: #fff;
}

body.home #language-tests .click.click--navy {
  background-color: #fff;
  border-color: #fff;
  color: var(--color-2);
}

body.home #language-tests .click.click--navy:hover {
  background-color: var(--card-bg-soft);
  color: var(--color-2);
}

body.home .partners-section {
  background-color: #fff;
  color: var(--text-dark);
  padding-bottom: 20px;
}

body.home .partners-section h2 {
  color: var(--heading-accent);
}

body.home .partners-section p,
body.home .partners-section .index-text {
  color: var(--text-dark);
}

body.home .partners-marquee__item img {
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(10, 15, 38, 0.08);
  box-shadow: 0 2px 10px rgba(10, 15, 38, 0.06);
  filter: none;
}

/* Soft light separators between home sections */
body.home .home.courses,
body.home #language-tests,
body.home .partners-section,
body.home .site-cta,
body.home .site-footer {
  border-top: 1px solid var(--section-rule);
}

/* Short accent rule under centered section titles (not CTA — side-by-side layout). */
body.home .home.courses h2,
body.home #language-tests h2,
body.home .partners-section h2 {
  position: relative;
  padding-bottom: 18px;
}

body.home .home.courses h2::after,
body.home #language-tests h2::after,
body.home .partners-section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--heading-accent) 70%, #fff);
  opacity: 0.9;
}

body.home .site-cta__title {
  color: var(--heading-accent);
  text-align: left;
  padding: 0;
  margin: 0 0 12px;
}

body.home .site-cta__title::after {
  content: none;
}

.flag-icon {
  width: 76px;
  height: auto;
  padding: 5px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(7, 12, 32, 0.12);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.test-card {
  background-color: var(--card-bg) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.test-card .card-title,
.test-card .card-text {
  color: var(--card-text);
}

.test-card .btn-primary {
  background-color: #fff;
  border-color: #fff;
  color: var(--color-2);
}

.test-card .btn-primary:hover {
  background-color: var(--card-bg-soft);
  border-color: var(--card-bg-soft);
  color: var(--color-2);
}

#language-tests .btn-primary,
.btn-primary {
  background-color: var(--color-2);
  border-color: var(--color-2);
  color: #fff;
}

#language-tests .btn-primary:hover,
.btn-primary:hover {
  background-color: var(--color-2-dark);
  border-color: var(--color-2-dark);
  color: #fff;
}

.free-test {
  background-color: rgba(232, 246, 253, 0.65);
}

.test-iframe-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(6, 12, 34, 0.08);
  width: 100%;
}

.test-iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 2200px;
  border: 0;
}

@media (max-width: 767.98px) {
  .test-iframe-wrap iframe {
    min-height: 3200px;
  }
}

/* Call to action — solid brand navy */
.site-cta {
  padding: 70px 0;
  background: var(--color-1);
  background-image: none;
  color: #fff;
  border-top: 1px solid var(--section-rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-cta__copy {
  flex: 1 1 460px;
}

.site-cta__title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--heading-accent);
  font-size: 2.1rem;
  text-align: left;
  letter-spacing: normal;
}

.site-cta__text {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.9);
  line-height: 28px;
}

.site-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: var(--color-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.site-cta__btn:hover,
.site-cta__btn:focus-visible {
  background: var(--card-bg-soft);
  color: var(--color-2-dark);
  transform: translateY(-2px);
}

.site-cta__btn--ghost {
  background: transparent;
  color: #fff;
}

.site-cta__btn--ghost:hover,
.site-cta__btn--ghost:focus-visible {
  background: #fff;
  color: var(--color-2);
}

.site-cta__phone {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.site-cta__phone:hover {
  color: var(--card-bg-soft);
}

@media (max-width: 767.98px) {
  .site-cta {
    padding: 48px 0;
  }

  .site-cta__title {
    font-size: 1.6rem;
  }

  .site-cta__copy {
    text-align: center;
  }

  .site-cta__text {
    margin-inline: auto;
  }

  .site-cta__actions {
    width: 100%;
    justify-content: center;
  }

  .site-cta__btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .site-cta__phone {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Footer — solid brand navy */
footer.site-footer {
  background-color: var(--color-1);
  background-image: none;
  color: rgba(255, 255, 255, 0.78);
  height: auto;
  border-top: 1px solid var(--section-rule);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  align-items: start;
  gap: 40px;
  padding: 62px 0 44px;
}

.site-footer__col {
  position: relative;
}

@media (min-width: 992px) {
  .site-footer__brand + .site-footer__col,
  .site-footer__col + .site-footer__col {
    padding-left: 28px;
  }

  .site-footer__brand + .site-footer__col::before,
  .site-footer__col + .site-footer__col::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--section-rule);
  }
}

.site-footer__brand {
  text-align: left;
  max-width: 280px;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 260px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.site-footer__tagline {
  margin: 18px auto 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 25px;
  text-align: center;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

/* Keep column titles flush with the top of the logo.
   Global h2 uses padding: 50px 0 20px — that must not apply here. */
.site-footer__heading {
  margin: 0 0 16px;
  padding: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: inherit;
}

.site-footer__address {
  margin: 0 0 12px;
  font-style: normal;
  line-height: 26px;
}

.site-footer__address span {
  display: block;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 26px;
}

.site-footer__list li {
  margin-bottom: 8px;
  /* Overrides the global dark `li` colour, which is invisible here. */
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: normal;
  text-align: inherit;
}

.site-footer__hours li {
  margin-bottom: 14px;
}

.site-footer__hours-label,
.site-footer__hours-value {
  display: block;
  line-height: 24px;
}

.site-footer__hours-value {
  color: #fff;
  white-space: nowrap;
}

.site-footer__link {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__map {
  display: inline-block;
  margin-top: 4px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom {
  display: block;
  width: 100%;
  padding: 0;
  border-top: 1px solid var(--section-rule);
  font-size: 14px;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 15px 24px;
}

.site-footer__cookie-open {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__cookie-open:hover,
.site-footer__cookie-open:focus-visible {
  color: var(--heading-accent);
}

.site-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.3);
}

footer.site-footer .privacy {
  color: #fff;
  font-weight: 600;
}

footer.site-footer .inweb {
  color: var(--inweb) !important;
  font-weight: 600;
}

/* Cookie consent bar — GeoAda-style fixed bottom strip */
html.atlantis-cookie-bar-visible {
  padding-bottom: 7rem;
}

.atlantis-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: #070b1a;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--section-rule);
}

.atlantis-cookie-bar[hidden] {
  display: none !important;
}

.atlantis-cookie-bar__inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.atlantis-cookie-bar__copy {
  flex: 1 1 280px;
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.atlantis-cookie-bar__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.atlantis-cookie-bar__text strong {
  color: #fff;
}

.atlantis-cookie-bar__link {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.atlantis-cookie-bar__link a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.atlantis-cookie-bar__link a:hover {
  color: #fff;
}

.atlantis-cookie-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.atlantis-cookie-bar button {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-radius: 6px;
}

.atlantis-cookie-bar__accept {
  background: #fff;
  color: var(--color-2);
  border-color: #fff;
}

.atlantis-cookie-bar__reject {
  background: transparent;
  color: #f4f4f4;
  border-color: rgba(255, 255, 255, 0.45);
}

.atlantis-cookie-bar__accept:hover {
  background: var(--card-bg-soft);
}

.atlantis-cookie-bar__reject:hover {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 575.98px) {
  .atlantis-cookie-bar__inner {
    padding: 14px 16px 18px;
  }

  .atlantis-cookie-bar button {
    flex: 1 1 auto;
  }
}

.f-icons {
  width: 38px;
  height: 38px;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
    padding: 48px 0 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__brand > a {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .site-footer__logo {
    margin-inline: auto;
    object-position: center;
  }

  .site-footer__tagline {
    margin-inline: auto;
    text-align: center;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer__heading {
    margin-top: 0;
  }
}

@media (max-width: 575.98px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .site-footer__col,
  .site-footer__brand {
    width: 100%;
    text-align: center;
    justify-self: center;
  }

  .site-footer__list,
  .site-footer__address,
  .site-footer__hours {
    text-align: center;
  }

  .site-footer__list li {
    text-align: center;
  }

  .site-footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .site-footer__social {
    justify-content: center;
  }
}

/* Courses page */
.bold-text {
  font-weight: 700;
  color: var(--color-2);
}

/* Courses page — dark surface; language pills stay white */
body.courses-page {
  background-color: var(--color-1);
}

body.courses-page .site-content {
  background-color: var(--color-1);
  color: #fff;
}

body.courses-page h1 {
  color: var(--heading-accent);
  padding-top: 20px;
}

body.courses-page .courses-text,
body.courses-page .courses-text p,
body.courses-page .courses-text li {
  color: #fff;
}

body.courses-page .language-nav a {
  background: #fff;
  color: var(--color-2);
}

body.courses-page .language-nav a:hover {
  background: var(--color-2);
  color: #fff;
}

body.courses-page .courses-container {
  padding-bottom: 40px;
}

.courses-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.courses-grid {
  margin-bottom: 0;
  width: 100%;
}

.courses-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin: 0 auto 25px;
}

.card {
  border: none;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  padding: 20px;
  background-color: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card .first-p {
  min-height: 130px;
}

.card-inner {
  padding: 25px;
  position: relative;
}

.card h3,
.card h2 {
  color: var(--card-text);
  margin-bottom: 15px;
  font-weight: 700;
}

.card p,
.card li,
.card .first-p {
  color: var(--card-text);
}

.card .bottom-card p,
.card .bottom-card li {
  color: var(--text-dark);
}

/* Source flags ship on a white background, so the tile is made deliberate
   instead of reading as a stray white box on the coloured cards. */
.flag {
  display: block;
  width: 104px;
  height: auto;
  margin: 20px auto;
  padding: 7px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(7, 12, 32, 0.22);
  object-fit: contain;
}

.card p {
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.bottom-card {
  background-color: #f7f7f7;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out, opacity 0.5s ease;
  opacity: 0;
}

.bottom-card.open {
  max-height: 100%;
  opacity: 1;
}

.bottom-card h4 {
  color: var(--card-detail);
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
}

.bottom-card p {
  margin-bottom: 10px;
}

.toggle-btn {
  background-color: #fff;
  color: var(--color-2);
  border: none;
  padding: 12px 30px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 15px;
  font-size: 16px;
}

.toggle-btn:hover {
  background-color: var(--card-bg-soft);
  color: var(--color-2-dark);
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.language-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 8px 20px 8px 12px;
  border-radius: 30px;
  text-decoration: none;
  color: var(--color-2);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 15px;
  text-transform: none;
}

.language-nav__label {
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
}

.language-nav__flag {
  width: 34px;
  height: auto;
  padding: 2px;
  background: #fff;
  border-radius: 5px;
  flex: 0 0 auto;
  object-fit: contain;
}

.language-nav a:hover {
  background: var(--color-2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(48, 106, 156, 0.3);
}

/* FAQ */
.questions {
  padding: 60px 0 20px;
}

.questions h3,
.questions h4 {
  color: var(--text-dark);
}

.questions p {
  padding-bottom: 30px;
}

/* Contact */
.contactText {
  padding: 50px 0 30px;
}

.contact-icons {
  margin: 0 auto;
  width: 100%;
}

.icon-left {
  float: left;
  width: 45%;
}

.icon-right {
  width: 45%;
  float: right;
}

.icon-left p,
.icon-right p {
  font-size: 20px;
  margin-bottom: 40px;
}

.contact-icons-style {
  height: 36px;
  width: 36px;
  margin-bottom: 20px;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 520px;
  position: relative;
  height: 0;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 520px;
  width: 100%;
  position: absolute;
  z-index: 0;
}

/* ------------------------------------------------------------------
   Shared dark page surface (#0A0F26) — titles = button blue, text white
   ------------------------------------------------------------------ */
body.dark-surface {
  background-color: var(--color-1);
}

body.dark-surface .site-content {
  background-color: var(--color-1);
  color: #fff;
}

body.dark-surface h1,
body.dark-surface h2,
body.dark-surface .title-gallery {
  color: var(--heading-accent);
}

body.dark-surface h3 {
  color: #fff;
}

body.dark-surface h4 {
  color: var(--heading-accent);
}

body.dark-surface p,
body.dark-surface li,
body.dark-surface .courses-text,
body.dark-surface .courses-text p,
body.dark-surface .contactText,
body.dark-surface .about-page__text p {
  color: #fff;
}

body.dark-surface a:not(.language-nav a):not(.header-call-btn):not(.site-cta__btn):not(.nav-link):not(.useful-links a):not(.site-footer__link):not(.site-footer__map):not(.inweb):not(.privacy) {
  color: #c5cdf5;
}

/* About */
body.about-dark .about-page h1 {
  color: var(--heading-accent);
}

body.about-dark .about-page h3 {
  color: #fff;
  padding: 10px 0 25px;
}

body.about-dark .about-page .list li {
  color: #fff;
}

/* Elementor-style looping zigzag underline (marker: underline_zigzag) */
.about-page .list strong.atlantis-mark,
.atlantis-mark {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  --mark-duration: 1.2s;
}

.atlantis-mark__text {
  position: relative;
  z-index: 1;
}

.atlantis-mark > svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 20px);
  height: calc(100% + 12px);
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.atlantis-mark > svg path {
  fill: none;
  stroke: #ff2828;
  stroke-width: 9;
  opacity: 0;
  stroke-dasharray: 0 1500;
  transition: 0.3s;
}

.atlantis-mark.is-animated > svg path {
  animation: atlantis-mark-dash var(--mark-duration, 1.2s) forwards;
  animation-iteration-count: 1;
}

.atlantis-mark.is-hiding > svg path {
  opacity: 1;
  stroke-dasharray: 1500 1500;
  animation: atlantis-mark-hide 0.4s forwards;
  animation-iteration-count: 1;
}

/* Mobile: bullets sit next to text (centered block); long phrase split in JS */
@media (max-width: 767.98px) {
  .about-page .list {
    list-style: none;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    margin-inline: auto;
    text-align: center !important;
  }

  .about-page .list li {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.45em;
    margin: 0 auto 1.5rem;
    padding: 0 12px;
    text-align: left !important;
    line-height: 1.55;
  }

  .about-page .list li::before {
    content: "•";
    flex: 0 0 auto;
    color: #fff;
    line-height: 1.55;
  }

  .about-page .list .about-list__body {
    flex: 0 1 22em;
    max-width: 100%;
    text-align: left !important;
  }

  .atlantis-mark {
    white-space: nowrap;
    padding-bottom: 0.2em;
  }

  /* Nudge underline up so it doesn’t cover the next line */
  .atlantis-mark > svg {
    top: calc(50% - 4px);
    height: calc(100% + 10px);
  }

  .atlantis-mark > svg path {
    stroke-width: 8;
  }
}

@keyframes atlantis-mark-dash {
  0% {
    stroke-dasharray: 0 1500;
    opacity: 1;
  }

  to {
    stroke-dasharray: 1500 1500;
    opacity: 1;
  }
}

@keyframes atlantis-mark-hide {
  0% {
    opacity: 1;
    stroke-dasharray: 1500 1500;
  }

  to {
    filter: blur(10px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlantis-mark.is-animated > svg path {
    animation-duration: 0s;
    opacity: 1;
    stroke-dasharray: 1500 1500;
  }
}

body.about-dark .about-page .list strong {
  color: #fff;
}

body.about-dark .exams p {
  color: #fff;
}

body.about-dark .table {
  color: #fff;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.06);
  --bs-table-striped-color: #fff;
  --bs-table-border-color: rgba(170, 184, 235, 0.25);
  --bs-table-color: #fff;
}

body.about-dark .table td,
body.about-dark .table th {
  color: #fff;
}

/* Courses — language pills stay white (already set) */
body.courses-page .language-nav a {
  background: #fff;
  color: var(--color-2);
}

body.courses-page .language-nav a:hover {
  background: var(--color-2);
  color: #fff;
}

/* Tests — same treatment as courses cards on dark */
body.tests-page #language-tests {
  background-color: var(--color-1);
  border-radius: 0;
}

body.tests-page #language-tests h1,
body.tests-page #language-tests .text-primary {
  color: var(--heading-accent) !important;
}

body.tests-page #language-tests > .text-center > p {
  color: #fff !important;
}

body.tests-page .test-card {
  background-color: var(--color-2) !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

body.tests-page .test-card .card-title,
body.tests-page .test-card .card-text {
  color: #fff;
}

body.home .test-card {
  background-color: var(--color-2) !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

body.home .test-card .card-title,
body.home .test-card .card-text {
  color: #fff;
}

/* FAQ */
body.faq-page .questions h1 {
  color: var(--heading-accent);
}

body.faq-page .faq-item h3 {
  color: var(--heading-accent);
  text-align: left;
}

body.faq-page .faq-item h4 {
  color: var(--heading-accent);
  text-align: left;
  margin-top: 1rem;
  font-weight: 700;
}

body.faq-page .faq-item p,
body.faq-page .questions > p {
  color: #fff;
  text-align: left;
}

/* Gallery */
body.gallery-page .title-gallery {
  color: var(--heading-accent);
}

body.gallery-page .gallery-main > p {
  color: #fff;
}

/* Contact */
body.contact-page .contactText,
body.contact-page .icon-left p,
body.contact-page .icon-right p {
  color: #fff;
}

body.contact-page .bold-text a {
  color: var(--heading-accent);
}

body.contact-page .bold-text a:hover {
  color: #fff;
}

/* Privacy */
body.privacy-page .site-content,
body.privacy-page .entry-fallback {
  color: #fff;
}

body.privacy-page h1,
body.privacy-page h2 {
  color: var(--heading-accent);
}

/* Individual free-test pages */
body.free-test .site-content {
  color: #fff;
}

body.free-test h1 {
  color: var(--heading-accent);
}

/* Mala matura — classic dark page, blue “clouds” around text */
body.mala-matura-dark .mala-matura-page {
  color: #fff;
}

body.mala-matura-dark .mala-matura-page h1,
body.mala-matura-dark .mala-matura-page h2,
body.mala-matura-dark .mala-matura-page h3,
body.mala-matura-dark .mala-matura-page .lead-kicker {
  color: var(--heading-accent);
}

body.mala-matura-dark .mala-matura-page .hero-panel {
  background: var(--color-2);
  background-image: none;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(10, 15, 38, 0.28);
}

body.mala-matura-dark .mala-matura-page .hero-panel h1,
body.mala-matura-dark .mala-matura-page .hero-panel p,
body.mala-matura-dark .mala-matura-page .hero-panel .lead-kicker,
body.mala-matura-dark .mala-matura-page .hero-panel li {
  color: #fff;
}

body.mala-matura-dark .mm-card {
  background: var(--color-2);
  color: #fff;
  box-shadow: 0 10px 28px rgba(10, 15, 38, 0.22);
}

body.mala-matura-dark .mm-card h2,
body.mala-matura-dark .mm-card h3,
body.mala-matura-dark .mm-card p,
body.mala-matura-dark .mm-card li {
  color: #fff;
}

body.mala-matura-dark .useful-links a {
  background: #fff;
  color: var(--color-2);
}

body.mala-matura-dark .useful-links a:hover {
  background: var(--color-2);
  color: #fff;
  outline: 1px solid #fff;
}

body.mala-matura-dark .mm-hours div {
  background: var(--color-2);
}

body.mala-matura-dark .mm-hours h3,
body.mala-matura-dark .mm-hours p {
  color: #fff !important;
}

/* About */
.about-page {
  padding: 50px 0;
}

.about-page h1 {
  padding: 10px 0 25px !important;
  color: var(--color-2);
  font-size: 45px;
  letter-spacing: 1px;
}

.about-page__text p {
  max-width: 860px;
  margin: 0 auto 14px;
}

.about-page h3 {
  color: var(--text-dark);
  padding: 10px 0 25px;
}

.about-page .list {
  text-align: left;
  padding-bottom: 25px;
  max-width: 760px;
  margin: 0 auto;
  list-style: disc;
  padding-left: 1.5rem;
}

.about-page .list li {
  text-align: left;
}

.table-primary,
.table-primary th {
  background-color: var(--color-2) !important;
  --bs-table-bg: var(--color-2);
  color: var(--card-text) !important;
}

.exams h2 {
  font-weight: 700;
}

/* Mala matura */
.mala-matura-page {
  text-align: left;
  padding: 40px 0 70px;
}

.mala-matura-page h1,
.mala-matura-page h2,
.mala-matura-page h3 {
  text-align: left;
  color: var(--color-2);
  font-weight: 700;
}

.mala-matura-page .lead-kicker {
  color: var(--color-2);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: left;
}

.mala-matura-page p,
.mala-matura-page li {
  text-align: left;
}

.mala-matura-page .hero-panel {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  color: var(--heading-light);
  border-radius: 24px;
  padding: 40px 36px;
  margin-bottom: 40px;
}

.mala-matura-page .hero-panel h1,
.mala-matura-page .hero-panel p,
.mala-matura-page .hero-panel .lead-kicker {
  color: var(--heading-light);
}

.useful-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 32px;
}

.useful-links a {
  background: var(--card-bg-soft);
  color: var(--color-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.useful-links a:hover {
  background: var(--color-2);
  color: #fff;
}

.mm-card {
  background: var(--card-bg-soft);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.mm-card h2,
.mm-card h3 {
  padding-top: 0;
}

.mm-hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}

.mm-hours div {
  background: var(--navy-dark);
  color: #fff;
  border-radius: 16px;
  padding: 22px 16px;
}

.mm-hours h3,
.mm-hours p {
  color: #fff;
  text-align: center;
  padding: 0;
  margin: 0;
}

.mm-hours h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.site-content {
  min-height: 50vh;
}

/* Outline icons drawn in white — they sit directly on the dark section. */
.home-course-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.partners-section h2 {
  padding-top: 70px;
}

.faq-item p {
  padding-bottom: 20px;
}

.courses-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

.entry-fallback {
  padding: 60px 0;
  text-align: left;
}

@media (min-width: 768px) {
  .courses-container {
    width: 1170px;
    max-width: 100%;
  }

  .courses-grid {
    width: calc(50% - 15px);
  }
}

@media (max-width: 1024px) {
  .three,
  .four {
    margin-top: 50px;
  }

  .questions {
    padding: 30px 0 0;
  }
}

@media (max-width: 767px) {
  .bottom-card.open {
    max-height: 100%;
  }

  #mainMenu {
    background: var(--color-1);
    padding: 10px 16px 16px;
    border-radius: 0 0 12px 12px;
  }

  .card {
    min-height: unset;
  }

  .card .first-p {
    min-height: unset;
  }

  .card-inner {
    padding: 20px;
  }

  .flag {
    width: 80px;
    height: auto;
  }

  h2 {
    font-size: 2rem;
  }

  .card h3 {
    font-size: 1.5rem;
  }

  .language-nav {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 88%);
    margin-inline: auto;
  }

  .language-nav a {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 16px 10px 12px;
  }

  .language-nav__label {
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .page-banner {
    background-attachment: initial;
    height: 280px;
    min-height: 280px;
  }

  .site-hero {
    background-attachment: initial;
    min-height: auto;
    padding: 88px 0 72px;
  }

  .site-hero__col,
  .site-hero__title,
  .site-hero__text {
    text-align: center;
  }

  .site-hero__title {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
    margin-bottom: 28px;
  }

  .site-hero__text {
    font-size: 1.12rem;
    line-height: 1.65;
    margin-inline: auto;
  }

  .site-hero__btn {
    display: inline-flex;
    padding: 16px 30px;
  }

  .site-hero__col .site-hero__btn {
    margin-inline: auto;
  }

  .useful-links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .useful-links a {
    text-align: center;
  }

  .index-text,
  .courses-text {
    padding: 0 15px;
  }

  .questions p,
  .questions h3,
  .questions h4 {
    padding-left: 15px;
    padding-right: 15px;
  }

  .contactText {
    padding: 30px 15px;
  }

  .icon-left,
  .icon-right {
    float: none;
    width: 100%;
  }

  #topButton {
    right: 14px;
  }

  html.atlantis-cookie-bar-visible #topButton {
    bottom: calc(8rem + 8px);
  }

  .mala-matura-page .hero-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  #logo,
  .navbar-brand img {
    height: 42px;
  }

  .two {
    margin-top: 50px;
  }

  .blist {
    height: 580px;
  }

  .blist2 {
    background-image: url("../images/list2.webp");
    background-size: contain;
  }
}

@media (max-width: 320px) {
  h2 {
    font-size: 26px;
    padding: 30px 0 10px;
  }

  p {
    font-size: 81%;
    line-height: 22px;
  }

  header.site-header {
    min-height: 70px;
  }

  #logo,
  .navbar-brand img {
    height: 36px;
  }

  .clearfix {
    padding: 20px;
  }

  .two,
  .three,
  .four {
    margin-top: 25px;
  }

  .flag {
    width: 72px;
    height: auto;
  }
}

/* Mobile — center all page / footer text (client request) */
@media (max-width: 767.98px) {
  .site-content,
  .site-content h1,
  .site-content h2,
  .site-content h3,
  .site-content h4,
  .site-content h5,
  .site-content p,
  .site-content li,
  .site-content td,
  .site-content th,
  .site-cta,
  .site-cta h2,
  .site-cta p,
  .site-footer,
  .site-footer h2,
  .site-footer p,
  .site-footer li,
  .site-footer address,
  .about-page,
  .about-page h1,
  .about-page h2,
  .about-page h3,
  .about-page .list,
  .about-page .list li,
  .about-page__text,
  .about-page__text p,
  .courses-text,
  .courses-text p,
  .courses-text li,
  .faq-item,
  .faq-item h3,
  .faq-item h4,
  .faq-item p,
  .questions,
  .questions h1,
  .questions > p,
  .contactText,
  .icon-left p,
  .icon-right p,
  .mala-matura-page,
  .mala-matura-page h1,
  .mala-matura-page h2,
  .mala-matura-page p,
  .mala-matura-page li,
  .mm-card,
  .mm-hours,
  .privacy-page p,
  .privacy-page ul,
  .privacy-page li,
  .gallery-main,
  .gallery-main > p,
  .title-gallery,
  .entry-fallback,
  .partners-section,
  .partners-section h2,
  .partners-section p,
  .index-text,
  .card h3,
  .card p,
  .card .first-p,
  .test-card,
  .test-card .card-title,
  .test-card .card-text,
  body.faq-page .faq-item h3,
  body.faq-page .faq-item h4,
  body.faq-page .faq-item p,
  body.faq-page .questions > p,
  body.courses-page .courses-text,
  body.courses-page .courses-text p,
  body.courses-page .courses-text li,
  .site-hero__col,
  .site-hero__title,
  .site-hero__text {
    text-align: center !important;
  }

  .about-page .list,
  .privacy-page ul,
  .courses-text ul,
  .mala-matura-page ul {
    list-style-position: inside;
    padding-left: 0;
    margin-inline: auto;
  }

  .about-page .list {
    list-style: none;
  }

  .about-page .list li,
  .about-page .list .about-list__body {
    text-align: left !important;
  }

  .useful-links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .language-nav a {
    justify-content: center;
    text-align: center !important;
  }

  /* Keep typed field values readable */
  .site-content input:not([type="checkbox"]):not([type="radio"]),
  .site-content textarea,
  .site-content select,
  .wpcf7 input:not([type="checkbox"]):not([type="radio"]),
  .wpcf7 textarea,
  .wpcf7 select {
    text-align: left !important;
  }
}

