@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: #070c20;
  --header-text: #ffffff;
  --color-2: #5261be;
  --color-2-dark: #414ea3;
  --navy-dark: #070c20;
  --navy-mid: #23306b;
  --card-bg: #5261be;
  --card-text: #ffffff;
  --card-bg-soft: #e8f6fd;
  --text-dark: #282929;
  --heading-light: #ffffff;
  --nav-tests: #ff5400;
  --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 */
header.site-header {
  width: 100%;
  min-height: 100px;
  background-color: var(--color-1);
  box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 991.98px) {
  header.site-header .site-header__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.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;
}

#logo,
.navbar-brand img,
.site-logo {
  float: none;
  display: block;
  width: auto;
  height: 52px;
  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;
}

.navbar-nav .nav-link {
  color: var(--header-text) !important;
  padding: 16px 14px !important;
}

.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--header-text) !important;
  text-decoration: none;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:focus-visible::before,
.navbar-nav .nav-link.active::before {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-nav .nav-link.active {
  color: var(--header-text) !important;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .navbar-nav .nav-link::before {
    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 */
.banner {
  width: 100%;
  min-height: 420px;
  height: 520px;
  background-color: var(--navy-dark);
  background-image: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-mid) 45%, var(--color-2) 100%);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.banner.has-image {
  background-image: url("../images/banner.webp");
}

/* Front page hero */
.site-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 90px 0;
  background-color: var(--navy-dark);
  background-image: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-mid) 55%, var(--color-2) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.site-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--navy-dark) 88%, transparent) 0%,
    color-mix(in srgb, var(--navy-dark) 62%, transparent) 45%,
    color-mix(in srgb, var(--navy-dark) 35%, transparent) 100%
  );
}

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

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

.site-hero__title {
  color: var(--heading-light);
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.site-hero__accent {
  color: var(--color-2);
}

.site-hero__text {
  color: var(--heading-light);
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.site-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-2);
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 16px 34px;
  border-radius: 6px;
  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;
  }
}

.banner2 {
  width: 100%;
  min-height: 420px;
  height: 520px;
  background-color: var(--navy-dark);
  background-image: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-mid) 45%, var(--color-2) 100%);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.banner2.has-image {
  background-image: url("../images/banner2.webp");
}

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

#topButton a {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
}

#topButton img {
  width: auto;
  height: 100%;
  vertical-align: middle;
}

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

/* Dark courses section */
.courses,
.home.courses,
section.courses {
  background-color: var(--navy-dark);
  width: 100%;
  height: auto;
}

.courses h2,
.home.courses h2,
.courses .section-title {
  color: var(--heading-light);
  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;
}

.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: hidden;
  box-shadow: 0 8px 24px rgba(6, 12, 34, 0.08);
}

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

/* Footer */
footer.site-footer {
  background-color: var(--text-dark);
  height: auto;
}

footer.site-footer p {
  color: white;
  float: right;
  margin-top: 4px;
}

footer.site-footer .privacy {
  font-weight: bold;
  text-decoration: unset;
  color: #fff;
}

footer.site-footer .inweb {
  color: var(--inweb) !important;
  text-decoration: unset;
}

.f-icons {
  float: left;
  width: 46px;
  height: 46px;
  cursor: pointer;
  margin-bottom: 13px;
  margin-right: 8px;
}

.footer-inner {
  padding: 15px 0;
}

.footer-inner a {
  color: white;
}

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

.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;
}

.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;
}

/* 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;
}

.home-course-icon {
  display: block;
  width: 96px;
  height: auto;
  margin-inline: auto;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(7, 12, 32, 0.22);
  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;
  }

  .footer-inner {
    padding: 14px 15px 0;
  }

  footer.site-footer p {
    margin-top: 7px;
  }

  .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: center;
  }

  .language-nav a {
    width: 80%;
    text-align: center;
  }

  .banner,
  .banner2,
  .site-hero {
    background-attachment: initial;
    height: 280px;
    min-height: 280px;
  }

  .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 {
    bottom: 10px;
    right: 10px;
  }

  .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;
  }

  .footer-inner {
    padding: 20px 0;
  }

  footer.site-footer p {
    float: none;
    margin-top: 4px;
  }

  .f-icons {
    float: none;
    margin-bottom: 11px;
  }
}

@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;
  }
}
