.cd-hero__title .country-flag img {
  display: block;
  width: 52px;
  height: 31px;
  border: 1px solid #000000;
}
.cd-hero__title .country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.cd-main {
  position: relative;
  z-index: 1;
  margin-top: -188px;
  padding-bottom: 64px;
  background: transparent;
}

.cd-hero {
  position: relative;
  height: 589px;
  top: -110px;
  z-index: 0;
}

.cd-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cd-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.cd-hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
  top: 130px;
  position: relative;
}

.cd-hero__name-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cd-hero__flag {
  border-radius: 4px;
  object-fit: cover;
}

.cd-hero__title {
  font-family: Montserrat, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 2.1875rem;
  color: var(--contrast-text-color);
  text-transform: uppercase;
  letter-spacing: 0px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.cd-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cd-overview {
  background: var(--primary-bg-color);
  border-radius: 0 140px 0 140px !important;
  box-shadow: 13px 22px 56px -10px rgba(0, 0, 0, 0.09);
  min-height: 406px;
  padding: 40px;
}

.cd-overview .row {
  --bs-gutter-x: 40px; /* same as original horizontal gap */
}

.cd-overview__img-wrap {
  aspect-ratio: 1484 / 790;
  border-radius: 0 100px 100px 120px;
  overflow: hidden;
  min-width: 0;
}

.cd-overview__img {
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 100px 100px 120px;
}

.cd-overview__content {
  gap: 24px;
  min-width: 0;
}

.cd-overview__heading {
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
  color: var(--secondary-color);
}

.cd-overview__flag-row {
  gap: 16px;
}

.cd-overview__flag {
  flex-shrink: 0;
  border: 1px solid #000000;
}

.cd-overview__name {
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--secondary-color);
}

.cd-overview__subtitle {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 26.25px;
  color: var(--secondary-color);
}

.cd-overview__desc {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26.25px;
  color: var(--secondary-color);
}

.cd-stats {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.cd-stat-col {
  display: flex;
}

.cd-stat {
  position: relative;
  background: var(--primary-bg-color);
  border-radius: 24px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 2px 3px rgba(0, 0, 0, 0.07);
  padding: 32px 16px;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-stat--financing {
  padding: 32px 24px;
}

.cd-stat__label {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
  color: var(--secondary-color);
  display: block;
}

.cd-stat__number {
  font-family: Montserrat, sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0px;
  color: var(--primary-color);
  display: block;
}

.cd-stat__value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.cd-stat__currency {
  font-family: Montserrat, sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 35px;
  letter-spacing: 0px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* ── Documents & Quick Links section ───────────── */
.cd-docs-section {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.cd-docs-section__header {
  display: flex;
  gap: 24px;
}

.cd-docs-section__title {
  flex: 1 1 0;
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
  letter-spacing: 0px;
  color: var(--secondary-color);
}

.cd-docs-section__count {
  font-weight: 400;
}

.cd-doc-col,
.cd-links-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: 420px;
  overflow: hidden auto;
  -ms-overflow-style: none;
  overflow-wrap: break-word;
}

/* ── Individual document / quick link row ─────────────────────────────── */
.cd-doc-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 16px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}

.cd-doc-item:hover {
  border-bottom-color: var(--hyperlink-color);
}

.cd-doc-item__title {
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-color);
  text-transform: none;
  transition: color 0.2s;
}

.cd-doc-item:hover .cd-doc-item__title {
  color: var(--hyperlink-color);
}

.cd-doc-item__url {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.cd-doc-item__url:hover {
  opacity: 1;
}

.cd-doc-item__link {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.cd-doc-item__link:hover {
  opacity: 0.75;
}

.country-factsheet-shell {
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: visible;
}

.country-factsheet-card {
  position: relative;
  display: block;
  --country-card-height: 550px;
  --country-card-name-bottom: 2rem;
  --country-card-name-line-height: 28px;
  --country-factsheet-padding: 2rem;
  --country-factsheet-title-height: 28px;
  --country-factsheet-title-clearance: 0.35rem;
  --country-card-name-stop-top: calc(
    var(--country-factsheet-padding) + var(--country-factsheet-title-height) +
      var(--country-factsheet-title-clearance)
  );
  width: 100%;
  height: 550px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition:
    width 0.42s ease,
    box-shadow 0.42s ease;
}

.country-factsheet-card img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.country-card-name {
  position: absolute;
  left: 2rem;
  bottom: var(--country-card-name-bottom);
  z-index: 2;
  color: var(--contrast-text-color);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.6s ease;
  animation: countryNameRise 0.6s ease;
}

@keyframes countryNameRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-factsheet-details {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  color: var(--contrast-text-color);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
  transition-delay: 0s;
  pointer-events: none;
  background: rgba(0,0,0,0.6);
}

.country-factsheet-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2.5rem;
}

.page-node-type-country .country-factsheet-cta:hover {
  font-weight: 700;
}

.country-factsheet-financing-label {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--country-factsheet-label-color);
}

.country-factsheet-financing-value {
  margin: 0.4rem 0 1.55rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.country-factsheet-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.country-factsheet-metrics span {
  display: block;
  color: var(--country-factsheet-label-color);
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

.country-factsheet-metrics strong {
  display: block;
  margin-top: 0.35rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.country-factsheet-cta {
  margin-top: auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.88rem 1.55rem;
  background: var(--primary-color);
  color: var(--primary-bg-color);
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
}

.country-factsheet-card:hover img,
.country-factsheet-card:focus-visible img {
  transform: scale(1.08);
}

.country-factsheet-card:hover::before,
.country-factsheet-card:focus-visible::before {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(102, 102, 102, 0.68) 100%
  );
}

.country-factsheet-card:hover .country-card-name,
.country-factsheet-card:focus-visible .country-card-name {
  z-index: 4;
  opacity: 0;
  transform: translateY(
    calc(
      -1 *
        (
          var(--country-card-height) - var(--country-card-name-stop-top) -
            var(--country-card-name-bottom) -
            var(--country-card-name-line-height)
        )
    )
  );
  transition:
    opacity 0.3s ease 0.3s,
    transform 0.6s ease;
}

.country-factsheet-card:hover .country-factsheet-details,
.country-factsheet-card:focus-visible .country-factsheet-details {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

#country-factsheet-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

#country-factsheet-slider .splide__track {
  overflow: hidden;
}

#country-factsheet-slider .splide__slide {
  width: 397px;
  height: 550px;
  max-width: 100%;
  overflow: hidden;
}

.cd-countries__footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cd-countries {
  background: var(--secondary-bg-color);
  padding: 48px 0 56px;
}

.cd-countries__inner {
  padding: 0;
}
.cd-countries__heading {
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
  letter-spacing: 0px;
  color: var(--secondary-color);
  align-self: flex-start;
}

/* Dot indicators */
.cd-countries__dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.cd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9c9c9;
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.cd-dot--active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* See All link */
.cd-countries__see-all {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.cd-countries__see-all:hover {
  opacity: 0.75;
}

@media (max-width: 991.98px) {
  .cd-overview {
    border-radius: 24px;
    min-height: 0;
  }

  .cd-overview .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 24px;
  }

  .cd-overview__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }
}

@media (min-width: 861px) {
  .cd-countries__inner {
    padding: 0 28px;
  }
  .cd-stats .cd-stat-col--financing {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .cd-stats .cd-stat-col--small {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (max-width: 860px) {
  .cd-stats .cd-stat-col--financing {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cd-stats .cd-stat-col--small {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 1100px) {
  .cd-hero__content {
    left: 32px;
  }
  .cd-container {
    padding: 0 32px;
  }
  .cd-overview {
    border-radius: 0 80px 0 80px;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .cd-doc-col,
  .cd-links-col {
    max-height: 420px;
    overflow-y: auto;
  }
  .cd-overview {
    flex-direction: column;
    border-radius: 0 60px 0 60px;
    padding: 32px;
  }
  .cd-stats {
    flex-wrap: wrap;
  }
  .cd-stat--financing {
    flex: 1 1 100%;
  }
  .cd-stat {
    flex: 1 1 calc(33% - 12px);
  }
  .cd-docs-section__body {
    flex-direction: column;
  }
  .cd-links-col .cd-doc-item {
    padding-left: 0;
  }
  .cd-container {
    padding: 0 24px;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .cd-hero {
    height: 460px;
  }
  .cd-hero__title {
    font-size: 24px;
  }
  .cd-hero__content {
    left: 20px;
    top: 100px;
  }
  .cd-container {
    padding: 0 16px;
  }
  .cd-overview {
    padding: 24px;
    border-radius: 0 40px 0 40px;
  }
  .cd-stats .cd-stat-col--small {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .cd-stat {
    flex: 1 1 calc(50% - 8px);
  }
  .cd-stat__number,
  .cd-stat__currency {
    font-size: 36px;
  }
}

@media (max-width: 500px) {
  #brand-logo {
    height: 19px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #brand-logo {
    height: 19px;
  }
}
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  #country-factsheet-slider .splide__slide {
    transition: width 0.5s ease, transform 0.5s ease;
  }
 
  #country-factsheet-slider .splide__slide.factsheet-hover-active {
    width: 600px !important;
  }
 
  #country-factsheet-slider .splide__slide.expand-left:hover {
    transform: translateX(var(--factsheet-shift-x, calc(397px - 600px)));
  }
 
  #country-factsheet-slider .splide__slide.push-left {
    transform: translateX(var(--factsheet-shift-x, calc(397px - 600px)));
  }
}
