/* GENERAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* HEADER & LOGO */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #004080;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 80px;
  max-width: 100%;
}

/* NAVIGATION */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
}

/* HAMBURGER MENU */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #004080;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    padding: 15px 0;
  }

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

  .menu-toggle {
    display: block;
  }

  .nav-links a {
    padding: 10px;
    font-size: 20px;
    display: block;
  }

  .logo-home {
    max-width: 180px;
  }

  .staff-card img {
    width: 100px;
    height: 100px;
  }

  .staff h2 {
    font-size: 1.8rem;
  }

  .preview-cards .card {
    padding: 20px 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* HOME HERO */
.home-hero {
  text-align: center;
  padding: 80px 20px;
}

.logo-home {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.home-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* HERO BUTTONS */
.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 0.8rem 1.5rem;
  background: #004080;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.hero-buttons .btn:hover {
  background: #0066cc;
}

/* PAGE CONTENT */
.page-content,
.vision,
.programs {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.vision h2,
.programs h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 20px;
}

.vision p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}

.programs h3 {
  color: #004080;
  margin-top: 25px;
}

.programs ul {
  list-style: none;
  padding: 0;
}

.programs ul li {
  background: #fff;
  padding: 10px 15px;
  margin: 6px 0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* STAFF SECTION */
.staff {
  background: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}

.staff h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.staff-grid {
  display: block; /* fallback */
  margin: auto;
}

@supports (display: grid) {
  .staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
  }
}

.staff-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.staff-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.staff-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.staff-card p a {
  color: #004080;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin: 5px 0;
}

.staff-card p a:hover {
  text-decoration: underline;
}

.staff-card i {
  font-size: 1rem;
}

/* PREVIEW CARDS */
.preview-cards {
  padding: 60px 20px;
  background: #e6f0ff;
  text-align: center;
}

.preview-cards .container {
  display: block; /* fallback */
  margin: auto;
}

@supports (display: grid) {
  .preview-cards .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
  }
}

.preview-cards .card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preview-cards .card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.preview-cards .card p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.preview-cards .card .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* HOME PAGE BACKGROUND */
body.homepage {
  background: url("images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

body.homepage .logo img {
  max-width: 300px;
  height: auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* SPONSORS SECTION */
.sponsor-grid {
  display: block; /* fallback for older browsers */
  margin: 20px auto;
  text-align: center;
}

@supports (display: grid) {
  .sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-items: center; /* center all cards */
  }
}

.sponsor-card {
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.sponsor-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 700px;
  text-align: left;
}

.sponsor-list li {
  background: #f4f4f4;
  margin: 10px 0;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* BUTTONS */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #004080;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.btn:hover {
  background: #0066cc;
}

/* FOOTER */
footer {
  background: #003366;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}
