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

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

/* HEADER – sticky top */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  padding: 15px 40px;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #0066ff;
}

/* NAV LINKS */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #0066ff;
}

/* HERO SECTION */
.hero {
  height: 55vh;
  padding: 80px 40px;
  background: linear-gradient(135deg, #0047ab, #007bff);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  max-width: 600px;
  font-size: 18px;
  margin-bottom: 20px;
}

.cta {
  background: white;
  padding: 12px 22px;
  border-radius: 6px;
  color: #0047ab;
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
  transition: 0.3s;
}

.cta:hover {
  background: #e0e0e0;
}

/* SECTIONS */
.section {
  padding: 60px 40px;
}

.alt {
  background: #eef4ff;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #0047ab;
}

/* CARDS / GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card, .blog-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 3px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 18px rgba(0,0,0,0.15);
}

/* BLOG LIST */
.blog-list {
  display: grid;
  gap: 20px;
}

/* FOOTER */
footer {
  text-align: center;
  background: #111;
  padding: 20px;
  margin-top: 40px;
  color: white;
}

/* RESPONSIVE: Mobile & Tablet */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }

  .hero {
    height: auto;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .cta {
    padding: 10px 16px;
    font-size: 16px;
  }

  .section {
    padding: 40px 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card, .blog-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}
