@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  line-height: 1.7em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #2ea3f2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
  line-height: 26px;
}

ul { list-style-type: disc; }
ol { list-style-type: decimal; }

blockquote {
  margin: 20px 0 30px;
  border-left: 5px solid #2ea3f2;
  padding-left: 20px;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 1.5em;
}

table th, table td {
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* === LAYOUT === */

:root {
  --section-pageflow-empty-bg: url('/wp-content/uploads/2026/05/CDT-pageflowEra-Background.png');
}

.report-page {
  max-width: 100%;
  overflow-x: hidden;
}

.section {
  position: relative;
  padding: 54px 0;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Decorative pageflow background (shared asset, no per-section inline URL) */
.section--has-bg-empty {
  background-image: var(--section-pageflow-empty-bg);
}

/* Sections with background images: overlay, white text, full viewport min height */
.section--has-bg,
.section--has-bg-empty,
.section[style*="background-image"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section--has-bg::before,
.section--has-bg-empty::before,
.section[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}

.section--parallax.section--has-bg,
.section--parallax.section--has-bg-empty,
.section--parallax[style*="background-image"] {
  background-attachment: fixed;
}

.section--has-bg .row,
.section--has-bg-empty .row,
.section[style*="background-image"] .row {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* White text on background sections */
.section--has-bg,
.section--has-bg p,
.section--has-bg li,
.section--has-bg td,
.section--has-bg th,
.section--has-bg span,
.section--has-bg-empty,
.section--has-bg-empty p,
.section--has-bg-empty li,
.section--has-bg-empty td,
.section--has-bg-empty th,
.section--has-bg-empty span,
.section[style*="background-image"],
.section[style*="background-image"] p,
.section[style*="background-image"] li,
.section[style*="background-image"] td,
.section[style*="background-image"] th,
.section[style*="background-image"] span {
  color: #fff;
}

.section--has-bg a,
.section--has-bg-empty a,
.section[style*="background-image"] a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.section--has-bg a:hover,
.section--has-bg-empty a:hover,
.section[style*="background-image"] a:hover {
  color: #b8e4f7;
}

/* Plain sections without background keep dark text */
.section:not(.section--has-bg):not(.section--has-bg-empty):not([style*="background-image"]) {
  color: #666;
}

.section:not(.section--has-bg):not(.section--has-bg-empty):not([style*="background-image"]) p,
.section:not(.section--has-bg):not(.section--has-bg-empty):not([style*="background-image"]) li {
  color: #666;
}

.section--fullwidth {
  padding: 0;
}

.row {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 27px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5.5%;
}

.col {
  flex: 1 1 100%;
  min-width: 0;
}

.col--1-2 { flex: 0 0 47.25%; }
.col--1-3 { flex: 0 0 29.667%; }
.col--2-3 { flex: 0 0 64.833%; }
.col--1-4 { flex: 0 0 20.875%; }
.col--3-4 { flex: 0 0 73.625%; }
.col--full { flex: 0 0 100%; }

/* === TEXT MODULES === */

.text-module {
  margin-bottom: 2.75%;
  word-wrap: break-word;
}

.text-module:last-child {
  margin-bottom: 0;
}

/* Report title (H1) – white box on dark backgrounds */
.report-title {
  display: inline-block;
  background: #fff;
  color: #333;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 18px;
  margin: 0 0 12px;
}

.report-meta {
  display: inline-block;
  background: #fff;
  color: #333! important;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  margin: 0 0 20px;
}

/* Section headings (H2) – white box like original Divi design */
.section-title {
  display: inline-block;
  background: #fff;
  color: #333;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 16px;
  margin: 0 0 16px;
}

h3.section-title {
  font-size: 22px;
}
h4.section-title {
  font-size: 20px;
}
h5.section-title {
  font-size: 18px;
}
h6.section-title {
  font-size: 16px;
}

h3.section-title,
h4.section-title,
h5.section-title,
h6.section-title {
  display: block;
  width: fit-content;
  background: #ffffffb8;
  padding: 0px 20px;
}

.section--has-bg .text-module .section-title,
.section--has-bg-empty .text-module .section-title,
.section[style*="background-image"] .text-module .section-title {
  color: #333;
}

/* Override inline color:#ffffff on spans inside bg sections – body text stays white */
.section--has-bg .text-module p span[style*="color: #ffffff"],
.section--has-bg .text-module p span[style*="color:#ffffff"],
.section--has-bg-empty .text-module p span[style*="color: #ffffff"],
.section--has-bg-empty .text-module p span[style*="color:#ffffff"],
.section[style*="background-image"] .text-module p span[style*="color: #ffffff"],
.section[style*="background-image"] .text-module p span[style*="color:#ffffff"] {
  color: #fff !important;
}

.section:not(.section--has-bg):not(.section--has-bg-empty):not([style*="background-image"]) .text-module a {
  color: #2ea3f2;
  font-weight: 700;
}

/* === HERO ROW (title + video at top) === */

.row--hero {
  width: 90%;
  max-width: 1080px;
}

.row--hero .report-title,
.row--hero .report-meta {
  margin-bottom: 16px;
}

.row--hero .section-title {
  margin-bottom: 16px;
}

/* === VIDEO === */

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 20px 0 2.75%;
  background: #000;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === IMAGES === */

.img-module {
  position: relative;
  margin-bottom: 2.75%;
}

.img-module img {
  display: block;
  width: 100%;
  height: auto;
}

/* Infographic / pageflow images in section--has-bg-empty — full container width below title */

.section--has-bg-empty > .row:first-of-type:not(.row--section-inline-image) {
  padding-bottom: 10px;
}

.section--has-bg-empty > .row + .row--section-inline-image {
  padding-top: 6px;
}

.section--has-bg-empty .row--section-inline-image {
  padding-top: 0;
}

.img-module--section-flow {
  margin-bottom: 0;
}

.img-module--section-flow img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.row--section-inline-image .col.col--full {
  flex: 0 0 100%;
}

/* Table/chart images with text baked in – white 50% overlay for readability */
.img-module--table {
  display: block;
  isolation: isolate;
}

.img-module--table::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

.img-module--table img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}


@media (max-width: 980px) {
  .section {
    padding: 50px 0;
  }

  .section--has-bg,
  .section--has-bg-empty,
  .section[style*="background-image"] {
    min-height: 100vh;
    background-attachment: scroll;
  }

  .section--parallax.section--has-bg,
  .section--parallax.section--has-bg-empty,
  .section--parallax[style*="background-image"] {
    background-attachment: scroll;
  }

  .row {
    width: 90%;
    padding: 20px 0;
    gap: 0;
  }

  .col--1-2,
  .col--1-3,
  .col--2-3,
  .col--1-4,
  .col--3-4 {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }

  .col:last-child {
    margin-bottom: 0;
  }

  .report-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }
}

@media (max-width: 479px) {
  .row {
    width: 95%;
  }

  .report-title {
    font-size: 20px;
    padding: 8px 12px;
  }

  .section-title {
    font-size: 18px;
    padding: 6px 12px;
  }
}

/* === SINGLE POST (2024 report styling) === */

/* Editor content has no per-element classes, so style the headings/body of a
   single post to match the 2024 report (.report-title / .section-title boxes). */
.report-content {
  text-align: justify;
}

.report-content h1,
.report-content h2,
.report-content h3,
.report-content h4,
.report-content h5,
.report-content h6 {
  display: inline-block;
  background: #fff;
  color: #333;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 16px;
  margin: 28px 0 16px;
  text-align: left;
  text-transform: none;
}

.report-content > :first-child {
  margin-top: 0;
}

.report-content h1 {
  font-size: 30px;
  font-weight: 700;
}
.report-content h2 { font-size: 26px; }
.report-content h3 { font-size: 22px; }
.report-content h4 { font-size: 20px; }
.report-content h5 { font-size: 18px; }
.report-content h6 { font-size: 16px; }

.report-content img {
  display: block;
  height: auto;
}

/* Keep the single-page parallax background visible at every width.
   The global rule below switches to `scroll` under 980px, which makes
   `background-size: cover` over-zoom on a tall single-section page and the
   image appears to vanish. Pin it to the viewport instead. */
.report-page--single .section--parallax.section--has-bg {
  background-attachment: fixed;
}

@media (max-width: 980px) {
  .report-content h1 { font-size: 24px; }
  .report-content h2 { font-size: 22px; }

  /* Restore comfortable padding lost by the global narrow-screen .row rule. */
  .report-page--single .row {
    width: 100%;
    padding: 28px 24px;
  }
}

@media (max-width: 479px) {
  .report-content h1 {
    font-size: 20px;
    padding: 8px 12px;
  }
  .report-content h2 {
    font-size: 18px;
    padding: 6px 12px;
  }

  .report-page--single .row {
    padding: 22px 18px;
  }
}

/* === REPORTS INDEX (front page) === */

.index-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 60px 20px;
}

.index-header {
  text-align: center;
  margin-bottom: 40px;
}

.index-header h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.index-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.reports-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.reports-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-list a {
  display: block;
  padding: 12px 0;
  color: #2ea3f2;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.reports-list a:hover {
  text-decoration: underline;
}

.reports-list__lang {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

.reports-list__year {
  padding: 20px 0 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: none;
}

.report-error {
  max-width: 1080px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

@media (max-width: 700px) {
  .index-header h1,
  .index-header h2 {
    font-size: 28px;
  }
}
