/* ============================================================
   Country profile (live content from aria) — rich rendering.
   Scoped under .aria-profile so it doesn't affect the rest of
   the country offices page (static fallback keeps its styles).
   ============================================================ */

:root {
  --aria-dark: #1a3a5c;
  --aria-accent: #2e6b8f;
  --aria-muted: #6b7280;
  --aria-border: #e5e7eb;
  --aria-bg-soft: #f5f7f9;
}

.aria-profile {
  font-family: "Open Sans", "Inter", sans-serif;
  color: #25303a;
}

.aria-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--aria-muted);
}

/* Hero */
.aria-hero {
  border-radius: 10px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--aria-dark), var(--aria-accent));
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  margin-bottom: 28px;
}
.aria-hero-inner { padding: 26px 28px; width: 100%; }
.aria-hero-title { display: flex; align-items: center; gap: 14px; }
.aria-flag {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  flex-shrink: 0;
}
.aria-hero-inner h3 {
  color: #fff;
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  text-transform: capitalize;
}
.aria-intro {
  margin: 8px 0 0;
  font-size: 17px;
  opacity: .95;
  max-width: 680px;
}

/* Key figures */
.aria-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.aria-figure {
  border: 1px solid var(--aria-border);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  background: #fff;
}
.aria-figure-value { font-size: 30px; font-weight: 700; color: var(--aria-accent); line-height: 1.1; }
.aria-figure-label { font-size: 13px; color: var(--aria-muted); margin-top: 4px; }

/* Sections */
/* The Logis template sets a global `section { padding: 80px 0 }`; neutralise it
   for our profile sections and rely on margin-bottom for consistent spacing. */
.aria-profile .aria-section { padding: 0; overflow: visible; }
.aria-section { margin-bottom: 30px; }
.aria-section h4 {
  font-weight: 700;
  font-size: 22px;
  color: var(--aria-dark);
  margin-bottom: 14px;
}
.aria-section h5 {
  font-weight: 600;
  font-size: 17px;
  color: var(--aria-dark);
  margin: 16px 0 8px;
}
.aria-text { white-space: pre-line; line-height: 1.7; color: #3b4754; margin: 0 0 8px; }

/* Sector cards */
.aria-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.aria-card {
  border: 1px solid var(--aria-border);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.aria-card-img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.aria-card-title { font-weight: 600; color: var(--aria-dark); margin-bottom: 6px; }
.aria-card-desc { font-size: 14px; color: var(--aria-muted); line-height: 1.5; }

/* Zone badges */
.aria-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.aria-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--aria-border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 14px;
  background: var(--aria-bg-soft);
  color: #3b4754;
}
.aria-badge i { color: var(--aria-accent); }

/* Projects table */
.aria-table { width: 100%; }
.aria-table thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--aria-muted);
  border-bottom: 2px solid var(--aria-border);
}
.aria-table td { vertical-align: middle; font-size: 14.5px; }
.aria-table tbody tr:hover { background: var(--aria-bg-soft); }

/* Partners */
.aria-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.aria-partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  padding: 8px 4px;
  text-decoration: none;
  color: inherit;
}
.aria-partner:hover .aria-partner-name { color: var(--aria-accent); }
.aria-partner-logo { width: 72px; height: 72px; object-fit: contain; }
.aria-partner i { font-size: 34px; color: var(--aria-muted); }
.aria-partner-name { font-size: 14px; font-weight: 600; }

/* Gallery */
.aria-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.aria-gallery a { display: block; border-radius: 10px; overflow: hidden; }
.aria-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.aria-gallery a:hover img { transform: scale(1.05); }

/* Reports */
.aria-reports { list-style: none; padding: 0; margin: 0; }
.aria-reports li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--aria-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fff;
}
.aria-reports li > i { color: var(--aria-accent); font-size: 18px; }
.aria-reports a { font-weight: 600; color: var(--aria-dark); text-decoration: none; }
.aria-reports a:hover { color: var(--aria-accent); }
.aria-report-notes { font-size: 13px; color: var(--aria-muted); }
.aria-report-dl { margin-left: auto; font-size: 13px; color: var(--aria-accent); white-space: nowrap; }

/* Contact */
.aria-contact { list-style: none; padding: 0; margin: 0; }
.aria-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.aria-contact li i { color: var(--aria-accent); font-size: 18px; margin-top: 2px; }
.aria-contact-label { display: block; font-size: 12px; color: var(--aria-muted); }
.aria-contact a { color: var(--aria-accent); text-decoration: none; }

/* Activities & projects — Medium carousel */
.aria-activities .aria-blog-swiper { position: relative; padding: 0 4px 36px; }
.aria-blog-slide a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--aria-border); border-radius: 10px; overflow: hidden; background: #fff; height: 100%; }
.aria-blog-slide a:hover { border-color: var(--aria-accent); }
.aria-blog-img { width: 100%; height: 150px; background-size: cover; background-position: center; background-color: var(--aria-bg-soft); }
.aria-blog-body { padding: 12px 14px; }
.aria-blog-title { font-weight: 600; color: var(--aria-dark); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aria-blog-date { font-size: 12.5px; color: var(--aria-muted); margin-top: 6px; }
.aria-activities .swiper-button-prev,
.aria-activities .swiper-button-next { color: var(--aria-accent); }
.aria-activities .swiper-button-prev:after,
.aria-activities .swiper-button-next:after { font-size: 22px; }
.aria-activities .swiper-pagination-bullet-active { background: var(--aria-accent); }

/* Director */
.aria-director-card { display: flex; align-items: center; gap: 16px; }
.aria-director-pic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.aria-director-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--aria-accent); color: #fff; font-size: 24px; font-weight: 600;
}
.aria-director-name { font-weight: 600; color: var(--aria-dark); }
.aria-director-office { font-size: 14px; color: var(--aria-muted); }

/* Keep all media inside the content column from overflowing on small screens */
.aria-profile img { max-width: 100%; }

@media (max-width: 767px) {
  .aria-section h4 { font-size: 19px; }
  .aria-section h5 { font-size: 16px; }
  .aria-figure-value { font-size: 26px; }

  /* Projects: turn the table into stacked cards */
  .aria-table thead { display: none; }
  .aria-table,
  .aria-table tbody,
  .aria-table tr,
  .aria-table td { display: block; width: 100%; }
  .aria-table tr {
    border: 1px solid var(--aria-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fff;
  }
  .aria-table tbody tr:hover { background: #fff; }
  .aria-table td {
    border: none !important;
    padding: 4px 0;
    font-size: 14px;
  }
  .aria-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--aria-muted);
  }
  .aria-table td:first-child {
    font-weight: 600;
    color: var(--aria-dark);
    font-size: 15px;
  }

  .aria-gallery { grid-template-columns: 1fr; }
  .aria-gallery img { height: 230px; }
}

@media (max-width: 575px) {
  .aria-hero { min-height: 160px; }
  .aria-hero-inner { padding: 18px 18px; }
  .aria-hero-inner h3 { font-size: 24px; }
  .aria-flag { width: 44px; height: 33px; }
  .aria-intro { font-size: 15px; }
  .aria-figures { grid-template-columns: repeat(2, 1fr); }
  .aria-cards { grid-template-columns: 1fr; }
  .aria-report-dl { margin-left: 0; }
}
