/* IRMA project pages — African Media Association Malta
   Colours from the IRMA brand sheet. Layout kept close to a classic Wix page:
   980px column, grey menu bar, collapsible boxes, image tiles. */

:root {
  --coral: #E64B3C;
  --orange: #F59E2E;
  --yellow: #FDCB4D;
  --lime: #A6CE39;
  --blue: #3B6DB7;
  --purple: #6A5ACD;
  --lavender: #DBC6E8;
  --grey: #6B6B6B;
  --navy: #041E45;

  --text: #2F2F2F;
  --soft: #F6F6F6;
  --line: #E5E5E5;
  --amam-green: #233318;

  --head: "Poppins", Arial, sans-serif;
  --body: "Montserrat", Arial, sans-serif;
}

/* language switching: only the active language is shown */
html[data-lang="en"] body [lang="fr"],
html[data-lang="fr"] body [lang="en"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-padding-top: 60px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.75;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--purple); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 34px; color: var(--navy); font-weight: 700; }
h2 { font-size: 28px; color: var(--purple); font-weight: 700; }
h3 { font-size: 20px; color: var(--navy); font-weight: 600; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--navy); color: #fff; padding: 6px 12px; z-index: 99; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- top strip ---------- */
.topstrip { background: var(--soft); font-size: 13px; border-bottom: 1px solid var(--line); }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.crumbs { display: flex; gap: 8px; color: #888; flex-wrap: wrap; }
.crumbs a { color: #555; text-decoration: none; }
.crumbs a:hover { color: var(--purple); }
.crumbs .here { color: var(--navy); font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 16px; }
.social-mini { display: flex; gap: 6px; }
.social-mini a {
  width: 24px; height: 24px; border-radius: 50%; background: #8A8A8A; color: #fff;
  display: grid; place-items: center;
}
.social-mini a:hover { background: var(--purple); color: #fff; }
.social-mini svg { width: 12px; height: 12px; }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #CFCFCF; border-radius: 2px;
  padding: 4px 10px; font: 600 13px var(--body); color: var(--navy); cursor: pointer;
  min-width: 64px; justify-content: space-between;
}
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 2px); z-index: 60;
  list-style: none; margin: 0; padding: 4px 0; background: #fff;
  border: 1px solid #CFCFCF; box-shadow: 0 4px 12px rgba(0,0,0,.1); min-width: 120px;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 7px 14px; font: 500 13px var(--body); color: var(--text); cursor: pointer;
}
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: var(--soft); color: var(--purple); }

/* ---------- masthead ---------- */
.masthead .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; gap: 20px; }
.lockup { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.lockup img { height: 70px; width: auto; }
.lockup-text { border-left: 1px solid var(--line); padding-left: 20px; }
.lockup-title { display: block; font: 600 17px/1.3 var(--head); color: var(--navy); max-width: 330px; }
.lockup-tag { white-space: nowrap; display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #555; flex-wrap: wrap; }
.lockup-tag i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.masthead-eu { height: 45px; width: auto; }

/* ---------- menu bar ---------- */
.menubar { background: #EDEDED; position: sticky; top: 0; z-index: 50; border-top: 1px solid #DDD; border-bottom: 1px solid #DDD; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; }
.nav > li { flex: 1 1 auto; }
.nav.measuring > li { flex: 0 0 auto; }
.nav > li > a, .more-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px 14px; white-space: nowrap;
  font: 500 15px var(--head); color: var(--navy); text-decoration: none;
  border: 0; border-right: 1px solid #DDD; background: none; cursor: pointer;
}
.nav > li:first-child > a { border-left: 1px solid #DDD; }
.nav > li > a:hover, .more-btn:hover { background: #E2E2E2; color: var(--navy); }
.nav a.active, .more-btn.has-active { background: var(--yellow); }
.more { position: relative; flex: 0 0 auto !important; }
.more[hidden] { display: none; }
.more-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 70;
  list-style: none; margin: 0; padding: 6px 0; min-width: 230px;
  background: #fff; border: 1px solid #DDD; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.more.open .more-menu { display: block; }
.more-menu a {
  display: block; padding: 11px 20px; font: 500 15px var(--head); color: var(--navy);
  text-decoration: none; border-left: 4px solid transparent;
}
.more-menu a:hover { background: var(--soft); }
.more-menu a.active { border-left-color: var(--yellow); background: #FFF8E1; }

/* ---------- home banner ---------- */
.banner { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.banner .wrap { position: relative; z-index: 2; min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.banner p.big { font: 700 40px/1.15 var(--head); margin: 0 0 16px; max-width: 520px; }
.banner p.big span { color: var(--yellow); }
.banner p.small { max-width: 460px; color: #D5DCEA; margin: 0; }
.banner img.art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 560px; max-width: none; z-index: 1; }

/* ---------- page banner (sub pages) ---------- */
.page-banner { background: var(--tint, #F4EDF9); border-bottom: 4px solid var(--c, var(--purple)); position: relative; overflow: hidden; }
.page-banner .wrap { position: relative; z-index: 2; padding-top: 44px; padding-bottom: 40px; }
.page-banner .kicker { font: 600 14px var(--head); color: var(--c, var(--purple)); margin: 0 0 6px; }
.page-banner h1 { margin-bottom: 8px; }
.page-banner p.sub { margin: 0; color: #555; max-width: 600px; }
.page-banner img.art { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 360px; max-width: none; z-index: 1; opacity: .95; }

/* ---------- content blocks ---------- */
.section { padding: 56px 0 8px; }
.section:last-of-type { padding-bottom: 56px; }
.intro { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.intro .facts { background: var(--soft); padding: 22px 22px 14px; font-size: 14px; }
.intro .facts img { width: 100%; margin-bottom: 16px; }
.intro .facts dl { margin: 0; }
.intro .facts dt { font-weight: 700; color: var(--navy); }
.intro .facts dd { margin: 0 0 10px; color: #555; }

.checks { list-style: none; margin: 0 0 10px; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 7px; height: 13px; border: solid var(--lime); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.side-img { float: right; width: 300px; margin: 6px 0 20px 34px; }

.note { font-style: italic; color: #555; border-left: 3px solid var(--c, var(--lime)); padding: 4px 0 4px 16px; margin: 24px 0; }

/* collapsible boxes (Wix "collapsible text" look) */
details.box {
  background: #fff; margin: 18px 0; box-shadow: 0 2px 12px rgba(0,0,0,.09);
}
details.box summary {
  list-style: none; cursor: pointer; padding: 18px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 700 21px var(--head); color: var(--purple);
}
details.box summary::-webkit-details-marker { display: none; }
details.box summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border: solid #888; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -4px;
  transition: transform .2s;
}
details.box[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.box .inner { padding: 0 28px 20px; }
details.box summary small { display: block; font: 500 13px var(--body); color: #777; }

/* partner logos + bios */
.partner-logos { display: flex; justify-content: space-around; align-items: center; gap: 30px; flex-wrap: wrap; margin: 26px 0 10px; }
.partner-logos img { height: 64px; width: auto; }
.bio-head { display: flex; align-items: center; gap: 18px; }
.bio-head img { height: 38px; width: auto; }
.role { font-weight: 600; color: var(--navy); }

/* home welcome */
.welcome { max-width: 820px; }
.lead { font-size: 18px; line-height: 1.75; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* partner page blocks */
.partner-block { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.partner-block:first-of-type { margin-top: 24px; }
.pb-logo { border-bottom: 4px solid var(--c); padding: 10px 0 22px; align-self: start; }
.pb-logo img { width: 100%; max-height: 90px; object-fit: contain; }
.partner-block h2 { font-size: 24px; margin-bottom: 4px; }
.pb-meta { font-size: 14px; color: #777; margin-bottom: 14px; }

/* tiles with "Read more" */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 26px; }
.tile { text-align: center; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tile h3 { color: var(--purple); font-size: 21px; margin: 16px 0 6px; }
.tile p { font-size: 14px; color: #555; flex: 1; }
.btn-outline {
  display: inline-block; align-self: center;
  border: 2px solid var(--purple); border-radius: 10px;
  padding: 8px 20px; font: 600 15px var(--head); color: var(--purple); text-decoration: none;
}
.btn-outline:hover { background: var(--purple); color: #fff; }
.tile .soon { font: 600 13px var(--body); color: #888; }

/* list of upcoming outputs (media page) */
.outputs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.out { border: 1px solid var(--line); border-top: 5px solid var(--c); background: #fff; }
.out:nth-child(1){--c:var(--purple)} .out:nth-child(2){--c:var(--orange)} .out:nth-child(3){--c:var(--lime)} .out:nth-child(4){--c:var(--blue)} .out:nth-child(5){--c:var(--coral)} .out:nth-child(6){--c:var(--yellow)}
.out img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.out .txt { padding: 20px 20px 18px; }
.out h3 { font-size: 18px; margin-bottom: 4px; }
.out p { font-size: 14px; color: #555; margin-bottom: 8px; }
.out .when { font-size: 13px; color: var(--purple); font-weight: 600; margin: 0; }

/* activities list */
.events { list-style: none; padding: 0; margin: 20px 0 0; }
.events li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.events li:last-child { border-bottom: 1px solid var(--line); }
.date-box { background: var(--c, var(--purple)); color: #fff; text-align: center; padding: 12px 6px; font-family: var(--head); line-height: 1.2; align-self: start; }
.date-box b { display: block; font-size: 20px; }
.date-box span { font-size: 13px; }
.events h3 { margin-bottom: 2px; }
.events .meta { font-size: 13px; color: #777; margin-bottom: 6px; }
.events p { margin: 0; font-size: 15px; }

/* resources */
.res-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 10px; }
.res-table th, .res-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.res-table th { font-family: var(--head); font-weight: 600; color: var(--navy); background: var(--soft); }
.logo-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.logo-dl figure { margin: 0; border: 1px solid var(--line); }
.logo-dl .pv { height: 120px; display: grid; place-items: center; padding: 18px; }
.logo-dl .pv.dark { background: var(--navy); }
.logo-dl .pv img { max-height: 64px; width: auto; }
.logo-dl figcaption { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--line); }
.palette { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.palette div { font-size: 12px; text-align: center; color: #555; width: 76px; }
.palette i { display: block; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 6px; }

/* ---------- footer ---------- */
.footer-partners { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-partners .logos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center;
  gap: 48px; align-items: center; padding: 30px 0 24px; border-bottom: 1px solid var(--line);
}
.footer-partners .logos a { display: flex; justify-content: center; }
.footer-partners .logos img { width: auto; height: auto; max-width: 100%; max-height: 44px; }
.funding { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 22px 0 28px; }
.funding img { width: 200px; height: auto; }
.funding p { font-size: 12px; line-height: 1.6; color: #777; margin: 0; max-width: 640px; }
.funding .ref { display: block; margin-top: 4px; color: #999; }

.amam-foot { background: var(--amam-green); color: #DCD6BC; font-size: 14px; }
.amam-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 34px; }
.amam-foot h2 { font: 400 22px Georgia, "Times New Roman", serif; color: #F5B800; }
.amam-foot a { color: #F1ECD6; }
.amam-foot a:hover { color: #F5B800; }
.btn-foot { display: inline-block; border: 1px solid #F5B800; color: #F5B800 !important; padding: 8px 18px; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn-foot:hover { background: #F5B800; color: var(--amam-green) !important; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.foot-links li { margin-bottom: 6px; }
.amam-foot .base { background: #1B2812; text-align: center; font-size: 12px; padding: 12px; color: #A9A58F; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .masthead-eu { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .outputs-grid { grid-template-columns: 1fr 1fr; }
  .banner img.art { opacity: .3; right: -200px; }
  .page-banner img.art { opacity: .3; right: -140px; }
}

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .social-mini { display: none; }
  .menubar .wrap { padding: 0; }
  .nav > li > a, .more-btn { font-size: 14px; padding: 13px 12px; }
  .nav > li:first-child > a { border-left: 0; }
  .lockup { gap: 14px; }
  .lockup img { height: 50px; }
  .lockup-text { padding-left: 14px; }
  .lockup-title { font-size: 14px; }
  .lockup-tag { display: none; }
  .banner p.big { font-size: 30px; }
  .partner-block { grid-template-columns: 1fr; gap: 18px; }
  .pb-logo { max-width: 220px; }
  .footer-partners .logos { gap: 18px; padding: 24px 0 20px; }
  .footer-partners .logos img { max-height: 34px; }
  .funding { justify-items: center; text-align: center; gap: 14px; }
  .funding img { width: 170px; }
  .intro, .two-col, .funding, .amam-foot .wrap { grid-template-columns: 1fr; gap: 24px; }
  .intro .facts img { max-width: 220px; }
  .side-img { float: none; width: 100%; margin: 0 0 20px; }
  .tiles, .outputs-grid, .logo-dl { grid-template-columns: 1fr; }
  details.box summary { font-size: 18px; padding: 16px 18px; }
  details.box .inner { padding: 0 18px 18px; }
  .events li { grid-template-columns: 72px 1fr; gap: 16px; }
  .res-table { font-size: 14px; }
}
