* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #1a1a1a;
  --color-slate: #404040;
  --color-cream: #ffffff;
  --color-red: #cd1e25;
  --color-blue: #d32f2f;
  --color-orange: #d32f2f;
  --color-yellow: #d32f2f;
  --color-border: #e0e0e0;
  --color-gray: #f5f5f5;
  --color-gray-dark: #aaaaaa;
  --spacing-unit: 1rem;
  --page-gutter: clamp(2rem, 4vw, 3rem);
  --font-primary:
    "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: "Libre Baskerville", serif;
  --section-space: clamp(3rem, 6vh, 6rem);
  --section-space-mobile: 3rem;
  --page-top-space: clamp(6rem, 8vw, 7.5rem);
  --stack-sm: 1rem;
  --stack-md: 1.5rem;
  --stack-lg: 2rem;
  --stack-xl: 3rem;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html:lang(ru) {
  --font-primary: "Noto Sans", sans-serif;
  --font-secondary: "Noto Serif", serif;
  --font-body-size: 1rem;
  --font-nav-size: 0.9rem;
}

html:lang(ru) p {
  font-size: var(--font-body-size);
}

html:lang(ru) nav a,
html:lang(ru) .logo p,
html:lang(ru) .language-switcher button {
  font-size: var(--font-nav-size);
}

@media (max-width: 768px) {
  html:lang(ru) {
    --font-body-size: 0.95rem;
    --font-nav-size: 0.85rem;
  }
}

@media (max-width: 1500px) and (min-width: 769px) {
  :root {
    --page-gutter: clamp(3rem, 8vw, 7rem);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: #ffffff;
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-family: var(--font-secondary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  font-size: 1.1rem;
  color: var(--color-slate);
  line-height: 1.7;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

a:hover {
  color: var(--color-orange);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem var(--page-gutter);
}

nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

nav .nav-container {
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--color-gray-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo p {
  font-size: 1rem;
}

.logo img {
  width: clamp(42px, 7vw, 72px) !important;
  height: auto;
  display: block;
  object-fit: contain;
}

.logo-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  background-color: var(--color-blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

nav #org-name-text {
  color: var(--color-red);
}

nav ul {
  padding-top: 1vh;
  display: flex;
  list-style: none;
  gap: 1.4rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.25s ease;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-slate);
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.5rem 0;
}

nav li {
  padding-top: 0;
}

li.language-switcher {
  padding: 0;
  margin-bottom: 0.9vh;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-blue);
  transition: width 0.3s ease-out;
}

nav a:hover::after {
  width: 100%;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.5rem;
}

.language-switcher button {
  border: none;
  background: transparent;
  color: var(--color-slate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.language-switcher button:hover {
  color: var(--color-blue);
}

.language-switcher button.active {
  color: var(--color-blue);
}

@media (max-width: 1024px) {
  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .language-switcher {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --page-gutter: clamp(3rem, 5vw, 3.75rem);
  }

  #logo-hero-section {
    width: clamp(170px, 46vw, 300px);
    margin-bottom: clamp(0.75rem, 2.5vw, 1.25rem);
  }

  nav {
    padding: 1rem 1.5rem;
  }

  nav .nav-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .logo {
    font-size: 1rem;
    gap: 0.3rem;
  }

  .logo p {
    font-size: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  nav ul,
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  nav.menu-open .nav-menu {
    display: flex;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
  }

  .language-switcher {
    margin-top: 0.35rem;
    justify-content: flex-start;
  }

  .language-switcher button {
    font-size: 0.75rem;
    padding: 0;
  }

  .general-page-title img {
    display: none;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1.25rem;
  }

  nav .nav-container {
    gap: 0.75rem;
  }

  .logo {
    font-size: 0.85rem;
    gap: 0.2rem;
  }

  .logo p {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.45rem 0.25rem;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  #logo-hero-section {
    width: clamp(160px, 55vw, 280px);
    margin-bottom: 1rem;
  }
  .logo p,
  .logo br {
    display: none;
  }

  .logo {
    gap: 0.35rem;
    max-width: max-content;
  }

  .logo-dot {
    width: 0.45rem;
    height: 0.45rem;
  }
}

/* Hero Section */
.hero-about-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #ffffff;
}

.hero-about-glow {
  position: absolute;
  right: clamp(-12rem, -8vw, -4rem);
  top: clamp(10rem, 24vh, 18rem);
  width: clamp(26rem, 48vw, 58rem);
  height: clamp(26rem, 48vw, 58rem);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background: radial-gradient(
    circle at 42% 42%,
    rgba(255, 70, 38, 0.92) 0%,
    rgba(255, 82, 48, 0.78) 26%,
    rgba(255, 109, 77, 0.58) 46%,
    rgba(255, 145, 118, 0.34) 64%,
    rgba(255, 181, 161, 0.16) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(10px) saturate(118%);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero {
  /* min-height: clamp(620px, 80vh, 860px); */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--page-gutter) 4rem;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-layout {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: center;
}

.hero-content {
  max-width: 46rem;
  min-width: 0;
  text-align: left;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

#logo-hero-section {
  width: clamp(84px, 12vw, 168px);
  height: auto;
  margin: 0;
  display: block;
}

.hero-image {
  /* width: 100%; */
  height: 90vh;
  max-width: 36rem;
  justify-self: end;
  align-self: end;
  /* transform: translateY(20%); */
  /* border-radius: 18px; */
  overflow: hidden;
  /* border: 1px solid rgba(0, 0, 0, 0.08); */
  /* box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18); */
  animation: fadeInRight 0.8s ease-out;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  aspect-ratio: 4 / 3;
}

.hero h1 {
  padding-bottom: 2rem;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 4rem;
  overflow-wrap: anywhere;
}

@media (max-width: 425px) {
  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.55rem);
  }

  .hero p {
    font-size: 1rem;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-slate);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 40rem;
}

@media (max-width: 768px) {
  .hero-about-glow {
    right: -45vw;
    top: 16rem;
    width: 90vw;
    height: 90vw;
    opacity: 0.9;
  }

  .hero {
    /* min-height: auto; */
    height: auto;
    min-height: 100svh;
    padding: 6.75rem 1.25rem 3rem;
    overflow: visible;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: left;
  }

  .hero-image {
    display: none;
  }

  .general-page-title img {
    /* display: none; */
    position: absolute;
    margin-left: 50%;
    /* margin-bottom: 40%; */
    align-self: self-start;
    z-index: 0;
  }
}

.general-page-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(222, 198, 198, 0.02) 0%,
    rgba(211, 47, 47, 0.05) 100%
  );
  padding: 1rem 2rem;
  border-radius: 16px;
  margin-top: var(--stack-sm);
  border: 1px solid var(--color-border);
}

.general-page-title p {
  font-size: 1.2rem;
}

.general-page-title img {
  width: 28%;
  animation: fadeUpOnly 0.8s ease-out;
  opacity: 0.5;
  filter: blur(2px);
}

@media (max-width: 768px) {
  .general-page-title {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .general-page-title p {
    margin: 0;
    font-size: 1.05rem;
  }

  .general-page-title img {
    display: none;
    position: static;
    margin-left: 0;
    align-self: auto;
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background-color: var(--color-blue);
  color: white;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-blue);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--color-blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 102, 204, 0.2);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--color-blue);
  margin-left: 1rem;
}

.cta-button.secondary:hover {
  background-color: var(--color-blue);
  color: white;
}

/* Sections */
section {
  padding-block: var(--section-space);
  padding-inline: var(--page-gutter);
}

.container {
  max-width: 90rem;
  margin: 0 auto;
}

section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-orange);
  border-radius: 2px;
}

/* About Us Section */
.about {
  background: transparent;
  position: relative;
  z-index: 1;
  scroll-margin-top: 8vh;
}

/* About Page */
.about-page {
  padding: var(--page-top-space) var(--page-gutter) var(--section-space);
  background-color: #ffffff;
  min-height: 100vh;
}

.about-page .container {
  padding-top: 0;
}

.about-page-title,
.members-page-title,
.news-page-title,
.resources-page-title {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-dark);
  margin-bottom: var(--stack-sm);
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out;
}

.news-content h3 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.about-page-subtitle,
.members-page-subtitle,
.news-page-subtitle,
.resources-page-subtitle {
  font-size: 1.1rem;
  color: var(--color-slate);
  margin-bottom: var(--stack-xl);
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: var(--stack-lg);
}

.about-text h3 {
  color: var(--color-dark);
  margin-bottom: 1rem;
  margin-top: var(--stack-md);
}

.about-text h3:first-of-type {
  margin-top: 0;
}

.about-text p {
  margin-bottom: var(--stack-md);
}

.index-about-image {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.1) 0%,
    rgba(211, 47, 47, 0.05) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0;
  animation: fadeInRight 0.8s ease-out 0.2s forwards;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.index-about-image img {
  border-radius: 15px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.index-about-image::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background-color: rgba(211, 47, 47, 0.2);
  border-radius: 50%;
  filter: blur(40px);
}

.about-image {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInRight 0.8s ease-out 0.2s forwards;
  position: relative;
  background: transparent;
}

.partner-visual {
  --orbit-radius: 13rem;
  position: relative;
  width: min(36rem, 96%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.partner-orbit {
  position: absolute;
  inset: 0;
  transform-origin: center;
  animation: orbit-spin 34s linear infinite;
}

.partner-orbit::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 26, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.partner-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.75rem;
  height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 16px 30px rgba(26, 26, 26, 0.03);
  transform: translate(-50%, -50%) rotate(var(--angle))
    translateY(calc(var(--orbit-radius) * -1));
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.partner-logo:hover {
  transform: translate(-50%, -50%) rotate(var(--angle))
    translateY(calc(var(--orbit-radius) * -1)) scale(1.08);
}

.partner-logo img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
}

.center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9.25rem;
  height: 9.25rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.05);
  transform: translate(-50%, -50%);
}

.center-logo:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.center-logo img {
  width: 74%;
  height: 74%;
  filter: none;
}

@media (max-width: 768px) {
  .about-image,
  .index-about-image {
    min-height: 320px;
    padding: 0.5rem 0;
    background: transparent;
    overflow: hidden;
  }

  .partner-visual {
    --orbit-radius: 7.25rem;
    width: min(24rem, 82vw);
  }

  .partner-logo {
    width: clamp(2.6rem, 7vw, 3.8rem);
    height: clamp(2.6rem, 7vw, 3.8rem);
  }

  .center-logo {
    width: clamp(5.5rem, 20vw, 6.9rem);
    height: clamp(5.5rem, 20vw, 6.9rem);
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--stack-lg);
  }
}

/* About Stats Cards */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: var(--stack-xl) 0;
  padding: var(--stack-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-card {
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.05) 0%,
    rgba(211, 47, 47, 0.02) 100%
  );
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(211, 47, 47, 0.1);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -50%;
  width: 200%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-blue),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -200%;
  }
  50% {
    left: 50%;
  }
  100% {
    left: 150%;
  }
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.stat-description {
  font-size: 1.05rem;
  color: var(--color-slate);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: var(--stack-xl) 0 var(--stack-lg);
    padding: var(--stack-lg) 0;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 1rem;
  }
}

/* About CTA Section */
.about-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.05) 0%,
    rgba(211, 47, 47, 0.02) 100%
  );
  border-radius: 16px;
  margin-top: 3rem;
  border: 1px solid rgba(211, 47, 47, 0.08);
}

.about-cta h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.about-cta p {
  font-size: 1.05rem;
  color: var(--color-slate);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta .cta-button {
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
  .about-cta {
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
  }

  .about-cta h3 {
    font-size: 1.3rem;
  }

  .about-cta p {
    font-size: 1rem;
  }

  .about-page {
    padding: var(--page-top-space) 1.5rem var(--section-space-mobile);
  }
}

/* Members Section */
.members {
  background: linear-gradient(180deg, #ffffff 0%, #efebec 50%, #ffffff 100%);
}

.members-wrapper {
  position: relative;
  margin-top: 2rem;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.members-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s ease-out;
  padding-right: 0;
  width: 100%;
}

.carousel-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-blue);
  background-color: white;
  color: var(--color-blue);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background-color: var(--color-blue);
  color: white;
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.member-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.members-grid:hover .member-card {
  opacity: 0.45;
}

.members-grid:hover .member-card:hover {
  opacity: 1;
}

@media (max-width: 1024px) {
  .member-card {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

@media (max-width: 768px) {
  .members-grid {
    gap: 1rem;
  }

  .member-card {
    flex: 0 0 100%;
  }
}

.member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

.member-card:hover::before {
  transform: scaleX(2);
}

.member-card:hover {
  transform: translateY(-8px);
  transition: 0.4s ease-in;
}

.member-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  /* background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); */
  border-radius: 12px;
  touch-action: pan-y;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #d32f2f;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -moz-user-select: none;
  pointer-events: none;
}

.member-card h3 {
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--color-orange);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-card p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

/* News Section */
.news {
  background-color: #ffffff;
}

.news-banner {
  --cursor-x: 50%;
  --cursor-y: 50%;
  position: relative;
  display: block;
  margin-top: var(--section-space);
  aspect-ratio: 16 / 7;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  transform: translateY(0);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.news-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    220px circle at var(--cursor-x) var(--cursor-y),
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.1) 26%,
    rgba(255, 255, 255, 0) 62%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.news-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.news-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      95deg,
      rgba(24, 19, 9, 0.7) 0%,
      rgba(24, 19, 9, 0.36) 45%,
      rgba(24, 19, 9, 0.1) 100%
    ),
    radial-gradient(
      circle at 16% 30%,
      rgba(243, 196, 105, 0.2) 0%,
      transparent 48%
    );
}

.news-banner-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: min(620px, 100%);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.9rem;
}

.news-banner-content h3 {
  color: #f7f3e8;
  margin: 0;
  line-height: 1.2;
  font-size: clamp(1.35rem, 3.1vw, 2.35rem);
  max-width: 24ch;
}

.news-banner-content p {
  color: rgba(247, 243, 232, 0.92);
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  max-width: 44ch;
}

.news-banner-cta {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: rgba(247, 243, 232, 0.94);
  color: #1f1f1f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-banner-cta::after {
  content: "→";
  margin-left: 0.45rem;
  transition: transform 0.3s ease;
}

.news-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.2);
}

.news-banner:hover::before {
  opacity: 1;
}

.news-banner:hover img {
  transform: scale(1.05);
}

.news-banner:hover .news-banner-cta::after {
  transform: translateX(5px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.1) 0%,
    rgba(211, 47, 47, 0.05) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.news-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(0, 102, 204, 0.1) 100%
  );
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  #logo-hero-section {
    width: clamp(170px, 46vw, 300px);
    margin-bottom: clamp(0.75rem, 2.5vw, 1.25rem);
  }
  .about-image,
  .index-about-image,
  .news-image,
  .hero-image,
  .member-avatar,
  .member-grid-logo,
  .modal-logo,
  .general-page-title img {
    overflow: hidden;
  }

  .about-image img,
  .index-about-image img,
  .member-avatar img,
  .member-grid-logo img,
  .modal-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }
}

.news-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: var(--color-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.news-content h3 {
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.news-content p {
  margin-bottom: 1.5rem;
}

.read-more {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-blue);
}

.read-more::after {
  content: "→";
  transition: transform 0.3s ease-out;
}

.read-more:hover {
  transform: translateX(10px);
  transition: transform 0.8s cubic-bezier(0.175, 1, 0.32, 1);
}

.news-card:hover .read-more::after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .news-banner {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 16px;
    margin-top: 0;
  }

  .news-banner-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(24, 19, 9, 0.22) 0%,
        rgba(24, 19, 9, 0.58) 62%,
        rgba(24, 19, 9, 0.8) 100%
      ),
      radial-gradient(
        circle at 24% 22%,
        rgba(243, 196, 105, 0.2) 0%,
        transparent 55%
      );
  }

  .news-banner-content {
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
  }

  .news-banner-content h3 {
    max-width: 100%;
  }

  .news-banner-content p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .news-banner-cta {
    font-size: 0.78rem;
    padding: 0.55rem 0.95rem;
  }
}

/* Resources Section */
.resources {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: white;
}

.resources h2 {
  color: white;
}

.resources h2::after {
  background-color: var(--color-blue);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
}

.blacktext {
  color: #1a1a1a;
}

.resource-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.resource-card .read-more {
  margin-top: auto;
  align-self: flex-start;
}

.resource-card:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease-out;
}

.resource-card:hover .resource-icon {
  transform: scale(1.1) rotate(-2deg);
}

.resource-card h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.resource-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

/* Contacts Section */
.contacts {
  background-color: #ffffff;
}

.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  flex: 1;
}

.contact-item h3 {
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.contact-item p {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 1rem 2rem;
  background-color: var(--color-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--color-cream);
  color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
  border: 1px solid var(--color-blue);
}

@media (max-width: 768px) {
  .contacts-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section {
    padding-block: var(--section-space-mobile);
    padding-inline: 1.5rem;
  }
}

/* Product Journey Section */
.product-journey-section {
  padding: 0 0 3rem 0;
  border-bottom: 1px solid var(--color-border);
  animation: fadeInUp 0.8s ease-out;
  scroll-margin-top: 5vh;
}

.product-journey-section h2 {
  color: var(--color-dark);
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.product-journey-section h2::after {
  width: 60px;
  height: 4px;
  background-color: var(--color-blue);
  border-radius: 2px;
  margin-top: 0.75rem;
}

.journey-subtitle {
  font-size: 1.05rem;
  color: var(--color-slate);
  margin-bottom: 2rem;
  max-width: 600px;
}

.journey-accordion {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  min-height: 320px;
}

.journey-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.journey-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-slate);
}

.journey-tab:last-child {
  border-bottom: none;
}

.journey-tab:hover {
  background: rgba(211, 47, 47, 0.04);
}

.journey-tab.active {
  background: linear-gradient(
    90deg,
    rgba(211, 47, 47, 0.1) 0%,
    rgba(211, 47, 47, 0.04) 100%
  );
  color: var(--color-dark);
  border-right: 3px solid var(--color-blue);
}

.journey-number {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-blue);
  opacity: 0.7;
  transition: var(--transition);
}

.journey-tab.active .journey-number {
  opacity: 1;
  font-size: 1.3rem;
}

.journey-stage-title {
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.journey-panel {
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.04) 0%,
    rgba(211, 47, 47, 0.01) 100%
  );
  border: 1px solid rgba(211, 47, 47, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.journey-panel-content {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.journey-panel-content.active {
  display: flex;
}

.journey-panel-content > .journey-image {
  width: 100%;
  margin: 0;
  margin-bottom: 0;
}

.journey-panel-content > .journey-panel-title {
  margin: 4vh 2rem 2vh 2rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--color-dark);
}

.journey-panel-content p {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.8;
  margin: 0 2rem;
}

.journey-panel-content > .journey-next-button {
  margin: 1.5rem 2rem 2.5rem 2rem;
}

.journey-next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(211, 47, 47, 0.25);
  color: var(--color-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.journey-next-button:hover {
  transform: translateY(-2px);
  background: var(--color-blue);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.18);
}

.journey-image {
  width: 100%;
  height: clamp(220px, 35vw, 420px);
  overflow: hidden;
  display: flex;
  position: relative;
  touch-action: pan-y;
}

/* .journey-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgb(42, 42, 42)
  );
  pointer-events: none;
} */

.journey-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.journey-image img.journey-image-fading {
  opacity: 0.45;
}

.journey-image .journey-image-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

.journey-image .journey-image-overlay.is-visible {
  opacity: 1;
}
.journey-image-controls {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 4;
}

.journey-pagination {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(12, 17, 25, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 4;
}

.journey-pagination-dot {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  /* cursor: pointer; */
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    width 0.2s ease,
    opacity 0.2s ease;
}

/* .journey-pagination-dot.is-first,
.journey-pagination-dot.is-last {
  width: 0.7rem;
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
} */

.journey-pagination-dot.is-active {
  width: 1.35rem;
  background: #ffffff;
  transform: scale(1.05);
}

/* .journey-pagination-dot:hover,
.journey-pagination-dot:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  outline: none;
} */

.journey-pagination-dot:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.journey-pagination-dot.is-active.is-first,
.journey-pagination-dot.is-active.is-last {
  width: 1.3rem;
}

.journey-pagination-dot.is-first.is-last {
  width: 0.9rem;
  height: 0.9rem;
}
.journey-image-control {
  position: absolute;
  top: 50%;
  pointer-events: auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(21, 29, 38, 0.34);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.journey-image-control-prev {
  left: 0.75rem;
}

.journey-image-control-next {
  right: 0.75rem;
}
.journey-image-control:hover,
.journey-image-control:focus-visible {
  background: rgba(211, 47, 47, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
  outline: none;
}
.journey-image-control:focus-visible {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

.journey-panel-content[data-stage="2"] .journey-image img {
  object-position: 50% 60%;
}

.journey-panel-content[data-stage="4"] .journey-image img {
  object-position: 50% 35%;
}

@media (max-width: 768px) {
  .journey-panel-content > .journey-panel-title {
    margin: 1.5rem 1rem 0 1rem;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--color-dark);
  }

  .product-journey-section {
    margin: var(--stack-xl) 0 var(--stack-lg);
    padding: 2rem 0;
    scroll-margin-top: 6rem;
  }

  .product-journey-section h2 {
    font-size: 1.5rem;
  }

  .journey-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .journey-accordion {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }

  .journey-tabs {
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
  }

  .journey-tab {
    flex-shrink: 1;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    border-right: none;
    font-size: 0.85rem;
    white-space: normal;
  }

  .journey-tab:last-child {
    border-bottom: none;
  }

  .journey-tab.active {
    border-right: 3px solid var(--color-blue);
    border-bottom: 1px solid var(--color-border);
    background: rgba(211, 47, 47, 0.08);
  }

  .journey-tab.active:last-child {
    border-bottom: none;
  }

  .journey-panel {
    min-height: auto;
    padding: 0;
  }

  .journey-panel-content {
    gap: 1rem;
  }

  .journey-panel-content p {
    font-size: 0.95rem;
    margin: 0 1rem;
  }

  .journey-next-button {
    padding: 0.8rem 1.2rem;
  }

  .journey-panel-content > .journey-next-button {
    margin: 1rem 1rem 1.5rem;
  }

  .journey-image-controls {
    display: none;
  }

  .journey-pagination {
    bottom: 0.65rem;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
  }

  .journey-pagination-dot {
    width: 0.46rem;
    height: 0.46rem;
  }

  /* .journey-pagination-dot.is-first,
  .journey-pagination-dot.is-last {
    width: 0.62rem;
    height: 0.62rem;
  } */

  .journey-pagination-dot.is-active {
    width: 1.1rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .journey-image-controls {
    display: none;
  }

  .journey-pagination {
    bottom: 0.65rem;
  }
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem var(--page-gutter);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 90rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: var(--color-orange);
}

.footer-brand-logo {
  width: clamp(120px, 12vw, 170px);
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUpOnly {
  from {
    transform: translateY(40px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s ease-out,
    transform 0.65s ease-out;
  will-change: opacity, transform;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Members Page */
.members-page {
  padding: var(--page-top-space) var(--page-gutter) var(--section-space);
  background-color: #ffffff;
  min-height: 100vh;
}

.members-page .container {
  padding-top: 0;
}

/* Members Grid - Mobile First */
.members-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: var(--stack-lg);
}

.member-grid-item {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.member-grid-item:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.member-grid-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  /* background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.member-grid-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  position: absolute;
  font-weight: 700;
  font-size: 1.2rem;
  color: #d32f2f;
  text-align: center;
}

.member-grid-item h3 {
  color: var(--color-dark);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.find-more-btn {
  padding: 0.75rem 1.75rem;
  background-color: var(--color-blue);
  color: white;
  border: 2px solid var(--color-blue);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
}

.find-more-btn:hover {
  background-color: transparent;
  color: var(--color-blue);
}

.find-more-btn:active {
  transform: scale(0.98);
}

/* Member Modal - Mobile First */
.member-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 1rem;
}

.member-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding-top: 60px;
  padding-bottom: 20px;
}

.member-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.member-modal-content {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background-color: #f5f5f5;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3;
}

.modal-close-btn:hover {
  background-color: var(--color-blue);
  color: white;
}

.modal-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.modal-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-blue);
}

.modal-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  /* background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-header h2 {
  color: var(--color-dark);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-role-tag {
  color: var(--color-blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.modal-description-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.modal-description-text {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.modal-quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.modal-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-info-label {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9rem;
}

.modal-info-item span:last-child {
  color: var(--color-slate);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-section h3 {
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-blue);
  padding-bottom: 0.5rem;
}

.modal-contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  gap: 0.3rem;
}

.modal-contact-label {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9rem;
}

.modal-contact-item a {
  color: var(--color-blue);
  word-break: break-all;
}

.modal-contact-item a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.modal-list {
  list-style: none;
  padding: 0;
}

.modal-list li {
  padding: 0.75rem 0;
  color: var(--color-slate);
  position: relative;
  padding-left: 1.5rem;
}

.modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: bold;
}

.modal-social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  transition: var(--transition);
  border: 2px solid var(--color-border);
  padding: 0.4rem;
}

.social-link img {
  width: 100%;
  object-fit: contain;
}

.social-link:hover {
  background-color: var(--color-blue);
  color: white;
  border-color: var(--color-blue);
}

/* News Page */
.news-page {
  padding: var(--page-top-space) var(--page-gutter) var(--section-space);
  background-color: #ffffff;
  min-height: 100vh;
}

/* Resources Page */
.resources-page {
  padding: var(--page-top-space) var(--page-gutter) var(--section-space);
  background-color: #ffffff;
  min-height: 100vh;
}

.resources-page .container {
  padding-top: 0;
}

.resources-section {
  margin-top: var(--stack-lg);
}

.legislation-shortcut {
  margin-top: var(--stack-lg);
  display: flex;
  flex-direction: column;
}

.legislation-shortcut-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-red);
}

.legislation-shortcut-link::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 13a5 5 0 0 1 7.07 0l1.42 1.42a5 5 0 0 1-7.07 7.07l-1.06-1.06'/%3E%3Cpath d='M15 11a5 5 0 0 1-7.07 0L6.5 9.57a5 5 0 0 1 7.07-7.07l1.06 1.06'/%3E%3Cpath d='M8.5 15.5 15.5 8.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 13a5 5 0 0 1 7.07 0l1.42 1.42a5 5 0 0 1-7.07 7.07l-1.06-1.06'/%3E%3Cpath d='M15 11a5 5 0 0 1-7.07 0L6.5 9.57a5 5 0 0 1 7.07-7.07l1.06 1.06'/%3E%3Cpath d='M8.5 15.5 15.5 8.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.legislation-shortcut-link:hover {
  color: #b0181f;
}

.legislation-shortcut-link:visited {
  color: #737373;
}

.resources-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: var(--stack-lg);
}

.resources-list > h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.resources-list > h3::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: var(--color-red);
  flex: none;
  margin-top: 1.4vh;
}

.authority-item {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  gap: 3vw;
  justify-content: flex-start;
  align-items: center;
}

@media (max-width: 320px) {
  .authority-item img {
    align-self: center;
  }
  .authority-links {
    display: flex;
    justify-content: center;
  }
  :root {
    --page-gutter: 2rem;
  }
  .text-details {
    text-align: center;
  }
}

.authority-item img {
  width: 8vw;
  height: auto;
}

.authority-item:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.authority-item h3 {
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.authority-item p {
  margin-bottom: 1rem;
}

.authority-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.authority-links a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .resources-page .fade-in-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .authority-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .authority-item img {
    width: min(88px, 24vw);
    max-width: 100%;
    height: auto;
  }

  .text-details {
    width: 100%;
  }
}

.news-page .container {
  padding-top: 0;
}

.news-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: var(--stack-lg);
}

.news-grid-container .news-card {
  cursor: pointer;
}

.news-read-more {
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Tablet - 600px and up */
@media (min-width: 600px) {
  .members-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .member-modal-content {
    max-width: 700px;
    padding: 2.5rem;
  }

  .news-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
  .members-page {
    padding: var(--page-top-space) var(--page-gutter) var(--section-space);
  }

  .members-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .member-modal-content {
    max-width: 900px;
    padding: 3rem;
  }

  .modal-quick-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .modal-details .modal-section:nth-child(3) {
    grid-column: 1;
  }

  .modal-details .modal-section:nth-child(4) {
    grid-column: 2;
  }

  .news-page {
    padding: var(--page-top-space) var(--page-gutter) var(--section-space);
  }

  .news-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
