/*
 * ═══════════════════════════════════════════════════════════════
 *  MPS STYLES  —  styles.css
 *  All colours/fonts/radius come from theme.css via CSS variables.
 *  Do NOT put hex colours here — use var(--token) everywhere.
 * ═══════════════════════════════════════════════════════════════
 */

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }

/* ── TOPBAR ───────────────────────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar a           { color: rgba(255,255,255,0.85); }
.topbar a:hover     { color: var(--accent); }
.topbar-left        { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar-right       { display: flex; gap: 16px; align-items: center; }
.topbar svg         { width: 14px; height: 14px; display: inline; vertical-align: -2px; margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 2; }
.topbar-lang        { background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: var(--radius-pill); }

/* ── NAV ──────────────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px var(--shadow-color);
  transition: box-shadow .2s;
}
nav.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.logo               { display: flex; align-items: center; gap: 14px; }
.logo-emblem {
  width: 52px; height: 52px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-emblem span   { color: #fff; font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.logo-text h1       { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-text p        { font-size: 11px; color: var(--mid); letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links          { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--mid);
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover  { color: var(--primary); background: var(--primary-pale); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.btn-join {
  background: var(--accent) !important; color: var(--dark) !important;
  padding: 9px 20px !important; border-radius: 8px !important;
  font-weight: 600 !important; transition: opacity .2s, transform .15s !important;
}
.btn-join:hover     { opacity: .88 !important; transform: translateY(-1px); }
.hamburger          { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span     { display: block; width: 22px; height: 2px; background: var(--primary); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3D1010 50%, var(--primary) 100%);
  padding: 80px 24px 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.4);
  color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.hero h2 {
  font-family: var(--font-head); font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero h2 em         { color: var(--accent); font-style: normal; }
.hero p             { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-btns          { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: var(--dark);
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: opacity .2s, transform .15s; display: inline-block; border: none; cursor: pointer; font-family: var(--font-body);
}
.btn-primary:hover  { opacity: .88; transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4); color: #fff;
  padding: 14px 28px; border-radius: 10px; font-weight: 500; font-size: 15px;
  transition: border-color .2s, background .2s; display: inline-block;
}
.btn-outline:hover  { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(8px);
}
.stat-item          { text-align: center; padding: 16px 0; }
.stat-item:not(:last-child)  { border-right: 1px solid rgba(255,255,255,0.12); }
.stat-item:nth-child(3)      { border-top: 1px solid rgba(255,255,255,0.12); border-right: 1px solid rgba(255,255,255,0.12); }
.stat-item:nth-child(4)      { border-top: 1px solid rgba(255,255,255,0.12); }
.stat-num           { font-family: var(--font-head); font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-label         { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ── SECTION COMMON ───────────────────────────────────────────── */
section             { padding: 80px 24px; }
.section-inner      { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--primary-pale); color: var(--primary);
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.section-sub        { color: var(--mid); font-size: 16px; max-width: 600px; line-height: 1.7; }
.section-head       { text-align: center; margin-bottom: 52px; }
.section-head .section-sub { margin: 0 auto; }

/* ── ABOUT ────────────────────────────────────────────────────── */
.about              { background: var(--soft); }
.about-grid         { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-block    { position: relative; }
.about-img-mock {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,0.8);
}
.about-img-mock svg { width: 64px; height: 64px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.5; }
.about-img-mock p   { font-size: 13px; text-align: center; }
.about-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 8px 32px rgba(201,168,76,0.3); text-align: center;
}
.about-badge-float .num { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--dark); }
.about-badge-float .lbl { font-size: 12px; color: rgba(0,0,0,0.55); }
.about-text h3      { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.about-text h2      { font-family: var(--font-head); font-size: clamp(24px,2.5vw,34px); font-weight: 700; color: var(--dark); margin-bottom: 20px; line-height: 1.25; }
.about-text p       { color: var(--mid); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.about-points       { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-point        { display: flex; gap: 12px; align-items: flex-start; }
.about-point-icon {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.about-point-icon svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 2.5; }
.about-point p      { font-size: 14px; color: var(--mid); line-height: 1.6; }

/* ── PILLARS ──────────────────────────────────────────────────── */
.pillars            { background: var(--white); }
.pillars-grid       { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pillar-card {
  background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; cursor: default;
}
.pillar-card:hover  { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-color); border-color: var(--primary); }
.pillar-icon {
  width: 52px; height: 52px; background: var(--primary-pale); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.pillar-icon svg    { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; }
.pillar-card h3     { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.pillar-card p      { font-size: 14px; color: var(--mid); line-height: 1.7; }

/* ── EVENTS ───────────────────────────────────────────────────── */
.events             { background: var(--soft); }
.events-grid        { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.event-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; transition: box-shadow .25s, transform .25s;
}
.event-card:hover   { box-shadow: 0 8px 32px var(--shadow-color); transform: translateY(-2px); }
.event-date-block {
  background: var(--primary); color: #fff;
  min-width: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 16px; text-align: center;
}
.event-date-block .day   { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1; }
.event-date-block .month { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; opacity: 0.8; }
.event-date-block .year  { font-size: 11px; opacity: 0.65; margin-top: 2px; }
.event-body         { padding: 20px 22px; }
.event-tag {
  display: inline-block; background: var(--primary-pale); color: var(--primary);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 8px;
}
.event-body h3      { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.3; }
.event-body p       { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; }
.event-meta         { font-size: 12px; color: var(--mid); display: flex; gap: 14px; align-items: center; }
.event-meta svg     { width: 12px; height: 12px; stroke: var(--primary); fill: none; stroke-width: 2; display: inline; vertical-align: -1px; margin-right: 4px; }
.event-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: #fff; border: none;
}
.event-card.featured .event-date-block { background: rgba(0,0,0,0.25); }
.event-card.featured .event-tag        { background: rgba(201,168,76,0.25); color: var(--accent); }
.event-card.featured h3                { color: #fff; font-size: 20px; }
.event-card.featured p                 { color: rgba(255,255,255,0.7); }
.event-card.featured .event-meta       { color: rgba(255,255,255,0.6); }
.event-card.featured .event-meta svg   { stroke: var(--accent); }
.event-link         { font-size: 13px; font-weight: 600; color: var(--primary); transition: opacity .2s; }
.event-card.featured .event-link       { color: var(--accent); }
.event-link:hover   { opacity: .7; }

/* ── MEMBERSHIP ───────────────────────────────────────────────── */
.membership         { background: var(--primary); padding: 80px 24px; }
.membership-inner   { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; }
.membership-head    { grid-column: 1/2; }
.membership-head h2 { font-family: var(--font-head); font-size: clamp(24px,2.5vw,34px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.membership-head p  { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.membership-cards   { grid-column: 2/4; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mem-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 28px 24px; transition: background .25s;
}
.mem-card:hover     { background: rgba(255,255,255,0.13); }
.mem-card.highlight { background: var(--accent); border-color: var(--accent); }
.mem-card.highlight h3,
.mem-card.highlight p,
.mem-card.highlight li  { color: var(--dark) !important; }
.mem-card h3        { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.mem-card .price    { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.mem-card.highlight .price { color: var(--dark); }
.mem-card ul        { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mem-card ul li     { font-size: 13px; color: rgba(255,255,255,0.75); display: flex; align-items: flex-start; gap: 8px; }
.mem-card ul li::before           { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.mem-card.highlight ul li::before { color: var(--primary); }
.btn-mem {
  display: block; text-align: center; padding: 11px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,0.15); color: #fff; transition: background .2s;
}
.btn-mem:hover                    { background: rgba(255,255,255,0.25); }
.mem-card.highlight .btn-mem      { background: var(--primary); color: #fff; }
.mem-card.highlight .btn-mem:hover{ background: var(--dark); }
/* Membership section-tag override (light bg on dark section) */
.membership .section-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

/* ── PARTNERS ─────────────────────────────────────────────────── */
.partners           { background: var(--soft); }
.partners-grid      { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.partner-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; transition: box-shadow .25s;
}
.partner-card:hover { box-shadow: 0 6px 24px var(--shadow-color); }
.partner-logo {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-pale); display: flex; align-items: center; justify-content: center;
}
.partner-logo span  { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--primary); }
.partner-card h4    { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; }
.partner-card p     { font-size: 12px; color: var(--mid); line-height: 1.5; }

/* ── NEWS ─────────────────────────────────────────────────────── */
.news               { background: var(--white); }
.news-grid          { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow .25s, transform .25s;
}
.news-card:hover    { box-shadow: 0 8px 32px var(--shadow-color); transform: translateY(-3px); }
.news-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-thumb svg     { width: 48px; height: 48px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.5; }
.news-body          { padding: 20px; background: var(--white); }
.news-cat           { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 8px; }
.news-body h3       { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.35; }
.news-body p        { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 14px; }
.news-meta          { font-size: 12px; color: var(--mid); display: flex; gap: 12px; }

/* ── RESOURCES ────────────────────────────────────────────────── */
.resources          { background: var(--white); }
.res-layout         { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.res-sidebar        { position: sticky; top: 96px; }
.res-sidebar > h3   { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--mid); margin-bottom: 12px; }
.filter-group       { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.filter-group h4    { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.filter-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: var(--mid); font-family: var(--font-body);
  transition: background .2s, color .2s; margin-bottom: 2px;
}
.filter-btn:hover   { background: var(--primary-pale); color: var(--primary); }
.filter-btn.active  { background: var(--primary-pale); color: var(--primary); font-weight: 600; }
.filter-btn .fcount { margin-left: auto; background: var(--border); color: var(--mid); font-size: 11px; padding: 2px 7px; border-radius: var(--radius-pill); }
.filter-btn.active .fcount { background: var(--primary); color: #fff; }
.filter-dot         { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; margin-bottom: 24px; background: var(--soft);
}
.upload-zone:hover,
.upload-zone.dragover { border-color: var(--primary); background: var(--primary-pale); }
.upload-zone svg    { width: 36px; height: 36px; stroke: var(--primary); fill: none; stroke-width: 1.5; margin: 0 auto 10px; }
.upload-zone h4     { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.upload-zone p      { font-size: 13px; color: var(--mid); }
.upload-zone strong { color: var(--primary); cursor: pointer; }
.res-hint {
  background: var(--accent-light); border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius); padding: 16px;
}
.res-hint p         { font-size: 12px; color: #7C5A1E; line-height: 1.6; }
.res-hint strong    { display: block; margin-bottom: 4px; }
.res-toolbar        { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.res-search         { flex: 1; min-width: 200px; position: relative; }
.res-search svg     { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--mid); fill: none; stroke-width: 2; pointer-events: none; }
.res-search input {
  width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font-body); font-size: 14px; color: var(--dark);
  background: var(--soft); outline: none; transition: border-color .2s;
}
.res-search input:focus { border-color: var(--primary); background: #fff; }
.sort-select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 13px; color: var(--mid); background: var(--soft); outline: none; cursor: pointer;
}
.res-count          { font-size: 13px; color: var(--mid); white-space: nowrap; }
.res-grid           { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.res-card {
  background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.res-card:hover     { box-shadow: 0 6px 24px var(--shadow-color); transform: translateY(-2px); border-color: var(--primary); }
.res-card-top       { display: flex; gap: 12px; align-items: flex-start; }
.res-file-icon      { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.res-file-icon.pdf  { background: #FEE2E2; color: #991B1B; }
.res-file-icon.pptx { background: #FEF3C7; color: #92400E; }
.res-file-icon.docx { background: #DBEAFE; color: #1E40AF; }
.res-info           { flex: 1; min-width: 0; }
.res-desc           { font-size: 13px; color: var(--mid); line-height: 1.6; word-break: break-word; }
.res-info h4        { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.35; margin-bottom: 4px; }
.res-info p         { font-size: 12px; color: var(--mid); line-height: 1.5; }
.res-empty          { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--mid); }
.res-empty svg      { width: 40px; height: 40px; stroke: var(--mid); fill: none; stroke-width: 1.5; margin: 0 auto 12px; display: block; }
.res-tags           { display: flex; gap: 6px; flex-wrap: wrap; }
.res-tag            { font-size: 11px; padding: 3px 9px; border-radius: var(--radius-pill); font-weight: 500; background: var(--primary-pale); color: var(--primary); }
.res-tag.orange     { background: #FEF3C7; color: #92400E; }
.res-tag.blue       { background: #DBEAFE; color: #1E40AF; }
.res-meta           { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.res-meta-info      { font-size: 11px; color: var(--mid); }
.res-actions        { display: flex; gap: 6px; }
.btn-dl {
  display: flex; align-items: center; gap: 5px; background: var(--primary); color: #fff;
  border: none; cursor: pointer; padding: 7px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 600; font-family: var(--font-body); transition: background .2s;
}
.btn-dl:hover       { background: var(--dark); }
.btn-dl svg         { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.5; }
.btn-preview,
a.btn-preview {
  display: flex; align-items: center; gap: 5px; background: var(--soft); color: var(--mid);
  border: 1px solid var(--border); cursor: pointer; padding: 7px 12px; border-radius: 7px;
  font-size: 12px; font-weight: 500; font-family: var(--font-body); transition: background .2s, color .2s;
}
a.btn-preview { text-decoration: none; }
.btn-preview:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-preview:hover  { background: var(--primary-pale); color: var(--primary); border-color: var(--primary); }
.btn-preview svg    { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── UPLOAD MODAL ─────────────────────────────────────────────── */
.modal-overlay      { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box          { background: var(--white); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 560px; box-shadow: 0 24px 80px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
.modal-header       { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3    { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--dark); }
.modal-close        { background: none; border: none; cursor: pointer; padding: 4px; color: var(--mid); font-size: 22px; line-height: 1; }
.modal-close:hover  { color: var(--dark); }
.form-row           { margin-bottom: 16px; }
.form-row label     { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea  { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 14px; color: var(--dark); background: var(--soft); outline: none; transition: border-color .2s; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--primary); background: #fff; }
.form-row textarea  { resize: vertical; min-height: 80px; }
.form-required      { color: var(--primary); }
.form-2col          { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-drop {
  display: block;
  border: 2px dashed var(--border); border-radius: 10px; padding: 24px; text-align: center;
  cursor: pointer; background: var(--soft); transition: border-color .2s, background .2s; margin-bottom: 16px;
  position: relative;
}
.modal-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.modal-drop:hover   { border-color: var(--primary); background: var(--primary-pale); }
.modal-drop svg     { width: 32px; height: 32px; stroke: var(--primary); fill: none; stroke-width: 1.5; margin: 0 auto 8px; }
.modal-drop p       { font-size: 13px; color: var(--mid); }
.modal-drop strong  { color: var(--primary); }
.selected-file      { font-size: 13px; color: var(--primary); font-weight: 500; text-align: center; margin-bottom: 12px; display: none; }
.btn-submit         { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-family: var(--font-head); font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-submit svg     { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; flex-shrink: 0; }
.btn-submit:hover   { background: var(--dark); }
.contact-modal-box  { max-width: 520px; }
.contact-modal-intro {
  font-size: 14px; color: var(--dark); line-height: 1.65;
  margin-bottom: 16px; padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--accent-light) 100%);
  border-radius: 10px; border: 1px solid var(--border);
}
.contact-modal-intro .intro-title {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--primary); margin-bottom: 10px;
}
.contact-modal-intro p { margin-bottom: 8px; }
.contact-modal-intro p:last-child { margin-bottom: 0; }
.contact-modal-intro a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-modal-intro a:hover { color: var(--primary-light); }
.contact-modal-note { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 20px; padding: 12px 14px; background: var(--primary-pale); border-radius: 8px; border: 1px solid var(--border); }
.upload-local-note  { font-size: 12px; color: var(--mid); line-height: 1.6; margin-bottom: 16px; padding: 12px 14px; background: var(--accent-light); border-radius: 8px; border: 1px solid rgba(201,168,76,0.35); }
.upload-local-note strong { color: var(--dark); }

/* ── TOAST ────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: var(--dark); color: #fff; padding: 14px 20px; border-radius: 10px;
  font-size: 14px; display: flex; align-items: center; gap: 10px;
  transform: translateY(80px); opacity: 0; transition: transform .3s, opacity .3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.toast.show         { transform: translateY(0); opacity: 1; }
.toast svg          { width: 18px; height: 18px; stroke: #4ADE80; fill: none; stroke-width: 2.5; flex-shrink: 0; }

/* ── CTA BANNER ───────────────────────────────────────────────── */
.cta-banner         { background: var(--soft); padding: 72px 24px; }
.cta-inner {
  max-width: 1000px; margin: 0 auto;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  border-radius: 24px; padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; top: -60px; right: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%); border-radius: 50%;
}
.cta-inner h2       { font-family: var(--font-head); font-size: clamp(24px,3vw,38px); font-weight: 700; color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-inner p        { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 540px; margin: 0 auto 32px; position: relative; z-index: 1; line-height: 1.7; }
.cta-btns           { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-cta-gold       { background: var(--accent); color: var(--dark); padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: opacity .2s; }
.btn-cta-gold:hover { opacity: .88; }
.btn-cta-outline    { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; padding: 14px 32px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: border-color .2s; }
.btn-cta-outline:hover { border-color: rgba(255,255,255,0.8); }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer              { background: var(--dark); color: rgba(255,255,255,0.65); padding: 64px 24px 0; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text h1 { color: #fff; font-size: 18px; }
.footer-brand .logo-text p  { color: rgba(255,255,255,0.45); }
.footer-desc        { font-size: 14px; line-height: 1.7; margin: 16px 0 24px; color: rgba(255,255,255,0.55); }
.footer-socials     { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.social-btn:hover   { background: var(--primary); }
.social-btn svg     { width: 16px; height: 16px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 2; }
.footer-col h4      { font-size: 13px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col ul      { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact li  { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.footer-contact li svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 8px;
}

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > *              { animation: fadeUp .6s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .2s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .4s; }
.hero-stats                    { animation: fadeUp .7s ease .35s both; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars-grid     { grid-template-columns: 1fr 1fr; }
  .partners-grid    { grid-template-columns: repeat(2,1fr); }
  .membership-inner { grid-template-columns: 1fr; }
  .membership-head  { grid-column: 1; }
  .membership-cards { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .res-layout       { grid-template-columns: 1fr; }
  .res-sidebar      { position: static; }
}
@media (max-width: 768px) {
  .topbar           { display: none; }
  .pillars-grid     { grid-template-columns: 1fr; }
  .partners-grid    { grid-template-columns: 1fr; }
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-stats       { grid-template-columns: 1fr 1fr; }
  .about-grid       { grid-template-columns: 1fr; }
  .events-grid      { grid-template-columns: 1fr; }
  .event-card.featured { grid-column: 1; }
  .news-grid        { grid-template-columns: 1fr; }
  .membership-cards { grid-template-columns: 1fr; }
  .nav-links        { display: none; }
  .nav-links.mobile-open { display: flex !important; }
  .hamburger        { display: block; }
  .footer-grid      { grid-template-columns: 1fr; }
  .about-badge-float{ position: relative; bottom: auto; right: auto; margin-top: 16px; display: inline-block; }
  .res-grid         { grid-template-columns: 1fr; }
  .form-2col        { grid-template-columns: 1fr; }

  /* Resources — prevent horizontal overflow */
  .resources        { overflow-x: hidden; }
  .res-layout       { gap: 20px; min-width: 0; }
  .res-layout > div { min-width: 0; overflow: hidden; }
  .res-sidebar      { display: flex; flex-direction: column; gap: 12px; }
  .filter-group     { padding: 16px; margin-bottom: 0; }
  .filter-btn       { min-width: 0; }
  .upload-zone      { padding: 20px 16px; margin-bottom: 0; }
  .res-toolbar      { flex-direction: column; align-items: stretch; gap: 10px; }
  .res-search       { min-width: 0; width: 100%; }
  .sort-select      { width: 100%; }
  .res-count        { text-align: center; white-space: normal; }
  .res-card         { min-width: 0; overflow: hidden; }
  .res-card-top     { align-items: flex-start; }
  .res-info h4      { white-space: normal; overflow: visible; text-overflow: unset; }
  .res-meta         { flex-direction: column; align-items: stretch; gap: 12px; }
  .res-actions      { width: 100%; flex-wrap: wrap; }
  .res-actions .btn-preview,
  .res-actions .btn-dl { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .res-hint p       { word-break: break-word; }

  .modal-box        { padding: 24px 20px; margin: 12px; }
  .logo-text h1     { font-size: 14px; }
  .logo-text p      { display: none; }
}
