:root {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: #122f39;
  background: #f7f7f2;
  line-height: 1.55;
  --teal: #074f53;
  --ink: #10383b;
  --line: #cfdad4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.bar,
main,
footer {
  max-width: 1180px;
  margin: auto;
  padding: 0 clamp(16px, 4vw, 52px);
}
.bar,
.brand,
nav,
.row,
footer,
.tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bar {
  justify-content: space-between;
  min-height: 80px;
}
.brand {
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
}
.brand img {
  width: 105px;
  height: auto;
}
.brand b {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.bar nav a {
  text-decoration: none;
  font-weight: 650;
}
.bar nav form {
  margin: 0;
}
.bar nav button {
  font-size: 0.9rem;
}
.bar nav {
  gap: 15px;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
.link {
  display: inline-block;
  margin: 5px 16px 5px 0;
  font-weight: 650;
}
main {
  padding-top: 34px;
  padding-bottom: 32px;
  min-height: 72vh;
}
footer {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 30px;
  flex-wrap: wrap;
  color: #4c6061;
}
footer a {
  margin-left: auto;
}
.hero {
  background: #093d40;
  color: #faf9ee;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
}
.hero > div {
  padding: clamp(24px, 4vw, 55px);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 360px;
}
.hero p {
  max-width: 420px;
}
.hero h1 {
  margin: 5px 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
}
.hero .arabic {
  font-size: 1.4rem;
  color: #d5eac4;
  margin: 10px 0;
}
.hero .kicker {
  color: #c4e2cb;
}
.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #43716b;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
h2 {
  font-size: 1.65rem;
  margin: 26px 0 16px;
}
h3 {
  font-size: 1.22rem;
}
.sectiontitle {
  margin-top: 36px;
}
.filters,
.columns,
.grid {
  display: grid;
  gap: 18px;
}
.filters {
  grid-template-columns: 1.4fr 1fr auto;
  align-items: end;
  margin-bottom: 24px;
}
.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
}
.card,
.panel,
.narrow,
fieldset,
aside,
.certificate,
.result {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.card {
  display: flex;
  flex-direction: column;
}
.card h3 {
  margin: 12px 0;
}
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card .link {
  margin-top: auto;
}
.card p,
small {
  color: #526966;
}
.narrow {
  max-width: 500px;
  margin: 4vh auto;
  padding: 30px;
}
.panel,
fieldset,
aside,
details {
  margin: 16px 0;
}
.panel h2:first-child {
  margin-top: 0;
}
.columns {
  grid-template-columns: 1fr 1fr;
}
.row {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.tabs {
  flex-wrap: wrap;
}
label {
  display: grid;
  gap: 5px;
  font-size: 0.94rem;
  font-weight: 600;
  margin: 12px 0;
}
input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #9daea8;
  padding: 10px;
  border-radius: 6px;
  font: inherit;
  background: white;
  color: inherit;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
.filters label {
  margin: 0;
}
.tick,
.choice {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tick input,
.choice input {
  width: auto;
  accent-color: var(--teal);
}
.choice {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.choice:has(:checked) {
  border-color: var(--teal);
  background: #eef6ed;
}
button,
.pill {
  display: inline-block;
  cursor: pointer;
  background: var(--teal);
  color: white;
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: 7px;
  padding: 10px 17px;
  text-decoration: none;
}
button:hover,
.pill:hover {
  background: #063d40;
  color: white;
}
.secondary {
  background: #e2eae6;
  color: var(--ink);
  margin-right: 10px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  padding: 8px 0;
}
.question-img {
  max-width: min(100%, 380px);
  max-height: 210px;
  object-fit: contain;
}
.choice .question-img {
  max-width: 65%;
}
figure {
  margin: 0;
}
.notice,
.timer,
.result {
  background: #e9f2e8;
  padding: 15px;
  border-radius: 9px;
}
.timer {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}
.certificate {
  text-align: center;
  border: 5px double #739a85;
  padding: clamp(18px, 5vw, 65px);
  margin: 26px 0;
}
.certificate h1,
.certificate h2 {
  font-family: Georgia, serif;
}
.certificate img {
  max-width: 150px;
}
video,
iframe {
  width: min(100%, 850px);
  aspect-ratio: 16/9;
  border: 0;
  background: #102d2f;
}
.intro {
  max-width: 75ch;
}
legend {
  font-weight: bold;
}
input:focus-visible,
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #df9942;
  outline-offset: 2px;
}
img {
  max-width: 100%;
}
@media (max-width: 720px) {
  .bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand img {
    width: 86px;
  }
  nav {
    flex-wrap: wrap;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero img {
    max-height: 135px;
  }
  .filters,
  .columns {
    grid-template-columns: 1fr;
  }
  .timer {
    gap: 8px;
  }
  .question-img {
    max-width: 100%;
  }
}
@media print {
  header,
  footer,
  button,
  .certificate a {
    display: none;
  }
  body,
  main {
    background: white;
  }
  .certificate {
    margin: 0;
    break-inside: avoid;
  }
}
