:root {
  --primary: #0052cc;
  --light: #f4f4f4;
  --dark: #333;
  --white: #fff;
  --radius: 5px;
  --transition: 0.3s ease-in-out;
}
* {
  margin:0; padding:0; box-sizing:border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}
.container {
  width: 90%; max-width: 1200px; margin: 0 auto;
}

/* HEADER & NAV */
.header {
  background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 100;
}
.header__container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.header__logo img { height: 50px; }
.nav { display: flex; }
.nav__list { list-style: none; display: flex; gap: 1.5rem; }
.nav__list a {
  text-decoration: none; color: var(--dark);
  font-weight: 500; transition: color var(--transition);
}
.nav__list a:hover { color: var(--primary); }
.nav-toggle {
  display: none; font-size: 2rem; background: none;
  border: none; cursor: pointer;
}

/* ensure the slider container has a defined height */
.slider {
  position: relative;
  overflow: hidden;
  height: 75vh; /* or whatever you prefer */
}

/* ─── SLIDER ─────────────────────────────────────────────────────────────── */
.slider {
  position: relative;
  overflow: hidden;
  height: 50vh;
}

/* 1) row of slides, width = 4 × 100% */
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

/* 2) each slide = 100% of slider */
.slide {
  flex: 0 0 100%;
  height: 100%;
}

/* make the img cover its container */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 3) controls on top of slides */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}
.slider-controls button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s;
}
.slider-controls button:hover {
  background: rgba(0,0,0,0.7);
}


/* SECTIONS */
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center; color: var(--primary);
  font-size: 2rem; margin-bottom: 2rem;
}

/* CARDS / PROGRAMS */
.grid { display: grid; gap: 2rem; }
.grid--4 { grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.card img {
  width: 100%; height: 180px; object-fit: cover;
}
.card h3 {
  padding: 1rem; font-size: 1.2rem;
}
.card p {
  padding: 0 1rem 1rem; color: #555;
}

/* FORMS */
.form {
  max-width: 600px; margin: 0 auto;
  background: var(--light); padding: 2rem;
  border-radius: var(--radius);
}
.form__group { margin-bottom: 1rem; }
.form__group label {
  display: block; margin-bottom: 0.5rem; font-weight: 500;
}
.form__group input,
.form__group textarea {
  width: 100%; padding: 0.75rem;
  border: 1px solid #ccc; border-radius: var(--radius);
}

/* FOOTER & SOCIAL */
.footer {
  background: var(--dark); color: var(--white);
  text-align: center; padding: 2rem 0;
}
.footer p { margin-bottom: 1rem; }
.social a {
  color: var(--white); margin: 0 0.5rem;
  font-size: 1.2rem; transition: color var(--transition);
}
.social a:hover { color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    display: none; position: absolute; top:100%; right:0;
    background: var(--white); flex-direction: column; width:200px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
