/* ============================================================
   FDKSA Regional Chapter Pages
   ============================================================ */

/* ── REGION HERO ─────────────────────────────────────────── */
.region-hero {
  position: relative;
  padding: calc(var(--nav-h) + 52px) 0 64px;
  overflow: hidden;
}
.region-hero-central  { background: linear-gradient(140deg, #1e0a4a 0%, #3b1278 30%, #6d28d9 65%, #8b5cf6 100%); }
.region-hero-eastern  { background: linear-gradient(140deg, #0c2340 0%, #1e4a8a 30%, #2563eb 65%, #60a5fa 100%); }
.region-hero-western  { background: linear-gradient(140deg, #3d1a00 0%, #7a3800 30%, #c49b20 65%, #fcd34d 100%); }
.region-hero-northern { background: linear-gradient(140deg, #032b1a 0%, #065f46 30%, #059669 65%, #34d399 100%); }

.region-hero .blob-1 { width: 500px; height: 500px; top: -200px; right: -80px; }
.region-hero .blob-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; }
.region-hero-inner { position: relative; z-index: 2; }

.region-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
  transition: color .2s;
}
.region-back:hover { color: #fff; }
.region-back svg { width: 16px; height: 16px; }

.region-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.region-hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,55,.8);
  animation: pulse 2s infinite;
}
.region-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}
.region-hero-title em { color: var(--gold); font-style: italic; white-space: nowrap; }
.region-hero-sub {
  font-size: .97rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin-bottom: 28px;
}
.region-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.region-hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.region-hero-stat svg { width: 14px; height: 14px; opacity: .7; }

/* ── REGION SECTION SHARED ───────────────────────────────── */
.region-section { padding: 72px 0; }
.region-section-alt { background: var(--off-white); }
.region-section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text); margin-bottom: 8px; }
.region-section-sub { font-size: .9rem; color: var(--muted); margin-bottom: 48px; }

/* ── OFFICERS ────────────────────────────────────────────── */
.ro-president-card-eastern  { background: linear-gradient(135deg, #0c2340 0%, #2563eb 100%); }
.ro-president-card-western  { background: linear-gradient(135deg, #3d1a00 0%, #b87d0a 100%); }
.ro-president-card-northern { background: linear-gradient(135deg, #032b1a 0%, #059669 100%); }

.ro-president-row {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}
.ro-president-card {
  flex: 1;
  background: linear-gradient(135deg, #1e0a4a 0%, #6d28d9 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.ro-president-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 24px);
}
.ro-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ro-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
}
.ro-avatar svg { width: 40px; height: 40px; }
.ro-avatar-label {
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a0a00;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.ro-president-info { position: relative; z-index: 1; }
.ro-position { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ro-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.ro-title { font-size: .85rem; color: rgba(255,255,255,.55); }

.ro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ro-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.ro-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ro-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--purple-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-mid);
  margin: 0 auto 14px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(124,58,237,.4);   /* region officers = purple ring */
}
.ro-card-avatar svg { width: 28px; height: 28px; }
/* region president photo = gold ring */
.ro-avatar { overflow: hidden; box-shadow: 0 0 0 3px rgba(212,175,55,.6); }
.ro-card-pos {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 4px;
}
.ro-card-name { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ro-card-note { font-size: .75rem; color: var(--muted); }

/* ── REGION GALLERY ──────────────────────────────────────── */
.region-gallery-wrap { padding: 72px 0 100px; }

/* ── OTHER REGIONS NAV ───────────────────────────────────── */
.other-regions {
  padding: 56px 0;
  background: var(--text);
}
.other-regions-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 24px;
}
.other-regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.or-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.or-card:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.15); }
.or-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.or-dot-central  { background: var(--purple-mid); }
.or-dot-eastern  { background: #3b82f6; }
.or-dot-western  { background: var(--gold); }
.or-dot-northern { background: #10b981; }
.or-region { font-size: .82rem; font-weight: 600; color: #fff; }
.or-city   { font-size: .72rem; color: rgba(255,255,255,.4); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .ro-president-card { flex-direction: column; text-align: center; padding: 32px 24px; }
  .ro-grid { grid-template-columns: repeat(2, 1fr); }
  .other-regions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .other-regions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .ro-grid { grid-template-columns: 1fr; }   /* officer cards stack on small phones */
}

/* ── RESPONSIVE POLISH — phone spacing ──────────────────── */
@media (max-width: 640px) {
  .region-section { padding: 48px 0; }
  .region-gallery-wrap { padding: 48px 0 64px; }
  .region-hero { padding: calc(var(--nav-h) + 30px) 0 44px; }
  .other-regions { padding: 44px 0; }
  .ro-president-card { padding: 28px 20px; }
  .region-section-sub { margin-bottom: 30px; }
}

/* Clickable officer cards → profile modal */
.ro-card.ov-trigger, .ro-president-card.ov-trigger { cursor: pointer; }
.ro-president-card.ov-trigger { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ro-president-card.ov-trigger:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(30,10,74,.28); }
