/* ───────────────────────────────────────────────────────────
   Brand palette
   ─────────────────────────────────────────────────────────── */
:root {
  --roma-orange: #e76f00;
  --roma-orange-dark: #cc6200;
  --roma-blue: #449cb7;
  --roma-light-blue: #cfe8ff;
  --roma-beige: #fdf0d1;
  --roma-grey: #677c83;
  --roma-night: #0b1824;
  --roma-dawn: #183245;
  --roma-sky: #7cb4ce;
  --roma-haze: #f5e8d3;
  --roma-sun: rgba(231, 111, 0, 0.28);
  --ink-800: #0f2536;
  --ink-700: #14344a;
  --ink-500: #3f6b86;
  --glass: rgba(9, 22, 36, 0.68);
  --stroke: rgba(255, 255, 255, 0.07);
  --glow: rgba(68, 156, 183, 0.3);
}

/* Navbar enhancements */
.navbar {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24) !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: linear-gradient(
    120deg,
    rgba(10, 22, 36, 0.82),
    rgba(15, 33, 48, 0.78)
  ) !important;
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  animation: navEntry 1.2s cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

@keyframes navEntry {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  font-size: 1.45rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.01em;
  color: #f4f7fb !important;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: auto;
  height: 3rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(231, 111, 0, 0.16));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.navbar-brand:hover {
  color: var(--roma-orange) !important;
}

.navbar-brand:hover .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(231, 111, 0, 0.32));
  transform: translateY(-1px);
}

.nav-link {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232, 237, 243, 0.8) !important;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: #fff !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

/* ───────────────────────────────────────────────────────────
   General layout
   ─────────────────────────────────────────────────────────── */
html {
  overscroll-behavior: none;
  background: transparent;
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100%;
}

/* Hide scrollbar on desktop (since we have indicators) */
@media (min-width: 769px) {
  html {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  html::-webkit-scrollbar {
    display: none;
  }
}

body {
  background: transparent !important;
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #e8edf3;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-padding-top: 80px;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.parallax-background {
  --parallax-base-width: 100vw;
  position: fixed;
  top: -15vh;
  left: 0;
  width: 100%;
  height: 130vh;
  z-index: -1;
  background: radial-gradient(
      circle at 18% 18%,
      var(--roma-sun),
      rgba(231, 111, 0, 0)
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(68, 156, 183, 0.22),
      rgba(68, 156, 183, 0)
    ),
    var(--roma-night);
  overflow: hidden;
  pointer-events: none;
}

.parallax-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 12, 20, 0.7) 0%,
    rgba(7, 16, 26, 0.38) 38%,
    rgba(8, 16, 24, 0.12) 62%,
    rgba(253, 240, 209, 0.22) 100%
  );
  mix-blend-mode: normal;
  pointer-events: none;
}

.parallax-layer {
  --layer-scale: 1;
  --layer-offset: -20vh;
  position: absolute;
  top: 5rem;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center calc(100% + var(--layer-offset));
  background-size: calc(var(--parallax-base-width) * var(--layer-scale)) auto;
  will-change: transform;
  transform-origin: center bottom;
  transition: filter 0.6s ease, opacity 0.6s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.layer-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: layerEntry 1.1s cubic-bezier(0.175, 0.985, 0.32, 1.05) backwards;
}

.layer-wrapper-3 { animation-delay: 0s; }
.layer-wrapper-2 { animation-delay: 0.15s; }
.layer-wrapper-1 { animation-delay: 0.25s; }
.layer-wrapper-0 { animation-delay: 0.4s; }

@keyframes layerEntry {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.layer-sky {
  background: linear-gradient(
    180deg,
    var(--roma-night) 0%,
    var(--roma-dawn) 30%,
    var(--roma-sky) 68%,
    var(--roma-haze) 100%

    /*
    A variant gradient more similar to the mobile one
    var(--roma-night) 0%,
    var(--roma-dawn) 10%,
    var(--roma-sky) 45%,
    var(--roma-haze) 50%
    */
  );
  position: absolute;
  top: 0;
  background-size: 100% 160%;
  animation: skyDrift 38s ease-in-out infinite alternate;
  opacity: 1;
}

.layer-0 {
  --layer-scale: 0.94;
  background-image: url("../images/skyline-0.svg");
  opacity: 0.12;
  filter: grayscale(1) saturate(0.35) brightness(1.12) hue-rotate(-10deg);
  animation: skylineSway 30s ease-in-out infinite alternate;
}

.layer-1 {
  --layer-scale: 0.96;
  background-image: url("../images/skyline-1.svg");
  opacity: 1;
  filter: grayscale(1) saturate(0.7) brightness(1.08) hue-rotate(-6deg);
  animation: skylineSway 32s ease-in-out infinite alternate-reverse;
}

.layer-2 {
  --layer-scale: 0.98;
  background-image: url("../images/skyline-2.svg");
  opacity: 1;
  filter: grayscale(0.1) saturate(0.9) brightness(1.03) hue-rotate(-2deg)
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
  animation: skylineSway 34s ease-in-out infinite alternate;
}

.layer-3 {
  --layer-scale: 1;
  background-image: url("../images/skyline-3.svg");
  opacity: 1;
  filter: saturate(1) brightness(1.02)
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
  animation: skylineSway 36s ease-in-out infinite alternate-reverse;
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
  flex: 1 0 auto;
}

.snap-section {
  display: flex;
  align-items: center;
  padding-top: clamp(4rem, 5vw, 6rem);
  padding-bottom: clamp(4rem, 5vw, 6rem);
}

.snap-section .floating-card {
  width: 100%;
}

/* Only relax snap rules on the final section (events) */
.content > .snap-section:last-child {
  min-height: auto;
}

.board-strip.snap-section {
  min-height: auto;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.snap-controls {
  position: fixed;
  right: clamp(0.35rem, 2vw, 0.9rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 1250;
  pointer-events: none;
}

.snap-controls button {
  pointer-events: auto;
  border: none;
  background: transparent;
  width: auto;
  min-width: 40px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  box-shadow: none;
  position: relative;
  cursor: pointer;
}

/* The visible line */
.snap-controls button::after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* The text label */
.snap-controls button::before {
  content: attr(aria-label);
  color: rgba(232, 237, 243, 0.9);
  background: rgba(11, 24, 36, 0.65);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 16px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
}

.snap-dot.active::before {
  color: var(--roma-orange);
}

.snap-controls button:hover::after {
  background: rgba(255, 255, 255, 0.6);
  width: 18px;
}

.snap-controls button:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.snap-dots {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.snap-dot.active::after {
  background: var(--roma-orange);
  width: 24px;
}

@media (max-width: 768px) {
  .snap-controls {
    display: none;
  }
}

.floating-card {
  background: linear-gradient(
    135deg,
    rgba(17, 39, 56, 0.78),
    rgba(8, 18, 30, 0.82)
  );
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: clamp(1.75rem, 2vw, 2.75rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.floating-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(231, 111, 0, 0.14),
      rgba(231, 111, 0, 0)
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(68, 156, 183, 0.14),
      rgba(68, 156, 183, 0)
    );
  pointer-events: none;
}

.floating-card > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: #f3f7fc;
  justify-content: center;
  text-align: center;
  flex-direction: row;
}

.section-heading .dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #e76f00, #f6b155);
  box-shadow: 0 0 0 6px rgba(231, 111, 0, 0.15);
}

.section-heading h2 {
  margin: 0;
  text-align: inherit;
}

.section-lead {
  color: rgba(232, 237, 243, 0.8);
  font-size: 1.05rem;
}

.muted-text {
  color: rgba(232, 237, 243, 0.72);
}

.hero-image {
  position: relative;
  padding: 8rem 0 4.5rem;
  margin-top: -80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #eef3f8;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #fdf0d1;
}

.hero-copy h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 1rem 0 1rem;
  color: #f7fbff;
}

.hero-copy .lead {
  color: rgba(232, 237, 243, 0.9);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  gap: 0.9rem !important;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.hero-tag {
  padding: 0.45rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 237, 243, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -14% -10% auto 18%;
  height: 40%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(68, 156, 183, 0.35),
    rgba(68, 156, 183, 0)
  );
  filter: blur(16px);
  z-index: 0;
}

.hero-visual .floating-visual {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(17, 39, 56, 0.82),
    rgba(10, 24, 38, 0.82)
  );
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  border-radius: 24px;
  padding: 1rem;
  backdrop-filter: blur(12px);
}

.hero-visual .logo-visual {
  background: var(--roma-beige);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.logo-stack {
  position: relative;
  width: min(480px, 85vw);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.logo-stack .main-logo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-title-logo {
  margin: 0 0 1rem;
  display: flex;
  justify-content: flex-start;
}

.hero-title-logo .main-logo {
  width: min(420px, 82vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.24));
}

.scroll-cue {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.6rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 18, 30, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  animation: cueBounce 2.4s ease-in-out infinite;
}

.scroll-cue:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.scroll-cue i {
  line-height: 1;
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* primary CTA buttons */
.btn-roma {
  font-size: 1.05rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #e76f00, #f1992f);
  color: #0b1824;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 14px 30px rgba(231, 111, 0, 0.25);
}

.btn-roma:hover {
  background: linear-gradient(135deg, #ff9838, #ffb860);
  color: #0b1824;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 36px rgba(231, 111, 0, 0.35);
}

.event-outline-btn {
  font-size: 1.05rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.06);
  color: #edf4fb;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.3s ease;
}

.event-outline-btn:hover {
  color: #fff7ea;
  border-color: rgba(255, 209, 143, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ───────────────────────────────────────────────────────────
   Social banner (home page)
   ─────────────────────────────────────────────────────────── */
.social-strip {
  background: transparent;
  color: #e9f1f6;
  margin-top: 2%;
}

/* square icon buttons */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06); /* light tile */
  color: #dfe9f3; /* glyph colour */
  font-size: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.social-link:hover i {
  color: var(--roma-orange);
}

.social-link:hover img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%)
    hue-rotate(11deg) brightness(97%) contrast(104%);
}

/* harmonise icon sizes */
.social-link i {
  font-size: 1.8rem; /* keep font icons large */
  line-height: 1; /* avoid extra vertical padding */
}

.social-link img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(386%)
    hue-rotate(163deg) brightness(95%) contrast(92%);
}

/* ───────────────────────────────────────────────────────────
   Footer tweaks
   ─────────────────────────────────────────────────────────── */
footer {
  background: linear-gradient(
    180deg,
    rgba(9, 18, 30, 0.94) 0%,
    rgba(8, 16, 24, 0.96) 100%
  ) !important;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.3);
  padding: 2.5rem 0 !important;
  position: relative;
  z-index: 1000;
  border-top: 1px solid var(--stroke);
  margin-top: auto;
}

footer .social-link {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
}

/* upcoming‑events strip uses the site beige */
.strip {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

/* colour helpers */
:root {
  --about-blue: #cfe8ff; /* light blue for global PyData */
  --about-beige: #fdf0d1; /* existing site beige */
  --text-blue: #00324c;
}

/* global PyData block */
.about-strip {
  background: transparent;
  color: #e9f0f6;
}

/* local chapter block */
.about-roma-strip {
  background: transparent;
  color: #e9f0f6;
}

.about-strip ul,
.about-roma-strip ul {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* board strip colours */
.board-strip {
  background: transparent;
  color: #e9f0f6;
  padding: 3rem 0;
}

.board-strip h2,
#event h2 {
  text-align: center;
  width: 100%;
}

/* board card link wrapper */
.board-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
  height: 100%;
}

/* board head‑shot */
.board-photo {
  width: clamp(7rem, 14vw, 9rem);
  height: clamp(7rem, 14vw, 9rem);
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.08);
}

.board-strip .card {
  background: rgba(255, 255, 255, 0.08);
  color: #e8edf3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  margin: 0 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: clamp(180px, 50vw, 360px);
  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: 12rem;
}

.board-strip .card-title {
  color: #f7fbff;
}

.board-strip .card .small,
.board-strip .card-text,
.board-strip .card-body {
  color: rgba(232, 237, 243, 0.8);
}

.board-strip .card:hover {
  border-color: rgba(231, 111, 0, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22) !important;
}

.board-card-link:hover .board-photo {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.board-card-link:hover .card {
  border-color: var(--roma-orange) !important;
}

.board-strip .card-body {
  flex: 1;
  width: 100%;
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

/* narrow text blocks */
.page-description {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 237, 243, 0.86);
}

/* Section headings */
h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--roma-orange) 0%,
    var(--roma-blue) 100%
  );
  border-radius: 2px;
}

/* Card enhancements */
.card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(17, 39, 56, 0.76),
    rgba(8, 18, 30, 0.86)
  );
  color: #e9eff6;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32) !important;
  border-color: rgba(231, 111, 0, 0.4);
}

.card-title {
  color: #f7fbff;
  font-weight: 700;
}

.card-text,
.card .small,
.card-body {
  color: rgba(232, 237, 243, 0.85);
}

.card-footer {
  background: rgba(255, 255, 255, 0.113) !important;
  border-top: 1px solid var(--stroke) !important;
  color: rgba(244, 247, 251, 0.88) !important;
}

.event-card {
  background: linear-gradient(
    155deg,
    rgba(25, 57, 80, 0.97),
    rgba(10, 24, 38, 0.98)
  );
  position: relative;
  border-color: rgba(255, 231, 186, 0.18);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 26%;
  background: radial-gradient(
    circle at 14% 12%,
    rgba(255, 191, 120, 0.24),
    rgba(255, 191, 120, 0)
  );
  pointer-events: none;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(1rem - 1px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.event-card-shell {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.event-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  min-height: 13.5rem;
  padding: 1.45rem 1.5rem 1.15rem;
}

.event-card-shell:hover .event-card,
.event-card-shell:focus-visible .event-card {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 209, 143, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
}

.event-card-shell:focus-visible {
  outline: none;
}

.event-card-shell:focus-visible .event-card {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46), 0 0 0 2px rgba(255, 209, 143, 0.7) !important;
}

.event-card-date {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd18f;
  line-height: 1.35;
}

.event-card-date i {
  font-size: 0.95rem;
  color: #ffbf78;
}

.event-card .card-title {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.event-card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgba(207, 232, 255, 0.86);
  font-weight: 600;
  line-height: 1.45;
}

.event-card-location i {
  color: #8fd4f2;
}

.event-card .card-footer {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.16)
  ) !important;
  padding: 0.95rem 1.5rem !important;
}

.event-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff0d8;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.event-card-cta i {
  transition: transform 0.2s ease;
}

.event-card-shell:hover .event-card-cta,
.event-card-shell:focus-visible .event-card-cta {
  color: #ffbf78;
}

.event-card-shell:hover .event-card-cta i,
.event-card-shell:focus-visible .event-card-cta i {
  transform: translateX(2px);
}

.article-shell {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.event-detail-card {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.6rem);
}

.event-detail-topline {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(143, 212, 242, 0.9);
}

.event-detail-date {
  margin-top: -0.25rem;
}

.event-detail-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f7fbff;
}

.event-detail-summary {
  max-width: 58ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(232, 237, 243, 0.9);
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 247, 255, 0.92);
  font-weight: 600;
}

.event-meta-chip i {
  color: #8fd4f2;
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.event-share-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.event-share-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(207, 232, 255, 0.82);
}

.event-share-note {
  margin: -0.2rem 0 0;
  max-width: 48ch;
  color: rgba(232, 237, 243, 0.78);
}

.event-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #eff7ff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.event-share-button:hover,
.event-share-button:focus-visible {
  transform: translateY(-1px);
  color: #fff8ed;
  border-color: rgba(255, 209, 143, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.event-share-button:focus-visible {
  outline: none;
}

.event-share-button-linkedin i {
  color: #8fc9ff;
}

.event-share-button-generic i {
  color: #ffd18f;
}

.event-share-button.is-copied {
  border-color: rgba(143, 212, 242, 0.52);
  background: rgba(143, 212, 242, 0.14);
  color: #f5fbff;
}

.event-meetup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: min(100%, 18rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.event-meetup-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(14%) sepia(17%) saturate(1349%) hue-rotate(168deg) brightness(94%) contrast(97%);
}

.event-detail-body {
  max-width: none;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-detail-body p:last-child {
  margin-bottom: 0;
}

.event-detail-body a {
  font-weight: 700;
}

/* Link styling */
a {
  color: #8fd4f2;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration-color: rgba(143, 212, 242, 0.4);
}

a:hover {
  color: #ffb763;
  text-decoration-color: rgba(255, 183, 99, 0.65);
}

/* Section padding consistency */
section {
  padding: 4rem 0;
}

.strip--secondary {
  background: linear-gradient(
    180deg,
    rgba(10, 22, 36, 0.78) 0%,
    rgba(12, 30, 46, 0.82) 100%
  );
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  color: #f4f7fb;
}

/* ───────────────────────────────────────────────────────────
   Responsive Design
   ─────────────────────────────────────────────────────────── */

/* Tablets and smaller (max-width: 992px) */
@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .btn-roma {
    font-size: 1.1rem;
    padding: 0.65rem 1.25rem;
  }

  .page-description {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .board-photo {
    width: 8rem;
    height: 8rem;
  }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  html {
    overscroll-behavior: auto;
  }

  html,
  body {
    scroll-snap-type: none !important;
  }

  body {
    scroll-padding-top: 68px;
  }

  .snap-section {
    opacity: 1 !important;
    transform: none !important;
    scroll-snap-align: none;
    transition: none;
  }
  .snap-controls {
    right: 0.35rem;
    top: auto;
    bottom: 1rem;
    transform: none;
    flex-direction: row;
    gap: 0.35rem;
  }
  .snap-dots {
    flex-direction: row;
  }
  .snap-controls button {
    width: 1.1rem;
    height: 1.1rem;
  }
  .snap-dot {
    width: 5px;
    height: 5px;
  }

  section {
    padding: 3rem 0;
  }

  .hero-image {
    padding: 6rem 0 2.5rem;
  }

  .hero-title-logo {
    justify-content: center;
  }

  .hero-title-logo .main-logo {
    margin: 0 auto;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-actions {
    justify-content: center !important;
  }

  .scroll-cue {
    bottom: -2.2rem;
  }

  .hero-tags {
    justify-content: center;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .btn-roma {
    font-size: 1rem;
    padding: 0.65rem 1.3rem;
    width: 100%;
  }

  .social-link {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.75rem;
  }

  .social-link i {
    font-size: 1.6rem;
  }

  .social-link img {
    width: 1.6rem;
    height: 1.6rem;
  }

  footer .social-link {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.3rem;
  }

  .page-description {
    font-size: 0.95rem;
    max-width: 90%;
    padding: 0 1rem;
  }

  .about-strip ul,
  .about-roma-strip ul {
    font-size: 1rem;
    padding-left: 1.5rem;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .board-photo {
    width: 7rem;
    height: 7rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.95rem;
  }
}

/* Small mobile devices (max-width: 576px) */
@media (max-width: 576px) {
  body {
    scroll-padding-top: 62px;
  }

  section {
    padding: 2.5rem 0;
  }

  .hero-image {
    padding: 5rem 0 2rem;
  }

  .hero-title-logo {
    justify-content: center;
  }

  .hero-title-logo .main-logo {
    margin: 0 auto;
  }

  .hero-visual {
    margin-top: 4rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-link {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.95rem;
  }

  .btn-roma {
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
    width: 100%;
    border-radius: 0.4rem;
  }

  .social-link {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    border-radius: 0.6rem;
  }

  .social-link i {
    font-size: 1.4rem;
  }

  .social-link img {
    width: 1.4rem;
    height: 1.4rem;
  }

  footer {
    padding: 1.5rem 0 !important;
  }

  footer .social-link {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  .page-description {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 95%;
  }

  .about-strip ul,
  .about-roma-strip ul {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  .board-photo {
    width: 6rem;
    height: 6rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1rem;
  }

  /* Stack buttons vertically on very small screens */
  .d-sm-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  /* Adjust social icon grid for small screens */
  .social-strip .d-flex {
    gap: 1rem !important;
  }

  /* Force single column layout for cards on narrow screens */
  .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Horizontal card layout for board members on narrow screens */
  .board-strip .card {
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
    min-height: 0;
    width: 100%;
    max-height: 8rem;
  }

  .board-strip .card a {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
  }

  .board-strip .board-photo {
    margin: 0 !important;
    width: 5rem;
    height: 5rem;
  }

  .board-strip .card-body {
    text-align: left;
    padding: 1rem;
  }

  .board-strip .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .board-strip .card-body .small {
    font-size: 0.85rem;
  }
}

/* Mobile Parallax Adjustments */
@media (max-width: 768px) {
  .parallax-layer {
    --layer-offset: -14vh;
  }
  .layer-0 {
    --layer-scale: 0.96;
  }
  .layer-1 {
    --layer-scale: 0.98;
  }
  .layer-2 {
    --layer-scale: 1;
  }
  .layer-3 {
    --layer-scale: 1;
  }
  .parallax-background {
    --horizon-ratio: 0.81;
  }

  .layer-sky {
    background: linear-gradient(
      180deg,
      var(--roma-night) 0%,
      var(--roma-dawn) 30%,
      var(--roma-sky) 75%,
      var(--roma-haze) 95%
    );
  }
}

/* Very small screens: full-bleed cards */
@media (max-width: 540px) {
  .content {
    max-width: none;
  }
  .social-strip .container,
  .about-strip .container,
  .about-roma-strip .container,
  .board-strip .container,
  #event .container {
    padding-left: 0;
    padding-right: 0;
  }
  .floating-card {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 1.4rem 1.15rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }
  .floating-card::after {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer,
  .layer-wrapper,
  .navbar {
    animation: none !important;
    transform: none !important;
  }

  body {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .snap-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ───────────────────────────────────────────────────────────
   Android WebView safe mode
   backdrop-filter, will-change, simultaneous entry animations,
   and scroll-driven transforms on fixed elements all cause
   severe compositing flicker (epilepsy-level flashing) in
   Android WebView.  The JS adds .webview-safe to <html>.
   ─────────────────────────────────────────────────────────── */
.webview-safe .navbar {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(10, 22, 36, 0.95) !important;
  animation: none !important;
}

.webview-safe .floating-card {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(12, 28, 42, 0.92) !important;
}

.webview-safe .parallax-background {
  position: fixed;
  /* keep fixed but simplify what's inside */
}

.webview-safe .parallax-layer {
  will-change: auto !important;
  animation: none !important;
  transition: none !important;
}

.webview-safe .layer-wrapper {
  animation: none !important;
  transform: none !important;
}

.webview-safe .layer-sky {
  animation: none !important;
}

.webview-safe .layer-0 {
  filter: grayscale(1) saturate(0.35) brightness(1.12) !important;
  animation: none !important;
}

.webview-safe .layer-1 {
  filter: grayscale(1) saturate(0.7) brightness(1.08) !important;
  animation: none !important;
}

.webview-safe .layer-2 {
  filter: grayscale(0.1) saturate(0.9) brightness(1.03) !important;
  animation: none !important;
}

.webview-safe .layer-3 {
  filter: saturate(1) brightness(1.02) !important;
  animation: none !important;
}

.webview-safe .scroll-cue {
  animation: none !important;
  background: rgba(9, 18, 30, 0.75);
}

@keyframes skyDrift {
  0% {
    background-position: 50% 0%;
    filter: saturate(1) brightness(1);
  }
  100% {
    background-position: 50% 12%;
    filter: saturate(1.08) brightness(1.05);
  }
}

@keyframes skylineSway {
  0% {
    background-position-x: 50%;
  }
  100% {
    background-position-x: 48%;
  }
}
