/* ============================================================
   IFMSA KMC — SCORA About page styles
   Red theme: #B2222A (primary) / #8B1A1A (dark)
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --sra-red:         #B2222A;
  --sra-red-2:       #8B1A1A;
  --sra-red-soft:    #D94450;
  --sra-red-pale:    rgba(178,34,42,0.08);
  --sra-bg:          #ffffff;
  --sra-bg-2:        #fdf6f6;
  --sra-bg-3:        #f7eded;
  --sra-fg:          #1e1b52;
  --sra-fg-muted:    #4b5563;
  --sra-fg-faint:    #64748b;
  --sra-border:      rgba(30,27,82,0.1);
  --sra-sans:        "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sra-mono:        "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --sra-ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sra-sans);
  background: var(--sra-bg);
  color: var(--sra-fg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 700; }

/* ============================================================
   TOPBAR
   ============================================================ */
.sra-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.5rem, 6vw, 6rem);
  background: #14123b;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 30px rgba(10,8,32,0.25);
}

.sra-brand { display: flex; align-items: center; gap: 1rem; }
.sra-brand-logo img { display: block; height: auto; }
.sra-logo-pk img  { height: 38px; max-width: 190px; object-fit: contain; }
.sra-logo-kmc img { height: 32px; max-width: 200px; object-fit: contain; }
.sra-logo-ifmsa-kmc img { height: 57px; max-width: 200px; object-fit: contain; }
.sra-brand-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.2); }

.sra-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.sra-nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
.sra-nav-link:hover { color: #fff; }
.sra-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.sra-nav-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}
.sra-nav-icon {
  width: 15px;
  height: 15px;
}
.sra-nav-admin {
  opacity: 0.6;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sra-nav-admin:hover { opacity: 1; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.sra-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 8vw, 8rem) clamp(4rem, 8vh, 6rem);
  background: var(--sra-bg);
  overflow: hidden;
}

.sra-hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(2rem, 8vw, 8rem);
  pointer-events: none;
  z-index: 0;
}
.sra-hero-watermark img {
  width: clamp(220px, 38vw, 520px);
  height: auto;
  opacity: 0.05;
  filter: saturate(0);
  user-select: none;
}

.sra-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.sra-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.sra-eyebrow-pill {
  background: var(--sra-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
}
.sra-eyebrow-rest {
  font-family: var(--sra-mono);
  font-size: 0.78rem;
  color: var(--sra-fg-faint);
  letter-spacing: 0.04em;
}

.sra-hero-title {
  font-size: clamp(2.4rem, 6vw + 0.5rem, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--sra-fg);
  margin-bottom: 1.2rem;
}

.sra-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--sra-fg-muted);
  max-width: 62ch;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

.sra-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sra-red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  transition: background 0.2s var(--sra-ease), transform 0.2s var(--sra-ease), box-shadow 0.2s var(--sra-ease);
  box-shadow: 0 4px 20px rgba(178,34,42,0.18);
}
.sra-hero-cta:hover {
  background: var(--sra-red-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(178,34,42,0.28);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.sra-section {
  padding: clamp(4rem, 8vh, 6rem) clamp(1.5rem, 8vw, 8rem);
}

.sra-section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.8rem, 6vh, 4.5rem);
  text-align: center;
}

.sra-section-label {
  font-family: var(--sra-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sra-red);
  margin-bottom: 0.6rem;
}
.sra-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--sra-fg);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.sra-section-sub {
  color: var(--sra-fg-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.7;
}
.sra-section-sub strong { color: var(--sra-fg); }

/* ============================================================
   WHAT WE DO — card grid
   ============================================================ */
.sra-whatwedo {
  background: var(--sra-bg-2);
  border-top: 1px solid var(--sra-border);
  border-bottom: 1px solid var(--sra-border);
}

.sra-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.sra-card {
  background: var(--sra-bg);
  border: 1px solid var(--sra-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: box-shadow 0.35s var(--sra-ease), transform 0.35s var(--sra-ease), border-color 0.35s var(--sra-ease);
}
.sra-card:hover {
  box-shadow: 0 12px 36px rgba(178,34,42,0.1);
  transform: translateY(-4px);
  border-color: rgba(178,34,42,0.25);
}

.sra-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sra-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.sra-card-icon svg { width: 26px; height: 26px; }

.sra-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sra-fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.sra-card-body {
  color: var(--sra-fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.sra-card-body strong { color: var(--sra-fg); }

/* ============================================================
   FOCUS AREAS — numbered cards
   ============================================================ */
.sra-focus {
  background: var(--sra-bg);
}

.sra-focus-grid {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sra-focus-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: linear-gradient(135deg, #1e1b52 0%, #14123b 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid var(--sra-red);
  border-radius: 16px;
  padding: clamp(1.3rem, 2.5vw, 1.8rem) clamp(1.3rem, 3vw, 2rem);
  box-shadow: 0 8px 28px rgba(30,27,82,0.18);
  transition: box-shadow 0.35s var(--sra-ease), transform 0.35s var(--sra-ease), border-color 0.35s var(--sra-ease);
}
.sra-focus-item:hover {
  box-shadow: 0 14px 40px rgba(30,27,82,0.28);
  transform: translateX(4px);
  border-left-color: var(--sra-red-soft);
}

.sra-focus-num {
  font-family: var(--sra-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: rgba(178,34,42,0.35);
  line-height: 1;
  padding-top: 0.1rem;
}

.sra-focus-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.sra-focus-copy {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}
.sra-focus-copy strong { color: #fff; }

/* ============================================================
   CTA BAND — red gradient
   ============================================================ */
.sra-cta {
  background: linear-gradient(135deg, var(--sra-red) 0%, var(--sra-red-2) 100%);
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.5rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
}

.sra-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 90% 50%, rgba(255,255,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.sra-cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sra-cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.sra-cta-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.68;
  max-width: 58ch;
  margin: 0 auto 2rem;
}
.sra-cta-sub strong { color: #fff; }

.sra-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.sra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sra-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s var(--sra-ease), transform 0.2s var(--sra-ease),
              box-shadow 0.2s var(--sra-ease), color 0.2s var(--sra-ease);
}

.sra-btn-white {
  background: #fff;
  color: var(--sra-red);
  border: 2px solid #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.sra-btn-white:hover {
  background: var(--sra-bg-3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.sra-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.35);
}
.sra-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.sra-contact {
  background: var(--sra-bg-2);
  border-top: 1px solid var(--sra-border);
  text-align: center;
}

.sra-contact-card {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--sra-bg);
  border: 1px solid var(--sra-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(2rem, 4vw, 3rem);
  box-shadow: 0 4px 20px rgba(30,27,82,0.06);
  transition: box-shadow 0.35s var(--sra-ease), transform 0.35s var(--sra-ease);
}
.sra-contact-card:hover {
  box-shadow: 0 12px 36px rgba(178,34,42,0.1);
  transform: translateY(-3px);
}

.sra-contact-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sra-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sra-contact-avatar svg { width: 32px; height: 32px; }

.sra-contact-info {
  text-align: left;
}

.sra-contact-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sra-fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.sra-contact-role {
  font-size: 0.88rem;
  color: var(--sra-red);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.sra-contact-email {
  font-family: var(--sra-mono);
  font-size: 0.82rem;
  color: var(--sra-fg-muted);
  word-break: break-all;
  transition: color 0.15s;
}
.sra-contact-email:hover { color: var(--sra-red); }

/* ============================================================
   SCROLL REVEAL (generic)
   ============================================================ */
.sra-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--sra-ease), transform 0.6s var(--sra-ease);
}
.sra-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.sra-footer {
  background: linear-gradient(180deg, #14123b, #0b0929);
  padding: 2.8rem clamp(1.5rem, 8vw, 8rem);
  text-align: center;
  color: rgba(255,255,255,0.42);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   MEMBERS CAROUSEL
   ============================================================ */
.sra-members {
  background: var(--sra-bg-2);
  border-top: 1px solid var(--sra-border);
  border-bottom: 1px solid var(--sra-border);
}

.sra-members-carousel {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(178,34,42,0.3) transparent;
  padding-bottom: 1rem;
}

.sra-members-carousel::-webkit-scrollbar { height: 6px; }
.sra-members-carousel::-webkit-scrollbar-track { background: transparent; }
.sra-members-carousel::-webkit-scrollbar-thumb { background: rgba(178,34,42,0.3); border-radius: 3px; }

.sra-members-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.sra-member-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--sra-bg);
  border: 1px solid var(--sra-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.35s var(--sra-ease), transform 0.35s var(--sra-ease), border-color 0.35s var(--sra-ease);
}

.sra-member-card:hover {
  box-shadow: 0 12px 36px rgba(30,27,82,0.1);
  transform: translateY(-4px);
  border-color: rgba(178,34,42,0.25);
}

.sra-member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sra-red) 0%, var(--sra-red-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sra-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sra-member-initials {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.sra-member-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sra-fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.sra-member-role {
  font-family: var(--sra-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sra-red);
  margin-bottom: 0.6rem;
}

.sra-member-quote {
  color: var(--sra-fg-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
}

.sra-members-empty {
  text-align: center;
  color: var(--sra-fg-faint);
  font-size: 0.95rem;
  padding: 2rem 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sra-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sra-logo-kmc { display: none; }
  .sra-nav { gap: 0.9rem; }
  .sra-nav-link { font-size: 0.82rem; }

  .sra-hero { min-height: 75vh; }
  .sra-hero-watermark img { opacity: 0.03; width: 80vw; }

  .sra-focus-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .sra-focus-num { font-size: 1.4rem; }

  .sra-contact-card { flex-direction: column; text-align: center; }
  .sra-contact-info { text-align: center; }

  .sra-cta-actions { flex-direction: column; }
  .sra-btn { width: 100%; justify-content: center; }
}

@media (max-width: 820px) {
  .sra-topbar { padding: 0.7rem 1.2rem; gap: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .sra-reveal { opacity: 1; transform: none; }
}
