@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  --hub-color-primary: #C84B31;
  --hub-color-secondary: #D4775B;
  --hub-color-accent: #2D4059;
  --hub-color-background: #FFF8F0;
  --hub-color-surface: #FFFFFF;
  --hub-color-text: #2D2424;
  --hub-color-text-light: #7A6565;
  --hub-color-border: #ECDDD0;
  --hub-color-overlay: linear-gradient(145deg, rgba(200, 75, 49, 0.82), rgba(212, 119, 91, 0.5));
  --hub-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --hub-radius-card: 16px;
  --hub-radius-image: 12px;
  --hub-radius-pill: 50px;
  --hub-max-width: 1240px;
  --hub-section-space: 80px;
  --hub-nav-height: 84px;
  --hub-transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--hub-color-text);
  background:
    radial-gradient(circle at top left, rgba(212, 119, 91, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(45, 64, 89, 0.08), transparent 30%),
    var(--hub-color-background);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--hub-radius-image);
}

a {
  color: var(--hub-color-accent);
  text-decoration: none;
  transition: color var(--hub-transition), opacity var(--hub-transition);
}

a:hover,
a:focus-visible {
  color: var(--hub-color-primary);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  line-height: 1.05;
  color: var(--hub-color-text);
  text-wrap: balance;
}

p {
  margin: 0 0 1.1rem;
  color: var(--hub-color-text-light);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-page,
.hub-shell {
  overflow-x: clip;
}

.hub-frame {
  width: min(calc(100% - 2rem), var(--hub-max-width));
  margin: 0 auto;
}

.hub-frame-wide {
  width: min(calc(100% - 1rem), 1400px);
  margin: 0 auto;
}

.hub-section {
  position: relative;
  padding: var(--hub-section-space) 0;
}

.hub-section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.62);
}

.hub-kicker,
.hub-label,
.hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(200, 75, 49, 0.1);
  color: var(--hub-color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-button,
.hub-link-button,
.hub-hero-search button,
.hub-nav-action,
.hub-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: var(--hub-radius-pill);
  background: var(--hub-color-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--hub-shadow-soft);
  transition: transform var(--hub-transition), background var(--hub-transition), box-shadow var(--hub-transition);
}

.hub-button:hover,
.hub-link-button:hover,
.hub-hero-search button:hover,
.hub-nav-action:hover,
.hub-card-action:hover {
  transform: scale(1.02);
  background: var(--hub-color-secondary);
}

.hub-button[data-tone='accent'],
.hub-link-button[data-tone='accent'],
.hub-nav-action[data-tone='accent'] {
  background: var(--hub-color-accent);
}

.hub-button[data-tone='accent']:hover,
.hub-link-button[data-tone='accent']:hover,
.hub-nav-action[data-tone='accent']:hover {
  background: #3a5070;
}

.hub-chip,
.hub-pill,
.hub-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(45, 64, 89, 0.08);
  color: var(--hub-color-accent);
  font-size: 0.88rem;
  font-weight: 500;
}

.hub-floating-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 1000;
  width: min(calc(100% - 1rem), 1280px);
  transform: translateX(-50%);
}

.hub-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: var(--hub-nav-height);
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  background: rgba(255, 248, 240, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: none;
  transition: background var(--hub-transition), box-shadow var(--hub-transition), border-color var(--hub-transition), transform var(--hub-transition);
}

.hub-nav.is-scrolled {
  background: rgba(255, 248, 240, 0.96);
  border-color: var(--hub-color-border);
  box-shadow: var(--hub-shadow-soft);
}

.hub-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: var(--hub-color-text);
}

.hub-nav-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(200, 75, 49, 0.92), rgba(212, 119, 91, 0.72)),
    url('images/community-1.jpg') center/cover;
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
}

.hub-nav-brand span {
  display: block;
}

.hub-nav-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  line-height: 1.1;
}

.hub-nav-subtitle {
  font-size: 0.8rem;
  color: var(--hub-color-text-light);
}

.hub-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hub-nav-links a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: var(--hub-color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.hub-nav-links a:hover,
.hub-nav-links a:focus-visible,
.hub-nav-links a.is-active {
  background: rgba(200, 75, 49, 0.12);
  color: var(--hub-color-primary);
}

.hub-nav-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hub-language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border: 1px solid var(--hub-color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.hub-language-toggle button {
  min-width: 56px;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hub-color-text-light);
  font-weight: 600;
  box-shadow: none;
}

.hub-language-toggle button.is-active {
  background: var(--hub-color-accent);
  color: #fff;
}

.hub-menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--hub-color-accent);
  color: #fff;
  box-shadow: var(--hub-shadow-soft);
}

.hub-menu-toggle span,
.hub-menu-toggle::before,
.hub-menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
  content: '';
  transition: transform var(--hub-transition), opacity var(--hub-transition);
}

.hub-menu-toggle span {
  margin: 6px auto;
}

.hub-menu-toggle.is-open::before {
  transform: translateY(8px) rotate(45deg);
}

.hub-menu-toggle.is-open span {
  opacity: 0;
}

.hub-menu-toggle.is-open::after {
  transform: translateY(-8px) rotate(-45deg);
}

.hub-home-hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--hub-nav-height) + 4rem) 0 3rem;
  color: #fff;
}

.hub-home-hero::before {
  position: absolute;
  inset: 0;
  background:
    var(--hub-color-overlay),
    url('images/hero-1.jpg') center/cover no-repeat;
  content: '';
}

.hub-home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(to top, var(--hub-color-background), transparent);
  content: '';
}

.hub-hero-wrap {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1320px);
  margin: 0 auto;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hub-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hub-hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  color: #fff;
}

.hub-hero-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hub-hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  max-width: 600px;
  margin-top: 1.5rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: var(--hub-shadow-soft);
}

.hub-hero-search input,
.hub-hero-search select {
  min-height: 54px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hub-color-text);
}

.hub-hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  grid-template-rows: 180px 190px 160px;
  gap: 1rem;
  min-height: 560px;
}

.hub-hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--hub-shadow-soft);
}

.hub-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-hero-photo:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
  transform: translateY(1.4rem) rotate(-3deg);
}

.hub-hero-photo:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(3deg);
}

.hub-hero-photo:nth-child(3) {
  grid-column: 2;
  grid-row: 2 / span 2;
  transform: translateY(1rem) rotate(-2deg);
}

.hub-hero-photo:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
  transform: translateX(2rem) rotate(4deg);
}

.hub-hero-note {
  position: absolute;
  max-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(255, 248, 240, 0.92);
  color: var(--hub-color-text);
  box-shadow: var(--hub-shadow-soft);
}

.hub-hero-note strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: 'Archivo Black', sans-serif;
  color: var(--hub-color-primary);
}

.hub-hero-note[data-position='top'] {
  top: 7%;
  left: -6%;
}

.hub-hero-note[data-position='bottom'] {
  right: -4%;
  bottom: 10%;
}

.hub-announcement-banner {
  position: relative;
  z-index: 2;
  margin-top: -2.8rem;
}

.hub-banner-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(200, 75, 49, 0.18);
  border-radius: 24px;
  background: var(--hub-color-surface);
  box-shadow: var(--hub-shadow-soft);
}

.hub-banner-label {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(200, 75, 49, 0.12);
  color: var(--hub-color-primary);
  font-weight: 600;
}

.hub-banner-panel p {
  margin: 0;
}

.hub-programs-strip {
  overflow: hidden;
}

.hub-programs-head,
.hub-story-head,
.hub-impact-head,
.hub-testimonial-head,
.hub-blog-head,
.hub-footer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hub-programs-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
}

.hub-programs-scroller::-webkit-scrollbar {
  height: 10px;
}

.hub-programs-scroller::-webkit-scrollbar-thumb {
  background: rgba(200, 75, 49, 0.2);
  border-radius: 999px;
}

.hub-program-card,
.hub-story-card,
.hub-event-card,
.hub-impact-story,
.hub-involve-card,
.hub-testimonial-card,
.hub-partner-panel,
.hub-blog-card,
.hub-footer-card {
  overflow: hidden;
  border: 1px solid var(--hub-color-border);
  border-radius: var(--hub-radius-card);
  background: var(--hub-color-surface);
  box-shadow: var(--hub-shadow-soft);
  transition: transform var(--hub-transition), box-shadow var(--hub-transition);
}

.hub-program-card:hover,
.hub-story-card:hover,
.hub-event-card:hover,
.hub-impact-story:hover,
.hub-involve-card:hover,
.hub-testimonial-card:hover,
.hub-partner-panel:hover,
.hub-blog-card:hover,
.hub-footer-card:hover {
  transform: scale(1.02);
}

.hub-program-card {
  scroll-snap-align: start;
}

.hub-program-media {
  position: relative;
  min-height: 220px;
  background: var(--hub-color-accent);
}

.hub-program-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hub-program-content {
  padding: 1.4rem;
}

.hub-program-content h3 {
  font-size: 1.4rem;
}

.hub-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 1.5rem;
}

.hub-story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.hub-story-media img,
.hub-event-photo img,
.hub-impact-photo img,
.hub-involve-media img,
.hub-essay-photo img,
.hub-testimonial-photo img,
.hub-partner-logo img,
.hub-blog-thumb img,
.hub-footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-story-copy {
  padding: 2rem;
}

.hub-events-sidebar {
  display: grid;
  gap: 1rem;
}

.hub-event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
}

.hub-event-date {
  display: grid;
  place-items: center;
  min-width: 86px;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(45, 64, 89, 0.08);
  color: var(--hub-color-accent);
  text-align: center;
}

.hub-event-date strong {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.hub-impact-grid {
  display: grid;
  gap: 2rem;
}

.hub-impact-statbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.hub-impact-stat {
  padding: 1.4rem;
  border: 1px solid var(--hub-color-border);
  border-radius: var(--hub-radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 240, 0.96));
  box-shadow: var(--hub-shadow-soft);
}

.hub-impact-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--hub-color-primary);
  line-height: 1;
}

.hub-impact-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
}

.hub-impact-story:nth-child(even) {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
}

.hub-impact-story:nth-child(even) .hub-impact-photo {
  order: 2;
}

.hub-impact-story:nth-child(even) .hub-impact-copy {
  order: 1;
}

.hub-impact-copy {
  padding: 2rem;
}

.hub-get-involved {
  overflow: hidden;
}

.hub-involve-shell {
  position: relative;
  padding: 2rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(45, 64, 89, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(200, 75, 49, 0.08), rgba(212, 119, 91, 0.14)),
    var(--hub-color-surface);
  border: 1px solid var(--hub-color-border);
  box-shadow: var(--hub-shadow-soft);
}

.hub-involve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.hub-involve-card {
  position: relative;
  min-height: 360px;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.6), rgba(255, 255, 255, 1));
}

.hub-involve-card::before {
  position: absolute;
  inset: auto 1.3rem 1.3rem auto;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(200, 75, 49, 0.1);
  content: '';
  transition: transform var(--hub-transition), background var(--hub-transition);
}

.hub-involve-card:hover::before {
  transform: translate(-6px, -6px);
  background: rgba(45, 64, 89, 0.12);
}

.hub-involve-media {
  margin-bottom: 1.2rem;
  height: 190px;
  border-radius: 22px;
  overflow: hidden;
}

.hub-photo-essay-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
}

.hub-essay-photo {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--hub-shadow-soft);
}

.hub-essay-photo:nth-child(1) {
  grid-row: 1 / span 2;
}

.hub-essay-photo:nth-child(4) {
  grid-column: 2 / span 2;
}

.hub-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.hub-testimonial-card {
  padding: 1.2rem;
}

.hub-testimonial-photo {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 22px;
  overflow: hidden;
}

.hub-testimonial-card blockquote {
  margin: 0 0 1rem;
  color: var(--hub-color-text);
  font-size: 1rem;
}

.hub-partner-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.4rem;
}

.hub-partner-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
}

.hub-partner-logo {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(45, 64, 89, 0.92), rgba(45, 64, 89, 0.72)),
    url('images/community-4.jpg') center/cover;
}

.hub-partner-logo .hub-nav-mark {
  width: 110px;
  height: 110px;
  font-size: 1.6rem;
}

.hub-partner-copy {
  padding: 2rem;
}

.hub-blog-list {
  display: grid;
  gap: 1rem;
}

.hub-blog-card {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
}

.hub-blog-thumb {
  height: 160px;
  border-radius: 22px;
  overflow: hidden;
}

.hub-blog-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.hub-newsletter-footer {
  background:
    linear-gradient(180deg, rgba(45, 64, 89, 0.04), rgba(45, 64, 89, 0.14)),
    var(--hub-color-surface);
}

.hub-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.4rem;
}

.hub-newsletter-panel {
  padding: 2rem;
  border: 1px solid var(--hub-color-border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(200, 75, 49, 0.06), rgba(212, 119, 91, 0.12)),
    var(--hub-color-surface);
  box-shadow: var(--hub-shadow-soft);
}

.hub-newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hub-newsletter-form input {
  min-height: 54px;
  padding: 0 1.15rem;
  border: 1px solid var(--hub-color-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hub-color-text);
}

.hub-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hub-footer-card {
  padding: 1.4rem;
}

.hub-footer-card address,
.hub-footer-card p {
  margin: 0;
}

.hub-footer-card a {
  display: inline-block;
  margin-top: 0.2rem;
}

.hub-contact-panel::before {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--hub-color-primary);
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  content: '14 Egerton Gardens, London, UK';
}

.hub-contact-panel::after {
  display: block;
  margin-top: 1rem;
  color: var(--hub-color-text-light);
  font-size: 0.9rem;
  content: 'Registration no: 275265 • Director: Katherine Wilson';
}

.hub-page-home .hub-home-hero {
  background-attachment: fixed;
}

.hub-page-about .hub-page-banner,
.hub-page-programs .hub-page-banner,
.hub-page-team .hub-page-banner,
.hub-page-contact .hub-page-banner {
  position: relative;
  min-height: 64svh;
  padding: calc(var(--hub-nav-height) + 5rem) 0 4rem;
  color: #fff;
}

.hub-page-about .hub-page-banner::before,
.hub-page-programs .hub-page-banner::before,
.hub-page-team .hub-page-banner::before,
.hub-page-contact .hub-page-banner::before {
  position: absolute;
  inset: 0;
  background: var(--hub-color-overlay);
  content: '';
}

.hub-page-about .hub-page-banner {
  background: url('images/scene-1.jpg') center/cover no-repeat;
}

.hub-page-programs .hub-page-banner {
  background: url('images/community-2.jpg') center/cover no-repeat;
}

.hub-page-team .hub-page-banner {
  background: url('images/hero-3.jpg') center/cover no-repeat;
}

.hub-page-contact .hub-page-banner {
  background: url('images/scene-3.jpg') center/cover no-repeat;
}

.hub-page-banner .hub-frame {
  position: relative;
  z-index: 1;
}

.hub-page-banner h1,
.hub-page-banner p {
  color: #fff;
}

.hub-about-grid,
.hub-program-grid,
.hub-contact-grid {
  display: grid;
  gap: 1.4rem;
}

.hub-about-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.hub-about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hub-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.hub-team-card {
  overflow: hidden;
  border: 1px solid var(--hub-color-border);
  border-radius: var(--hub-radius-card);
  background: var(--hub-color-surface);
  box-shadow: var(--hub-shadow-soft);
}

.hub-team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hub-team-card-body {
  padding: 1.2rem;
}

.hub-program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-contact-grid {
  grid-template-columns: 1fr 1fr;
}

.hub-contact-image {
  min-height: 420px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(45, 64, 89, 0.22), rgba(45, 64, 89, 0.22)),
    url('images/scene-2.jpg') center/cover no-repeat;
  box-shadow: var(--hub-shadow-soft);
}

.hub-form-panel {
  padding: 2rem;
  border: 1px solid var(--hub-color-border);
  border-radius: 28px;
  background: var(--hub-color-surface);
  box-shadow: var(--hub-shadow-soft);
}

.hub-form-grid {
  display: grid;
  gap: 0.9rem;
}

.hub-form-grid input,
.hub-form-grid select,
.hub-form-grid textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--hub-color-border);
  border-radius: 18px;
  background: rgba(255, 248, 240, 0.72);
}

.hub-form-grid textarea {
  min-height: 160px;
  resize: vertical;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-language='cy'] [data-lang='en'] {
  display: none !important;
}

[data-language='en'] [data-lang='cy'] {
  display: none !important;
}

@media (max-width: 1180px) {
  .hub-hero-grid,
  .hub-story-layout,
  .hub-footer-grid,
  .hub-about-grid,
  .hub-contact-grid,
  .hub-program-grid {
    grid-template-columns: 1fr;
  }

  .hub-story-card,
  .hub-partner-panel,
  .hub-blog-card,
  .hub-impact-story,
  .hub-impact-story:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .hub-impact-story:nth-child(even) .hub-impact-photo,
  .hub-impact-story:nth-child(even) .hub-impact-copy {
    order: initial;
  }

  .hub-hero-collage {
    min-height: 500px;
  }

  .hub-impact-statbar,
  .hub-involve-grid,
  .hub-testimonial-grid,
  .hub-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hub-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .hub-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hub-nav-links,
  .hub-nav-tools {
    display: none;
  }

  .hub-nav.is-open {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hub-nav.is-open .hub-nav-links,
  .hub-nav.is-open .hub-nav-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hub-nav.is-open .hub-nav-links a,
  .hub-nav.is-open .hub-nav-action,
  .hub-nav.is-open .hub-language-toggle {
    width: 100%;
    justify-content: center;
  }

  .hub-banner-panel,
  .hub-newsletter-form {
    grid-template-columns: 1fr;
  }

  .hub-photo-essay-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .hub-essay-photo:nth-child(1),
  .hub-essay-photo:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --hub-section-space: 64px;
  }

  .hub-floating-nav {
    top: 0.6rem;
    width: calc(100% - 0.8rem);
  }

  .hub-nav {
    padding: 0.8rem;
    min-height: 72px;
  }

  .hub-home-hero {
    min-height: auto;
    padding-top: calc(var(--hub-nav-height) + 3.2rem);
  }

  .hub-hero-search {
    grid-template-columns: 1fr;
  }

  .hub-hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 150px 180px;
    min-height: auto;
  }

  .hub-hero-note[data-position='top'] {
    top: auto;
    left: 4%;
    bottom: 30%;
  }

  .hub-hero-note[data-position='bottom'] {
    right: 4%;
    bottom: -1rem;
  }

  .hub-programs-head,
  .hub-story-head,
  .hub-impact-head,
  .hub-testimonial-head,
  .hub-blog-head,
  .hub-footer-head {
    flex-direction: column;
    align-items: start;
  }

  .hub-impact-statbar,
  .hub-involve-grid,
  .hub-testimonial-grid,
  .hub-team-grid,
  .hub-footer-links {
    grid-template-columns: 1fr;
  }

  .hub-photo-essay-grid,
  .hub-about-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hub-blog-card {
    grid-template-columns: 1fr;
  }

  .hub-blog-thumb {
    height: 210px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.98rem;
  }

  .hub-frame,
  .hub-hero-wrap {
    width: min(calc(100% - 1rem), var(--hub-max-width));
  }

  .hub-nav-brand {
    gap: 0.65rem;
  }

  .hub-nav-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .hub-nav-title {
    font-size: 0.85rem;
  }

  .hub-hero-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4.1rem);
  }

  .hub-hero-photo:nth-child(4) {
    transform: translateX(0.4rem) rotate(3deg);
  }

  .hub-hero-note {
    position: static;
    margin-top: 0.8rem;
    max-width: none;
  }

  .hub-banner-panel,
  .hub-story-copy,
  .hub-impact-copy,
  .hub-newsletter-panel,
  .hub-form-panel,
  .hub-partner-copy {
    padding: 1.35rem;
  }

  .hub-page-about .hub-page-banner,
  .hub-page-programs .hub-page-banner,
  .hub-page-team .hub-page-banner,
  .hub-page-contact .hub-page-banner {
    min-height: 54svh;
  }
}
