/* 1) FONT + COLOR VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --site-max: 1200px;    /* header’s max‑width */
  --site-gutter: 2rem;   /* header’s left/right padding */

  /* BACKGROUNDS & SURFACES */
  --clr-bg:        #fff; /* page background */
  --clr-surface:   #cfcfd0; /* cards, nav, footer */

  /* TEXT */
  --clr-text:      #1C1C1E; /* primary text */
  --clr-text-muted:#2C2C2E; /* secondary text */

  /* ACCENTS */
  --clr-accent:    #FF9F0A; /* primary buttons/links */
  --clr-secondary: #dcb003; /* secondary buttons/hover/highlights */

  /* LAYOUT */
  --gap:           1.5rem;
  --radius:        6px;
}

html {
  /* make all in‑page jumps leave space for the header */
  scroll-padding-top: 4.5rem; /* adjust this to header’s total height */
}

/* 2) RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3 {
  font-weight: 700;
  color: var(--clr-text);
}
p {
  margin-bottom: 1rem;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}

.section-list {
  counter-reset: item;
  list-style: none;
  margin-left: 3;
  padding-left: 2rem;
}
.section-list li {
  counter-increment: item;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 2rem;
}
.section-list li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
}

/* 3) HEADER & NAV */
.site-header {
  background: var(--clr-surface);
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  color: #fff;         
}
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff; 
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text);
  color: #e9c42d;          /* dark yellow logo text */
}
.nav-links {
  display: flex;
  gap: var(--gap);
  color: #fff; 
}
.nav-links a {
  color: var(--clr-text);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  color: #fff; 
}
.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255,255,255,0.15);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 4) HERO */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--clr-surface);

  /* make all text inside white by default */
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--clr-text-muted);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.deadline {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* 5) BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #e65c00;
}
.btn-secondary {
  background: var(--clr-secondary);
  color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #e6b800;
}

/* 6) FEATURES GRID */
.features {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: var(--gap);
  padding: 4rem 2rem;
}
.section-heading {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--clr-text);
}
.feature {
  background: var(--clr-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}
.feature h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.feature p {
  margin-bottom: 1.5rem;
  color: var(--clr-text-muted);
}

/* 7) CTA SECTION */
.cta {
  background: var(--clr-secondary);
  color: #fff;
  text-align: center;
  padding: 3rem 2rem;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
}

/* 8) FOOTER */
.site-footer {
  background: var(--clr-surface);
  color: var(--clr-text);
  text-align: center;
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  font-size: 1.5rem;
  color: var(--clr-text);
  transition: color 0.2s;
}
.social-links a:hover,
.social-links a:focus {
  color: var(--clr-accent);
}

/* 9) RESPONSIVE NAV & TYPO */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--clr-surface);
    flex-direction: column;
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1rem;
  }
  .nav-links.nav-open {
    transform: translateX(0);
  }
  .features {
    padding: 3rem 1rem;
  }
  .cta {
    padding: 2rem 1rem;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .section-heading {
    font-size: 1.75rem;
  }
}

/* 10) HERO FULL‑BLEED BACKGROUND */
.hero {
  position: relative;
  /* break out of wrapper */
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;

  /* your image here */
  background-image: url('/assets/img/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* padding for vertical spacing */
  padding: 6rem 2rem;
  /* ensure text is readable */
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero h1,
.hero p,
.hero .btn {
  color: #fff;
}

/* Optional: Dark overlay on image for better contrast */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}


/* —— Section Variants & Headings —— */
.section {
  padding: 4rem 2rem;
}
.section-light {
  background: var(--clr-bg);
}
.section-dark {
  background: var(--clr-surface);
}

/* Centered section heading + subtitle */
.section-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-subheading {
  display: block;
  text-align: center;
  font-style: italic;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}


/* —— Schedule Section Enhancements —— */

/* 1) Intro paragraph styling */
.schedule-intro p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--clr-text-muted);
}

/* 2) Phases grid (Before / During / After) */
.schedule-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: var(--gap);
  margin-bottom: 2rem;
}
.phase {
  background: var(--clr-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.phase h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--clr-text);
}
.phase ul {
  list-style: disc inside;
  color: var(--clr-text);
}
.phase small {
  display: block;
  margin-top: 0.25rem;
  color: var(--clr-text-muted);
}

.schedule-phases .phase ul li {
  margin-bottom: 1rem;    /* or whatever spacing you prefer */
}

/* 3) Sessions table styling */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}
.schedule-table th,
.schedule-table td {
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
  text-align: left;
}
.schedule-table th {
  background: var(#cfcfd0);
  font-weight: 600;
}
.schedule-table tbody tr:nth-of-type(odd) {
  background: rgba(0,0,0,0.02);
}

.schedule-table caption {
  caption-side: bottom;   /* keep it below the rows */
  margin-top: 1rem;       /* add space between the table and caption */
}


.organizer {
  text-align: center;
  max-width: 240px;
}

.organizer img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--clr-secondary);
}

.organizer h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.25rem;
  color: var(--clr-text);
}

.organizer p {
  margin: 0.25rem 0;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* A reusable wrapper class */
.site-container {
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

/* Individually set each section’s background */
#about {
  padding: 4rem 2rem;
  background:  #ffffff;
}

#participate {
  padding: 4rem 2rem;
  background:  #EFEFEF;
}
#schedule {
  padding: 4rem 2rem;
  background: #ffffff;
}
#organizers {
  padding: 4rem 2rem;
  background: #EFEFEF;          /* custom light gray */
}

/* —— KEEP this flex‑based layout —— */
#organizers .organizers-grid {
  display: flex;
  flex-wrap: wrap;
  --card-width: 350px;
  max-width: calc(3 * var(--card-width) + 2 * var(--gap));
  margin: 0 auto;
  justify-content: center;
  gap: 4rem;
}

#organizers .organizer {
  flex: 0 0 var(--card-width);
  text-align: center;
}

/* 1) Full‑width Call section background + padded content */
#participate {
  background: #EFEFEF;
  padding: 4rem 2rem;
}

/* 2) Constrain inner content exactly like your other sections */
#participate > .site-container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* 3) Header centering */
#participate .call-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* 4) Grid for cards */
#participate .call-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: var(--gap);
  margin-bottom: 2rem;
  justify-items: center;
}

/* 5) Base card style */
.call-card {
  background: var(--clr-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.call-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 6) CTA override specifically inside #participate */
#participate .call-card--cta {
  background: #cfcfd0;
  max-width: 300px;
  color: #000000;
  text-align: center;
}
#participate .call-card--cta .btn {
  margin-top: 1rem;
}
#participate .call-card--cta .call-card-icon {
  font-size: 3rem;
}


/* if you want the organizer links a little smaller or inline */
.organizer-links {
  margin-top: 0.5rem;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.organizer-links a {
  font-size: 0.9rem;     /* slightly smaller text */
  color: var(--clr-text-muted);
  transition: color 0.2s;
}
.organizer-links a:hover {
  color: var(--clr-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}