/*
 * portal-theme.css
 * Loaded globally so FTL web-content templates have access to CSS custom
 * properties and utility classes.  All rules are scoped under .wc-block so
 * they never leak into the admin UI.
 */

/* ── CSS custom properties (available to every child of .wc-block) ─────── */
.wc-block {
  --navy:      #0a1f3c;
  --gold:      #c9a84c;
  --gold-dark: #a8892e;
  --white:     #ffffff;
  --bg:        #f8f8f5;
  --bg-light:  #f1f0eb;
  --muted:     #6b7280;
  --text:      #1a1a2e;
  --border:    #e5e7eb;
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
.wc-block * { box-sizing: border-box; }
.wc-block img { max-width: 100%; display: block; }
.wc-block a { text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wc-block .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.wc-block .py-8  { padding-top: 32px;  padding-bottom: 32px; }
.wc-block .py-12 { padding-top: 48px;  padding-bottom: 48px; }
.wc-block .py-16 { padding-top: 64px;  padding-bottom: 64px; }
.wc-block .py-20 { padding-top: 80px;  padding-bottom: 80px; }

.wc-block .bg-white { background: var(--white); }
.wc-block .bg-navy  { background: var(--navy);  }
.wc-block .bg-gold  { background: var(--gold);  }
.wc-block .bg-light { background: var(--bg);    }

/* ── Grid helpers ───────────────────────────────────────────────────────── */
.wc-block .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.wc-block .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wc-block .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .wc-block .grid-2,
  .wc-block .grid-3,
  .wc-block .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Section eyebrow label ──────────────────────────────────────────────── */
.wc-block .section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wc-block .section-label .line {
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
.wc-block .section-label span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.wc-block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .2s, transform .15s;
}
.wc-block .btn:hover { opacity: .88; transform: translateY(-1px); }

.wc-block .btn-rounded { border-radius: 999px; }
.wc-block .btn-lg      { padding: 13px 32px; font-size: 15px; }
.wc-block .btn-sm      { padding: 7px  16px; font-size: 12px; }

.wc-block .btn-gold {
  background: var(--gold);
  color: var(--white);
}
.wc-block .btn-navy {
  background: var(--navy);
  color: var(--white);
}
.wc-block .btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.wc-block .btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.wc-block .btn-ghost-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

/* ── "More / See all" link ──────────────────────────────────────────────── */
.wc-block .more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: gap .2s;
}
.wc-block .more-link:hover { gap: 10px; }

/* ── Event card ─────────────────────────────────────────────────────────── */
.wc-block .event-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
}
.wc-block .event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.wc-block .event-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.wc-block .event-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.wc-block .event-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.wc-block .event-date-wrap { display: flex; justify-content: flex-end; }
.wc-block .event-date {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  min-width: 54px;
}
.wc-block .event-date .day   { font-size: 22px; font-weight: 800; line-height: 1; }
.wc-block .event-date .month { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.wc-block .cta-banner {
  background: var(--navy);
  border-radius: 16px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.wc-block .cta-banner-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.wc-block .cta-banner-text p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.wc-block .cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Generic card ───────────────────────────────────────────────────────── */
.wc-block .wc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.wc-block .wc-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.wc-block .wc-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Hero section ───────────────────────────────────────────────────────── */
.wc-block .wc-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--navy);
}
.wc-block .wc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.wc-block .wc-hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  width: 100%;
}
.wc-block .wc-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.wc-block .wc-hero-eyebrow .line {
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
.wc-block .wc-hero-eyebrow span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wc-block .wc-hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--white);
  font-weight: 700;
  max-width: 680px;
  margin: 0 0 20px;
  line-height: 1.2;
  white-space: pre-line;
}
.wc-block .wc-hero-quote {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-style: italic;
  margin: 0 0 40px;
}
.wc-block .wc-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.wc-block .wc-hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.wc-block .wc-hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 24px;
}
.wc-block .wc-hero-card-icon {
  color: var(--gold);
  margin-bottom: 14px;
}
.wc-block .wc-hero-card h3 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}
.wc-block .wc-hero-card p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
