/* ==========================================================================
   Country landing page (Uganda). rwanda.css carries the same rules, so the
   two country pages share one look; values follow the original's Elementor
   page (post 1949): 5em/4em/3em section padding, 1280px content, white cards
   with a 0 0 15px 15px radius and a soft 60px shadow, blue (#2B77BB) and
   light grey (#F9F9F9) bands.
   ========================================================================== */
.cp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cp-i { width: 1em; height: 1em; display: inline-block; flex: none; }

/* ---------- Buttons (red, and white outline on dark bands) ---------- */
.cp-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.cp-actions-left { justify-content: flex-start; }
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px 28px; border-radius: var(--radius);
  background: var(--c-red); color: var(--c-white);
  font-family: var(--f-head); font-size: 16px; font-weight: 600; line-height: 1;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.cp-btn:hover, .cp-btn:focus-visible { color: var(--c-white); background: #c51f1d; box-shadow: 0 8px 20px -8px rgba(228, 38, 36, .6); }
.cp-btn-ghost { background: transparent; border: 2px solid var(--c-white); }
.cp-btn-ghost:hover, .cp-btn-ghost:focus-visible { background: var(--c-red); border-color: var(--c-red); }

/* ---------- Hero ---------- */
.cp-hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 640px; padding: 170px 16px 100px;
  background: var(--hero-img) var(--hero-pos, center) / cover no-repeat;
  text-align: center; color: var(--c-white);
}
.cp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0d1e46d9 0%, #0d1e46b3 100%); }
.cp-hero-inner { position: relative; width: 100%; max-width: 960px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cp-hero h1 { color: var(--c-white); }
/* the original's text blocks keep a 14.4px paragraph space under their last line */
.cp-hero-lead { margin: 0 0 14.4px; font-size: 20px; line-height: 1.6; }
.cp-hero-tag { margin: -8px 0 14.4px; }
.cp-hero .cp-actions { width: 100%; }
.cp-badges {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  margin: 8px -14px 0; font-size: 14px; font-weight: 500; line-height: 1.5;
}
.cp-badges li { display: flex; align-items: flex-start; margin: 0 14px; }
.cp-badges .cp-i { width: 16px; height: 16px; margin: 3px 11px 0 0; }

/* ---------- Sections ---------- */
.cp-sec { padding: 5em 1em; }
.cp-grey { background: var(--c-light-2); }
.cp-blue { background: var(--c-blue); color: var(--c-white); }
.cp-blue h2, .cp-blue a { color: var(--c-white); }
.cp-blue a:not(.cp-btn):hover { color: var(--c-white); text-decoration: underline; }
.cp-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cp-faq .cp-inner { max-width: 960px; }
/* text blocks keep the paragraph space after their last line, as on the original */
.cp-text p:last-child { margin-bottom: 14.4px; }
.cp-h3 { margin-top: 12px; }

/* Lists with a blue icon (checks, sectors, featured projects) */
.cp-list { list-style: none; display: flex; flex-direction: column; gap: 12px; color: #000; }
.cp-list li { display: flex; align-items: flex-start; }
.cp-list .cp-i { width: 18px; height: 18px; margin: 3px 19px 0 0; color: var(--c-blue); }
.cp-list-sectors .cp-i { stroke-width: 2.4; }
.cp-list strong { font-weight: 700; color: #000; }

/* ---------- Two-column bands (Inzovu, contact) ---------- */
.cp-split { flex-direction: row; align-items: center; gap: 40px; }
.cp-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cp-col-55 { width: calc((100% - 40px) * .55); }
.cp-col-45 { width: calc((100% - 40px) * .45); gap: 16px; }
.cp-split-half > .cp-col { width: calc((100% - 40px) / 2); }
.cp-photo { width: 100%; border-radius: var(--radius-lg); }

/* ---------- Cards (services, leadership) ---------- */
.cp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 10px 0; }
.cp-card, .cp-step {
  padding: 28px 24px; background: var(--c-white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .3s;
}
.cp-card:hover, .cp-step:hover { transform: translateY(-4px); }
.cp-card-icon { display: block; margin-bottom: 19px; font-size: 38px; line-height: 0; color: var(--c-blue); }
.cp-card-title { margin: 0 0 8px; font-size: var(--fs-h5); font-weight: 600; line-height: 1.4; letter-spacing: -0.5px; }
.cp-card p, .cp-step p { margin: 0; font-size: var(--fs-small); line-height: 1.5; }

/* ---------- Steps ---------- */
.cp-steps { list-style: none; margin: 0; padding: 10px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cp-step { padding: 24px 20px; border-top: 4px solid var(--c-blue); }

/* ---------- Comparison table ---------- */
.cp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }
.cp-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--c-white); font-size: 16px; line-height: 1.5; }
.cp-table th, .cp-table td { padding: 16px 20px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.cp-table thead th { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); font-family: var(--f-head); font-size: 17px; font-weight: 600; }
.cp-table thead th + th { border-left-color: #ffffff40; }
.cp-table tbody th { width: 32%; font-weight: 600; color: #000; }
.cp-table td { color: var(--c-text); }
.cp-table tbody tr:nth-child(odd) > * { background: #f6f6f6; }
.cp-table tbody tr:nth-child(even) > * { background: var(--c-light-2); }

/* ---------- Project photos ---------- */
.cp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-gallery figure { margin: 0; }
.cp-gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.cp-gallery figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #333; }

/* ---------- FAQ accordion (shared [data-accordion] behaviour) ---------- */
.cp-acc { display: flex; flex-direction: column; gap: 12px; }
.cp-acc-item { border: 1px solid #d5d8dc; background: var(--c-white); }
.cp-acc-title { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -1.2px; }
.cp-acc .acc-head {
  justify-content: flex-start; gap: 12px; padding: 18px 20px; background: var(--c-white);
  font: inherit; letter-spacing: inherit; color: #000;
}
.cp-acc .acc-head:hover { background: var(--c-white); color: var(--c-blue); }
.cp-acc-icon { display: flex; font-size: 15px; color: #000; }
.cp-acc .acc-head:hover .cp-acc-icon, .cp-acc .acc-head[aria-expanded="true"] .cp-acc-icon { color: var(--c-blue); }
.cp-acc .is-open, .cp-acc .acc-head[aria-expanded="true"] .is-closed { display: none; }
.cp-acc .acc-head[aria-expanded="true"] .is-open { display: inline-block; }
.cp-acc .acc-body { padding: 4px 20px 20px; border-top: 1px solid #d5d8dc; }
.cp-acc .acc-body p { margin: 10px 0 14.4px; }

/* ---------- Contact band with map ---------- */
.cp-contact { color: var(--c-white); }
.cp-contact .cp-i, .cp-contact strong { color: var(--c-white); }
.cp-contact a { display: flex; align-items: flex-start; }
.cp-contact a:hover { text-decoration: none; opacity: .85; }
.cp-also { margin: 0; }
.cp-also a { text-decoration: underline; }
.cp-map .office-map-frame { border-radius: var(--radius-lg); }
.cp-map .office-map-caption { color: var(--c-white); }
.cp-map .office-map-caption a { color: var(--c-white); }
.cp-map .office-map-caption .icon { color: var(--c-white); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .cp-hero { min-height: 520px; padding: 150px 24px 80px; }
  .cp-sec { padding: 4em 1.5em; }
  .cp-split { flex-direction: column; align-items: stretch; }
  .cp-col-55, .cp-col-45, .cp-split-half > .cp-col { width: 100%; }
  .cp-col-45 { flex-direction: row; align-items: flex-start; }
  .cp-photo-tall { width: 49%; }
  .cp-cards { grid-template-columns: repeat(2, 1fr); }
  .cp-cards-people { grid-template-columns: repeat(3, 1fr); }
  .cp-steps { grid-template-columns: repeat(2, 1fr); }
  .cp-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .cp-hero { min-height: 480px; padding: 130px 16px 64px; }
  .cp-hero-lead { font-size: 17px; }
  .cp-hero .cp-actions, .cp-actions { flex-direction: column; align-items: stretch; }
  .cp-badges { margin-inline: -7px; }
  .cp-badges li { margin: 0 7px; }
  .cp-sec { padding: 3em 1em; }
  .cp-col-45 { flex-direction: column; }
  .cp-photo-tall { width: 100%; }
  .cp-cards, .cp-cards-people, .cp-steps, .cp-gallery { grid-template-columns: 1fr; }
  .cp-gallery img { height: 220px; }
  .cp-table { font-size: 15px; }
  .cp-table th, .cp-table td { padding: 12px 14px; }
  .cp-acc-title { font-size: 16px; }
}
