body {
  line-height: 1.7;
}

main.content {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 2.2rem 1rem 1rem 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.lead {
  font-size: 1.18rem;
  max-width: 900px;
  margin: 0 auto;
  color: #4a4a4a;
}

/* ---------- Logos ---------- */

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem 0;
}

.logo-row img {
  max-height: 70px;
  width: auto;
}

/* ---------- Images ---------- */

.tool-photo {
  display: block;
  margin: 1.4rem auto 2rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

img {
  max-width: 100%;
  height: auto;
}

.card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

/* ---------- Intro text ---------- */

.page-intro {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 1rem;
}

/* ---------- Tool grids and cards ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.25rem 0 2rem 0;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.tool-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
}

.tool-card p {
  margin-bottom: 0;
  color: #555;
}

/* ---------- KPI boxes ---------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 2rem 0;
}

.kpi {
  background: #f7faf8;
  border-left: 4px solid #5a8f6a;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

/* ---------- Notes ---------- */

.note-box {
  background: #f4f8fb;
  border-left: 4px solid #3a7ca5;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* ---------- Badges ---------- */

.badge-row {
  margin: 1rem 0 1.2rem 0;
}

.badge {
  display: inline-block;
  background: #eef4ef;
  color: #355c3b;
  border: 1px solid #d8e5da;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  font-size: 0.9rem;
}

/* ---------- Quick links ---------- */

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem 0;
}

.quick-links a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #eef4ef;
  border: 1px solid #d8e5da;
  text-decoration: none;
  color: #355c3b;
}

.quick-links a:hover {
  background: #e6efe7;
}

/* ---------- Lists ---------- */

.link-list li {
  margin-bottom: 0.4rem;
}

ul li,
ol li {
  margin-bottom: 0.35rem;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 2rem 0;
}

table th,
table td {
  padding: 0.7rem;
  border: 1px solid #ddd;
}

table th {
  background: #f6f6f6;
  text-align: left;
}

/* ---------- Headings ---------- */

h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

/* ---------- Custom footer ---------- */

.site-footer-custom {
  margin-top: 4rem;
  padding: 2.8rem 1.2rem 1.4rem 1.2rem;
  background: #f3f3f3;
  border-top: 1px solid #dcdcdc;
  font-size: 0.96rem;
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto 1.8rem auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-col img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand img {
  max-width: 240px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-social a,
.footer-bottom a {
  text-decoration: none;
  color: #1f2d3d;
}

.footer-social a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-ukri img {
  max-width: 260px;
}

.footer-eu img {
  max-width: 130px;
}

.footer-ukri p,
.footer-eu p {
  margin: 0;
  line-height: 1.7;
  color: #24313f;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid #dddddd;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #4b5560;
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-ukri img,
  .footer-eu img {
    max-width: 220px;
  }
}

@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
  }
}
