/* Stanford-inspired look (original CSS, not copied).
   Reference: https://www.stanford.edu/
*/

:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --ink: #111111;
  --muted: rgba(17,17,17,0.72);
  --line: rgba(17,17,17,0.14);
  --card-line: rgba(17,17,17,0.16);
  --accent: #D7492A; /* Stanford cardinal-ish */
  --accent-2: #b1040e;
  --shadow: 0 14px 30px rgba(0,0,0,0.10);
  --max: 1320px;
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 560;
  --w-bold: 600;
}

*,
*::before,
*::after{ box-sizing: border-box; border-radius: 0 !important; }

html{
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Do not set overflow-x on html/body: it breaks position:sticky on the header.
     Horizontal clipping is handled by .layout-scroll-body in layouts/default.vue */
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: var(--w-regular);
}

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

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

:focus{ outline: none; }
:focus-visible{ outline: 3px solid rgba(215,73,42,0.45); outline-offset: 3px; }

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus-visible{
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid var(--ink);
  z-index: 99999;
}

/* Layout containers */
.inner,
.header-container,
main{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
main{
  padding-bottom: 60px;
}

body.page-exec-master main{
  padding-bottom: 0;
}

/* When page has the exec-style contact section (blue bar), remove main bottom padding */
body.page-has-contact-section main {
  padding-bottom: 0;
}

/* Header + nav */
.main-header{
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 9999;
}
.header-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.logo-area img{
  height: 70px;
  width: auto;
}

.nav > ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav ul li{ position: relative; }
.nav > ul > li{ position: relative; }
.nav > ul > li > a{
  display: inline-block;
  padding: 8px 6px;
  font-weight: var(--w-medium);
  letter-spacing: 0.2px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav > ul > li > a:hover,
.nav > ul > li > a:focus-visible{
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.nav > ul > li > a.nav-contact{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Dropdowns */
.nav ul ul{
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
}
.nav ul ul ul{
  left: 100%;
  top: 0;
}
.nav ul li:hover > ul,
.nav ul li:focus-within > ul{ display: block; }
.nav ul ul a{
  display: block;
  padding: 10px 12px;
  font-weight: var(--w-medium);
  color: var(--ink);
}
.nav ul ul a:hover,
.nav ul ul a:focus-visible{
  background: var(--surface-2);
  text-decoration: none;
}

/* Search link (keep it simple, no icons) */
.search-link i{ display: none; }
.search-link{
  color: var(--accent-2) !important;
  font-weight: var(--w-medium) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17,17,17,0.2);
  background: #fff;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.nav > ul > li > a.search-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(17,17,17,0.2);
  box-sizing: border-box;
}
.search-link .icon{
  width: 16px;
  height: 16px;
  display: block;
}
.search-link:hover,
.search-link:focus-visible{
  color: #fff !important;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Icons */
.icon{
  width: 20px;
  height: 20px;
  display: block;
}

/* Hero (full-bleed slider, elegant overlay) */
.hero-quiet{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  display: grid;
  grid-template-areas: "stack";
  position: relative;
  border-bottom: 0;
  min-height: clamp(380px, 48vw, 620px);
}
.hero-quiet-content h1{
  margin: 0 0 14px;
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.12;
  letter-spacing: -0.3px;
  font-weight: var(--w-medium);
}
.hero-quiet-content p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
}

.hero-quiet-desc{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--w-regular);
}
.hero-quiet-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: var(--w-medium);
  text-decoration: none;
}
.hero-quiet-link::after{
  content: "\2192";
  transform: translateX(0);
  transition: transform 180ms ease;
}
.hero-quiet-link:hover,
.hero-quiet-link:focus-visible{
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-quiet-link:hover::after,
.hero-quiet-link:focus-visible::after{
  transform: translateX(3px);
}

.hero-quiet-content{
  grid-area: stack;
  position: relative;
  z-index: 2;
  pointer-events: none;
  margin: 0;
  /* Align with the same left edge as `main` content */
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: 20px;
  padding-top: 22px;
  padding-bottom: clamp(22px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: inherit;
}

.hero-quiet-box{
  width: min(64ch, 100%);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(17,17,17,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  padding: 16px 16px 14px;
  pointer-events: auto;
}

.hero-quiet-box > *{
  max-width: 56ch;
}

.hero-quiet-image{
  grid-area: stack;
  position: relative;
  z-index: 1;
  min-height: inherit;
}



/* Hero slider (full width) */
.hero-slider{
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ddd;
  z-index: 0;
}
.hero-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease;
}
.hero-slide[data-active="true"]{
  opacity: 1;
}

/* Slider navigation “dots” (kept square due to global border-radius:0) */
.hero-dots{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot{
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.35);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  cursor: pointer;
}

.hero-dot[data-active="true"]{
  background: rgba(215,73,42,0.92);
  border-color: rgba(215,73,42,0.92);
}

.hero-dot:hover,
.hero-dot:focus-visible{
  background: rgba(255,255,255,0.85);
}

/* Announcement bar */
.note-subtle{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--card-line);
  background: var(--surface-2);
}
.note-subtle a{ color: var(--accent); font-weight: var(--w-medium); }

/* Section headers */
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.section-head.section-head--first{
  border-top: 0;
  padding-top: 0;
}

/* Programs page: no border-top on section headers */
.programs-page-content .section-head,
.program-detail-content .section-head {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.section-head h2{
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.1px;
  font-weight: var(--w-medium);
  position: relative;
  padding-bottom: 8px;
}
.section-head h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(215,73,42,0.25) 100%);
}
.section-head > a{
  color: var(--accent);
  font-weight: var(--w-medium);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.section-head > a::after{
  content: "\2192";
  transform: translateX(0);
  transition: transform 180ms ease;
}
.section-head > a:hover,
.section-head > a:focus-visible{
  color: var(--accent-2);
  text-decoration: none;
}
.section-head > a:hover::after,
.section-head > a:focus-visible::after{
  transform: translateX(3px);
}

/* News grid */
.news-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.news-card{
  border: 1px solid rgba(17,17,17,0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfa 100%);
  box-shadow: 0 5px 14px rgba(0,0,0,0.06);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  position: relative;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
.news-card::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(215,73,42,0.22) 100%);
  z-index: 1;
}
.news-card figure{ margin: 0; }
.news-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.01) contrast(1.01);
}
.news-content{ padding: 16px 14px 16px; }
.news-content h3{
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: var(--w-medium);
}
.news-content time{
  color: rgba(17,17,17,0.6);
  font-weight: var(--w-medium);
  font-size: 12px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.news-card:hover{
  box-shadow: 0 8px 18px rgba(0,0,0,0.09);
  border-color: rgba(17,17,17,0.22);
}

/* Programs: horizontal row similar to “featured” */
.prog-scroll{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.prog-card{
  border: 1px solid var(--card-line);
  background: #fff;
  overflow: hidden;
  position: relative;
}
.prog-card figure{ margin: 0; }
.prog-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 350ms ease;
}
.prog-label{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-weight: var(--w-medium);
  font-size: 16px;
  color: #fff;
  background: rgba(0,0,0,0.48);
  text-align: center;
}
.prog-label a{
  color: #fff;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-block;
  line-height: 1.2;
}
.prog-label a:hover,
.prog-label a:focus-visible{
  text-decoration: none !important;
  background: transparent;
  border: 0;
}
.prog-card:hover{ box-shadow: var(--shadow); }
.prog-card:hover img{ transform: scale(1.035); }

/* At a Glance */
.mc-cards-gns .view-content{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mc-glance{
  position: relative;
  height: 260px;
  min-width: 25%;
  overflow: hidden;
  flex-grow: 2;
  border: 2px solid #fff;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

@media (min-width: 991px){
  .mc-glance.card-size-l{ width: 50%; }
  .mc-glance.card-size-m{ width: 33%; }
}

@media (max-width: 990px){
  .mc-glance{ width: 50%; }
  .mc-glance:nth-child(3n){ width: 100%; }
}

@media (max-width: 840px){
  .mc-glance{ width: 100% !important; }
}

.mc-glance .mc-card-title{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.6em;
  /* padding: 0 0.5em; */
  color: #fff;
  width: 100%;
  height: 100%;
  z-index: 2;
  user-select: none;
  transition: all 1s ease;
  text-align: center;
}

.mc-glance .mc-card-title p, .mc-glance .mc-card-body{
  margin: 0 !important;
  padding: 0 10px !important;
}

.mc-glance .mc-card-title strong{
  font-size: 2.3em;
  /* margin-bottom: 0.2em; */
  display: block;
  width: 100%;
}

.mc-glance .mc-card-body{
  padding: 5%;
  color: #000;
  font-size: 1.1em;
  font-weight: 600;
  user-select: none;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.6s ease;
}

.mc-glance .mc-glance-inner{
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  background-color: rgba(70, 0, 0, 0.5);
  /* padding: 5px 10px 8px; */
  transition: all 0.5s ease;
}

.mc-glance:hover .mc-glance-inner,
.mc-glance.active .mc-glance-inner{
  height: 100%;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
}

.mc-glance:hover .mc-card-title,
.mc-glance.active .mc-card-title{
  font-size: 1.5em;
  color: #000;
  height: 55%;
  /* padding-top: 10px;
  padding-bottom: 10px; */
}

.mc-glance:hover .mc-card-title strong,
.mc-glance.active .mc-card-title strong{
  font-size: 2.3em;
  color: #D7492A;
}

.mc-glance:hover .mc-card-body,
.mc-glance.active .mc-card-body{
  transform: scaleY(1);
  margin-bottom: 0;
}

/* Events */
.events-list{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.event-row{
  border: 0;
  background: #fff;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 6px;
  overflow: hidden;
  transition: transform 220ms ease;
}
.event-row::after{
  display: none;
}
.event-date{
  width: 50px;
  height: auto;
  border: 0;
  /* background: var(--surface-2); */
  display: grid;
  place-content: start;
  text-align: center;
  color: #D7492A;
  padding: 0;
}
.event-month{
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #D7492A;
}
.event-day{
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.4px;
  font-weight: var(--w-medium);
  color: #D7492A;
}
.event-time{
  font-size: 12px;
  color: #D7492A;
}
.event-info{
  padding: 0 14px 0 0;
  min-width: 0;
}
.event-info h4{ margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.event-info h4{ font-weight: var(--w-medium); }
.event-info p{ margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.event-row:hover{
  transform: translateY(-2px);
}

@media (max-width: 1200px){
  .events-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px){
  .events-list{ grid-template-columns: 1fr; }
}

/* Resources */
.resource-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.resource-card{
  border: 1px solid var(--card-line);
  background: #000;
  overflow: hidden;
  position: relative;
  box-shadow: none;
  transition: box-shadow 240ms ease, transform 240ms ease, border-color 240ms ease;
}
.resource-card figure{ margin: 0; }
.resource-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  position: relative;
  z-index: 0;
  transform: scale(1);
  transition: transform 420ms ease, filter 420ms ease;
}

/* Full-tile overlay for more stylish look */
.resource-card::before{
  content: "";
  position: absolute;
  inset: 0;
  /* Soft fade across whole tile, strongest at bottom-left */
  background:
    linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.16) 48%, rgba(0,0,0,0.00) 80%),
    linear-gradient(to right, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.06) 58%, rgba(0,0,0,0.00) 100%),
    linear-gradient(to top right, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.00) 72%);
  opacity: 0.86;
  pointer-events: none;
  z-index: 1;
  transition: opacity 240ms ease;
}

.resource-name{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 16px;
  border-top: 0;
  font-weight: var(--w-medium);
  color: rgba(255,255,255,0.92);
  z-index: 2;
}

.resource-name a{
  color: rgba(255,255,255,0.96);
  text-decoration: none !important;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.resource-name a::after{
  content: "→";
  opacity: 0.85;
  transform: translateX(0);
  transition: transform 240ms ease, opacity 240ms ease;
}

.resource-card:hover{
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(17,17,17,0.22);
}

.resource-card:hover img{
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.02);
}

.resource-card:hover::before{
  opacity: 0.88;
}

.resource-card:hover .resource-name a::after{
  transform: translateX(3px);
  opacity: 1;
}

/* Social */
.social-minimal{
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
}
.social-minimal h2{
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.1px;
  font-weight: var(--w-medium);
  position: relative;
  padding-bottom: 8px;
}
.social-minimal h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(215,73,42,0.25) 100%);
}
.social-icons{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.social-icons a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-line);
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.social-icons a:hover,
.social-icons a:focus-visible{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(215,73,42,0.24);
  transform: translateY(-2px);
  text-decoration: none;
}
.social-icons .icon{
  width: 18px;
  height: 18px;
}
.social-icons i{ display: none; } /* no icon font dependency */

/* Program sections: exec-style section heading (shared, responsive) */
.section-title{
  font-size: clamp(1rem, 0.55rem + 1.8vw, 1.5rem);
  text-align: center;
  padding: 0;
  letter-spacing: clamp(0.04em, 0.5vw + 0.02em, 0.08em);
  text-transform: uppercase;
  font-weight: 600;
  color: #111;
  margin: 0 0 clamp(1.25rem, 2vw + 0.75rem, 2.25rem);
  position: relative;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.section-title::after{
  content: "";
  display: block;
  width: clamp(56px, 15vw, 90px);
  height: 2px;
  margin: clamp(0.5rem, 1vw + 0.35rem, 0.9rem) auto 0;
  background: linear-gradient(90deg, #D7492A 0%, rgba(215, 73, 42, 0.25) 52%, rgba(11, 38, 172, 0.35) 100%);
}
@media (max-width: 480px){
  .section-title{
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

/* Footer */
footer{
  margin-top: 0;
  border-top: none;
  background: linear-gradient(180deg, #fafaf8 0%, #f3f3ef 100%);
  color: rgba(17,17,17,0.9);
  position: relative;
  overflow: hidden;
}
footer::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #D7492A 0%,
    rgba(215,73,42,0.78) 52%,
    rgba(17,17,17,0.14) 100%
  );
}
.footer-main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.footer-col:nth-child(1),.footer-col:nth-child(4){
  text-align: end;
}
.footer-col:nth-child(3){
  align-self: center;
}
.footer-col h3{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: var(--w-medium);
  position: relative;
  padding-bottom: 8px;
  color: rgba(17,17,17,0.92);
}
.footer-col h3::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: rgba(17,17,17,0.28);
}
.footer-col:nth-child(1) h3::after,.footer-col:nth-child(4) h3::after{
  left: auto;
  right: 0;
}
.footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-col p{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(17,17,17,0.68);
}
.footer-col a{
  font-size: 12px;
}
.footer-col a{ color: rgba(17,17,17,0.74); }
.footer-col a:hover,
.footer-col a:focus-visible{ color: var(--accent); }
.footer-bottom{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(17,17,17,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  color: rgba(17,17,17,0.72);
}
.footer-bottom p,
.footer-bottom a{
  font-size: 12px;
}
.footer-bottom ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom a{
  color: rgba(17,17,17,0.72);
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible{
  color: var(--accent);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer bar: copyright | centred social | legal links (web) */
@media (min-width: 641px) {
  .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
  }
  .footer-bottom > p {
    justify-self: start;
    text-align: left;
  }
  .footer-social {
    justify-self: center;
  }
  .footer-bottom > ul {
    justify-self: end;
  }
}

.footer-social .social-icons a {
  width: 36px;
  height: 36px;
}

.footer-social .social-icons .icon {
  width: 16px;
  height: 16px;
}

.footer-social .social-icons a:hover .icon,
.footer-social .social-icons a:focus-visible .icon {
  filter: brightness(0) invert(1);
}

/* Back-to-top (matches social icons style) */
.back-top{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--card-line);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  color: var(--accent);
  transition: transform 200ms ease, box-shadow 200ms ease, color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.back-top .icon{
  width: 18px;
  height: 18px;
}
.back-top:hover,
.back-top:focus-visible{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(215,73,42,0.24);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1100px){
  .hero-quiet-content{ padding-top: 28px; padding-bottom: 28px; }
  .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-scroll{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resource-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 28px 20px; }
  .footer-col:nth-child(1), .footer-col:nth-child(4){ text-align: left; }
  .footer-col:nth-child(1) h3::after, .footer-col:nth-child(4) h3::after{ left: 0; right: auto; }
}
@media (max-width: 640px){
  .news-grid{ grid-template-columns: 1fr; }
  .prog-scroll{ grid-template-columns: 1fr; }
  .resource-grid{ grid-template-columns: 1fr; }
  .event-row{ grid-template-columns: 1fr; }
  .event-date{ border-right: 0; border-bottom: 1px solid var(--line); }
  /* Footer: single column, logo on top, centered */
  .footer-main{
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 16px;
    text-align: center;
  }
  .footer-col{text-align: left }

  .footer-col:nth-child(1) h3::after,
  .footer-col:nth-child(4) h3::after{ left: 0%; right: auto;   }
  .footer-col:nth-child(3){
    order: -1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17,17,17,0.12);
  }
  .footer-col:nth-child(3) img{
    max-width: 140px;
    height: auto;
  }
  .footer-bottom{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }
  .footer-bottom ul{
    justify-content: center;
  }
  .footer-bottom > ul {
    align-self: center;
  }
}

