/* IFB Türkiye Core – public components */
.ifb-exams,
.ifb-exam-archive,
.ifb-course-grid,
.ifb-form,
.ifb-faq-list,
.ifb-contact-card,
.ifb-level-test,
.ifb-level-result {
  --ifb-core-blue: var(--ifb-blue, #0000aa);
  --ifb-core-blue-dark: var(--ifb-blue-dark, #000078);
  --ifb-core-navy: var(--ifb-navy, #172033);
  --ifb-core-gold: var(--ifb-gold, #c9962c);
  --ifb-core-cream: var(--ifb-cream, #f7f7f4);
  --ifb-core-muted: var(--ifb-muted, #4b5870);
  --ifb-core-border: var(--ifb-border, #e4e7ec);
  --ifb-core-radius: var(--ifb-radius, 14px);
  --ifb-core-shadow: var(--ifb-shadow-sm, 0 8px 28px rgba(23, 32, 51, .07));
}

.ifb-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--ifb-core-border);
  border-radius: var(--ifb-core-radius);
  background: #fff;
}
.ifb-list-filters label { display: grid; min-width: 190px; gap: 6px; color: var(--ifb-core-navy); font-size: .84rem; font-weight: 750; }
.ifb-list-filters select {
  min-height: 46px;
  padding: 9px 38px 9px 12px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ifb-core-navy);
}
.ifb-month-heading { margin: 38px 0 15px; font-size: 1.25rem; }
.ifb-month-heading:first-child { margin-top: 0; }
.ifb-exam-list { display: grid; gap: 13px; }
.ifb-exam-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--ifb-core-border);
  border-radius: var(--ifb-core-radius);
  background: #fff;
  box-shadow: var(--ifb-core-shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.ifb-exam-card:hover { border-color: #c8ccda; transform: translateY(-1px); box-shadow: 0 13px 34px rgba(23,32,51,.09); }
.ifb-date-badge {
  display: grid;
  width: 62px;
  height: 66px;
  align-content: center;
  justify-items: center;
  border-radius: 11px;
  background: var(--ifb-core-navy);
  color: #fff;
  line-height: 1;
}
.ifb-date-badge span { font-size: 1.45rem; font-weight: 850; }
.ifb-date-badge small { margin-top: 5px; color: #e8edf5; font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.ifb-exam-card__heading { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.ifb-exam-card h4 { margin: 0; font-size: 1.2rem; }
.ifb-exam-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 8px; color: var(--ifb-core-muted); font-size: .85rem; }
.ifb-exam-meta span { position: relative; }
.ifb-exam-meta span:not(:last-child)::after { content: "·"; position: absolute; right: -10px; color: #a7adba; }
.ifb-exam-deadline { margin: 7px 0 0; color: var(--ifb-core-muted); font-size: .78rem; }
.ifb-exam-card__action { display: grid; min-width: 122px; justify-items: end; gap: 5px; text-align: right; }
.ifb-price { color: var(--ifb-core-navy); font-size: 1.15rem; }
.ifb-exam-card__action small { color: var(--ifb-core-muted); font-size: .69rem; }
.ifb-exam-card__action .ifb-button { min-height: 40px; margin-top: 4px; padding: 8px 16px; font-size: .86rem; }
.ifb-button--disabled { border-color: #d8dce3 !important; background: #eff1f4 !important; color: #7b8492 !important; cursor: not-allowed; transform: none !important; }
.ifb-status { display: inline-flex; align-items: center; width: max-content; padding: 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; line-height: 1.25; }
.ifb-status--open { background: #eaf7f0; color: #176b45; }
.ifb-status--few { background: #fff4d8; color: #8a5a00; }
.ifb-status--full,
.ifb-status--closed { background: #eff1f4; color: #596270; }
.ifb-status--completed { background: #eaf3f1; color: #315f58; }
.ifb-status--cancelled { background: #fdecea; color: #a12622; }
.ifb-status--planned { background: #eef2ff; color: #353c91; }
.ifb-exams--compact .ifb-exam-card { grid-template-columns: 51px minmax(0, 1fr) auto; gap: 12px; padding: 12px; box-shadow: none; }
.ifb-exams--compact .ifb-date-badge { width: 49px; height: 52px; border-radius: 8px; }
.ifb-exams--compact .ifb-date-badge span { font-size: 1.12rem; }
.ifb-exams--compact .ifb-date-badge small { font-size: .58rem; }
.ifb-exams--compact .ifb-exam-card h4 { font-size: .98rem; }
.ifb-exams--compact .ifb-exam-meta { font-size: .74rem; }
.ifb-exams--compact .ifb-status,
.ifb-exams--compact .ifb-exam-card__action small { display: none; }
.ifb-exams--compact .ifb-price { font-size: .88rem; }
.ifb-exams--compact .ifb-exam-card__action { min-width: 77px; }
.ifb-exams--compact .ifb-exam-card__action .ifb-button { min-height: 34px; padding: 7px 11px; font-size: .73rem; }

/* Published exams move into this archive automatically after their date has passed. */
.ifb-exam-archive {
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--ifb-core-border);
  border-radius: var(--ifb-core-radius);
  background: #fff;
  box-shadow: var(--ifb-core-shadow);
}
.ifb-exam-archive summary {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px 58px 18px 20px;
  color: var(--ifb-core-navy);
  cursor: pointer;
  list-style: none;
}
.ifb-exam-archive summary::-webkit-details-marker { display: none; }
.ifb-exam-archive summary::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 21px;
  transform: translateY(-55%);
  color: var(--ifb-core-blue);
  font-size: 1.3rem;
  font-weight: 850;
  transition: transform 160ms ease;
}
.ifb-exam-archive[open] summary::after { transform: translateY(-40%) rotate(180deg); }
.ifb-exam-archive__title { display: grid; gap: 3px; }
.ifb-exam-archive__title strong { font-size: 1.08rem; }
.ifb-exam-archive__title small { color: var(--ifb-core-muted); font-size: .78rem; font-weight: 500; }
.ifb-exam-archive__count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ifb-core-cream);
  color: var(--ifb-core-muted);
  font-size: .72rem;
  font-weight: 750;
}
.ifb-exam-archive__body { padding: 0 20px 20px; border-top: 1px solid var(--ifb-core-border); }
.ifb-exam-archive__list { display: grid; gap: 9px; padding-top: 17px; }
.ifb-exam-archive__year { margin: 12px 0 3px; color: var(--ifb-core-muted); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; }
.ifb-exam-archive__year:first-child { margin-top: 0; }
.ifb-exam-archive-card {
  display: grid;
  grid-template-columns: minmax(116px, .8fr) minmax(0, 2.4fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid var(--ifb-core-border);
  border-radius: 10px;
  background: #fbfcfd;
}
.ifb-exam-archive-card time { color: var(--ifb-core-navy); font-size: .82rem; font-weight: 760; }
.ifb-exam-archive-card h5 { margin: 0; color: var(--ifb-core-navy); font-size: .98rem; }
.ifb-exam-archive-card .ifb-price { font-size: .9rem; }
.ifb-exam-archive__empty { padding: 21px 0 2px; color: var(--ifb-core-muted); }
.ifb-exam-archive__empty p { margin: 0; }

.ifb-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ifb-course-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--ifb-core-border);
  border-radius: var(--ifb-core-radius);
  background: #fff;
  box-shadow: var(--ifb-core-shadow);
}
.ifb-course-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 19px; }
.ifb-course-level { display: grid; min-width: 42px; min-height: 42px; place-items: center; border-radius: 9px; background: var(--ifb-core-blue); color: #fff; font-weight: 850; }
.ifb-course-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.ifb-course-card > p { color: var(--ifb-core-muted); }
.ifb-facts-list { display: grid; gap: 8px; margin: 7px 0 24px; padding: 0; list-style: none; color: var(--ifb-core-muted); font-size: .88rem; }
.ifb-facts-list strong { color: var(--ifb-core-navy); }
.ifb-course-card__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ifb-core-border); }

.ifb-faq-list { display: grid; gap: 11px; }
.ifb-faq-item { overflow: hidden; border: 1px solid var(--ifb-core-border); border-radius: 10px; background: #fff; }
.ifb-faq-item summary { position: relative; padding: 19px 54px 19px 20px; color: var(--ifb-core-navy); font-weight: 780; cursor: pointer; list-style: none; }
.ifb-faq-item summary::-webkit-details-marker { display: none; }
.ifb-faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 19px; display: grid; width: 26px; height: 26px; place-items: center; transform: translateY(-50%); border-radius: 50%; background: var(--ifb-core-cream); color: var(--ifb-core-blue); font-size: 1.15rem; }
.ifb-faq-item[open] summary::after { content: "−"; }
.ifb-faq-answer { padding: 0 20px 18px; color: var(--ifb-core-muted); }
.ifb-faq-answer > :last-child { margin-bottom: 0; }

.ifb-form {
  position: relative;
  margin-block: 30px;
  padding: clamp(23px, 4vw, 38px);
  border: 1px solid var(--ifb-core-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ifb-core-shadow);
}
.ifb-form-intro { max-width: 680px; margin-bottom: 25px; }
.ifb-form-intro h2 { margin-bottom: 8px; font-size: 1.65rem; }
.ifb-form-intro p { color: var(--ifb-core-muted); }
.ifb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ifb-field { display: grid; gap: 7px; color: var(--ifb-core-navy); font-size: .87rem; font-weight: 740; }
.ifb-field--full { grid-column: 1 / -1; }
.ifb-field input,
.ifb-field select,
.ifb-field textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid #cbd1da;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ifb-field textarea { min-height: 125px; resize: vertical; }
.ifb-field input:focus,
.ifb-field select:focus,
.ifb-field textarea:focus { border-color: var(--ifb-core-blue); outline: 0; box-shadow: 0 0 0 3px rgba(0,0,170,.11); }
.ifb-form-confirmation { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; color: var(--ifb-core-muted); font-size: .88rem; line-height: 1.55; }
.ifb-form-confirmation input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--ifb-core-blue); }
.ifb-privacy-notice { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; padding: 14px 16px; border: 1px solid #d8e2f0; border-radius: 10px; background: #f6f9fd; color: #35445a; font-size: .9rem; line-height: 1.58; }
.ifb-privacy-notice > span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #e2eafa; color: #173c7a; font-size: .78rem; font-weight: 800; }
.ifb-privacy-notice p { margin: 0; }
.ifb-privacy-notice a { font-weight: 700; }
.ifb-form-note { margin: 14px 0 0; color: var(--ifb-core-muted); font-size: .74rem; }
.ifb-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ifb-form-message { margin: 24px 0; padding: 16px 18px; border-radius: 9px; font-weight: 680; }
.ifb-form-message--success { border: 1px solid #b8e0ca; background: #eaf7f0; color: #145d3d; }
.ifb-form-message--error { border: 1px solid #efc5c2; background: #fdecea; color: #8a211e; }


/* Online German placement test added in 0.2.4. */
.ifb-level-test {
  max-width: 980px;
  margin-inline: auto;
}
.ifb-level-test__progress {
  position: sticky;
  z-index: 4;
  top: 92px;
  margin: 0 0 26px;
  padding: 14px 16px;
  border: 1px solid var(--ifb-core-border);
  border-radius: 11px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(23,32,51,.08);
  backdrop-filter: blur(10px);
}
.admin-bar .ifb-level-test__progress { top: 124px; }
.ifb-level-test__progress > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--ifb-core-navy);
  font-size: .82rem;
}
.ifb-level-test__progress span { color: var(--ifb-core-muted); font-weight: 650; }
.ifb-level-test__progress progress {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8ebf0;
  accent-color: var(--ifb-core-blue);
}
.ifb-level-test__progress progress::-webkit-progress-bar { border-radius: 999px; background: #e8ebf0; }
.ifb-level-test__progress progress::-webkit-progress-value { border-radius: 999px; background: var(--ifb-core-blue); transition: width 180ms ease; }
.ifb-level-test__progress progress::-moz-progress-bar { border-radius: 999px; background: var(--ifb-core-blue); }
.ifb-level-test__questions { display: grid; gap: 24px; }
.ifb-level-test__section {
  overflow: hidden;
  border: 1px solid var(--ifb-core-border);
  border-radius: 16px;
  background: #fff;
}
.ifb-level-test__section > header {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--ifb-core-border);
  background: linear-gradient(135deg, #f7f8ff, #fbfcfe);
}
.ifb-level-test__section > header > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--ifb-core-blue);
  color: #fff;
  font-size: .9rem;
  font-weight: 850;
}
.ifb-level-test__section > header h3 { margin: 0; font-size: 1.13rem; }
.ifb-level-test__section-body { display: grid; }
.ifb-level-question {
  min-width: 0;
  margin: 0;
  padding: 22px 20px;
  border: 0;
  border-bottom: 1px solid var(--ifb-core-border);
}
.ifb-level-question:last-child { border-bottom: 0; }
.ifb-level-question legend {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: flex-start;
  padding: 0;
  color: var(--ifb-core-navy);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.45;
}
.ifb-level-question legend > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ifb-core-cream);
  color: var(--ifb-core-blue);
  font-size: .76rem;
  font-weight: 850;
}
.ifb-level-question__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.ifb-level-question__options label {
  position: relative;
  display: flex;
  min-height: 48px;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid #d7dbe3;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.ifb-level-question__options label:hover {
  border-color: #aeb6c4;
  background: #fbfcff;
  transform: translateY(-1px);
}
.ifb-level-question__options label.is-selected,
.ifb-level-question__options label:has(input:checked) {
  border-color: var(--ifb-core-blue);
  background: #f2f3ff;
  box-shadow: 0 0 0 2px rgba(0,0,170,.08);
  color: var(--ifb-core-navy);
}
.ifb-level-question__options label:has(input:focus-visible) {
  outline: 3px solid rgba(0,0,170,.18);
  outline-offset: 2px;
}
.ifb-level-question__options input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--ifb-core-blue);
}
.ifb-level-question__options span { line-height: 1.35; }
.ifb-level-test__contact {
  margin-top: 28px;
  padding-top: 30px;
  border-top: 2px solid var(--ifb-core-border);
}
.ifb-level-test__contact > .ifb-button { min-height: 50px; }
.ifb-level-result {
  max-width: 900px;
  margin: 28px auto;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #b9dcca;
  border-radius: 18px;
  background: linear-gradient(145deg, #edf9f3, #fff);
  box-shadow: var(--ifb-core-shadow);
}
.ifb-level-result:focus { outline: 3px solid rgba(0,0,170,.18); outline-offset: 3px; }
.ifb-level-result__eyebrow {
  margin: 0 0 8px;
  color: #176b45;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
}
.ifb-level-result h2 { margin: 0 0 10px; color: var(--ifb-core-navy); font-size: clamp(2rem, 5vw, 3.25rem); }
.ifb-level-result__score { margin: 0 0 18px; color: var(--ifb-core-muted); }
.ifb-level-result__score strong { color: var(--ifb-core-navy); font-size: 1.18rem; }
.ifb-level-result__bands {
  width: fit-content;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.8);
  color: var(--ifb-core-muted);
  font-size: .82rem;
  font-weight: 680;
}
.ifb-level-result__mail { color: #176b45; font-weight: 700; }
.ifb-level-result__mail--warning { color: #8a5a00; }

.ifb-contact-card { padding: clamp(24px, 4vw, 38px); border-radius: 18px; background: var(--ifb-core-navy); color: #e6ebf3; }
.ifb-contact-card h2 { color: #fff; }
.ifb-contact-card > p { max-width: 650px; color: #c7d0de; }
.ifb-contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 28px; margin: 25px 0 0; padding: 0; list-style: none; }
.ifb-contact-list li { display: grid; gap: 2px; }
.ifb-contact-list strong { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.ifb-contact-list a { color: #fff; }

.ifb-empty-state {
  padding: 34px;
  border: 1px dashed #cbd1da;
  border-radius: var(--ifb-core-radius);
  background: rgba(247,247,244,.72);
  color: var(--ifb-core-muted);
  text-align: center;
}
.ifb-empty-state strong { display: block; margin-bottom: 6px; color: var(--ifb-core-navy); font-size: 1.1rem; }
.ifb-empty-state p { margin-bottom: 16px; }
.ifb-filter-empty { margin-top: 14px; }

@media (max-width: 900px) {
  .ifb-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ifb-exam-card { grid-template-columns: 61px minmax(0, 1fr); }
  .ifb-exam-card__action { grid-column: 2; grid-template-columns: 1fr auto; width: 100%; align-items: center; justify-items: start; text-align: left; }
  .ifb-exam-card__action .ifb-button { justify-self: end; }
  .ifb-exams--compact .ifb-exam-card { grid-template-columns: 49px minmax(0, 1fr); }
  .ifb-exams--compact .ifb-exam-card__action { grid-column: 2; }
  .ifb-exam-archive-card { grid-template-columns: 112px minmax(0, 1fr); }
  .ifb-exam-archive-card > .ifb-price { grid-column: 2; justify-self: start; }
}

@media (max-width: 620px) {
  .ifb-list-filters { display: grid; }
  .ifb-list-filters label { min-width: 0; }
  .ifb-exam-card { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .ifb-date-badge { width: 50px; height: 55px; }
  .ifb-date-badge span { font-size: 1.15rem; }
  .ifb-exam-card h4 { font-size: 1.02rem; }
  .ifb-status { font-size: .63rem; }
  .ifb-exam-meta { gap: 4px 12px; font-size: .75rem; }
  .ifb-exam-card__action { grid-template-columns: 1fr auto; }
  .ifb-exam-card__action small { display: none; }
  .ifb-exam-card__action .ifb-button { min-height: 37px; padding: 7px 12px; }
  .ifb-exam-archive summary { align-items: flex-start; padding: 16px 48px 16px 15px; }
  .ifb-exam-archive__title small { max-width: 240px; }
  .ifb-exam-archive__count { display: none; }
  .ifb-exam-archive__body { padding: 0 13px 13px; }
  .ifb-exam-archive-card { grid-template-columns: 1fr; gap: 7px; padding: 12px; }
  .ifb-exam-archive-card > .ifb-price { grid-column: auto; }
  .ifb-course-grid { grid-template-columns: 1fr; }
  .ifb-form-grid { grid-template-columns: 1fr; }
  .ifb-field--full { grid-column: auto; }
  .ifb-contact-list { grid-template-columns: 1fr; }
  .ifb-level-test { padding: 18px 13px; border-radius: 13px; }
  .ifb-level-test__progress { top: 74px; margin-inline: -4px; padding: 12px; }
  .admin-bar .ifb-level-test__progress { top: 120px; }
  .ifb-level-test__progress > div { font-size: .76rem; }
  .ifb-level-test__section > header { padding: 14px; }
  .ifb-level-question { padding: 19px 14px; }
  .ifb-level-question__options { grid-template-columns: 1fr; }
  .ifb-level-test__contact > .ifb-button { width: 100%; }
  .ifb-level-result { border-radius: 14px; }
}


/* Form and contact refinements added in 0.2.0. */
.ifb-field--summary {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border: 1px solid var(--ifb-core-border);
  border-radius: 8px;
  background: var(--ifb-core-cream);
  color: var(--ifb-core-navy);
  font-size: .88rem;
  font-weight: 650;
}
.ifb-contact-card__note { margin: 18px 0 0; color: #c7d0de; font-size: .82rem; }

/* Knowledge Center articles added in 0.2.5. */
.ifb-article-review {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 0 0 18px !important;
  color: var(--ifb-muted, #667085);
  font-size: .78rem;
}
.ifb-article-review strong { color: var(--ifb-navy, #172033); }
.ifb-article-toc {
  margin: 30px 0 40px;
  padding: clamp(21px, 3vw, 29px);
  border: 1px solid var(--ifb-border, #e4e7ec);
  border-radius: var(--ifb-radius, 14px);
  background: #fff;
  box-shadow: var(--ifb-shadow-sm, 0 8px 28px rgba(23,32,51,.07));
}
.ifb-article-toc > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ifb-navy, #172033);
  font-size: 1rem;
}
.ifb-article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-left: 1.25rem;
}
.ifb-article-toc li { margin: 0; color: var(--ifb-muted, #667085); }
.ifb-article-toc a { color: var(--ifb-blue, #0000aa); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ifb-article-toc a:hover { color: var(--ifb-blue-dark, #000078); }
.ifb-entry-content h2[id] { scroll-margin-top: 120px; }
.ifb-table-wrap {
  max-width: 100%;
  margin: 26px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--ifb-border, #e4e7ec);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.ifb-article-table {
  width: 100%;
  min-width: 650px;
  margin: 0 !important;
  border: 0;
  border-collapse: collapse;
  font-size: .93rem;
}
.ifb-article-table th,
.ifb-article-table td {
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--ifb-border, #e4e7ec);
  border-bottom: 1px solid var(--ifb-border, #e4e7ec);
  vertical-align: top;
  text-align: left;
}
.ifb-article-table th:last-child,
.ifb-article-table td:last-child { border-right: 0; }
.ifb-article-table tr:last-child td { border-bottom: 0; }
.ifb-article-table th {
  background: var(--ifb-cream, #f7f7f4);
  color: var(--ifb-navy, #172033);
  font-weight: 800;
}
.ifb-article-table tbody tr:nth-child(even) { background: #fbfcfd; }
.ifb-article-checklist {
  display: grid;
  gap: 13px;
  margin: 25px 0 34px !important;
  padding: 0 !important;
  counter-reset: ifb-checklist;
  list-style: none !important;
}
.ifb-article-checklist > li {
  position: relative;
  min-height: 42px;
  margin: 0 !important;
  padding: 8px 0 8px 54px;
  counter-increment: ifb-checklist;
}
.ifb-article-checklist > li::before {
  content: counter(ifb-checklist);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ifb-blue, #0000aa);
  color: #fff;
  font-size: .83rem;
  font-weight: 850;
}
.ifb-article-callout {
  margin: 34px 0;
  padding: clamp(21px, 3vw, 29px);
  border: 1px solid #ead8a8;
  border-left: 5px solid var(--ifb-gold, #c9962c);
  border-radius: 0 12px 12px 0;
  background: #fff9e8;
  color: #4e4020;
}
.ifb-article-callout h3 { margin: 0 0 8px; color: #3d321b; font-size: 1.12rem; }
.ifb-article-callout p:last-child { margin-bottom: 0; }
.ifb-source-box {
  margin: 54px 0 38px;
  padding: clamp(23px, 3vw, 32px);
  border: 1px solid var(--ifb-border, #e4e7ec);
  border-radius: var(--ifb-radius, 14px);
  background: var(--ifb-cream, #f7f7f4);
}
.ifb-source-box h2 { margin: 0 0 14px !important; font-size: 1.35rem; }
.ifb-source-box ul { margin: 0 0 15px; padding-left: 1.2rem; }
.ifb-source-box li { margin: 0 0 7px; }
.ifb-source-box a { overflow-wrap: anywhere; }
.ifb-source-box p { margin: 0; color: var(--ifb-muted, #667085); font-size: .84rem; }
.ifb-article-cta { margin-top: 46px; }
.ifb-article-cta > :last-child { margin-bottom: 0; }
.ifb-article-cta .ifb-button { background: #fff; color: var(--ifb-blue, #0000aa); }
.ifb-article-cta .ifb-button:hover { background: var(--ifb-gold, #c9962c); color: #111827; border-color: var(--ifb-gold, #c9962c); }

@media (max-width: 700px) {
  .ifb-article-toc ol { grid-template-columns: 1fr; }
  .ifb-article-table { min-width: 560px; font-size: .88rem; }
  .ifb-article-table th,
  .ifb-article-table td { padding: 12px 13px; }
  .ifb-article-checklist > li { padding-left: 48px; }
  .ifb-article-checklist > li::before { width: 34px; height: 34px; }
}

/* Germany exam information and participation conditions. */
.ifb-exam-card__heading > div {
  display: grid;
  gap: 6px;
}
.ifb-country-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #d6c17c;
  border-radius: 999px;
  background: #fff8dc;
  color: #6d5300;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.2;
}
.ifb-exam-organizer {
  margin: 11px 0 0;
  color: var(--ifb-core-navy);
  font-size: .84rem;
}
.ifb-exam-participation {
  margin: 6px 0 0;
  color: var(--ifb-core-navy);
  font-size: .84rem;
}
.ifb-exam-note {
  margin: 6px 0 0;
  color: var(--ifb-core-muted);
  font-size: .79rem;
  line-height: 1.55;
}
.ifb-exam-source { margin: 7px 0 0; font-size: .79rem; }
.ifb-exam-source a { font-weight: 750; text-underline-offset: 3px; }
.ifb-germany-exam-card .ifb-exam-card__main {
  min-width: 0;
}
@media (max-width: 620px) {
  .ifb-exam-card__heading {
    align-items: flex-start;
  }
  .ifb-country-badge {
    font-size: .58rem;
  }
}


/* University application and internal assessment form */
.ifb-form-section {
  min-width: 0;
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid var(--ifb-core-border);
  border-radius: var(--ifb-core-radius);
  background: #fff;
}
.ifb-form-section legend {
  max-width: calc(100% - 16px);
  padding: 0 8px;
  color: var(--ifb-core-navy);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}
.ifb-form-intro { margin-bottom: 24px; }
.ifb-form-intro h2 { margin: 0 0 8px; }
.ifb-form-intro p { margin: 0; color: var(--ifb-core-muted); }
.ifb-age-dependent {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #cfd4dc;
}
.ifb-age-dependent[hidden] { display: none !important; }
.ifb-form-note {
  margin: 12px 0 0;
  color: var(--ifb-core-muted);
  font-size: .84rem;
  line-height: 1.65;
}
.ifb-university-form > .ifb-button { margin-top: 8px; }

@media (max-width: 640px) {
  .ifb-form-section { padding: 18px 15px; }
  .ifb-form-section legend { font-size: 1rem; }
}


/* Readability refinements for core components – 0.3.5. */
.ifb-course-card > p,
.ifb-facts-list,
.ifb-exam-meta,
.ifb-exam-deadline,
.ifb-faq-answer,
.ifb-form-intro p,
.ifb-form-confirmation,
.ifb-form-note { color: var(--ifb-core-muted); }
.ifb-course-card > p,
.ifb-faq-answer,
.ifb-form-intro p { font-size: 1rem; line-height: 1.65; }
.ifb-empty-state { color: var(--ifb-core-muted); font-size: 1rem; line-height: 1.65; }
.ifb-empty-state strong { font-size: 1.16rem; }
@media (max-width: 620px) {
  .ifb-form { padding: 21px 17px; }
  .ifb-form-grid { grid-template-columns: 1fr; }
  .ifb-field--full { grid-column: auto; }
}


/* Core 0.4.1 – clearer Germany exam cards and request states. */
.ifb-exams:not(.ifb-exams--compact) .ifb-date-badge { height: 76px; }
.ifb-date-badge em { margin-top: 4px; color: #bfc9da; font-size: .58rem; font-style: normal; font-weight: 750; letter-spacing: .06em; }
.ifb-exams--compact .ifb-date-badge em { display: none; }
.ifb-exam-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 16px 0 0; }
.ifb-exam-facts > div { min-width: 0; padding-top: 10px; border-top: 1px solid #e7eaf0; }
.ifb-exam-facts dt { margin: 0 0 3px; color: var(--ifb-core-muted); font-size: .72rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.ifb-exam-facts dd { margin: 0; color: var(--ifb-core-navy); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.ifb-exam-note { margin: 11px 0 0; color: var(--ifb-core-muted); font-size: .82rem; line-height: 1.55; }
.ifb-exam-source { margin: 10px 0 0; font-size: .8rem; }
.ifb-exam-source a { font-weight: 750; }
.ifb-exam-action-label { color: var(--ifb-core-muted); font-size: .68rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.ifb-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ifb-empty-actions .ifb-button { margin: 0; }
@media (max-width: 760px) {
  .ifb-exam-facts { grid-template-columns: 1fr; }
  .ifb-empty-actions { display: grid; }
  .ifb-empty-actions .ifb-button { width: 100%; justify-content: center; }
}

/* Legal, cookie-consent and privacy interfaces – 0.4.5. */
.ifb-legal-draft-warning,
.ifb-legal-admin-note {
	border: 1px solid #d6a800;
	border-left: 5px solid #d6a800;
	border-radius: 14px;
	background: #fff8d9;
	color: #3d350f;
	padding: 18px 20px;
	margin: 0 0 28px;
}

.ifb-legal-draft-warning strong,
.ifb-legal-admin-note strong {
	display: block;
	margin-bottom: 4px;
}

.ifb-legal-identity,
.ifb-retention-summary {
	background: #f6f8fc;
	border: 1px solid #dce3ee;
	border-radius: 18px;
	padding: clamp(18px, 3vw, 28px);
	margin: 24px 0;
}

.ifb-legal-identity dl {
	margin: 0;
}

.ifb-legal-identity dl > div {
	display: grid;
	grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid #dce3ee;
}

.ifb-legal-identity dl > div:last-child {
	border-bottom: 0;
}

.ifb-legal-identity dt {
	font-weight: 750;
	color: #10284f;
}

.ifb-legal-identity dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.ifb-privacy-contact,
.ifb-retention-summary ul {
	margin: 0;
	padding-left: 1.25rem;
}

.ifb-privacy-contact li,
.ifb-retention-summary li {
	margin: 8px 0;
}

.ifb-cookie-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 22px 0;
	border: 1px solid #dce3ee;
	border-radius: 16px;
}

.ifb-cookie-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	background: #fff;
}

.ifb-cookie-table th,
.ifb-cookie-table td {
	text-align: left;
	vertical-align: top;
	padding: 14px 16px;
	border-bottom: 1px solid #e4e9f2;
}

.ifb-cookie-table th {
	background: #f3f6fb;
	color: #10284f;
	font-weight: 750;
}

.ifb-cookie-table tr:last-child td {
	border-bottom: 0;
}

.ifb-legal-note {
	font-size: .93rem;
	color: #44546a;
}

.ifb-consent[hidden],
.ifb-consent [hidden] {
	display: none !important;
}

.ifb-consent {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	align-items: end;
	padding: 18px;
}

.ifb-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 18, 39, .58);
	backdrop-filter: blur(3px);
}

.ifb-consent__panel {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(86vh, 760px);
	overflow-y: auto;
	margin: 0 auto;
	background: #fff;
	color: #18243a;
	border: 1px solid rgba(16, 40, 79, .18);
	border-radius: 24px;
	box-shadow: 0 28px 90px rgba(4, 18, 50, .32);
	padding: clamp(24px, 4vw, 38px);
	outline: none;
}

.ifb-consent__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #eef2f8;
	color: #10284f;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}

.ifb-consent__eyebrow {
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .11em;
	color: #234f9d;
	margin: 0 0 8px;
}

.ifb-consent h2 {
	font-size: clamp(1.55rem, 3vw, 2.1rem);
	line-height: 1.15;
	color: #10284f;
	margin: 0 42px 12px 0;
}

.ifb-consent p {
	line-height: 1.62;
}

.ifb-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.ifb-consent__actions .ifb-button {
	min-height: 46px;
	justify-content: center;
}

/* The first-layer choices intentionally share the same visual weight. */
.ifb-consent__actions--decisions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ifb-consent__decision {
	width: 100%;
	border: 2px solid #0000aa;
	background: #fff;
	color: #0000aa;
	box-shadow: none;
}

.ifb-consent__decision:hover,
.ifb-consent__decision:focus-visible {
	background: #eef0ff;
	color: #000078;
	border-color: #000078;
}

.ifb-consent__choice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	border: 1px solid #dce3ee;
	border-radius: 16px;
	padding: 17px 18px;
	margin: 12px 0;
	background: #f9fbfe;
}

.ifb-consent__choice strong {
	display: block;
	font-size: 1.04rem;
	color: #10284f;
}

.ifb-consent__choice p {
	margin: 4px 0 0;
	font-size: .94rem;
	color: #526078;
}

.ifb-consent__choice > span {
	font-size: .86rem;
	font-weight: 700;
	color: #2b5b3f;
	white-space: nowrap;
}

.ifb-consent__choice input[type="checkbox"] {
	width: 24px;
	height: 24px;
	accent-color: #0000aa;
	flex: 0 0 auto;
}

html.ifb-consent-open {
	overflow: hidden;
}

.ifb-cookie-preferences-button {
	appearance: none;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

@media (max-width: 640px) {
	.ifb-consent {
		padding: 0;
	}

	.ifb-consent__panel {
		width: 100%;
		max-height: 92vh;
		border-radius: 22px 22px 0 0;
		padding: 26px 20px 24px;
	}

	.ifb-consent__actions,
	.ifb-consent__actions--decisions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ifb-consent__actions .ifb-button {
		width: 100%;
	}

	.ifb-consent__choice {
		align-items: flex-start;
	}

	.ifb-legal-identity dl > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}
}

/* telc Türkiye status: future-proof communication for paused/planning/open periods. */
.ifb-telc-turkey-status {
	display: grid;
	gap: 16px;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid #d9e1ec;
	border-left: 4px solid #0000aa;
	border-radius: 16px;
	background: #f7f8fc;
	box-shadow: 0 14px 34px rgba(16, 31, 59, .06);
}
.ifb-telc-turkey-status--planning { border-left-color: #c88b1f; background: #fffaf0; }
.ifb-telc-turkey-status--open { border-left-color: #157347; background: #f1faf5; }
.ifb-telc-turkey-status__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}
.ifb-telc-turkey-status__heading h2 { margin: 6px 0 0; }
.ifb-telc-status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #e8ebff;
	color: #000088;
	font-weight: 800;
	font-size: .86rem;
	white-space: nowrap;
}
.ifb-telc-turkey-status--planning .ifb-telc-status-badge { background: #fff0c8; color: #7a4a00; }
.ifb-telc-turkey-status--open .ifb-telc-status-badge { background: #dff4e7; color: #0d5d37; }
.ifb-telc-turkey-status__note {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255,255,255,.72);
	font-weight: 650;
}
.ifb-telc-turkey-status__updated { margin: 0; color: #526078; font-size: .94rem; }
.ifb-telc-turkey-status__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 680px) {
	.ifb-telc-turkey-status__heading { flex-direction: column; }
	.ifb-telc-status-badge { white-space: normal; text-align: center; }
	.ifb-telc-turkey-status__actions { display: grid; }
	.ifb-telc-turkey-status__actions .ifb-button { width: 100%; text-align: center; }
}
