:root {
  --defa-primary: #06111f;
  --defa-text: #05070a;
  --defa-muted: #5c6670;
  --defa-accent: #e30613;
  --defa-yellow: #ffc400;
  --defa-yellow-dark: #e5ad00;
  --defa-soft-blue: #dceef5;
  --defa-light: #f3f4f6;
  --defa-border: #d9dee6;
  --defa-white: #ffffff;

  --defa-font-family: 'Open Sans', sans-serif;

    --defa-fs-xs: 0.75rem;
    --defa-fs-sm: 0.875rem;
    --defa-fs-base: 1rem;
    --defa-fs-lg: 1.125rem;
    --defa-fs-xl: 1.25rem;

    --defa-fw-light: 300;
    --defa-fw-normal: 400;
    --defa-fw-medium: 500;
    --defa-fw-semibold: 600;
    --defa-fw-bold: 700;
    --defa-fw-extrabold: 800;

  --defa-radius-sm: 8px;
  --defa-radius-md: 14px;
  --defa-radius-lg: 22px;

  --defa-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

body {
  font-family: var(--defa-font-family);
    font-size: var(--defa-fs-base);
    font-weight: var(--defa-fw-normal);
    line-height: 1.6;
    color: var(--defa-primary);
  background: #fff;
}
h1,h2,h3,h4,h5,h6{
    font-family: var(--defa-font-family);
    font-weight: var(--defa-fw-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
img {
  max-width: 100%;
}

.btn-defa {
  background: var(--defa-yellow);
  color: #000;
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
}

.btn-defa:hover {
  background: var(--defa-yellow-dark);
  color: #000;
}

.defa-header {
  border-bottom: 1px solid var(--defa-border);
}

.navbar-brand img {
  max-height: 48px;
}

.navbar-nav .nav-link {
  color: #0b1830;
  font-size: 0.9rem;
  font-weight: 600;
  padding-inline: 1rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--defa-accent);
}

.hero-section {
  background: var(--defa-soft-blue);
  padding: 70px 0 0;
}
.home-hero-section, .germany-bg {
  position: relative;
  isolation: isolate;
}

.home-hero-section::before,
.germany-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../media/Berlin%20outline.webp") center bottom / contain no-repeat;
  pointer-events: none;
}
.germany-bg::before{
	opacity:0.1;
	
}
.title-line {
  border-left: 8px solid var(--defa-accent);
  padding-left: 28px;
}

.title-line h1,
.title-line h2 {
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.title-line h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}

.title-line h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.title-line p {
  color: var(--defa-text);
  margin-bottom: 1.4rem;
}

.hero-section h1{
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 700;
}
.hero-collage {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.hero-main-img,
.hero-side-images img {
  object-fit: cover;
  border-radius: var(--defa-radius-md);
}

.hero-main-img {
  width: 300px;
  height: 430px;
}

.hero-side-images {
  display: grid;
  gap: 20px;
}

.hero-side-images img:first-child {
  width: 150px;
  height: 135px;
}

.hero-side-images img:last-child {
  width: 150px;
  height: 275px;
}

.feature-bar {
  background: #fff;
  border-radius: var(--defa-radius-sm);
  box-shadow: var(--defa-shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateY(38px);
  overflow: hidden;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 30px;
  border-right: 1px solid var(--defa-border);
}

.feature-item:last-child {
  border-right: 0;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--defa-soft-blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.feature-item h6 {
  font-weight: 800;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--defa-muted);
  margin: 0;
}

.quick-section {
  background: var(--defa-light);
  padding: 110px 0 60px;
}

.quick-card {
  background: #fff;
  padding: 36px;
  border-radius: var(--defa-radius-sm);
  box-shadow: var(--defa-shadow);
}

.quick-card h5 {
  font-weight: 800;
  margin-bottom: 5px;
}

.quick-card p {
  color: var(--defa-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.cal-container{
	background: #fff;
  padding: 36px;
  border-radius: var(--defa-radius-sm);
  box-shadow: var(--defa-shadow);
}
.cal-header{
	border-bottom:1px solid var(--defa-border);
	padding-bottom:20px;
	margin-bottom:30px;
}
.form-select {
  min-height: 48px;
  font-size: 0.9rem;
}

.exam-section {
  padding: 70px 0 90px;
}

.section-title {
  margin-bottom: 35px;
}

.exam-card {
  border: 1px solid var(--defa-border);
  border-radius: var(--defa-radius-sm);
  overflow: hidden;
  background: #fff;
}

.exam-top {
  background: var(--defa-soft-blue);
  padding: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exam-top h3 {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 8px;
}

.exam-top p {
  margin: 0;
  font-size: 0.85rem;
}

.exam-fee {
  border-left: 4px solid var(--defa-yellow);
  padding-left: 12px;
}

.exam-fee span,
.exam-fee small {
  display: block;
  font-size: 0.75rem;
}

.exam-fee strong {
  display: block;
  font-size: 1rem;
}

.exam-bottom {
  padding: 25px 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.exam-dates{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
}

.exam-date-card{
    display:flex;
    align-items:center;
    background:#fff;
    border:1px solid #bcbcbc;
    border-radius:4px;
    min-width:92px;
    height:34px;
    overflow:hidden;
}

.exam-date-card .day{
    width:42px;
    text-align:center;
    font-size:1rem;
    font-weight:700;
    line-height:1;
}

.exam-date-card .month-year{
    border-left:1px solid #d8d8d8;
    padding:0 8px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.exam-date-card .month-year span{
    font-size:.55rem;
    font-weight:700;
    line-height:1;
    letter-spacing:.5px;
}

.exam-date-card .month-year small{
    font-size:.5rem;
    font-weight:600;
    line-height:1;
}

.exam-dates-label{
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:8px;
    font-size:.7rem;
    font-weight:500;
}

.exam-dates-label i{
    font-size:.75rem;
}

.intro-section {
  background: var(--defa-light);
  padding: 110px 0;
}

.intro-img {
  border-radius: var(--defa-radius-md);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.intro-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
}

.intro-section p {
  color: #252b33;
  max-width: 560px;
  margin-bottom: 28px;
}

.stats-section {
  background: var(--defa-soft-blue);
  padding: 50px 0;
}

.stats-section .col-md-3 {
  border-right: 1px solid rgba(0, 0, 0, 0.25);
}

.stats-section .col-md-3:last-child {
  border-right: 0;
}

.stats-section h3 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.stats-section h6 {
  font-size: 1.15rem;
  font-weight: 800;
}

.stats-section p {
  font-size: 0.85rem;
  margin: 0 auto;
  max-width: 200px;
}

.dark-cta {
  background: #36494f;
  color: #fff;
  padding: 75px 0;
}

.dark-cta p {
  max-width: 430px;
  color: #d7d7d7;
}

.footer-section {
  padding: 70px 0 25px;
  background: #fff;
}

.footer-logo {
  max-width: 210px;
  margin-bottom: 20px;
}

.footer-section h6 {
  font-weight: 800;
  border-bottom: 1px solid var(--defa-border);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.footer-section p,
.footer-links a {
  color: #333;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  color: #fff;
  background: #0b64c0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--defa-border);
  margin-top: 45px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 50px;
  }

  .hero-collage {
    justify-content: flex-start;
  }

  .feature-bar {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: 0;
    border-bottom: 1px solid var(--defa-border);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .stats-section .col-md-3 {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  .title-line {
    padding-left: 18px;
    border-left-width: 6px;
  }

  .hero-collage {
    gap: 12px;
  }

  .hero-main-img {
    width: 68%;
    height: 360px;
  }

  .hero-side-images img:first-child,
  .hero-side-images img:last-child {
    width: 100%;
  }

  .quick-card {
    padding: 24px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group .form-select,
  .input-group .btn {
    width: 100%;
    border-radius: 5px !important;
  }

  .exam-top,
  .exam-bottom {
    padding: 24px;
  }

  .exam-top {
    align-items: flex-start;
    gap: 20px;
  }

  .exam-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-section {
    padding: 70px 0;
  }

  .intro-img {
    height: 360px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* =========================================================
   Exam Center Details
========================================================= */

.exam-center-hero-card {
  margin-inline: auto;
  overflow: hidden;
  background: var(--defa-white);
  border: 1px solid var(--defa-border);
  border-radius: var(--defa-radius-sm);
}

.exam-center-hero-content {
  min-height: 430px;
  padding: 55px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exam-center-eyebrow {
  display: inline-block;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--defa-accent);
  font-size: var(--defa-fs-xs);
  font-weight: var(--defa-fw-semibold);
  line-height: 1;
  letter-spacing: .08em;
}

.exam-center-hero-content h1 {
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-center-meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 30px;
}

.hero-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
	padding-top: 17px;
  border-top: 1px solid #e9edf1;
}

.hero-meta-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--defa-light);
  color: var(--defa-primary);
  font-size: 1rem;
}

.hero-meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--defa-muted);
  font-size: .7rem;
  font-weight: var(--defa-fw-bold);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-meta-item p {
  margin: 0 0 5px;
  color: var(--defa-primary);
  font-size: .9rem;
  line-height: 1.6;
}

.hero-meta-item a {
  color: var(--defa-primary);
  font-size: .82rem;
  font-weight: var(--defa-fw-semibold);
  text-decoration: none;
}

.hero-meta-item a:hover {
  color: var(--defa-accent);
}

.exam-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exam-center-actions .btn {
  font-size: .9rem;
  font-weight: var(--defa-fw-bold);
}

.exam-center-featured-image {
  position: relative;
  min-height: 430px;
  height: 100%;
  overflow: hidden;
  background: var(--defa-light);
}

.exam-center-featured-image > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}
.exam-center-featured-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(11, 17, 24, .48), transparent);
  pointer-events: none;
}
.exam-center-logo-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 180px;
  min-height: 80px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--defa-white);
  border: 1px solid var(--defa-border);
  border-radius: 6px;
  box-shadow: var(--defa-shadow);
	z-index:2;
}

.exam-center-logo-overlay img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.center-about-section {
  padding: 70px 0 90px;
}

.about-center-content h2 {
  max-width: 600px;
  margin-bottom: 24px;
}

.about-center-content p {
  max-width: 540px;
}

.center-description {
  max-width: 540px;
  color: var(--defa-muted);
  font-size: .95rem;
  line-height: 1.75;
}

.center-description p {
  margin-bottom: 18px;
}

.center-description p:last-child {
  margin-bottom: 0;
}

.center-description ul,
.center-description ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--defa-muted);
  line-height: 1.75;
}

.center-gallery-slider {
  overflow: hidden;
  border: 1px solid var(--defa-border);
  border-radius: var(--defa-radius-sm);
  background: var(--defa-light);
}

.center-gallery-slider .carousel-inner,
.center-gallery-slider .carousel-item {
  height: 370px;
}

.center-gallery-slider .carousel-item img {
  display: block;
  width: 100%;
  height: 370px;
  object-fit: cover;
}

.center-gallery-slider .carousel-indicators {
  margin-bottom: 14px;
}

.center-gallery-slider .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.center-gallery-slider .carousel-control-prev,
.center-gallery-slider .carousel-control-next {
  width: 12%;
}

.center-calendar-section {
  padding: 80px 0 90px;
  border-top: 1px solid var(--defa-border);
}

.center-calendar-section .section-title {
  margin-bottom: 24px;
}

.center-calendar-section .section-title h2 {
  margin-bottom: 0;
}

.center-calendar-intro {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--defa-muted);
}

.center-calendar-shell {
  width: 100%;
}

.center-calendar-shell .defa-calendar,
.center-calendar-shell .defa-exam-calendar {
  margin-bottom: 0;
}

.center-visit-strip {
  padding: 38px;
  margin-bottom: 90px;
  background: var(--defa-soft-blue);
  border-radius: var(--defa-radius-sm);
}

.center-visit-strip h2 {
  margin-bottom: 0;
}

.center-visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.visit-tip {
  height: 100%;
  padding: 20px;
  border: 2px solid var(--defa-white);
  border-radius: 8px;
}

.visit-tip i {
  display: block;
  margin-bottom: 12px;
  color: var(--defa-accent);
  font-size: 1.3rem;
}

.visit-tip span {
  display: block;
  color: var(--defa-muted);
  font-size: .85rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .exam-center-hero-content {
    min-height: auto;
    padding: 42px 35px;
  }

  .exam-center-featured-image,
  .exam-center-featured-image > img {
    min-height: 360px;
  }

  .center-about-section {
    padding: 60px 0 70px;
  }

  .center-visit-grid {
    grid-template-columns: 1fr;
  }

  .center-visit-strip {
    padding: 32px;
    margin-bottom: 70px;
  }
}

@media (max-width: 767px) {
  .exam-center-hero-content {
    padding: 32px 24px;
  }

  .exam-center-featured-image,
  .exam-center-featured-image > img {
    height: 280px;
    min-height: 280px;
  }

  .exam-center-logo-overlay {
    left: 16px;
    bottom: 16px;
    width: 145px;
    min-height: 70px;
    padding: 10px 12px;
  }

  .exam-center-logo-overlay img {
    max-height: 50px;
  }

  .hero-meta-item {
    gap: 12px;
  }

  .hero-meta-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .exam-center-actions {
    flex-direction: column;
  }

  .exam-center-actions .btn {
    width: 100%;
  }

  .center-about-section {
    padding: 50px 0 60px;
  }

  .center-gallery-slider .carousel-inner,
  .center-gallery-slider .carousel-item,
  .center-gallery-slider .carousel-item img {
    height: 280px;
  }

  .center-calendar-section {
    padding: 55px 0 65px;
  }

  .center-visit-strip {
    padding: 24px;
    margin-bottom: 60px;
  }
}

@media (max-width: 576px) {
  .exam-center-featured-image,
  .exam-center-featured-image > img {
    height: 240px;
    min-height: 240px;
  }

  .center-gallery-slider .carousel-inner,
  .center-gallery-slider .carousel-item,
  .center-gallery-slider .carousel-item img {
    height: 260px;
  }

  .center-visit-strip {
    padding: 22px;
  }
}

#exam-calendar {
  scroll-margin-top: 100px;
}

/* =========================================================
   Exam Center Listing
   ========================================================= */

.exam-center-listing-section {
    padding: 70px 0 90px;
    background: var(--defa-white);
}


/* =========================================================
   Listing Toolbar
   ========================================================= */

.center-filter {
    margin-bottom: 30px;
}

.center-listing-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;

    padding-bottom: 18px;
    border-bottom: 1px solid var(--defa-border);
}

.center-results-count {
    margin: 0;

    color: var(--defa-muted);

    font-size: var(--defa-fs-sm);
    line-height: 1.4;
}

.center-results-count strong {
    color: var(--defa-primary);

    font-size: var(--defa-fs-lg);
    font-weight: var(--defa-fw-bold);
}


/* Filter */

.center-state-filter {
    display: flex;
    align-items: end;
    gap: 14px;
}

.center-filter-label {
    margin-bottom: 0;

    color: var(--defa-primary);

    font-size: var(--defa-fs-sm);
    font-weight: var(--defa-fw-semibold);
    white-space: nowrap;
}

.center-filter-control {
    position: relative;

    min-width: 240px;
}

.center-filter-control > i {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: var(--defa-muted);

    font-size: .95rem;

    pointer-events: none;
}

.center-filter-control .form-select {
    min-height: 46px;

    padding-left: 42px;
    padding-right: 42px;

    background-color: var(--defa-white);

    border: 1px solid var(--defa-border);
    border-radius: 6px;

    color: var(--defa-primary);

    font-size: var(--defa-fs-sm);
    font-weight: var(--defa-fw-medium);

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.center-filter-control .form-select:hover {
    border-color: #bcc4cd;
}

.center-filter-control .form-select:focus {
    border-color: var(--defa-primary);
    box-shadow: 0 0 0 3px rgba(6, 17, 31, .08);
}


/* Spinner */

.center-filter-spinner {
    position: absolute;
    z-index: 3;

    top: 50%;
    right: 14px;

    display: none;

    width: 15px;
    height: 15px;

    transform: translateY(-50%);

    color: var(--defa-primary);

    border-width: 2px;
}

.center-state-filter.is-loading .center-filter-spinner {
    display: inline-block;
}

.center-state-filter.is-loading .form-select {
    padding-right: 48px;
    pointer-events: none;
}


/* =========================================================
   Center Grid
   ========================================================= */

.center-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    width: 100%;

    transition: opacity .2s ease;
}

.center-grid.is-loading {
    opacity: .55;
    pointer-events: none;
}


/* =========================================================
   Center Card
   Image left / content right
   ========================================================= */

.center-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);

    min-width: 0;
    min-height: 220px;

    overflow: hidden;

    background: var(--defa-white);

    border: 1px solid var(--defa-border);
    border-radius: var(--defa-radius-sm);

    box-shadow: 0 5px 18px rgba(6, 17, 31, .04);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.center-card:hover {
    transform: translateY(-3px);

    border-color: #cbd2da;

    box-shadow: 0 12px 28px rgba(6, 17, 31, .09);
}


/* =========================================================
   Card Image
   ========================================================= */

.center-card-image-wrap {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;
    min-height: 220px;

    overflow: hidden;

    background: var(--defa-light);

    text-decoration: none;
}

.center-card-image {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 220px;

    object-fit: cover;
    object-position: center;

    transition: transform .35s ease;
}

.center-card:hover .center-card-image {
    transform: scale(1.04);
}


/* State badge */

.center-card-state {
    position: absolute;

    top: 14px;
    left: 14px;

    display: inline-flex;
    align-items: center;

    min-height: 27px;

    padding: 5px 10px;

    background: rgba(255, 255, 255, .94);

    border: 1px solid rgba(217, 222, 230, .9);
    border-radius: 4px;

    color: var(--defa-primary);

    font-size: .68rem;
    font-weight: var(--defa-fw-bold);
    line-height: 1;
}


/* =========================================================
   Card Body
   ========================================================= */

.center-card-body {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 24px 24px 20px;
}


/* Location */

.center-card-location {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 9px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-xs);
    font-weight: var(--defa-fw-semibold);
    line-height: 1.4;
}

.center-card-location i {
    flex: 0 0 auto;

    color: var(--defa-accent);

    font-size: .8rem;
}


/* Title */

.center-card h3 {
    margin: 0 0 9px;

    font-size: 1.2rem;
    font-weight: var(--defa-fw-bold);
    line-height: 1.3;
    letter-spacing: -.02em;
}

.center-card h3 a {
    color: var(--defa-primary);
    text-decoration: none;

    transition: color .2s ease;
}

.center-card h3 a:hover {
    color: var(--defa-accent);
}


/* Address */

.center-card-address {
    margin: 0;

    color: var(--defa-muted);

    font-size: .82rem;
    line-height: 1.6;
}


/* =========================================================
   Upcoming Exam Dates
   ========================================================= */

.center-card-upcoming {
    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid var(--defa-border);
}

.center-card-upcoming-label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 9px;

    color: var(--defa-muted);

    font-size: .7rem;
    font-weight: var(--defa-fw-semibold);
    line-height: 1.3;
}

.center-card-upcoming-label i {
    color: var(--defa-primary);

    font-size: .78rem;
}

.center-card-date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.center-card-date {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 5px 9px;

    background: var(--defa-light);

    border: 1px solid var(--defa-border);
    border-radius: 4px;

    color: var(--defa-primary);

    font-size: .68rem;
    font-weight: var(--defa-fw-bold);
    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   Card Footer
   ========================================================= */

.center-card-footer {
    margin-top: auto;
    padding-top: 17px;
}

.center-details-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--defa-primary);

    font-size: .78rem;
    font-weight: var(--defa-fw-bold);
    line-height: 1.3;

    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}

.center-details-link i {
    font-size: .8rem;
}

.center-details-link:hover {
    gap: 10px;
    color: var(--defa-accent);
}


/* =========================================================
   Empty State
   ========================================================= */

.center-empty-state {
    grid-column: 1 / -1;

    padding: 55px 30px;

    text-align: center;

    background: var(--defa-light);

    border: 1px solid var(--defa-border);
    border-radius: var(--defa-radius-sm);
}

.center-empty-state > i {
    display: inline-grid;
    place-items: center;

    width: 52px;
    height: 52px;

    margin-bottom: 17px;

    background: var(--defa-white);

    border-radius: 50%;

    color: var(--defa-accent);

    font-size: 1.2rem;
}

.center-empty-state h3 {
    margin-bottom: 9px;

    font-size: 1.2rem;
}

.center-empty-state p {
    max-width: 500px;

    margin: 0 auto;

    color: var(--defa-muted);

    font-size: var(--defa-fs-sm);
    line-height: 1.65;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1199.98px) {

    .center-card {
        grid-template-columns: 165px minmax(0, 1fr);
    }

    .center-card-body {
        padding: 22px 20px 18px;
    }

}


@media (max-width: 991.98px) {

    .exam-center-listing-section {
        padding: 55px 0 70px;
    }

    .center-listing-toolbar {
        align-items: center;
    }

    .center-grid {
        grid-template-columns: 1fr;
    }

    .center-card {
        grid-template-columns: 210px minmax(0, 1fr);
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .exam-center-listing-section {
        padding: 45px 0 60px;
    }

    .center-listing-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .center-state-filter {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .center-filter-control {
        width: 100%;
        min-width: 0;
    }

    .center-card {
        grid-template-columns: 150px minmax(0, 1fr);
        min-height: 210px;
    }

    .center-card-image-wrap,
    .center-card-image {
        min-height: 210px;
    }

    .center-card-body {
        padding: 20px 18px 17px;
    }

    .center-card h3 {
        font-size: 1.08rem;
    }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 575.98px) {

    .exam-center-listing-section {
        padding: 38px 0 52px;
    }

    .center-filter {
        margin-bottom: 22px;
    }

    .center-card {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }

    .center-card-image-wrap,
    .center-card-image {
        width: 100%;
        height: 190px;
        min-height: 190px;
    }

    .center-card-body {
        padding: 20px;
    }

    .center-card h3 {
        font-size: 1.1rem;
    }

    .center-card-address {
        font-size: .8rem;
    }

    .center-card-upcoming {
        margin-top: 14px;
        padding-top: 12px;
    }

    .center-card-date {
        min-height: 27px;
        padding: 5px 8px;

        font-size: .66rem;
    }

    .center-card-footer {
        padding-top: 15px;
    }

}


/* =========================================================
   Very Small Mobile
   ========================================================= */

@media (max-width: 420px) {

    .center-card-image-wrap,
    .center-card-image {
        height: 170px;
        min-height: 170px;
    }

    .center-card-body {
        padding: 18px;
    }

    .center-card-date-list {
        gap: 5px;
    }

}

/* Exam Listign */

.exam-listing-page {
    background: var(--defa-light);
    padding: 70px 0 100px;
}

.exam-listing-hero {
    width: 100%;
}

.exam-listing-hero .row {
    min-height: 260px;
}

.exam-listing-hero-content {
    height: 100%;
    padding: 55px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exam-listing-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 26px;
}

.exam-listing-hero-content p {
    max-width: 470px;
    margin-bottom: 0;
}

.exam-listing-hero-img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.exam-listing-search {
    width: 100%;
}

.exam-listing-grid {
    width: 100%;
}

@media (max-width: 767px) {
    .exam-listing-page {
        padding: 45px 0 70px;
    }

    .exam-listing-hero-content {
        padding: 30px 24px;
    }

    .exam-listing-hero-img {
        min-height: 220px;
    }
}
/* =========================================================
   Exam Details Page
========================================================= */
.exam-details-page { background: #fff; }

.exam-details-hero {
  background: var(--defa-light);
  padding: 70px 0;
}

.exam-details-hero-card {
  overflow: hidden;
  border-radius: var(--defa-radius-sm);
  background: #fff;
  border: 1px solid var(--defa-border);
}

.exam-details-hero-content {
  min-height: 390px;
  padding: 62px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--defa-soft-blue);
}

.exam-eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--defa-accent);
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 16px;
}

.exam-details-hero-content h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: .98;
  margin-bottom: 20px;
  max-width: 700px;
}

.exam-tagline {
  max-width: 660px;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #263442;
}

.exam-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-defa-outline {
  border: 1px solid #9faab5;
  color: var(--defa-primary);
  background: rgba(255,255,255,.35);
  border-radius: 5px;
  font-weight: 700;
  padding: .7rem 1.3rem;
  font-size: .9rem;
  text-decoration: none;
}

.btn-defa-outline:hover { background: #fff; color: var(--defa-primary); }

.exam-price-panel {
  height: 100%;
  min-height: 390px;
  padding: 55px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--defa-primary);
  color: #fff;
}

.exam-price-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: var(--defa-yellow);
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.exam-price-panel > span { font-size: .8rem; opacity: .72; margin-bottom: 3px; }
.exam-price-panel strong { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.1; }
.exam-price-panel small { opacity: .7; margin-top: 4px; }
.exam-price-note { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; font-size: .75rem; opacity: .72; }

.exam-detail-section { padding: 90px 0; }
.exam-schedule-section,
.exam-faq-section { background: var(--defa-light); }

.exam-section-heading { margin-bottom: 28px; }
.exam-section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; }
.exam-section-heading p { max-width: 760px; color: var(--defa-muted); margin-bottom: 0; }
.section-heading-narrow { max-width: 840px; }

.exam-rich-content { color: #25313d; max-width: 100%; }
.exam-rich-content p { line-height: 1.85; margin-bottom: 18px; }
.exam-rich-content h3 { font-size: 1.35rem; margin: 32px 0 18px; }

/* =========================================================
   Exam Rich Content - Responsive Tables
========================================================= */

/*
 * Allows wide tables to scroll horizontally on smaller screens.
 * Modern browsers support overflow on the wrapper generated below,
 * while the table retains a useful minimum width.
 */
.exam-rich-content {
    max-width: 100%;
}

.exam-rich-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--defa-white);
    border: 1px solid var(--defa-border);
    font-size: .9rem;
    line-height: 1.55;
}

/* Table Header */
.exam-rich-content table thead th {
    padding: 15px 18px;
    background: var(--defa-soft-blue);
    color: var(--defa-primary);
    border: 1px solid var(--defa-border);
    font-size: .82rem;
    font-weight: var(--defa-fw-bold);
    text-align: left;
    vertical-align: middle;
}

/* Table Body */
.exam-rich-content table tbody td {
    padding: 15px 18px;
    color: #25313d;
    border: 1px solid var(--defa-border);
    vertical-align: top;
}

/* If table doesn't explicitly use tbody */
.exam-rich-content table td {
    padding: 15px 18px;
    border: 1px solid var(--defa-border);
    vertical-align: top;
}

/* First column slightly stronger */
.exam-rich-content table tbody td:first-child {
    font-weight: var(--defa-fw-semibold);
    color: var(--defa-primary);
}

/* Alternating rows */
.exam-rich-content table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Row hover */
.exam-rich-content table tbody tr:hover {
    background: #f5f8fa;
}

/* Remove paragraph spacing inside table cells */
.exam-rich-content table td p,
.exam-rich-content table th p {
    margin: 0;
}

/* Lists inside table cells */
.exam-rich-content table td ul,
.exam-rich-content table td ol {
    margin: 0;
    padding-left: 18px;
}

.exam-rich-content table td li + li {
    margin-top: 5px;
}


/* =========================================================
   Responsive Table
========================================================= */

@media (max-width: 767px) {

    /*
     * Horizontal scrolling is preferable to collapsing columns
     * because exam structure tables need their column relationships
     * to remain understandable.
     */
    .exam-rich-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .exam-rich-content table {
        min-width: 650px;
        margin: 22px 0;
        font-size: .82rem;
    }

    .exam-rich-content table thead th,
    .exam-rich-content table tbody td,
    .exam-rich-content table td {
        padding: 12px 14px;
    }

}


/* =========================================================
   Very Small Screens
========================================================= */

@media (max-width: 479px) {

    .exam-rich-content table {
        min-width: 600px;
        font-size: .8rem;
    }

    .exam-rich-content table thead th,
    .exam-rich-content table tbody td,
    .exam-rich-content table td {
        padding: 11px 12px;
    }

}

.exam-overview-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.overview-point {
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--defa-border);
  border-radius: 6px;
  background: #fff;
}
.overview-point i { font-size: 1.15rem; color: var(--defa-accent); }
.overview-point span { display: flex; flex-direction: column; font-size: .75rem; color: var(--defa-muted); }
.overview-point strong { color: var(--defa-primary); font-size: .8rem; }

.exam-overview-image-wrap { position: relative; }
.exam-overview-image { border-radius: var(--defa-radius-sm); }
.exam-image-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: #fff;
  border-radius: 5px;
  padding: 11px 14px;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--defa-shadow);
}

.exam-calendar-shell { background: #fff; border: 1px solid var(--defa-border); border-radius: var(--defa-radius-sm); overflow: hidden; padding: 30px;}
.calendar-placeholder-header { padding: 22px 26px; border-bottom: 1px solid var(--defa-border); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.calendar-placeholder-header > div { display: flex; flex-direction: column; }
.calendar-label { color: var(--defa-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.calendar-shortcode { font-size: .72rem; color: var(--defa-muted); background: var(--defa-light); padding: 5px 9px; border-radius: 4px; }
.calendar-placeholder-body { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 45px 24px; background: linear-gradient(180deg,#fff,#fbfcfd); }
.calendar-placeholder-body > i { font-size: 2rem; margin-bottom: 13px; color: var(--defa-accent); }
.calendar-placeholder-body h5 { font-weight: 800; }
.calendar-placeholder-body p { max-width: 610px; color: var(--defa-muted); font-size: .9rem; }
.calendar-placeholder-body code { color: var(--defa-primary); background: var(--defa-soft-blue); border-radius: 4px; padding: 8px 12px; }

.exam-structure-card { margin-top: 35px; padding: 42px; border: 1px solid var(--defa-border); border-radius: var(--defa-radius-sm); background: #fff; }
.exam-structure-table { border-color: var(--defa-border); margin: 0; }
.exam-structure-table thead th { background: var(--defa-soft-blue); color: var(--defa-primary); border-bottom: 0; padding: 14px 16px; font-size: .82rem; }
.exam-structure-table td { padding: 16px; font-size: .88rem; }
.exam-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.exam-check-list li { display: flex; gap: 10px; align-items: flex-start; }
.exam-check-list i { color: var(--defa-accent); margin-top: 2px; }

.exam-faq-heading { top: 30px; }
.exam-faq-accordion .accordion-item { border: 1px solid var(--defa-border); border-radius: 6px !important; overflow: hidden; margin-bottom: 12px; background: #fff; }
.exam-faq-accordion .accordion-button { font-size: .95rem; font-weight: 700; color: var(--defa-primary); box-shadow: none; padding: 20px 22px; }
.exam-faq-accordion .accordion-button:not(.collapsed) { color: var(--defa-primary); background: var(--defa-soft-blue); }
.exam-faq-accordion .accordion-button::after { background-size: .9rem; }
.exam-faq-accordion .accordion-body { padding: 20px 22px; color: var(--defa-muted); line-height: 1.75; font-size: .9rem; }

@media (max-width: 991px) {
  .exam-details-hero { padding: 45px 0; }
  .exam-details-hero-content,
  .exam-price-panel { min-height: auto; }
  .exam-price-panel { align-items: flex-start; }
  .exam-detail-section { padding: 65px 0; }
}

@media (max-width: 576px) {
  .exam-details-hero-content { padding: 38px 25px; }
  .exam-price-panel { padding: 32px 25px; }
  .exam-details-hero-content h1 { font-size: 2.55rem; }
  .exam-tagline { font-size: .95rem; }
  .exam-hero-actions .btn,
  .exam-hero-actions .btn-defa-outline { width: 100%; text-align: center; }
  .exam-detail-section { padding: 52px 0; }
  .exam-section-heading h2 { font-size: 2rem; }
  .exam-structure-card { padding: 24px 18px; }
  .calendar-placeholder-header { align-items: flex-start; flex-direction: column; }
  .calendar-shortcode { display: none; }
  .calendar-placeholder-body { min-height: 320px; }
  .exam-overview-points { display: grid; grid-template-columns: 1fr 1fr; }
  .overview-point { min-width: 0; }
}

/* German-inspired feature hero — intentionally limited to Exam Details */
.exam-details-page .exam-details-hero {
  padding: 54px 0 68px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
    #f4f2ec;
  background-size: 42px 42px;
}
.exam-details-page .exam-details-hero-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 55px rgba(6,17,31,.12);
}
.exam-details-page .exam-details-hero-card::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg,#111 0 33.333%,#d71920 33.333% 66.666%,#f2c300 66.666% 100%);
}
.exam-details-page .exam-details-hero-content {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 72px 64px;
  background: #fbfaf6;
  isolation: isolate;
}
.exam-details-page .german-accent-bars {
  display: flex;
  width: 74px;
  height: 5px;
  margin-bottom: 24px;
}
.exam-details-page .german-accent-bars span { flex: 1; }
.exam-details-page .german-accent-bars span:nth-child(1){background:#111;}
.exam-details-page .german-accent-bars span:nth-child(2){background:#d71920;}
.exam-details-page .german-accent-bars span:nth-child(3){background:#f2c300;}
.exam-details-page .exam-eyebrow { color:#626262; margin-bottom:14px; }
.exam-details-page .exam-details-hero-content h1 {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color:#101010;
  font-weight:800;
  letter-spacing:-.045em;
}
.exam-details-page .exam-tagline { position:relative; z-index:2; color:#4e5358; max-width:600px; }
.exam-details-page .exam-level-watermark {
  position:absolute;
  right:-18px;
  bottom:-65px;
  z-index:-1;
  font-size:clamp(12rem,25vw,22rem);
  line-height:.8;
  font-weight:800;
  letter-spacing:-.09em;
  color:rgba(0,0,0,.035);
  user-select:none;
}
.exam-details-page .exam-hero-actions { position:relative; z-index:2; }
.exam-details-page .exam-hero-actions .btn-defa {
  background:#111;
  border-color:#111;
  color:#fff;
  padding:.8rem 1.45rem;
}
.exam-details-page .exam-hero-actions .btn-defa:hover { background:#d71920; border-color:#d71920; }
.exam-details-page .exam-hero-actions .btn-defa-outline {
  background:transparent;
  border-color:#111;
  color:#111;
  padding:.8rem 1.45rem;
}
.exam-details-page .exam-hero-actions .btn-defa-outline:hover { background:#111; color:#fff; }
.exam-details-page .exam-price-panel {
  position:relative;
  min-height:440px;
  padding:62px 48px;
  background:#101010;
}
.exam-details-page .exam-price-panel::after {
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:105px;
  height:105px;
  border-right:22px solid #f2c300;
  border-bottom:22px solid #f2c300;
  opacity:.95;
}
.exam-details-page .exam-price-icon { background:#d71920; color:#fff; border-radius:4px; }
.exam-details-page .exam-price-panel strong { color:#fff; font-size:clamp(2rem,3vw,2.7rem); }

@media (max-width: 991px) {
  .exam-details-page .exam-details-hero-content { min-height:auto; padding:56px 44px; }
  .exam-details-page .exam-price-panel { min-height:auto; padding:38px 44px; }
  .exam-details-page .exam-price-panel::after { width:70px; height:70px; border-width:14px; }
}
@media (max-width: 576px) {
  .exam-details-page .exam-details-hero { padding:28px 0 42px; }
  .exam-details-page .exam-details-hero-content { padding:45px 25px 42px; }
  .exam-details-page .exam-price-panel { padding:32px 25px 38px; }
  .exam-details-page .exam-level-watermark { right:0; bottom:-28px; font-size:12rem; }
}

/* =========================================================
   Exam Booking CTA
========================================================= */

.exam-booking-cta-section {
    padding: 60px 0;
    background: #fff;
}


/* CTA Card
--------------------------------------------------------- */

.exam-booking-cta {
    position: relative;
    overflow: hidden;
    padding: 46px 50px;

    background: var(--defa-soft-blue);
    border-radius: 10px;

    box-shadow: 0 18px 45px rgba(6, 17, 31, 0.08);
}


/* German Accent
--------------------------------------------------------- */

.exam-booking-cta-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 6px;
    display: flex;

    z-index: 2;
}

.exam-booking-cta-accent span {
    flex: 1;
}

.exam-booking-cta-accent span:nth-child(1) {
    background: #111;
}

.exam-booking-cta-accent span:nth-child(2) {
    background: #d71920;
}

.exam-booking-cta-accent span:nth-child(3) {
    background: #f2c300;
}

/* CTA Content
--------------------------------------------------------- */

.exam-booking-cta-content {
    position: relative;
    z-index: 2;

    max-width: 760px;
}

.exam-booking-cta-kicker {
    display: block;

    margin-bottom: 10px;

    color: var(--defa-red);

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* CTA Heading */

.exam-booking-cta h2 {
    margin: 0 0 14px;

    color: var(--defa-dark);

    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}


/* CTA Description */

.exam-booking-cta p {
    max-width: 680px;

    margin: 0;

    color: rgba(6, 17, 31, 0.68);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* CTA Action Area
--------------------------------------------------------- */

.exam-booking-cta-action {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


/* CTA Button */

.exam-booking-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 230px;

    padding: 14px 20px;

    background: var(--defa-dark);
    border: 1px solid var(--defa-dark);
    border-radius: 5px;

    color: #fff;

    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;

    box-shadow: 0 8px 20px rgba(6, 17, 31, 0.12);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Button Icons */

.exam-booking-cta-btn i {
    font-size: 1rem;
    line-height: 1;
}


/* Button Hover */

.exam-booking-cta-btn:hover,
.exam-booking-cta-btn:focus {
    background: var(--defa-red);
    border-color: var(--defa-red);

    color: #fff;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(6, 17, 31, 0.16);
}


/* Button Focus */

.exam-booking-cta-btn:focus-visible {
    outline: 3px solid rgba(215, 25, 32, 0.25);
    outline-offset: 3px;
}


/* Small Text Below Button */

.exam-booking-cta-note {
    display: block;

    margin-top: 10px;

    color: rgba(6, 17, 31, 0.55);

    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;

    text-align: right;
}


/* =========================================================
   Calendar Smooth Scroll
========================================================= */

html {
    scroll-behavior: smooth;
}

#exam-schedule {
    scroll-margin-top: 100px;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {

    .exam-booking-cta-section {
        padding: 10px 0 65px;
    }

    .exam-booking-cta {
        padding: 40px 35px;
    }

    .exam-booking-cta-content {
        max-width: 100%;
    }

    .exam-booking-cta-action {
        align-items: flex-start;
    }

    .exam-booking-cta-note {
        text-align: left;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {

    .exam-booking-cta-section {
        padding: 5px 0 50px;
    }

    .exam-booking-cta {
        padding: 36px 24px 42px;

        border-radius: 8px;
    }


    /* Accent */

    .exam-booking-cta-accent {
        height: 5px;
    }


    /* Content */

    .exam-booking-cta-kicker {
        margin-bottom: 8px;

        font-size: 0.7rem;
    }

    .exam-booking-cta h2 {
        margin-bottom: 12px;

        font-size: 1.65rem;
        line-height: 1.2;
    }

    .exam-booking-cta p {
        font-size: 0.88rem;
        line-height: 1.65;
    }


    /* Action */

    .exam-booking-cta-action {
        width: 100%;

        align-items: stretch;
    }


    /* Button */

    .exam-booking-cta-btn {
        width: 100%;
        min-width: 0;

        padding: 14px 18px;
    }


    /* Note */

    .exam-booking-cta-note {
        width: 100%;

        margin-top: 9px;

        text-align: center;
    }


    /* Decorative Corner */

    .exam-booking-cta::after {
        width: 55px;
        height: 55px;

        border-right-width: 12px;
        border-bottom-width: 12px;
    }

}

/* =========================================================
   Hero banner contrast update
   Important: --defa-soft-blue and all existing soft-blue sections remain unchanged.
========================================================= */
.defa-hero-banner-bg {
  margin-left: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5);
  margin-right: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5);
  margin-bottom: 3rem;
  padding: 42px calc(var(--bs-gutter-x, 1.5rem) * .5);
  background:
    radial-gradient(circle at 88% 15%, rgba(242,195,0,.13), transparent 24%),
    radial-gradient(circle at 8% 88%, rgba(215,25,32,.10), transparent 27%),
    #18212b;
}
.defa-hero-banner-bg > .exam-listing-hero,
.defa-hero-banner-bg > .listing-hero-card,
.defa-hero-banner-bg > .exam-center-hero-card { margin-bottom: 0 !important; }

/* Home: only the hero section gets the darker contrasting canvas. */
.hero-section {
  background:
    radial-gradient(circle at 84% 18%, rgba(242,195,0,.12), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(215,25,32,.09), transparent 28%),
    #18212b;
}

/* Exam Details: preserve the existing German-inspired hero card; darken only its surrounding section. */
.exam-details-page .exam-details-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(242,195,0,.13), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(215,25,32,.10), transparent 28%),
    #18212b;
}

@media (max-width: 767px) {
  .defa-hero-banner-bg { padding-top: 28px; padding-bottom: 28px; }
}

/* =========================================================
   Inner-page hero + German heading accent system
   Requested: keep --defa-soft-blue unchanged.
========================================================= */

/* Restore the home hero to the original DeFa soft blue. */
.hero-section {
  background: var(--defa-soft-blue);
}

/* Full-viewport soft-blue canvas behind inner-page hero cards,
   while the actual hero cards stay aligned to the site's container. */
.defa-hero-banner-bg {
  position: relative;
  z-index: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 3rem;
  padding: 42px 0;
  background: transparent;
}

.defa-hero-banner-bg::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--defa-soft-blue);
}

.defa-hero-banner-bg > .exam-listing-hero,
.defa-hero-banner-bg > .listing-hero-card,
.defa-hero-banner-bg > .exam-center-hero-card {
  margin-bottom: 0 !important;
}

/* Exam Details uses a section wrapper rather than .defa-hero-banner-bg. */
.exam-details-page .exam-details-hero {
  background: var(--defa-soft-blue);
}

/* German black-red-gold accent bars for every H1 and H2. */
h1::after,
h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #111 0%,
    #111 33.333%,
    #d71920 33.333%,
    #d71920 66.666%,
    #f2c300 66.666%,
    #f2c300 100%
  );
}

/* Avoid a duplicate accent on the Exam Details hero, which already
   had a standalone three-bar element in the previous version. */
.exam-details-page .german-accent-bars {
  display: none;
}

/* Keep heading accents visually tidy in centered heading blocks. */
.text-center > h1::after,
.text-center > h2::after,
h1.text-center::after,
h2.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .defa-hero-banner-bg {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  h1::after,
  h2::after {
    width: 72px;
    height: 4px;
    margin-top: 11px;
  }
}


/* =========================================================
   Unified DeFa Heading System
   One typography scale for all page and section headings.
========================================================= */

:root {
  --defa-h1-size: clamp(2.35rem, 4.5vw, 4rem);
  --defa-h2-size: clamp(1.85rem, 3.25vw, 2.75rem);
  --defa-h3-size: clamp(1.35rem, 2.2vw, 1.85rem);
  --defa-h4-size: 1.35rem;
  --defa-h5-size: 1.1rem;
  --defa-h6-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--defa-primary);
  font-family: var(--defa-font-family);
  font-weight: var(--defa-fw-bold);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--defa-h1-size); }
h2 { font-size: var(--defa-h2-size); }
h3 { font-size: var(--defa-h3-size); }
h4 { font-size: var(--defa-h4-size); }
h5 { font-size: var(--defa-h5-size); }
h6 { font-size: var(--defa-h6-size); }

/* Ensure page-specific components use the same scale. */
.hero-section h1,
.title-line h1,
.listing-hero-content h1,
.exam-listing-hero-content h1,
.exam-center-hero-content h1,
.exam-details-hero-content h1,
.exam-details-page .exam-details-hero-content h1 {
  font-size: var(--defa-h1-size);
  font-weight: var(--defa-fw-bold);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.title-line h2,
.intro-section h2,
.center-search-card h2,
.about-center-content h2,
.center-calendar-section .section-title h2,
.center-visit-strip h2,
.exam-section-heading h2 {
  font-size: var(--defa-h2-size);
  font-weight: var(--defa-fw-bold);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.exam-top h3,
.center-list-content h3,
.exam-rich-content h3 {
  font-size: var(--defa-h3-size);
  font-weight: var(--defa-fw-bold);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Keep white headings white inside dark sections. */
.dark-cta h1,
.dark-cta h2,
.dark-cta h3,
.dark-cta h4,
.dark-cta h5,
.dark-cta h6,
.exam-price-panel h1,
.exam-price-panel h2,
.exam-price-panel h3,
.exam-price-panel h4,
.exam-price-panel h5,
.exam-price-panel h6 {
  color: var(--defa-white);
}

/* Use the same title treatment everywhere; retire the older red left bar. */
.title-line {
  border-left: 0;
  padding-left: 0;
}

/* Unified black-red-gold accent for H1/H2. */
h1::after,
h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #111 0%,
    #111 33.333%,
    #d71920 33.333%,
    #d71920 66.666%,
    #f2c300 66.666%,
    #f2c300 100%
  );
}

.text-center > h1::after,
.text-center > h2::after,
h1.text-center::after,
h2.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.exam-details-page .german-accent-bars {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --defa-h1-size: clamp(2rem, 9vw, 2.75rem);
    --defa-h2-size: clamp(1.7rem, 7vw, 2.25rem);
    --defa-h3-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  h1::after,
  h2::after {
    width: 72px;
    height: 4px;
    margin-top: 11px;
  }
}


/* =========================================================
   DeFa In-Page Center Listing
   Horizontal card: image left / content right
========================================================= */

.defa-center-inline-listing {
    width: 100%;
}


/* Card */

.defa-center-inline-listing .defa-center-inline-card {
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 130px;

    overflow: hidden;

    background: var(--defa-white);
    border: 1px solid var(--defa-border);
    border-radius: var(--defa-radius-sm);

    box-shadow: var(--defa-shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.defa-center-inline-listing .defa-center-inline-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(6, 17, 31, .10);
}


/* Image */

.defa-center-inline-listing .defa-center-inline-image {
    display: block;
    flex: 0 0 135px;
    width: 135px;

    overflow: hidden;

    background: var(--defa-light);
    text-decoration: none;
}

.defa-center-inline-listing .defa-center-inline-thumbnail {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform .35s ease;
}

.defa-center-inline-listing
.defa-center-inline-card:hover
.defa-center-inline-thumbnail {
    transform: scale(1.05);
}

.defa-center-inline-listing .defa-center-inline-placeholder {
    width: 100%;
    height: 100%;
    min-height: 130px;
    background: var(--defa-light);
}


/* Content */

.defa-center-inline-listing .defa-center-inline-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 20px;
}


/* Title */

.defa-center-inline-listing .defa-center-inline-title {
    margin: 0 0 10px;
    padding: 0;

    color: var(--defa-primary);

    font-size: var(--defa-fs-lg);
    font-weight: var(--defa-fw-bold);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.defa-center-inline-listing .defa-center-inline-title a {
    color: inherit;
    text-decoration: none;
}

.defa-center-inline-listing .defa-center-inline-title a:hover {
    color: var(--defa-accent);
}


/* Location */

.defa-center-inline-listing .defa-center-inline-location {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-sm);
    line-height: 1.45;
}

.defa-center-inline-listing .defa-center-inline-location i {
    flex: 0 0 auto;

    color: var(--defa-accent);
    font-size: .95rem;
}


/* Tablet / smaller cards */

@media (max-width: 991px) {

    .defa-center-inline-listing .defa-center-inline-image {
        flex-basis: 125px;
        width: 125px;
    }

}
/* =========================================================
   DeFa In-Page Center Card - Upcoming Dates
========================================================= */

.defa-center-inline-listing .defa-center-inline-dates {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--defa-border);
}

.defa-center-inline-listing .defa-center-inline-dates-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-xs);
    font-weight: var(--defa-fw-semibold);
    line-height: 1.2;
}

.defa-center-inline-listing .defa-center-inline-dates-label i {
    color: var(--defa-primary);
    font-size: .8rem;
}


/* Date List */

.defa-center-inline-listing .defa-center-inline-date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


/* Individual Date */

.defa-center-inline-listing .defa-center-inline-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-height: 28px;
    padding: 4px 8px;

    background: var(--defa-light);
    border: 1px solid var(--defa-border);
    border-radius: 4px;

    color: var(--defa-primary);

    line-height: 1;
}

.defa-center-inline-listing .defa-center-inline-date strong {
    font-size: .78rem;
    font-weight: var(--defa-fw-bold);
}

.defa-center-inline-listing .defa-center-inline-date > span {
    font-size: .6rem;
    font-weight: var(--defa-fw-bold);
    letter-spacing: .03em;
}


/* Mobile */

@media (max-width: 575px) {

    .defa-center-inline-listing .defa-center-inline-card {
        min-height: 115px;
    }

    .defa-center-inline-listing .defa-center-inline-image {
        flex: 0 0 110px;
        width: 110px;
    }

    .defa-center-inline-listing .defa-center-inline-content {
        padding: 16px;
    }

    .defa-center-inline-listing .defa-center-inline-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .defa-center-inline-listing .defa-center-inline-location {
        font-size: var(--defa-fs-xs);
    }
	.defa-center-inline-listing .defa-center-inline-dates {
        margin-top: 11px;
        padding-top: 10px;
    }

    .defa-center-inline-listing .defa-center-inline-date {
        padding: 4px 7px;
    }

}

/* =========================================================
   About Us Page
========================================================= */

.about-page {
    background: #fff;
    overflow: hidden;
}



/* =========================================================
   Generic images
========================================================= */

.about-image-placeholder {
    width: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    background: #e9edf1;
    color: #9aa3ad;
    font-size: 2.2rem;
}


/* =========================================================
   Introduction
========================================================= */

.about-intro-section {
    padding: 65px 0 80px;
    background: var(--defa-soft-blue);
}

.about-intro-section h2,
.about-support-section h2 {
    max-width: 820px;
    margin-inline: auto;
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.about-intro-section h2::after,
.about-support-section h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #111 0%,
        #111 33.333%,
        #d71920 33.333%,
        #d71920 66.666%,
        #f2c300 66.666%,
        #f2c300 100%
    );
}

.about-intro-lead,
.about-section-lead {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--defa-muted);
    font-size: 1.04rem;
    line-height: 1.8;
}


/* =========================================================
   Shared section typography
========================================================= */

.about-copy-block h2,
.about-quality-content h2 {
    margin-bottom: 28px;
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.about-copy-block h2::after,
.about-quality-content h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 18px;
    border-radius: 20px;

    background: linear-gradient(
        90deg,
        #111 0%,
        #111 33.333%,
        #d71920 33.333%,
        #d71920 66.666%,
        #f2c300 66.666%,
        #f2c300 100%
    );
}

.about-rich-content p {
    margin-bottom: 18px;
    color: #27313b;
    line-height: 1.85;
}

.about-rich-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   About telc
========================================================= */

.about-telc-section {
    padding: 90px 0;
    background: var(--defa-light);
}

.about-copy-block {
    max-width: 720px;
}

.about-feature-panel {
    padding: 12px 34px;
    background: #fff;
    border: 1px solid var(--defa-border);
    border-radius: var(--defa-radius-sm);
    box-shadow: var(--defa-shadow);
}

.about-feature-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;

    padding: 28px 0;

    border-bottom: 1px solid var(--defa-border);
}

.about-feature-row:last-child {
    border-bottom: 0;
}

.about-feature-icon,
.about-support-icon,
.about-quality-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    flex: 0 0 52px;

    background: var(--defa-soft-blue);
    border-radius: 50%;

    color: var(--defa-primary);
    font-size: 1.3rem;
}

.about-feature-row h3 {
    margin: 0 0 7px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.about-feature-row p {
    margin: 0;
    color: var(--defa-muted);
    font-size: .9rem;
    line-height: 1.65;
}


/* =========================================================
   About DeFa
========================================================= */

.about-defa-section {
    padding: 95px 0;
    background: #fff;
}

.about-defa-visual {
    position: relative;
    padding: 0 32px 32px 0;
}

.about-defa-visual::before {
    content: "";
    position: absolute;
    z-index: 0;

    right: 0;
    bottom: 0;

    width: 72%;
    height: 72%;

    background: var(--defa-soft-blue);
    border-radius: var(--defa-radius-md);
}

.about-defa-image {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 520px;

    display: block;
    object-fit: cover;

    border-radius: var(--defa-radius-md);
}

.about-year-card {
    position: absolute;
    z-index: 2;

    right: 0;
    bottom: 64px;

    min-width: 185px;

    padding: 20px 24px;

    background: var(--defa-primary);
    color: #fff;

    border-radius: var(--defa-radius-sm);
    box-shadow: var(--defa-shadow);
}

.about-year-card span,
.about-year-card small {
    display: block;
    color: #c9d0d8;
    font-size: .74rem;
}

.about-year-card strong {
    display: block;
    margin: 3px 0 4px;

    color: var(--defa-yellow);

    font-size: 2rem;
    line-height: 1;
}

.about-defa-copy {
    padding-left: 18px;
}


/* =========================================================
   Quality
========================================================= */

.about-quality-section {
    padding: 90px 0;
}

.about-quality-card {
    overflow: hidden;

    background: var(--defa-soft-blue);

    border-radius: var(--defa-radius-md);
}

.about-quality-image {
    width: 100%;
    height: 100%;
    min-height: 420px;

    display: block;
    object-fit: cover;
}

.about-quality-content {
    height: 100%;
    min-height: 420px;

    padding: 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-quality-icon {
    margin-bottom: 24px;
    background: #fff;
}

.about-quality-content .about-rich-content {
    max-width: 650px;
}


/* =========================================================
   Core Activities
========================================================= */

.about-support-section {
    padding: 90px 0 100px;
    background: var(--defa-light);
}

.about-kicker {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--defa-accent);

    font-size: .78rem;
    font-weight: var(--defa-fw-bold);
    line-height: 1.4;

    letter-spacing: .09em;
    text-transform: uppercase;
}

.about-support-card {
    position: relative;
    overflow: hidden;

    padding: 36px;

    background: #fff;

    border: 1px solid var(--defa-border);
    border-radius: var(--defa-radius-sm);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.about-support-card:hover {
    transform: translateY(-4px);
    border-color: #cbd2da;
    box-shadow: var(--defa-shadow);
}

.about-support-number {
    position: absolute;

    top: 18px;
    right: 24px;

    color: #e7e9ec;

    font-size: 3.8rem;
    font-weight: var(--defa-fw-extrabold);
    line-height: 1;
}

.about-support-icon {
    position: relative;
    z-index: 1;

    margin-bottom: 26px;
}

.about-support-card h3 {
    position: relative;
    z-index: 1;

    margin-bottom: 14px;

    font-size: 1.25rem;
}

.about-support-card p {
    position: relative;
    z-index: 1;

    margin: 0;

    color: var(--defa-muted);

    font-size: .93rem;
    line-height: 1.75;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {

    .about-telc-section,
    .about-quality-section,
    .about-defa-section,
    .about-support-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .about-quality-content {
        min-height: auto;
        padding: 48px 40px;
    }

    .about-quality-image {
        min-height: 360px;
    }

    .about-defa-copy {
        padding-left: 0;
    }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767.98px) {

    .about-intro-section {
        padding: 48px 0 58px;
    }

    .about-feature-panel {
        padding: 4px 24px;
    }

    .about-feature-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        padding: 24px 0;
    }

    .about-feature-icon,
    .about-support-icon,
    .about-quality-icon {
        width: 46px;
        height: 46px;

        font-size: 1.15rem;
    }

    .about-quality-content {
        padding: 38px 28px;
    }

    .about-quality-image {
        min-height: 280px;
    }

    .about-defa-visual {
        padding: 0 18px 26px 0;
    }

    .about-defa-image {
        height: 400px;
    }

    .about-year-card {
        right: 0;
        bottom: 45px;

        min-width: 160px;

        padding: 16px 18px;
    }

    .about-support-card {
        padding: 30px 26px;
    }
}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 575.98px) {


    .about-telc-section,
    .about-quality-section,
    .about-defa-section,
    .about-support-section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .about-defa-image {
        height: 340px;
    }

    .about-year-card {
        position: relative;

        right: auto;
        bottom: auto;

        width: calc(100% - 26px);
        min-width: 0;

        margin: -38px 0 0 auto;
    }

    .about-support-number {
        font-size: 3rem;
    }
}

/* =========================================================
   Generic Inner Page Hero
   ========================================================= */

.defa-hero-section {
    background: var(--defa-soft-blue);
    padding: 60px 0;
}


/* Hero Card */

.defa-hero-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}


/* Content */

.defa-hero-content {
    height: 100%;
    min-height: 430px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;
}


.defa-hero-content h1 {
    margin-bottom: 24px;
}


.defa-hero-content p {
    max-width: 600px;

    margin: 0;

    font-size: 1.05rem;
    line-height: 1.8;

    color: var(--defa-muted);
}


/* Hero Image */

.defa-hero-image-wrap {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 430px;

    overflow: hidden;
}


.defa-hero-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .defa-hero-section {
        padding: 40px 0;
    }

    .defa-hero-content {
        min-height: auto;
        padding: 45px 40px;
    }

    .defa-hero-image-wrap {
        min-height: 380px;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .defa-hero-section {
        padding: 25px 0;
    }

    .defa-hero-card {
        border-radius: 10px;
    }

    .defa-hero-content {
        padding: 35px 25px;
    }

    .defa-hero-content h1 {
        margin-bottom: 20px;
    }

    .defa-hero-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .defa-hero-image-wrap {
        min-height: 280px;
    }

}

/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 575.98px) {

    .defa-hero-section {
        padding: 20px 0;
    }

    .defa-hero-content {
        padding: 30px 20px;
    }

    .defa-hero-image-wrap {
        min-height: 240px;
    }

}

/* =====================================================
   EXAM BOOKING PAGE
===================================================== */

.booking-hero-section {
  background: var(--defa-soft-blue);
  padding: 54px 0;
}

.booking-hero-card {
  background: var(--defa-white);
  border: 1px solid rgba(6, 17, 31, .08);
  border-radius: var(--defa-radius-md);
  overflow: hidden;
  box-shadow: var(--defa-shadow);
}

.booking-hero-content {
  height: 100%;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  background: var(--defa-white);
}

.booking-eyebrow,
.booking-form-kicker,
.booking-section-heading > div > span {
  display: inline-block;
  color: var(--defa-accent);
  font-size: .72rem;
  font-weight: var(--defa-fw-extrabold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.booking-hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.03;
  margin: 0 0 22px;
}

/* Global h1/h2 accent is already defined above in the theme.
   No extra ::after rule is needed here. */

.booking-hero-content > p {
  color: var(--defa-muted);
  font-size: .96rem;
  line-height: 1.75;
  margin: 0 0 30px;
}

.booking-hero-checklist {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.booking-check-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 15px;
  background: #f8fbfd;
  border: 1px solid #e4edf2;
  border-radius: var(--defa-radius-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.booking-check-item:hover {
  transform: translateY(-2px);
  border-color: #d5e0e7;
  box-shadow: 0 8px 22px rgba(6, 17, 31, .05);
}

.booking-check-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--defa-white);
  border: 1px solid #dbe5eb;
  color: var(--defa-primary);
  font-size: 1rem;
}

.booking-check-item > div:last-child {
  min-width: 0;
}

.booking-check-item strong,
.booking-check-item small {
  display: block;
}

.booking-check-item strong {
  font-size: .86rem;
  margin: 1px 0 3px;
}

.booking-check-item small {
  color: var(--defa-muted);
  font-size: .75rem;
  line-height: 1.55;
}

.booking-hero-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 20px;
  border-top: 1px solid var(--defa-border);
  color: var(--defa-muted);
  font-size: .76rem;
  line-height: 1.55;
}

.booking-hero-note i {
  color: var(--defa-accent);
  font-size: 1rem;
  margin-top: 1px;
}

.booking-hero-form {
  min-height: 100%;
  background: #fbfcfd;
  border-left: 1px solid var(--defa-border);
  display: flex;
  flex-direction: column;
}

.booking-form-topbar {
  padding: 30px 34px 24px;
  background: var(--defa-white);
  border-bottom: 1px solid var(--defa-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.booking-form-topbar h2 {
  font-size: 1.45rem;
  margin: 0;
}

/* Keep the global H2 accent system from adding a bar inside
   the compact form top bar. */
.booking-form-topbar h2::after {
  display: none;
}

.booking-form-kicker {
  margin-bottom: 6px;
}

.booking-secure-note {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--defa-soft-blue);
  color: var(--defa-primary);
  font-size: .72rem;
  font-weight: var(--defa-fw-bold);
  white-space: nowrap;
}

.booking-shortcode-wrap {
  padding: 32px 34px 38px;
  flex: 1;
}

/* Demo only. Remove this placeholder markup when the
   real booking shortcode is inserted. */
.booking-shortcode-placeholder {
  min-height: 430px;
  height: 100%;
  border: 2px dashed var(--defa-border);
  border-radius: var(--defa-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 26px;
  background: var(--defa-white);
}

.booking-placeholder-title {
  font-weight: var(--defa-fw-bold);
  font-size: .95rem;
  margin: 28px 0 6px;
}

.booking-shortcode-placeholder p {
  color: var(--defa-muted);
  margin: 0;
  font-size: .8rem;
}

.booking-placeholder-progress {
  width: min(480px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-placeholder-progress span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--defa-border);
  background: var(--defa-white);
  font-size: .76rem;
  font-weight: var(--defa-fw-bold);
}

.booking-placeholder-progress span.active {
  background: var(--defa-primary);
  color: var(--defa-white);
  border-color: var(--defa-primary);
}

.booking-placeholder-progress i {
  flex: 1;
  height: 1px;
  background: var(--defa-border);
}

/* Generic shortcode/form support */
.booking-shortcode-wrap form {
  width: 100%;
}

.booking-shortcode-wrap label {
  margin-bottom: 7px;
  color: var(--defa-primary);
  font-size: .82rem;
  font-weight: var(--defa-fw-semibold);
}

.booking-shortcode-wrap input[type="text"],
.booking-shortcode-wrap input[type="email"],
.booking-shortcode-wrap input[type="tel"],
.booking-shortcode-wrap input[type="number"],
.booking-shortcode-wrap input[type="date"],
.booking-shortcode-wrap input[type="password"],
.booking-shortcode-wrap select,
.booking-shortcode-wrap textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  background: var(--defa-white);
  border: 1px solid var(--defa-border);
  border-radius: 7px;
  color: var(--defa-primary);
  font-family: var(--defa-font-family);
  font-size: .88rem;
  box-shadow: none;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.booking-shortcode-wrap textarea {
  min-height: 110px;
  resize: vertical;
}

.booking-shortcode-wrap input:focus,
.booking-shortcode-wrap select:focus,
.booking-shortcode-wrap textarea:focus {
  border-color: #9dafba;
  box-shadow: 0 0 0 3px rgba(6, 17, 31, .07);
}

.booking-shortcode-wrap button,
.booking-shortcode-wrap input[type="submit"],
.booking-shortcode-wrap .btn {
  border-radius: 5px;
}

/* =====================================================
   BOOKING SUPPORT SECTION
===================================================== */

.booking-prep-section {
  padding: 32px 0 70px;
  background: var(--defa-white);
}

.booking-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.booking-section-heading h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  margin: 0;
}

.booking-section-heading > p {
  color: var(--defa-muted);
  max-width: 420px;
  margin: 0 0 4px;
  text-align: right;
}

.booking-prep-card {
  padding: 26px;
  border: 1px solid var(--defa-border);
  border-radius: var(--defa-radius-sm);
  background: var(--defa-white);
}

.booking-prep-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--defa-soft-blue);
  color: var(--defa-primary);
  border-radius: 50%;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.booking-prep-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.booking-prep-card p {
  color: var(--defa-muted);
  font-size: .86rem;
  line-height: 1.7;
  margin: 0;
}

.booking-help-bar {
  margin-top: 0;
  padding: 20px 22px;
  background: var(--defa-soft-blue);
  border: 1px solid #cfE2ea;
  border-radius: var(--defa-radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.booking-help-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.booking-help-copy > i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--defa-white);
  border: 1px solid #d5e0e6;
  font-size: 1.1rem;
}

.booking-help-copy strong,
.booking-help-copy span {
  display: block;
}

.booking-help-copy strong {
  font-size: .88rem;
}

.booking-help-copy span {
  color: var(--defa-muted);
  font-size: .8rem;
  margin-top: 2px;
}

.booking-help-bar .btn {
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: var(--defa-fw-bold);
}

/* =====================================================
   BOOKING RESPONSIVE
===================================================== */

@media (max-width: 1199.98px) {
  .booking-hero-content {
    padding: 44px 34px;
  }

  .booking-form-topbar,
  .booking-shortcode-wrap {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 991.98px) {
  .booking-hero-section {
    padding: 38px 0;
  }

  .booking-hero-content {
    padding: 42px 34px;
  }

  .booking-hero-form {
    border-left: 0;
    border-top: 1px solid var(--defa-border);
  }

  .booking-shortcode-placeholder {
    min-height: 360px;
  }

  .booking-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .booking-section-heading > p {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .booking-hero-section {
    padding: 26px 0;
  }

  .booking-hero-content {
    padding: 34px 24px;
  }

  .booking-hero-content h1 {
    font-size: 2.25rem;
  }

  .booking-form-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 22px 20px;
  }

  .booking-shortcode-wrap {
    padding: 22px;
  }

  .booking-shortcode-placeholder {
    min-height: 300px;
    padding: 26px 16px;
  }

  .booking-placeholder-progress span {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .booking-prep-section {
    padding: 24px 0 45px;
  }

  .booking-help-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-help-bar .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .booking-hero-section {
    padding: 20px 0;
  }

  .booking-hero-card {
    border-radius: 12px;
  }

  .booking-hero-content {
    padding: 30px 20px;
  }

  .booking-hero-content h1 {
    font-size: 2rem;
  }

  .booking-check-item {
    padding: 13px;
    gap: 11px;
  }

  .booking-check-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .booking-form-topbar {
    padding: 23px 18px 18px;
  }

  .booking-shortcode-wrap {
    padding: 18px;
  }

  .booking-placeholder-progress span {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: .68rem;
  }

  .booking-placeholder-progress i {
    margin: 0 3px;
  }

  .booking-help-bar {
    padding: 18px;
  }

  .booking-help-copy {
    align-items: flex-start;
  }

  .booking-help-copy > i {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}


/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-hero-section {
  background: var(--defa-soft-blue);
  padding: 54px 0 70px;
}

.contact-hero-card {
  overflow: hidden;
  background: var(--defa-white);
  border: 1px solid rgba(6, 17, 31, .08);
  border-radius: var(--defa-radius-md);
  box-shadow: var(--defa-shadow);
}

.contact-content-panel {
  padding: 54px 48px;
}

.contact-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--defa-accent);
  font-size: .72rem;
  font-weight: var(--defa-fw-extrabold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-content-panel > h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  line-height: 1.04;
}

.contact-intro {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--defa-muted);
  font-size: .96rem;
  line-height: 1.75;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  background: #f8fbfd;
  border: 1px solid #e4edf2;
  border-radius: var(--defa-radius-sm);
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dce6ec;
  border-radius: 9px;
  background: var(--defa-white);
  color: var(--defa-primary);
  font-size: 1rem;
}

.contact-info-item small {
  display: block;
  margin-bottom: 4px;
  color: #7a838d;
  font-size: .66rem;
  font-weight: var(--defa-fw-extrabold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-info-item strong {
  display: block;
  color: var(--defa-primary);
  font-size: .84rem;
  line-height: 1.45;
}

.contact-info-item strong a {
  color: inherit;
  text-decoration: none;
}

.contact-info-item strong a:hover {
  color: var(--defa-accent);
}

.contact-info-item p {
  margin: 4px 0 0;
  color: var(--defa-muted);
  font-size: .75rem;
  line-height: 1.55;
}

.contact-form-shell {
  overflow: hidden;
  background: var(--defa-white);
  border: 1px solid var(--defa-border);
  border-radius: var(--defa-radius-sm);
}

.contact-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  background: #fbfcfd;
  border-bottom: 1px solid var(--defa-border);
}

.contact-form-heading > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--defa-accent);
  font-size: .68rem;
  font-weight: var(--defa-fw-extrabold);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.contact-form-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.contact-form-heading h2::after {
  display: none;
}

.contact-response-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--defa-soft-blue);
  color: var(--defa-primary);
  font-size: .68rem;
  font-weight: var(--defa-fw-bold);
  white-space: nowrap;
}

.contact-form-shortcode {
  padding: 26px;
}

.contact-form-placeholder {
  padding: 40px 22px;
  border: 2px dashed var(--defa-border);
  border-radius: 8px;
  background: #fcfdfe;
  color: var(--defa-muted);
  font-size: .82rem;
  text-align: center;
}

.contact-form-shortcode .wpcf7,
.contact-form-shortcode .wpcf7-form {
  margin: 0;
}

.contact-form-shortcode .wpcf7-form p {
  margin-bottom: 16px;
}

.contact-form-shortcode .wpcf7-form label {
  width: 100%;
  margin-bottom: 7px;
  color: var(--defa-primary);
  font-size: .82rem;
  font-weight: var(--defa-fw-semibold);
}

.contact-form-shortcode .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form-shortcode input[type="text"],
.contact-form-shortcode input[type="email"],
.contact-form-shortcode input[type="tel"],
.contact-form-shortcode input[type="url"],
.contact-form-shortcode select,
.contact-form-shortcode textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--defa-border);
  border-radius: 7px;
  background: var(--defa-white);
  color: var(--defa-primary);
  font-family: var(--defa-font-family);
  font-size: .88rem;
  box-shadow: none;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form-shortcode textarea {
  min-height: 135px;
  resize: vertical;
}

.contact-form-shortcode input:focus,
.contact-form-shortcode select:focus,
.contact-form-shortcode textarea:focus {
  border-color: #9dafba;
  box-shadow: 0 0 0 3px rgba(6, 17, 31, .07);
}

.contact-form-shortcode .wpcf7-submit {
  min-height: 44px;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 5px;
  background: var(--defa-yellow);
  color: #000;
  font-size: .88rem;
  font-weight: var(--defa-fw-bold);
  cursor: pointer;
}

.contact-form-shortcode .wpcf7-submit:hover {
  background: var(--defa-yellow-dark);
}

.contact-form-shortcode .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: var(--defa-accent);
  font-size: .72rem;
}

.contact-form-shortcode .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 6px;
  font-size: .78rem;
}

.contact-image-panel {
  position: relative;
  height: 100%;
  min-height: 760px;
  overflow: hidden;
  background: #dce3e7;
}

.contact-image-panel > img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
  display: block;
}

.contact-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(6, 17, 31, .60) 0%, rgba(6, 17, 31, .12) 45%, transparent 72%);
}

.contact-image-badge {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.contact-image-badge > i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--defa-soft-blue);
  color: var(--defa-primary);
  font-size: 1.05rem;
}

.contact-image-badge small,
.contact-image-badge strong {
  display: block;
}

.contact-image-badge small {
  margin-bottom: 2px;
  color: var(--defa-muted);
  font-size: .68rem;
}

.contact-image-badge strong {
  color: var(--defa-primary);
  font-size: .84rem;
  line-height: 1.45;
}

@media (max-width: 1199.98px) {
  .contact-content-panel { padding: 46px 36px; }
  .contact-image-panel,
  .contact-image-panel > img { min-height: 720px; }
}

@media (max-width: 991.98px) {
  .contact-hero-section { padding: 38px 0 52px; }
  .contact-content-panel { padding: 42px 34px; }

  .contact-image-panel {
    min-height: 390px;
    max-height: 500px;
  }

  .contact-image-panel > img {
    min-height: 390px;
    max-height: 500px;
  }
}

@media (max-width: 767.98px) {
  .contact-hero-section { padding: 26px 0 38px; }
  .contact-content-panel { padding: 34px 24px; }
  .contact-content-panel > h1 { font-size: 2.25rem; }
  .contact-info-grid { grid-template-columns: 1fr; }

  .contact-form-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .contact-form-shortcode { padding: 22px; }

  .contact-image-panel,
  .contact-image-panel > img { min-height: 320px; }

  .contact-image-overlay { padding: 20px; }
}

@media (max-width: 575.98px) {
  .contact-hero-section { padding: 20px 0 30px; }
  .contact-hero-card { border-radius: 12px; }
  .contact-content-panel { padding: 30px 20px; }
  .contact-content-panel > h1 { font-size: 2rem; }
  .contact-info-item { padding: 14px; }
  .contact-form-shortcode { padding: 18px; }

  .contact-image-panel,
  .contact-image-panel > img { min-height: 280px; }

  .contact-image-overlay { padding: 16px; }
}

/* =========================================================
   Mobile viewport + navigation refinements
   Scope: responsive overflow safety and header navigation only.
   ========================================================= */

/* Prevent full-bleed decorative elements from widening the page viewport.
   Deliberate scroll containers (for example responsive tables) keep their
   own overflow-x behaviour because this only clips the document canvas. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

@media (max-width: 991.98px) {
  .defa-header .navbar {
    padding-top: 0;
    padding-bottom: 0;
  }

  .defa-header .navbar > .container {
    position: relative;
  }

  .defa-header .navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
  }

  .defa-header .navbar-brand img {
    width: auto;
    max-width: min(210px, 58vw);
    max-height: 44px;
  }

  /* Modern compact mobile menu button; Bootstrap collapse behaviour remains unchanged. */
  .defa-header .navbar-toggler {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    padding: 0;
    border: 1px solid var(--defa-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(6, 17, 31, .07);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .defa-header .navbar-toggler:hover,
  .defa-header .navbar-toggler:focus {
    border-color: rgba(6, 17, 31, .22);
    background: var(--defa-light);
    box-shadow: 0 6px 18px rgba(6, 17, 31, .10);
  }

  .defa-header .navbar-toggler:focus {
    outline: 0;
  }

  .defa-header .navbar-toggler[aria-expanded="true"] {
    background: var(--defa-primary);
    border-color: var(--defa-primary);
  }

  .defa-header .navbar-toggler-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    transition: filter .2s ease;
  }

  .defa-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
  }

  /* Collapsed menu becomes a clean card without changing the Bootstrap component. */
  .defa-header .navbar-collapse {
    width: 100%;
    margin-top: .65rem;
    padding: .65rem;
    background: #fff;
    border: 1px solid var(--defa-border);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(6, 17, 31, .09);
  }

  .defa-header .navbar-nav {
    width: 100%;
    margin: 0;
    padding: 0;
  }

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

  .defa-header .navbar-nav .nav-link {
    width: 100%;
    padding: .82rem .9rem;
    border-radius: 10px;
    color: var(--defa-primary);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
  }

  .defa-header .navbar-nav .nav-link:hover,
  .defa-header .navbar-nav .nav-link:focus,
  .defa-header .navbar-nav .nav-link.active,
  .defa-header .navbar-nav .current-menu-item > .nav-link,
  .defa-header .navbar-nav .current-menu-ancestor > .nav-link {
    color: var(--defa-primary);
    background: var(--defa-soft-blue);
  }

  /* WordPress second-level menus keep their existing links/functionality. */
  .defa-header .navbar-nav .sub-menu,
  .defa-header .navbar-nav .dropdown-menu {
    position: static !important;
    width: 100%;
    min-width: 0;
    margin: .15rem 0 .35rem;
    padding: .25rem 0 .25rem .8rem;
    border: 0;
    border-left: 2px solid var(--defa-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    list-style: none;
  }

  .defa-header .navbar-nav .sub-menu a,
  .defa-header .navbar-nav .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: .65rem .8rem;
    border-radius: 9px;
    color: var(--defa-muted);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: normal;
  }

  .defa-header .navbar-nav .sub-menu a:hover,
  .defa-header .navbar-nav .sub-menu a:focus,
  .defa-header .navbar-nav .dropdown-menu .dropdown-item:hover,
  .defa-header .navbar-nav .dropdown-menu .dropdown-item:focus {
    color: var(--defa-primary);
    background: var(--defa-light);
  }

  .defa-header .header-actions {
    width: 100%;
    margin: .55rem 0 0 !important;
    padding: .75rem .25rem .1rem;
    border-top: 1px solid var(--defa-border);
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem !important;
  }

  .defa-header .header-actions .language-switcher {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .defa-header .header-actions .language-switcher li {
    margin: 0;
  }

  .defa-header .header-actions .language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: .35rem;
    border: 1px solid var(--defa-border);
    border-radius: 9px;
    background: #fff;
  }

  .defa-header .header-actions .language-switcher img {
    display: block;
    width: 22px;
    height: auto;
  }

  .defa-header .header-actions .btn-defa {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .defa-header .navbar > .container {
    padding-top: .4rem !important;
    padding-bottom: .4rem !important;
  }

  .defa-header .navbar-collapse {
    margin-top: .45rem;
    padding: .55rem;
    border-radius: 14px;
  }

  .defa-header .navbar-nav .nav-link {
    padding: .76rem .78rem;
  }

  .defa-header .header-actions {
    grid-template-columns: 1fr;
  }

  .defa-header .header-actions .language-switcher {
    justify-content: flex-start;
  }
}


/* Privacy Policy Page */
.privacy-policy-page {
  background: #fff;
}

.privacy-policy-page .defa-hero-card {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.privacy-policy-page .defa-hero-content {
  max-width: 760px;
}

.privacy-policy-page .defa-hero-content h1 {
  margin-bottom: 1rem;
}

.privacy-policy-page .defa-hero-content p {
  max-width: 680px;
  margin: 0;
  color: var(--defa-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.privacy-policy-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.privacy-policy-card {
  max-width: 920px;
  margin: 0 auto;
  color: var(--defa-text);
  font-size: 1rem;
  line-height: 1.8;
}

.privacy-policy-card h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--defa-dark);
}

.privacy-policy-card h2:first-child {
  margin-top: 0;
}

.privacy-policy-card h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--defa-dark);
}

.privacy-policy-card p,
.privacy-policy-card ul,
.privacy-policy-card ol {
  margin-bottom: 1.25rem;
}

.privacy-policy-card ul,
.privacy-policy-card ol {
  padding-left: 1.5rem;
}

.privacy-policy-card li {
  margin-bottom: 0.5rem;
}

.privacy-policy-card a {
  color: var(--defa-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-policy-card a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 767.98px) {
  .privacy-policy-content {
    padding: 2.5rem 0;
  }

  .privacy-policy-page .defa-hero-card {
    padding: 2rem 1.25rem;
  }
}


/* Extras */

a.inline-link {
  color: var(--defa-primary);
  font-size: .82rem;
  font-weight: var(--defa-fw-semibold);
  text-decoration: none;
}
a.inline-link:hover {
	color: var(--defa-accent);
}


/* =========================================================
   BLOG - SINGLE CPT
   Consistent with existing DeFa theme styles
========================================================= */

.defa-single-post {
    background: var(--defa-white);
}


/* =========================================================
   Blog Header
========================================================= */

.defa-single-header {
    padding: 60px 0;
    background: var(--defa-soft-blue);
}

.defa-single-header-inner {
    max-width: 920px;
}

.defa-blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 28px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-xs);
    font-weight: var(--defa-fw-medium);
}

.defa-blog-breadcrumb a {
    color: var(--defa-muted);
    text-decoration: none;
}

.defa-blog-breadcrumb a:hover {
    color: var(--defa-accent);
}

.defa-blog-breadcrumb i {
    font-size: .65rem;
    color: var(--defa-muted);
}


/* Category */

.defa-single-category {
    display: inline-block;

    margin-bottom: 18px;
    padding: 6px 10px;

    background: var(--defa-white);

    border: 1px solid var(--defa-border);
    border-radius: 4px;

    color: var(--defa-primary);

    font-size: var(--defa-fs-xs);
    font-weight: var(--defa-fw-bold);
    line-height: 1.2;

    text-decoration: none;
}

.defa-single-category:hover {
    color: var(--defa-accent);
}


/* Title */

.defa-single-header h1 {
    max-width: 900px;
    margin-bottom: 24px;
}


/* Intro / Excerpt */

.defa-single-intro {
    max-width: 760px;

    margin-bottom: 26px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-lg);
    line-height: 1.75;
}

.defa-single-intro p {
    margin: 0;
}


/* Meta */

.defa-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-sm);
}

.defa-single-meta > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.defa-single-meta i {
    color: var(--defa-primary);
    font-size: .85rem;
}


/* =========================================================
   Featured Image
========================================================= */

.defa-single-featured {
    padding: 60px 0 0;
    background: var(--defa-white);
}

.defa-single-featured-image {
    overflow: hidden;

    border: 1px solid var(--defa-border);
    border-radius: var(--defa-radius-sm);
}

.defa-single-featured-image img {
    display: block;

    width: 100%;
    max-height: 620px;

    object-fit: cover;
}


/* =========================================================
   Article Section
========================================================= */

.defa-single-content-section {
    padding: 70px 0 90px;
}

.defa-article-layout {
    position: relative;
}

.defa-article-content {
    max-width: 780px;
    margin: 0 auto;

    color: #25313d;

    font-size: var(--defa-fs-base);
    line-height: 1.85;
}


/* Paragraphs */

.defa-article-content p {
    margin-bottom: 20px;
}

.defa-article-content p:last-child {
    margin-bottom: 0;
}


/* Headings */

.defa-article-content h2 {
    margin: 42px 0 20px;
}

.defa-article-content h3 {
    margin: 32px 0 16px;
}

.defa-article-content h4,
.defa-article-content h5,
.defa-article-content h6 {
    margin: 28px 0 14px;
}


/* Prevent overly large spacing from global accent bar */

.defa-article-content h2::after {
    width: 72px;
    height: 4px;
    margin-top: 12px;
}


/* Links */

.defa-article-content a {
    color: var(--defa-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.defa-article-content a:hover {
    color: var(--defa-accent);
}


/* Lists */

.defa-article-content ul,
.defa-article-content ol {
    margin-bottom: 22px;
    padding-left: 22px;
}

.defa-article-content li {
    margin-bottom: 7px;
}


/* Images inside content */

.defa-article-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 28px 0;

    border-radius: var(--defa-radius-sm);
}


/* WordPress image captions */

.defa-article-content .wp-caption {
    max-width: 100%;
    margin-bottom: 26px;
}

.defa-article-content .wp-caption img {
    margin-bottom: 8px;
}

.defa-article-content .wp-caption-text {
    margin: 0;

    color: var(--defa-muted);

    font-size: var(--defa-fs-xs);
    line-height: 1.5;
}


/* Blockquote */

.defa-article-content blockquote {
    margin: 30px 0;
    padding: 24px 28px;

    background: var(--defa-light);

    border-left: 4px solid var(--defa-yellow);

    color: var(--defa-primary);

    font-size: var(--defa-fs-lg);
    font-weight: var(--defa-fw-semibold);
    line-height: 1.7;
}

.defa-article-content blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Blog Tables
   Same style as Exam Rich Content tables
========================================================= */

.defa-article-content table {
    width: 100%;

    margin: 28px 0;

    border-collapse: collapse;

    background: var(--defa-white);

    border: 1px solid var(--defa-border);

    font-size: .9rem;
    line-height: 1.55;
}

.defa-article-content table th {
    padding: 15px 18px;

    background: var(--defa-soft-blue);

    border: 1px solid var(--defa-border);

    color: var(--defa-primary);

    font-size: .82rem;
    font-weight: var(--defa-fw-bold);
    text-align: left;
    vertical-align: middle;
}

.defa-article-content table td {
    padding: 15px 18px;

    border: 1px solid var(--defa-border);

    color: #25313d;

    vertical-align: top;
}

.defa-article-content table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.defa-article-content table p {
    margin: 0;
}


/* =========================================================
   Social Share
========================================================= */

.defa-blog-share {
    position: absolute;

    top: 0;
    left: -72px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.defa-blog-share > span {
    margin-bottom: 4px;

    color: var(--defa-muted);

    font-size: .65rem;
    font-weight: var(--defa-fw-bold);
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.defa-blog-share a {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background: var(--defa-white);

    border: 1px solid var(--defa-border);
    border-radius: 50%;

    color: var(--defa-primary);

    font-size: .9rem;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.defa-blog-share a:hover {
    background: var(--defa-soft-blue);
    border-color: var(--defa-soft-blue);

    color: var(--defa-primary);
}


/* =========================================================
   Tags
========================================================= */

.defa-blog-tags {
    max-width: 780px;

    margin: 45px auto 0;
    padding-top: 22px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    border-top: 1px solid var(--defa-border);
}

.defa-blog-tags strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-right: 5px;

    color: var(--defa-primary);

    font-size: var(--defa-fs-sm);
}

.defa-blog-tags a {
    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 5px 10px;

    background: var(--defa-light);

    border: 1px solid var(--defa-border);
    border-radius: 4px;

    color: var(--defa-primary);

    font-size: var(--defa-fs-xs);
    font-weight: var(--defa-fw-semibold);

    text-decoration: none;
}

.defa-blog-tags a:hover {
    background: var(--defa-soft-blue);
}


/* =========================================================
   Previous / Next
========================================================= */

.defa-post-navigation {
    max-width: 780px;

    margin: 40px auto 0;
    padding-top: 28px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;

    border-top: 1px solid var(--defa-border);
}

.defa-post-nav-item span {
    display: block;

    margin-bottom: 8px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-xs);
    font-weight: var(--defa-fw-semibold);
}

.defa-post-nav-item span i {
    font-size: .75rem;
}

.defa-post-nav-item a {
    color: var(--defa-primary);

    font-size: var(--defa-fs-sm);
    font-weight: var(--defa-fw-bold);
    line-height: 1.5;

    text-decoration: none;
}

.defa-post-nav-item a:hover {
    color: var(--defa-accent);
}

.defa-post-nav-next {
    text-align: right;
}


/* =========================================================
   Related Posts
========================================================= */

.defa-related-posts {
    padding: 80px 0 90px;

    background: var(--defa-light);
}

.defa-related-heading {
    margin-bottom: 32px;
}

.defa-section-kicker {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--defa-accent);

    font-size: var(--defa-fs-xs);
    font-weight: var(--defa-fw-bold);
    line-height: 1;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =========================================================
   Blog Card
   Uses same structure as existing site cards
========================================================= */

.defa-blog-card {
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--defa-white);

    border: 1px solid var(--defa-border);
    border-radius: var(--defa-radius-sm);

    box-shadow: var(--defa-shadow);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.defa-blog-card:hover {
    transform: translateY(-3px);

    border-color: #cbd2da;

    box-shadow: 0 12px 28px rgba(6, 17, 31, .09);
}


/* Image */

.defa-blog-card-image {
    display: block;

    width: 100%;
    height: 215px;

    overflow: hidden;

    background: var(--defa-light);

    text-decoration: none;
}

.defa-blog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.defa-blog-card:hover .defa-blog-card-image img {
    transform: scale(1.04);
}


/* Placeholder */

.defa-blog-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 215px;

    display: grid;
    place-items: center;

    background: var(--defa-light);

    color: var(--defa-muted);

    font-size: 1.6rem;
}


/* Body */

.defa-blog-card-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 24px;
}


/* Meta */

.defa-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;

    margin-bottom: 14px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-xs);
}

.defa-blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.defa-blog-meta i {
    font-size: .75rem;
}


/* Category */

.defa-blog-category {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    background: var(--defa-soft-blue);

    border-radius: 4px;

    color: var(--defa-primary);

    font-size: .68rem;
    font-weight: var(--defa-fw-bold);

    text-decoration: none;
}

.defa-blog-category:hover {
    color: var(--defa-accent);
}


/* Card title */

.defa-blog-card-title {
    margin: 0 0 12px;

    font-size: var(--defa-fs-lg);
    line-height: 1.35;
}

.defa-blog-card-title::after {
    display: none;
}

.defa-blog-card-title a {
    color: var(--defa-primary);
    text-decoration: none;
}

.defa-blog-card-title a:hover {
    color: var(--defa-accent);
}


/* Excerpt */

.defa-blog-card-excerpt {
    margin-bottom: 18px;

    color: var(--defa-muted);

    font-size: var(--defa-fs-sm);
    line-height: 1.7;
}

.defa-blog-card-excerpt p {
    margin: 0;
}


/* Read More */

.defa-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    margin-top: auto;

    color: var(--defa-primary);

    font-size: .78rem;
    font-weight: var(--defa-fw-bold);

    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}

.defa-blog-read-more i {
    font-size: .8rem;
}

.defa-blog-read-more:hover {
    gap: 10px;

    color: var(--defa-accent);
}


/* =========================================================
   WordPress Content Elements
========================================================= */

.defa-article-content .alignleft {
    float: left;
    margin: 8px 25px 20px 0;
}

.defa-article-content .alignright {
    float: right;
    margin: 8px 0 20px 25px;
}

.defa-article-content .aligncenter {
    display: block;

    margin-left: auto;
    margin-right: auto;
}

.defa-article-content .wp-block-image {
    margin: 28px 0;
}

.defa-article-content .wp-block-image img {
    margin: 0;
}

.defa-article-content .wp-block-separator {
    margin: 40px 0;

    border-color: var(--defa-border);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1199.98px) {

    .defa-blog-share {
        position: static;

        max-width: 780px;

        margin: 0 auto 28px;

        flex-direction: row;
        justify-content: flex-start;
    }

    .defa-blog-share > span {
        margin: 0 5px 0 0;
    }

}


@media (max-width: 991.98px) {

    .defa-single-header {
        padding: 50px 0;
    }

    .defa-single-featured {
        padding-top: 45px;
    }

    .defa-single-content-section {
        padding: 60px 0 70px;
    }

    .defa-related-posts {
        padding: 65px 0 75px;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767.98px) {

    .defa-single-header {
        padding: 40px 0;
    }

    .defa-blog-breadcrumb {
        margin-bottom: 22px;
    }

    .defa-single-intro {
        font-size: var(--defa-fs-base);
    }

    .defa-single-meta {
        gap: 10px 18px;

        font-size: var(--defa-fs-xs);
    }

    .defa-single-featured {
        padding-top: 30px;
    }

    .defa-single-featured-image img {
        max-height: 420px;
    }

    .defa-single-content-section {
        padding: 50px 0 60px;
    }

    .defa-article-content {
        font-size: .95rem;
        line-height: 1.8;
    }

    .defa-article-content h2 {
        margin-top: 34px;
    }

    .defa-article-content h3 {
        margin-top: 28px;
    }

    .defa-article-content blockquote {
        padding: 20px;

        font-size: var(--defa-fs-base);
    }

    .defa-article-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .defa-article-content table {
        min-width: 620px;
    }

    .defa-post-navigation {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .defa-post-nav-next {
        text-align: left;
    }

    .defa-related-posts {
        padding: 55px 0 65px;
    }

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 575.98px) {

    .defa-single-header {
        padding: 32px 0;
    }

    .defa-single-category {
        margin-bottom: 15px;
    }

    .defa-single-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .defa-single-featured {
        padding-top: 22px;
    }

    .defa-single-featured-image {
        border-radius: var(--defa-radius-sm);
    }

    .defa-single-featured-image img {
        max-height: 320px;
    }

    .defa-single-content-section {
        padding: 42px 0 50px;
    }

    .defa-blog-share {
        margin-bottom: 24px;
    }

    .defa-blog-share a {
        width: 36px;
        height: 36px;
    }

    .defa-blog-tags {
        margin-top: 35px;
    }

    .defa-post-navigation {
        margin-top: 32px;
    }

    .defa-blog-card-image,
    .defa-blog-image-placeholder {
        height: 190px;
        min-height: 190px;
    }

    .defa-blog-card-body {
        padding: 20px;
    }

    .defa-related-posts {
        padding: 48px 0 55px;
    }

}
