/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #222; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --blue: #003F87;
  --gold: #FFC72C;
  --overlay: rgba(0, 0, 0, 0.48);
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --dark: #222222;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ===== HERO (HOME - SLIDESHOW) ===== */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 740px;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content .tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2.25rem;
  opacity: 0.92;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  background: var(--gold);
  color: var(--blue);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

/* ===== STATIC HERO (INNER PAGES) ===== */
.hero-static {
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  padding: 2rem 2.5rem;
}

.hero-static::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 63, 135, 0.4), rgba(0, 0, 0, 0.7));
}

.hero-static .hero-title {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border-bottom: 4px solid var(--gold);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.hero-about     { background-image: url('../pictures/3.jpg'); }
.hero-join      { background-image: url('../pictures/5.jpg'); }
.hero-calendar  { background-image: url('../pictures/2.jpg'); }
.hero-resources { background-image: url('../pictures/4.jpg'); }

/* ===== SECTIONS ===== */
section {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  margin: 0.6rem auto 2.5rem;
  border-radius: 2px;
}

/* ===== FEATURE CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--gold);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

.card-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--blue);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ===== QUICK LINKS BAND ===== */
.quick-links {
  background: var(--blue);
  padding: 3.5rem 2rem;
}

.quick-links .section-title { color: var(--white); }
.quick-links .section-subtitle { color: rgba(255, 255, 255, 0.72); }
.quick-links .section-divider { background: var(--gold); }

.link-card {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.link-card .link-icon {
  font-size: 2.3rem;
  margin-bottom: 0.8rem;
}

.link-card h3 {
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.link-card p {
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ===== CONTENT PAGES ===== */
.content-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.content-wrap h2 {
  color: var(--blue);
  font-size: 1.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gold);
  font-weight: 700;
}

.content-wrap p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

/* Placeholder notice */
.placeholder-box {
  background: #fff8e1;
  border: 2px dashed var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  color: #7a5c00;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.6;
}

.placeholder-box::before {
  content: '✏️  ';
}

/* ===== LEADERSHIP TABLE ===== */
.leadership-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}

.leadership-table th {
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.leadership-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  color: #444;
}

.leadership-table tr:nth-child(even) td {
  background: var(--light-bg);
}

/* ===== STEPS (JOIN PAGE) ===== */
.steps {
  list-style: none;
  counter-reset: step-counter;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.steps li::before {
  content: counter(step-counter);
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 63, 135, 0.3);
}

.steps li > div h3 {
  color: var(--blue);
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.steps li > div p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.65;
}

.join-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--light-bg);
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.join-cta h2 {
  color: var(--blue);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.join-cta p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== INFO BOX ===== */
.info-box {
  background: #e8f0fe;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #1a3a6b;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== CALENDAR PAGE ===== */
.calendar-container {
  max-width: 920px;
  margin: 0 auto;
}

.calendar-embed-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: var(--light-bg);
  padding: 1rem;
}

.calendar-embed {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 6px;
}

/* ===== RESOURCES PAGE ===== */
.resource-section-label {
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 1.25rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
  max-width: 1040px;
  margin: 0 auto 3rem;
}

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--dark);
}

.resource-card:hover {
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.resource-card .res-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.resource-card .res-text h3 {
  color: var(--blue);
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.resource-card .res-text p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
footer {
  background: #0d1b2e;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-brand {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.footer-location {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  opacity: 0.65;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== UTILITY ===== */
.bg-light { background: var(--light-bg); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blue);
    padding: 0.5rem 0 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-width: 1px !important;
  }

  .nav-hamburger { display: block; }

  section { padding: 2.5rem 1.25rem; }

  .hero-static { padding: 1.5rem; height: 200px; }

  .btn-group { flex-direction: column; align-items: center; }

  .btn { width: 220px; text-align: center; }

  .calendar-embed { height: 450px; }

  .steps li { flex-direction: column; }
  .steps li::before { margin-bottom: -0.5rem; }

  footer { padding: 2rem 1.25rem; }
}
