/* ==========================================================================
   KMEWS - Kaushalya Memorial Educational & Welfare Society
   Modern responsive redesign
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --primary: #e8570c;
  --primary-dark: #c23f06;
  --primary-soft: #fdf1e8;
  --teal: #0e4b52;
  --teal-dark: #07363b;
  --teal-soft: #e9f2f2;
  --gold: #f4b942;
  --gold-soft: #fdf6e6;
  --cream: #faf6f0;
  --ink: #20262e;
  --ink-soft: #37404a;
  --muted: #67727d;
  --line: #e7e0d6;
  --white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(20, 30, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 30, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 30, 40, 0.18);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Type */
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Fraunces", "Georgia", serif;

  /* Layout */
  --container: 1180px;
  --nav-h: 76px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-outline-dark:hover {
  background: var(--teal-dark);
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Section shells
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}

.section--cream {
  background: var(--cream);
}

.section--teal {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.85);
}

.section--teal h2,
.section--teal h3,
.section--teal h4 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.section--teal .section-tag {
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.35em;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

.section--teal .section-sub {
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  height: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--container), 94%);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.site-header.is-scrolled .brand {
  color: var(--ink);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.site-header.is-scrolled .brand-logo {
  border-color: var(--teal);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  max-width: 300px;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-header.is-scrolled .brand-name small {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
}

.site-header.is-scrolled .nav-menu a {
  color: var(--ink-soft);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.site-header.is-scrolled .nav-menu a::after {
  background: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 60%;
}

.nav-menu a.active {
  color: var(--gold);
}

.site-header.is-scrolled .nav-menu a.active {
  color: var(--primary);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.65em 1.4em;
  font-size: 0.85rem;
  background: var(--gold);
  color: var(--teal-dark) !important;
}

.nav-cta:hover {
  background: #fff;
  color: var(--teal-dark) !important;
}

.site-header.is-scrolled .nav-cta {
  background: var(--primary);
  color: #fff !important;
}

.site-header.is-scrolled .nav-cta:hover {
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  background: var(--primary-soft);
  border-color: var(--line);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 4%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease;
  }

  .site-header.is-scrolled .nav-menu {
    top: 64px;
  }

  .nav-menu.open {
    max-height: calc(100vh - var(--nav-h));
    opacity: 1;
    overflow-y: auto;
  }

  .nav-menu a {
    color: var(--ink-soft) !important;
    padding: 0.9rem 0.6rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a.active {
    color: var(--primary) !important;
  }

  .nav-cta {
    margin: 0.75rem 0 0.25rem;
    text-align: center;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff !important;
  }

  .brand-name {
    max-width: 60vw;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 8rem;
  background:
    linear-gradient(115deg, rgba(7, 54, 59, 0.88) 0%, rgba(14, 75, 82, 0.62) 45%, rgba(232, 87, 12, 0.35) 100%),
    url("../img/about/change.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to top, rgba(7, 54, 59, 0.55), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 1.2em;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-scroll i {
  font-size: 1rem;
  animation: float-down 1.8s ease-in-out infinite;
}

@keyframes float-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* Stats strip */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -4.5rem;
  padding-block: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.6rem;
  }
}

/* --------------------------------------------------------------------------
   7. Intro / About blurb
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.intro-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 54, 59, 0.35), transparent 45%);
}

.intro-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.intro-exp {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-md);
}

.intro-exp strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.intro-exp span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.intro-features {
  margin: 1.4rem 0 1.8rem;
  display: grid;
  gap: 0.7rem;
}

.intro-features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.intro-features i {
  color: var(--primary);
  margin-top: 0.3em;
}

@media (max-width: 860px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   8. Aim / Causes cards
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.cause-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1.8rem 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cause-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cause-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cause-card:hover::before {
  transform: scaleX(1);
}

.cause-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.cause-card:nth-child(2) .cause-icon { background: var(--teal-soft); color: var(--teal); }
.cause-card:nth-child(3) .cause-icon { background: var(--gold-soft); color: #b67a00; }
.cause-card:nth-child(4) .cause-icon { background: #fdecec; color: #c0392b; }
.cause-card:nth-child(5) .cause-icon { background: #eeeafb; color: #6c5ce7; }

.cause-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55em;
}

.cause-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--teal-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "\002B";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 300;
  color: #fff;
  background: linear-gradient(to top, rgba(232, 87, 12, 0.75), rgba(7, 54, 59, 0.35));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   10. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 22, 24, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.lb-nav:hover {
  background: var(--primary);
}

.lb-prev { left: 2vw; }
.lb-next { right: 2vw; }

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lb-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.lb-counter {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  .lb-nav {
    top: auto;
    bottom: 1.6rem;
    transform: none;
  }
  .lb-prev { left: 18vw; }
  .lb-next { right: 18vw; }
}

/* --------------------------------------------------------------------------
   11. Membership
   -------------------------------------------------------------------------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.member-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2.4rem 1.8rem;
  text-align: center;
  color: var(--ink-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.member-card--featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #fff, var(--primary-soft));
}

.member-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.member-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--teal);
}

.member-card--featured .member-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.member-card h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

.member-card p {
  color: var(--muted);
}

.member-card .member-perk {
  text-align: left;
  margin: 1.2rem 0 1.6rem;
  display: grid;
  gap: 0.65rem;
}

.member-card .member-perk li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.member-card .member-perk i {
  color: var(--primary);
  margin-top: 0.25em;
}

/* --------------------------------------------------------------------------
   12. Team
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem;
}

.team-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1.6rem 1.2rem 1.4rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 108px;
  height: 108px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--primary);
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2em;
}

.team-role {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.team-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.85rem;
}

.team-socials a:hover {
  background: var(--primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   13. Events
   -------------------------------------------------------------------------- */
.events-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.events-col h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.events-col h3 i {
  color: var(--gold);
}

.event-item {
  position: relative;
  padding: 0 0 1.6rem 1.9rem;
  border-left: 2px solid var(--line);
}

.event-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.event-date {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.15em;
}

.event-item h4 {
  font-size: 1.08rem;
  margin-bottom: 0.25em;
}

.event-item p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.event-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
}

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

/* --------------------------------------------------------------------------
   14. News
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.news-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--teal-dark);
  aspect-ratio: 3 / 3.6;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.92;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.news-card:hover img {
  transform: scale(1.06);
  opacity: 0.75;
}

.news-card span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 54, 59, 0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border-radius: var(--radius-pill);
}

.news-card span i {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   15. About messages
   -------------------------------------------------------------------------- */
.message-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.message-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.message-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--primary);
  display: block;
  margin-bottom: 0.9rem;
}

.message-card blockquote {
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.message-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.message-author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.message-author strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
}

.message-author span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.objectives {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.objectives li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  font-size: 0.95rem;
}

.objectives i {
  color: var(--gold);
  margin-top: 0.25em;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   16. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.45em;
}

.form-control {
  width: 100%;
  padding: 0.85em 1em;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 87, 12, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.success {
  display: block;
  background: #e6f6ee;
  color: #177245;
  border: 1px solid #a3d9bc;
}

.form-status.error {
  display: block;
  background: #fdecea;
  color: #b02a2a;
  border: 1px solid #f2c4c0;
}

.contact-info {
  background: var(--teal-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  color: rgba(255, 255, 255, 0.85);
}

.contact-info h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.info-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}

.info-item i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.16);
  color: var(--gold);
  font-size: 1rem;
}

.info-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.info-item span,
.info-item a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.footer-brand strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.25;
}

.footer-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gold);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   18. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 150;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--teal);
  color: #fff;
}

/* --------------------------------------------------------------------------
   19. Scroll reveal (only animates when JS is active)
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
