*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#202938;background:#f5f7fa;line-height:1.55}.topbar{display:flex;justify-content:space-between;align-items:center;padding:15px max(20px,calc((100% - 980px)/2));background:#fff;border-bottom:1px solid #e5e7eb}.brand{font-weight:700;color:#173b68;text-decoration:none;font-size:19px}.container{max-width:980px;margin:34px auto;padding:0 18px}.hero{max-width:760px;margin:0 auto 26px}.eyebrow{color:#52657d;text-transform:uppercase;font-size:12px;letter-spacing:.08em;font-weight:700}.hero h1{font-size:clamp(28px,5vw,42px);line-height:1.16;margin:8px 0 12px;color:#172b45}.intro{color:#5d6878;font-size:17px}.exam-card,.quiz-card,.info-card{background:#fff;border:1px solid #e2e7ee;border-radius:13px;padding:25px;box-shadow:0 3px 14px #14243a0b}.exam-card{max-width:760px;margin:auto}.exam-card h2{margin:0 0 8px}.muted,.small,.disclaimer{color:#687385;font-size:13px}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.primary,.secondary,button{display:inline-block;padding:11px 18px;border-radius:8px;font-weight:700;text-decoration:none;cursor:pointer;font-size:14px}.primary{color:#fff;background:#176b3a;border:1px solid #176b3a}.secondary{color:#26364a;background:#fff;border:1px solid #cbd5e1}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:760px;margin:18px auto}.info-card h2{font-size:17px;margin:0 0 5px}.info-card p{margin:0;color:#687385;font-size:14px}.disclaimer{max-width:760px;margin:25px auto;text-align:center}.language-picker select,select{padding:8px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#26364a}.back-link{display:inline-block;margin-bottom:16px;color:#315b88}.progress-row{display:flex;justify-content:space-between;gap:12px;font-size:14px}.progress{height:7px;background:#e3e8ef;border-radius:10px;margin:10px 0 20px;overflow:hidden}.progress span{display:block;height:100%;background:#24834a;width:0}.quiz-card{max-width:760px;margin:0 auto}h1{font-size:23px;line-height:1.35;margin:0 0 22px}fieldset{border:0;padding:0;margin:0}legend{font-size:13px;color:#667085;margin-bottom:12px}.option{display:flex;align-items:center;gap:12px;padding:13px;margin:9px 0;border:1px solid #dce2ea;border-radius:9px;cursor:pointer}.option:has(input:checked){border-color:#26834b;background:#f1faf4}.option input{accent-color:#26834b}.feedback{margin-top:18px;padding:14px;border-radius:8px}.feedback p{margin:6px 0 0}.correct{background:#edf9f0;color:#176b3a}.incorrect{background:#fff1f0;color:#a32920}.nav-row{display:flex;justify-content:space-between;align-items:center;margin-top:24px;gap:12px}.nav-row button:disabled,button:disabled{opacity:.45;cursor:not-allowed}.question-block{padding:16px 0;border-bottom:1px solid #e5e7eb}.question-block h3{font-size:17px;margin:0 0 10px}.question-block label{display:flex;gap:9px;padding:7px 0}.question-block input{accent-color:#176b3a}footer{text-align:center;padding:25px;color:#687385;font-size:13px}footer a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.container{margin:22px auto}.exam-card,.quiz-card,.info-card{padding:19px}.info-grid{grid-template-columns:1fr}.topbar{padding:13px 17px}}
/* Mock test loading indicator */
.loading-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #52657d;
  font-size: 14px;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e2e8f0;
  border-top-color: #176b3a;
  border-radius: 50%;
  animation: mock-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes mock-spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-state[hidden] {
  display: none;
}
/* Question image gallery */
.question-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 20px;
}

.question-images[hidden] {
  display: none;
}

.question-image-button {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 9px;
  background: #f5f7fa;
  cursor: zoom-in;
}

.question-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-preview {
  position: relative;
  width: min(92vw, 900px);
  max-width: 92vw;
  max-height: 90vh;
  padding: 42px 16px 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.image-preview::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.image-preview img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.image-preview-close {
  position: absolute;
  top: 5px;
  right: 8px;
  padding: 2px 12px;
  border: 0;
  background: transparent;
  color: #26364a;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .question-images {
    gap: 7px;
    margin-bottom: 16px;
  }

  .question-image-button {
    padding: 3px;
  }
}

/* Homepage country and exam category labels */
.exam-location {
  margin: 0 0 12px;
  letter-spacing: 0.07em;
}

.exam-category {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #eef3f8;
  color: #52657d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.exam-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.exam-card > .muted {
  margin-top: 0;
  margin-bottom: 18px;
}

/* Homepage breadcrumb and full-width main action */
.exam-location {
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.045em;
  line-height: 1.8;
}

.main-action-row {
  display: flex;
  width: 100%;
}

.main-action-row .primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  font-size: 15px;
}


/* Homepage brand and spacing refinements */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.disclaimer {
  margin-top: 16px;
}

/* ================================
   Practice page UI improvements
================================ */

/* Wider and more balanced practice layout */
body:has(#answer-form) .container {
  max-width: 1080px;
  margin: 22px auto;
}

body:has(#answer-form) .back-link {
  margin-bottom: 12px;
  font-size: 14px;
  text-decoration: none;
}

/* Refined progress indicator */
.progress-row {
  align-items: center;
  color: #344256;
  font-weight: 600;
  margin-bottom: 0;
}

#counter {
  font-size: 15px;
}

#topic {
  color: #718096;
  font-size: 13px;
  text-align: right;
}

.progress {
  height: 6px;
  margin: 9px 0 17px;
  background: #e9edf2;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  height: 100%;
  background: linear-gradient(90deg, #26734d, #45a477);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Question card */
.quiz-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 32px;
  border: 1px solid #e5eaf0;
  border-radius: 16px;
  box-shadow: 0 5px 22px rgba(30, 50, 75, 0.06);
}

.quiz-card > h1 {
  margin: 0 0 18px;
  color: #1d2c40;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.4;
}

/* Center question images */
.question-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
}

.question-image-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 420px);
  min-height: 120px;
  aspect-ratio: auto;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
}

.question-image-button img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin: auto;
}

/* Answer options */
#options {
  min-width: 0;
}

#options legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #718096;
}

#options .option {
  min-height: 48px;
  padding: 11px 15px;
  margin: 8px 0;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#options .option:hover {
  border-color: #9bbba8;
  background: #f8fbf9;
}

#options .option:has(input:checked) {
  border-color: #32845a;
  background: #f0f8f3;
}

#options .option input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Answer feedback */
#feedback {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
}

#feedback p {
  line-height: 1.6;
}

/* Navigation buttons */
.nav-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f4;
}

.nav-row button {
  min-width: 112px;
  min-height: 42px;
}

#previous {
  border: 1px solid #d7dee7;
}

#next {
  background: #246e49;
  border-color: #246e49;
}

#next:hover:not(:disabled) {
  background: #1c5c3b;
}

/* Disclaimer */
body:has(#answer-form) .disclaimer {
  margin: 15px auto;
}

/* Mobile layout */
@media (max-width: 600px) {
  body:has(#answer-form) .container {
    margin: 16px auto;
    padding: 0 13px;
  }

  .quiz-card {
    padding: 19px 16px;
    border-radius: 13px;
  }

  .progress {
    margin-bottom: 13px;
  }

  .question-images {
    gap: 8px;
    margin-bottom: 15px;
  }

  .question-image-button {
    width: 100%;
    min-height: 100px;
  }

  .question-image-button img {
    max-height: 210px;
  }

  #options .option {
    padding: 11px 12px;
    margin: 7px 0;
  }

  .nav-row {
    margin-top: 15px;
    padding-top: 13px;
  }

  .nav-row button {
    min-width: 0;
    flex: 1;
  }
}
#options .option.answer-correct {
  border: 1px solid #269653;
  background: #e5f6e9;
  color: #176b37;
}

#options .option.answer-incorrect {
  border: 1px solid #d94b4b;
  background: #fde9e9;
  color: #a32323;
}
/* Final answer state overrides */
#options .option:has(input:checked).answer-correct {
  border: 1px solid #269653 !important;
  background: #e5f6e9 !important;
  color: #176b37 !important;
}

#options .option:has(input:checked).answer-incorrect {
  border: 1px solid #d94b4b !important;
  background: #fde9e9 !important;
  color: #a32323 !important;
}
/* ========================================
   Homepage Exam Catalog
======================================== */

body:has(#catalog) {
  background: #fff;
  color: #202938;
}

body:has(#catalog) .topbar {
  max-width: 100%;
  min-height: 68px;
  padding: 12px max(20px, calc((100% - 1100px) / 2));
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  gap: 20px;
}

body:has(#catalog) .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #173b68;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

body:has(#catalog) .brand-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

#catalog-search {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #202938;
  font-size: 15px;
  outline: none;
}

#catalog-search:focus {
  border-color: #4779b8;
  box-shadow: 0 0 0 2px rgba(71, 121, 184, 0.12);
}

body:has(#catalog) .language-picker select {
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 13px;
}

body:has(#catalog) .container {
  max-width: 1100px;
  margin: 32px auto 48px;
  padding: 0 24px;
}

.catalog {
  width: 100%;
}

.catalog-country {
  padding: 0 0 25px;
  margin: 0 0 25px;
  border-bottom: 1px solid #e8ebef;
}

.catalog-country:last-child {
  border-bottom: 0;
}

.catalog-country-title {
  margin: 0 0 17px;
  color: #202938;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.catalog-region-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 0 0 12px;
}

.catalog-region-name {
  color: #344054;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.catalog-region-exams,
.catalog-all-exams {
  min-width: 0;
  color: #98a2b3;
  font-size: 14px;
  line-height: 1.9;
}

.catalog-all-exams {
  margin: 0 0 12px 145px;
}

.catalog-exam-link {
  display: inline-block;
  padding: 3px 0;
  color: #2865a5;
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-exam-link:hover {
  color: #174578;
}

.catalog-empty {
  padding: 30px 0;
  color: #667085;
  font-size: 14px;
}


/* Mobile layout */

@media (max-width: 640px) {
  body:has(#catalog) .topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  body:has(#catalog) .brand {
    font-size: 17px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  #catalog-search {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  body:has(#catalog) .container {
    margin-top: 24px;
    padding: 0 16px;
  }

  .catalog-country {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .catalog-country-title {
    font-size: 19px;
    margin-bottom: 13px;
  }

  .catalog-region-row {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 13px;
  }

  .catalog-region-name {
    font-size: 14px;
  }

  .catalog-region-exams,
  .catalog-all-exams {
    font-size: 14px;
  }

  .catalog-all-exams {
    margin-left: 0;
  }
}

/* Indent regions under each country */

.catalog-region-row {
  padding-left: 28px;
  position: relative;
}

.catalog-region-row::before {
  content: "•";
  position: absolute;
  left: 10px;
  top: 0;
  color: #202938;
  font-size: 16px;
  line-height: 1.6;
}
.catalog-region-row {
  padding-left: 48px;
}

.catalog-region-row::before {
  left: 10px;
}
/* Practice question navigator */
.question-navigator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.question-navigator::-webkit-scrollbar {
  display: none;
}

.question-nav-window {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.question-nav-arrow {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #dce2ea;
  border-radius: 6px;
  background: #fff;
  color: #475467;
  font-size: 13px;
}

.question-nav-item {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  background: #eef1f5;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.question-nav-item.is-correct {
  background: #e5f4e9;
  border-color: #b8ddc3;
  color: #176b3a;
}

.question-nav-item.is-incorrect {
  background: #fdebea;
  border-color: #f2c3bf;
  color: #a32920;
}

.question-nav-item.is-current {
  border: 2px solid #176b3a;
  padding: 0;
}

.question-nav-arrow:disabled {
  opacity: 0.3;
}

@media (max-width: 600px) {
  .question-navigator {
    gap: 4px;
  }

  .question-nav-window {
    gap: 4px;
  }
}
/* Global Exam Practice - shared public footer */
.site-footer {
  margin-top: 60px;
  padding: 38px 20px 22px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  color: #526175;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  max-width: 440px;
}

.footer-logo {
  color: #173b68;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand p {
  margin: 7px 0;
  font-size: 13px;
}

.footer-description {
  max-width: 400px;
  color: #687385;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 130px;
}

.footer-links a {
  color: #526175;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #176b3a;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 980px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.footer-disclaimer,
.footer-copyright {
  margin: 7px 0;
  color: #7b8492;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .site-footer {
    margin-top: 38px;
    padding: 28px 18px 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}
.info-page {
  width: 100%;
  max-width: 820px;
  min-height: 0;
  margin: 34px auto;
  display: block;
}

.coming-soon-card {
  width: 100%;
  padding: 48px 40px;
}

.coming-soon-card h1 {
  margin: 8px 0 18px;
  color: #172b45;
}

.coming-soon-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #edf3fa;
  color: #315b88;
  font-size: 13px;
  font-weight: 700;
}

.coming-soon-description {
  max-width: 560px;
  margin: 0 0 24px;
  color: #687385;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .info-page {
    min-height: 320px;
  }

  .coming-soon-card {
    padding: 30px 22px;
  }
}

/* About page */
.about-card {
  padding: 42px 40px;
}

.about-card h1 {
  margin: 8px 0 18px;
  color: #172b45;
}

.about-intro {
  max-width: 680px;
  margin: 0 0 30px;
  color: #526175;
  font-size: 17px;
  line-height: 1.75;
}

.about-section {
  max-width: 700px;
  margin-top: 25px;
}

.about-section h2 {
  margin: 0 0 8px;
  color: #172b45;
  font-size: 17px;
}

.about-section p {
  margin: 0;
  color: #687385;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .about-card {
    padding: 28px 22px;
  }

  .about-intro {
    font-size: 15px;
  }
}

/* ========================================
   Global Exam Practice - Homepage Design
   ======================================== */

.homepage {
  background: #f4f8fd;
  color: #17365f;
}

/* Header */
.homepage .site-header {
  max-width: 1440px;
  min-height: 76px;
  margin: 12px auto 0;
  padding: 12px 34px;
  background: #fff;
  border: 1px solid #e4ebf4;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 2px 12px rgba(24, 57, 95, .06);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
}

.homepage .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #123765;
  font-size: 21px;
  font-weight: 750;
  white-space: nowrap;
}

.homepage .brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  padding: 12px 2px;
  color: #263d5c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #1769c2;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: #1769c2;
}

.homepage .language-picker select {
  min-width: 108px;
  padding: 9px 12px;
  border: 1px solid #d7e2ef;
  border-radius: 9px;
  font-size: 13px;
}

/* Main and hero */
.homepage-main {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #e4ebf4;
  border-right: 1px solid #e4ebf4;
  box-shadow: 0 3px 14px rgba(24, 57, 95, .05);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 6.5% 42px;
  background:
    radial-gradient(ellipse at 88% 38%, rgba(174, 211, 255, .46), transparent 36%),
    linear-gradient(115deg, #f4f8ff 0%, #eaf3ff 56%, #dcecff 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -130px;
  width: 360px;
  height: 560px;
  border: 45px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  transform: rotate(28deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  align-items: center;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto 30px;
}

.hero-content {
  min-width: 0;
}

.hero-content h1 {
  margin: 0 0 8px;
  color: #123765;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.hero-slogan {
  margin: 0 0 12px;
  color: #1769c2;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 750;
  line-height: 1.35;
}

.hero-description {
  max-width: 560px;
  margin: 0 0 24px;
  color: #263d5c;
  font-size: 16px;
  line-height: 1.65;
}

.hero-search {
  display: flex;
  align-items: center;
  width: min(100%, 570px);
  min-height: 48px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(24, 57, 95, .05);
}

.search-icon {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  color: #17365f;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  outline: none;
  color: #263d5c;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.hero-search input:focus {
  outline: none;
}

.hero-search button {
  align-self: stretch;
  flex: 0 0 auto;
  padding: 0 23px;
  border: 0;
  border-radius: 0;
  background: #1769c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-search button:hover {
  background: #1058a8;
}

.hero-illustration {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-illustration-image {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(31, 86, 145, .16));
}

/* Dynamic country catalog */
.homepage .catalog {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.homepage .catalog-country {
  min-width: 0;
  margin: 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #edf1f7;
  border-radius: 13px;
  box-shadow: 0 3px 14px rgba(24, 57, 95, .055);
}

.homepage .catalog-country-title {
  margin: 0 0 16px;
  color: #123765;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;
}

.homepage .catalog-region-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  column-gap: 6px;
  margin: 0;
  padding: 10px 0 10px 24px;
  border-top: 1px solid #f0f3f8;
  position: relative;
}

.homepage .catalog-region-row::before {
  left: 8px;
  top: 8px;
  color: #1769c2;
  font-size: 15px;
  line-height: 1.6;
}

.homepage .catalog-region-name {
  color: #17365f;
  font-size: 13px;
  font-weight: 700;
}

.homepage .catalog-region-exams,
.homepage .catalog-all-exams {
  color: #1769c2;
  font-size: 12px;
  line-height: 1.6;
}

.homepage .catalog-all-exams {
  margin: 0 0 8px;
}

.homepage .catalog-exam-link {
  display: inline-block;
  margin: 2px 5px 5px 0;
  color: #1769c2;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.homepage .catalog-exam-link:hover {
  color: #0d4d91;
  text-decoration-thickness: 2px;
}

.homepage .catalog-view-more {
  display: block;
  margin: 7px 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1769c2;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.homepage .catalog-view-more:hover {
  color: #0d4d91;
  text-decoration: underline;
}

.homepage .catalog-other-countries {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #f0f6ff, #e6f0fc);
  border-style: dashed;
}

.homepage .catalog-other-description {
  margin: 0;
  color: #687b94;
  font-size: 13px;
  line-height: 1.6;
}

.homepage .catalog-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #687b94;
  text-align: center;
  background: #fff;
  border: 1px solid #e4ebf4;
  border-radius: 12px;
}

/* Homepage footer: three-column layout */
.homepage .site-footer {
  max-width: 1440px;
  margin: 0 auto 12px;
  padding: 28px 5.5% 22px;
  background: linear-gradient(110deg, #f1f7ff, #eaf3ff);
  border: 1px solid #e4ebf4;
  border-radius: 0 0 14px 14px;
  color: #526b8b;
  text-align: left;
}

.homepage .footer-inner {
  display: grid;
  grid-template-columns: 1.1fr .85fr 1.3fr;
  align-items: center;
  gap: 24px;
}

.homepage .footer-brand {
  max-width: none;
}
.homepage .footer-legal {
  min-width: 0;
  align-self: center;
}

.homepage .footer-legal .footer-disclaimer {
  margin: 0;
  color: #627994;
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
}

.homepage .footer-logo {
  color: #123765;
  font-size: 16px;
}

.homepage .footer-brand p {
  margin: 5px 0;
  font-size: 12px;
}

.homepage .footer-description {
  max-width: 300px;
  font-size: 11px !important;
}

.homepage .footer-links {
  min-width: 0;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 16px;
  border-left: 1px solid #c9d9ec;
  border-right: 1px solid #c9d9ec;
}

.homepage .footer-links a {
  color: #315477;
  font-size: 12px;
  white-space: nowrap;
}

.homepage .footer-bottom {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.homepage .footer-disclaimer,
.homepage .footer-copyright {
  margin: 5px 0;
  color: #627994;
  font-size: 10px;
  line-height: 1.55;
}

/* Responsive homepage */
@media (max-width: 760px) {
  .homepage .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 12px 16px;
    margin: 0;
    border-radius: 0;
  }

  .homepage .brand {
    font-size: 17px;
  }

  .homepage .brand-icon {
    width: 34px;
    height: 34px;
  }

  .header-nav {
    grid-column: 1;
    grid-row: 2;
    gap: 22px;
  }

  .homepage .language-picker {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .home-hero {
    padding: 36px 22px 28px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-content h1 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .hero-illustration {
    max-height: 210px;
  }

.hero-illustration-image {
  max-width: 280px;
  max-height: 240px;
  object-fit: contain;
}

  .homepage .catalog {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .homepage .catalog-country {
    padding: 19px;
  }

  .homepage .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .homepage .footer-links {
    justify-content: flex-start;
    padding: 14px 0;
    border: 0;
    border-top: 1px solid #c9d9ec;
    border-bottom: 1px solid #c9d9ec;
  }

.homepage .footer-bottom {
  text-align: center;
}
}

@media (max-width: 420px) {
  .homepage .catalog-region-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-search button {
    padding: 0 14px;
  }

  .hero-description {
    font-size: 14px;
  }
}

/* Homepage compact desktop layout */
@media (min-width: 761px) {
  /* Reduce hero vertical space */
  .homepage .home-hero {
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .homepage .hero-inner {
    margin-bottom: 16px;
    gap: 24px;
  }

  .homepage .hero-illustration-image {
    max-width: 360px;
  }

  .homepage .hero-content h1 {
    margin-bottom: 6px;
  }

  .homepage .hero-slogan {
    margin-bottom: 8px;
  }

  .homepage .hero-description {
    margin-bottom: 16px;
    line-height: 1.5;
  }

  /* Align country cards in each row */
  .homepage .catalog {
    align-items: stretch;
    gap: 14px;
  }

  .homepage .catalog-country {
    height: 100%;
    padding: 18px 22px;
  }

  .homepage .catalog-country-title {
    margin-bottom: 12px;
  }

  .homepage .catalog-region-row {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .homepage .catalog-other-countries {
    min-height: 140px;
  }

  /* Make footer more compact */
  .homepage .site-footer {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .homepage .footer-inner {
    gap: 18px;
  }

  .homepage .footer-links {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .homepage .footer-disclaimer,
  .homepage .footer-copyright {
    margin-top: 3px;
    margin-bottom: 3px;
  }
}
