/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #2c3e50;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-logo {
  color: white;
  font-size: 1.5em;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: rgb(251, 249, 249);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  text-align: center;
  background-image: url('assets/mainPageBackground.png'); /* path to your image */
  background-size: cover;       /* scale image to cover the entire header */
  background-position: center;  /* center the image */
  background-repeat: no-repeat;
  padding: 80px 20px 50px;
}

.hero h1 {
  font-size: 2.5em;
  color: #2c3e50;
}

.hero p {
  margin-top: 10px;
  font-size: 1.2em;
}

/* Sections */
.section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #34495e;
}

.section ul {
  list-style: none;
  padding-left: 0;
}

.section ul li {
  margin: 10px 0;
  font-size: 1.1em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card h3 {
  color: #2c3e50;
  margin: 10px 0 5px;
}

/* CTA */
.cta {
  text-align: center;
  background: #d4fc79;
  background: linear-gradient(to right, #96e6a1, #d4fc79);
  padding: 50px 20px;
  margin-top: 40px;
}

.cta h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.cta p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.cta-button {
  padding: 12px 24px;
  font-size: 1em;
  background: #2ecc71;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

.cta-button:hover {
  background: #27ae60;
}
.card-button {
  text-decoration: none;
  color: #2c3e50;
  text-align: center;
  transition: all 0.3s ease;
}

.card-button:hover {
  transform: scale(1.03);
}

.card-button h3 {
  margin-top: 10px;
}

/* Card Grid Responsiveness Fix */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Section Titles */
.section h2 {
  margin-bottom: 15px;
  font-size: 1.8em;
  text-align: center;
  color: #2c3e50;
}

/* CTA Button */
.cta-button {
  padding: 12px 24px;
  background: #27ae60;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.cta-button:hover {
  background: #219150;
}