/* ILSC website styles
   To change the site colors, edit the values in :root below. */

:root {
  --navy: #12355b;
  --teal: #0f7c8c;
  --teal-light: #e6f3f5;
  --amber: #f2b33d;
  --sand: #f7f5f0;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --white: #ffffff;
  --radius: 10px;
  --max: 1100px;
  --font: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--teal); }
a:hover { color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; }

/* ---------- Header and navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand img { height: 52px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.25; max-width: 230px; }
.brand-text small { display: none; font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--muted); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--navy); cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: nowrap; }
.site-nav a {
  display: block; padding: 8px 10px; border-radius: 6px;
  text-decoration: none; color: var(--navy); font-size: 16px; font-weight: 600;
}
.site-nav a:hover { background: var(--teal-light); }
.site-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px 20px 16px; }
}

/* ---------- Hero banner ----------
   The banner photo is the <img class="hero-bg"> in each page.
   To change it, replace that image address. */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--navy); min-height: 460px; display: flex; align-items: center;
  padding: 90px 0 80px;
}
.hero-home { min-height: 640px; }
.hero-home:has(.hero-world) { background: linear-gradient(90deg, #0c2038 0%, #24406c 35%, #2f528a 65%, #426fa8 100%); }
.hero-bg.hero-world { top: auto; bottom: 0; height: auto; min-height: 60%; object-fit: cover; object-position: center bottom; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,36,64,.92) 0%, rgba(11,36,64,.72) 45%, rgba(11,36,64,.15) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  font-family: var(--font-head); font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15; margin: 0 0 18px; max-width: 760px;
}
.hero p { font-size: clamp(18px, 2vw, 21px); max-width: 640px; margin: 0; opacity: .95; }
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700;
  background: var(--amber); color: var(--navy); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(11,36,64,.70), rgba(11,36,64,.92)); }
  .hero { min-height: 420px; }
  .hero-home { min-height: 560px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--sand); }
.section h2 { font-family: var(--font-head); color: var(--navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0 0 18px; }
.section h3 { color: var(--navy); font-size: 21px; margin: 0 0 8px; }
.lead { font-size: 21px; color: var(--muted); max-width: 800px; }
.narrow { max-width: 800px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.card p { margin: 0 0 12px; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .tag { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; margin-bottom: 6px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Photo slots: hidden automatically if the photo file is missing */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--teal-light); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font-size: 14px; color: var(--muted); padding: 8px 4px 0; background: var(--white); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M8 13.6 4.4 10l-1.4 1.4L8 16.4 17 7.4 15.6 6z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--teal-light); color: var(--teal); margin-bottom: 10px; }

.callout {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 36px; text-align: center;
}
.callout h2 { color: var(--white); }
.callout p { max-width: 680px; margin: 0 auto 20px; }

.button {
  display: inline-block; background: var(--teal); color: var(--white); text-decoration: none;
  padding: 12px 22px; border-radius: 6px; font-weight: 700;
}
.button:hover { background: #0b6470; color: var(--white); }
.button.light { background: var(--white); color: var(--navy); }
.button.light:hover { background: var(--teal-light); color: var(--navy); }

/* ---------- Videos ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1f35; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: 18px; margin: 12px 0 2px; }
.video-card .length { font-size: 14px; color: var(--muted); }
.video-link {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  aspect-ratio: 16 / 9; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white); text-decoration: none; font-weight: 700;
}
.video-link:hover { color: var(--white); filter: brightness(1.1); }
.video-link .play {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 22px;
}

.podcast { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.podcast:last-child { border-bottom: 0; }
.podcast .icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; font-weight: 700; }

/* ---------- SDG badges ---------- */
.sdg { border-radius: var(--radius); padding: 24px; color: var(--white); }
.sdg .num { font-size: 40px; font-weight: 800; line-height: 1; }
.sdg .num .pre { font-size: 22px; font-weight: 700; margin-right: 4px; }
.sdg h3 { color: var(--white); margin: 6px 0 10px; }
.sdg-3  { background: #4c9f38; }
.sdg-4  { background: #c5192d; }
.sdg-17 { background: #19486a; }

/* ---------- Footer ---------- */
.site-footer { background: #0b2440; color: #c9d6e3; padding: 44px 0 28px; font-size: 16px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); margin: 0 0 10px; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: 14px; }
.tagline { font-family: var(--font-head); font-style: italic; color: var(--white); }

.mt { margin-top: 28px; }

.split.solo { grid-template-columns: 1fr; }
.split.solo > * { max-width: 800px; }

/* ---------- Highlights band ---------- */
.stats { background: var(--navy); color: var(--white); padding: 40px 0; }
.stats .grid { text-align: center; }
.stat .big { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); color: var(--amber); line-height: 1.1; }
.stat .small { font-size: 16px; opacity: .9; }

/* ---------- Photo cards ---------- */
.photo-card { padding: 0; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.photo-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.photo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18,53,91,.14); }

/* ---------- Feature image ---------- */
.feature-img { position: relative; }
.feature-img img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 18px 40px rgba(18,53,91,.18); }
.feature-img::before {
  content: ""; position: absolute; width: 60%; height: 60%; right: -16px; bottom: -16px;
  background: var(--amber); border-radius: 16px; z-index: -1;
}
.feature-img.left::before { right: auto; left: -16px; background: var(--teal); }
.section { position: relative; z-index: 0; }

/* ---------- Mosaic ---------- */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mosaic .tall { grid-row: span 2; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; }
  .mosaic .tall { grid-column: span 2; grid-row: auto; }
}

.button.amber { background: var(--amber); color: var(--navy); }
.button.amber:hover { background: #e0a12c; color: var(--navy); }
.button.outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.button.outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.photo-credit { font-size: 13px; opacity: .7; }
.stats .lead { color: var(--white); margin: 0 auto; text-align: center; }
a.photo-card { color: inherit; text-decoration: none; }

/* ---------- Diagrams ---------- */
.diagram { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }
@media (max-width: 700px) { .diagram { padding: 10px; overflow-x: auto; } .diagram svg { min-width: 640px; } }

/* ---------- Partners strip ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.partners span { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 600; color: var(--navy); font-size: 16px; }

/* ---------- Logos ---------- */
.brand img { height: 56px; width: auto; }
.footer-logo { width: 200px; height: auto; margin-bottom: 14px; }

.tbd { background: #fff6dd; border-left: 4px solid var(--amber); padding: 8px 12px; font-size: 16px; }

/* ---------- Video thumbnails ---------- */
.video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: #0b1f35; cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-thumb:hover img { transform: scale(1.04); }
.video-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(11,36,64,.85); color: var(--white);
  display: grid; place-items: center; font-size: 24px; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.video-thumb:hover .play { background: var(--amber); color: var(--navy); }
.video-thumb:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Video carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; scrollbar-width: thin;
}
.carousel-track > .video-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
@media (max-width: 900px) { .carousel-track > .video-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .carousel-track > .video-card { flex-basis: 85%; } }
.carousel-btn {
  position: absolute; top: 28%; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--navy); font-size: 30px; line-height: 1;
  box-shadow: 0 6px 18px rgba(18,53,91,.25); cursor: pointer;
}
.carousel-btn:hover { background: var(--amber); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.carousel-btn[disabled] { opacity: .35; cursor: default; }
@media (max-width: 640px) { .carousel-btn { display: none; } }

/* ---------- Smaller carousel cards ---------- */
.carousel-track { gap: 18px; }
.carousel-track > .video-card { flex: 0 0 calc((100% - 54px) / 4); }
@media (max-width: 1000px) { .carousel-track > .video-card { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 760px)  { .carousel-track > .video-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 480px)  { .carousel-track > .video-card { flex-basis: 78%; } }
.carousel-track .video-card h3 { font-size: 16px; line-height: 1.35; margin: 10px 0 2px; }
.carousel-track .video-thumb .play { width: 48px; height: 48px; font-size: 18px; }
.carousel-btn { top: 22%; width: 42px; height: 42px; font-size: 26px; }

/* ---------- Pop-up video player ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 18, 33, .86);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.video-modal[hidden] { display: none; }
.video-modal-box { position: relative; width: min(1000px, 100%); }
.video-modal-box .video-frame { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.video-modal-title { color: var(--white); font-weight: 700; margin: 12px 0 0; }
.video-modal-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer;
}
.video-modal-close:hover { background: var(--amber); }
body.modal-open { overflow: hidden; }
.video-modal-box { width: min(1000px, 100%, calc((100vh - 150px) * 16 / 9)); }

/* ---------- Newsletter carousel ---------- */
.carousel-track > .news-card { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
@media (max-width: 1000px) { .carousel-track > .news-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 640px)  { .carousel-track > .news-card { flex-basis: 85%; } }
.news-card h3 { font-size: 19px; }
.news-card p { font-size: 16px; }
.carousel-track:has(.news-card) ~ .carousel-btn, .carousel:has(.news-card) .carousel-btn { top: 40%; }

/* ---------- Partner links ---------- */
.partners a { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 600; color: var(--navy); font-size: 16px; text-decoration: none; transition: border-color .2s, background .2s; }
.partners a:hover { border-color: var(--teal); background: var(--teal-light); color: var(--navy); }
.partners a::after { content: " \2197"; font-size: 13px; color: var(--teal); }
