/* sizing predictable + kill stray overflow */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-color);
  background: var(--bg-color);
}

/* variables */
:root {
  --bg-color: #ffffff;       /* white */
  --text-color: #000000;     /* black */
  --accent-primary: #E4002B; /* star red */
  --accent-secondary: #41B6E6; /* flag blue */
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --card-shadow: rgba(0, 0, 0, 0.05);

  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h2[id] {
  scroll-margin-top: 130px; 
}
/* global background */
.background {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: -2;
}

/* logo sizing  */
.site-logo {
  height: 60px;
  width: auto;
  display: block;
}

/* sticky nav */
.site-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-color);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;

  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
}
.nav-links {
  margin-left: auto;
}
.nav-links a {
  color: var(--text-color);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--accent-primary);
}

/*  banner & carousel */
.banner {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.banner-container {
  position: relative;
}
#carousel-image {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: url('/watermark.svg') center/contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}
.banner-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}
.banner-info h2 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.banner-cta {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.banner-cta:hover {
  background-color: var(--accent-primary);
}

.nav-links .banner-cta {
  color: #fff;
  font-weight: 600;
}


.site-nav .nav-links .banner-cta:hover {
  color: #fff;
}

/* temporarily hide the banner nav arrows */
.prev-btn,
.next-btn {
  display: none !important;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  font-size: 1.8rem;
  padding: 0.5rem;
  cursor: pointer;
}
.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

/* DESCRIPTION BOX */
.description {
  text-align: center;
  margin: 2rem auto;
  max-width: 900px;
}
.description p {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--card-shadow);
  padding: 1.5rem;
}




/* MAP */
.map-container {
  margin: 1rem auto;
  max-width: 1125px;
  box-shadow: 0 2px 8px var(--card-shadow);
  background-color: #eefcf8;
}
.map-title {
  font-size: 1.6rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 0rem;
}


/* style the map “card” inside Featured Events */
.featured-events .featured-map {
  margin: 2rem auto 0;
  width: 100%;
  max-width: 1125px;
  background: #eefcf8;              
  box-shadow: 0 2px 8px var(--card-shadow);
  border-radius: 8px;
  overflow: hidden;
}
.featured-events .featured-map iframe {
  width: 100%;
  height: 580px;
  border: 1px solid var(--card-border);
  display: block;
}



/* Featured Events section between map & events */
.featured-events {
  padding: 3rem 2rem;
  text-align: center;
  background: #eefcf8; 
}


.featured-events h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-color);
}

.featured-events p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-color);
}


/* EVENTS GRID */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

/* EVENT CARDS */
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.event-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-content h3 {
  margin: 0 0 0.5rem;
  color: var(--text-color);
  font-size: 1.2rem;
}
.rsvp {
  margin-top: auto;
  text-align: right;
}
.rsvp a {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}
.rsvp a:hover {
  background-color: var(--accent-secondary);
}



/* “About” section             */

.about-section {
  padding: 4rem 2rem;
  text-align: center;
    background: #eefcf8; 
}
.about-section .about-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.about-section .about-title .accent-primary {
  color: var(--accent-primary);
}
.about-section .about-subtitle {
  max-width: 900px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.5;
}
.about-cards {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--card-shadow);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.about-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.about-card.code .card-icon {
  background: rgba(228, 0, 43, 0.1);
  color: var(--accent-primary);
}
.about-card.community .card-icon {
  background: rgba(65, 182, 230, 0.1);
  color: var(--accent-secondary);
}
.about-card.growth .card-icon {
  background: rgba(228, 0, 43, 0.1);
  color: var(--accent-primary);
}
.about-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text-color);
}
.about-card p {
  margin: 0;
  flex-grow: 1;
  color: var(--text-color);
  line-height: 1.4;
}

/* mobile tweak */
@media (max-width: 650px) {
  .about-section {
    padding: 2rem 1rem;
  }
  .about-section .about-title {
    font-size: 2rem;
  }
  .about-section .about-subtitle {
    font-size: 1rem;
  }
}



/* COMMITTEE */
.committee-title {
  text-align: center;
  color: var(--text-color);
  font-size: 2rem;
  margin: 3rem auto 1rem;
}
.committee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 1rem auto 3rem;
}
.member-card {
  text-align: center;
}
.member-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}
.member-card .name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}
.member-card .title {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.member-card .linkedin svg {
  width: 24px;
  height: 24px;
  fill: var(--text-color);
  transition: fill 0.2s;
}
.member-card .linkedin:hover svg {
  fill: var(--accent-primary);
}


/*  Sponsors & Partners Section                                                      */

.sponsors-section {
  width: 100%;
  background: #eefcf8;
  padding: 4rem 2rem;
  text-align: center;
}
.sponsors-title {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}
.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}





/* FOOTER */
.site-footer {
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid var(--card-border);
}



/* 8. mobile nav wrap & button scaling */
@media (max-width: 650px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
  .nav-links {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
  }
  .nav-links a {
    margin: 0 0.75rem;
    font-size: 0.9rem;
  }
  .banner-info { max-width: 80%; }
  .description p { padding: 1rem; }
  .events { grid-template-columns: 1fr; }
  .member-card img { width: 120px; height: 120px; }
}


