/* Base theme variables — overridden by inline theme block in base.html when configured */
:root {
  --navy: #0d2a52;
  --gold: #c8922a;
  --gold-dark: #a87520;
  --gold-light: #f5e6cc;
  --cream: #faf8f4;
  --text: #1a1a2e;
  --muted: #5a6072;
  --border: rgba(0, 0, 0, 0.1);
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
}
.nav-logo {
  width: 46px;
  height: 46px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-name {
  color: white;
}
.nav-name .org {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.nav-name .chapter {
  font-size: 11px;
  opacity: 0.65;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 20px 14px;
  border-bottom: 3px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
  display: block;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-join {
  background: var(--gold) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 4px;
  margin-left: 8px;
  border-bottom: none !important;
}
.nav-join:hover {
  background: var(--gold-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.hero {
  background: var(--navy);
  color: white;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, white 0, white 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.hero-content {
  position: relative;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 146, 42, 0.2);
  border: 1px solid rgba(200, 146, 42, 0.4);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: white;
}

.hero-stats {
  margin-top: 3rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}
.stat-item .num {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
}
.stat-item .lbl {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticker {
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
}
.ticker-label {
  background: var(--gold-dark);
  padding: 10px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 3rem;
  animation: ticker-scroll 32s linear infinite;
  width: max-content;
  padding: 10px 0;
}
.ticker-inner span::before {
  content: "◆  ";
  font-size: 8px;
  opacity: 0.65;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

section {
  padding: 3.5rem 2rem;
}
.section-bg {
  background: var(--cream);
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}
.section-title .line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}
.view-all {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-all:hover {
  text-decoration: underline;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.event-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 42, 82, 0.12);
}
.event-header {
  background: var(--navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-date-box {
  background: var(--gold);
  border-radius: 6px;
  text-align: center;
  padding: 6px 10px;
  min-width: 48px;
  flex-shrink: 0;
}
.event-date-box .day {
  font-size: 22px;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.event-date-box .mon {
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-header-text .etitle {
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.event-header-text .etype {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-body {
  padding: 1rem 1.25rem;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.event-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.event-meta-row i {
  font-size: 15px;
  color: var(--gold);
  flex-shrink: 0;
}
.event-footer {
  padding: 0.75rem 1.25rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-free {
  background: #e8f5e9;
  color: #2e7d32;
}
.tag-paid {
  background: #fff3e0;
  color: #e65100;
}
.reg-btn {
  background: var(--navy);
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.reg-btn:hover {
  background: var(--gold);
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.news-featured {
  background: white;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  overflow: hidden;
}
.news-feat-img {
  background: linear-gradient(135deg, var(--navy), #1a3d6e);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.news-feat-img img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-feat-img-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.news-feat-badge {
  background: var(--gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.news-feat-icon {
  font-size: 44px;
  color: rgba(255, 255, 255, 0.25);
}
.news-feat-body {
  padding: 1.5rem;
}
.news-feat-body h3 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.news-feat-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.news-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.news-meta i {
  font-size: 13px;
  vertical-align: -1px;
  margin-right: 4px;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.news-item {
  background: white;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  padding: 1rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.2s;
}
.news-item:hover {
  border-color: var(--gold);
}
.news-item-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.news-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 4px;
}
.news-item .date {
  font-size: 11px;
  color: var(--muted);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.board-card {
  background: white;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.board-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 42, 82, 0.09);
}
.board-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  background: var(--navy);
  overflow: hidden;
}
.board-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board-avatar.gold {
  background: var(--gold);
}
.board-card .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
}
.board-card .role {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sponsors-strip {
  background: white;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 1.5rem 2rem;
}
.sponsors-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sponsors-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.sponsor-item {
  background: var(--cream);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 0.5px solid var(--border);
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sponsor-item img {
  max-height: 32px;
  width: auto;
}
.sponsor-item:hover {
  border-color: var(--gold);
  color: var(--navy);
}

footer {
  background: #0a1e3d;
  color: white;
  padding: 3.5rem 2rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .fname {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.75;
  max-width: 230px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  transition:
    background 0.2s,
    color 0.2s;
}
.social-btn:hover {
  background: var(--gold);
  color: white;
}
.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-col a i {
  font-size: 13px;
  vertical-align: -1px;
  margin-right: 5px;
}
.footer-bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.45;
  flex-wrap: wrap;
  gap: 8px;
}

.page-hero {
  background: var(--navy);
  color: white;
  padding: 3rem 2rem;
}
.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 36px);
}
.page-body {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.preview-banner {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-links.open {
    display: flex;
    background: var(--navy);
    padding: 1rem;
  }
  .nav-links.open a {
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  }
  .nav-toggle {
    display: block;
  }
  nav {
    flex-wrap: wrap;
    padding: 0 1rem;
  }
  .nav-brand {
    flex: 1;
  }
  .hero {
    padding: 3rem 1.25rem;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  section {
    padding: 2.5rem 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .sponsors-inner {
    gap: 10px;
  }
}
