/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-family: Arial, sans-serif;
  background: #fff;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  background: #07456f;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 4.5rem;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 1.8rem;
  align-items: center;
}

.nav-links a,
.dropbtn {
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 1rem;
  position: relative;
}

.nav-links a:hover,
.dropbtn:hover {
  color: red;
}

.arrow {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 20rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 0.4rem;
}
.dropdown-content li {
  list-style: none;
}
.dropdown-content a {
  display: block;
  padding: 1rem 1.5rem;
  color: #07456f;
  text-decoration: none;
  font-size: 1.6rem;
}
.dropdown-content a:hover {
  background-color: #f0f0f0;
  color: red;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* SEARCH BAR */
.search-container {
  position: relative;
}
.search-icon {
  font-size: 2rem;
  color: white;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
#searchInput {
  width: 0;
  opacity: 0;
  transition: 0.3s ease;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 0.4rem;
  font-size: 1.4rem;
}
.search-container:hover #searchInput {
  width: 20rem;
  opacity: 1;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(to right, #07456f, #126e82);
  color: white;
  border-radius: 1rem;
  margin: 4rem 2rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.8rem;
}

/* BLOG SECTION */
.blogs {
  padding: 4rem 2rem;
  text-align: center;
}
.blogs h2 {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: #07456f;
}
.blog-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.blog-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  text-decoration: none;
  color: #07456f;
  width: 30rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-0.4rem);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.blog-content {
  padding: 1.5rem;
}
.blog-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.blog-content p {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.learn-more {
  color: red;
  font-weight: bold;
}
.blog-date {
  font-size: 1.2rem;
  color: #555;
}

/* FOOTER */
.footer {
  background-color: #07456f;
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: 1.4rem;
  margin-top: 4rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    font-size: 1.4rem;
    gap: 1rem;
  }
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: #fff;
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }
  .search-container:hover #searchInput {
    width: 14rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.4rem;
  }
  .card {
    font-size: 1.4rem;
    padding: 1.4rem 2rem;
  }
  .blog-cards {
    flex-direction: column;
    align-items: center;
  }
}
