body {
  background: #fff;
  margin: 0;
  padding: 0;
  color: #003552;
}

.post-card h2 {
  font-size: 2.5rem;
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: 900;
  color: #003552;
}
.post-card h2 a:link,
.post-card h2 a:visited,
.post-card h2 a:active {
  text-decoration: none;
  color: #003552;
}

/* ===== BLOG HERO SECTION ===== */
.blog-hero {
  background: url("../images/background.png") no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 70px; /* prevents overlap with fixed header */
}

/* Optional dark overlay for readability */
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
}

.blog-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 1000;
  color: #fff;
}

.container-blog {
  display: flex;
  width: 90%;
  max-width: 1200px;
  margin: 0px auto;
  gap: 40px;
}

.main-content {
  flex: 3;
  margin-top: 30px;
  margin-bottom: 40px;
  border-right: 1px solid #d9d9d9;
  padding-right: 30px;
}

.sidebar {
  max-width: 220px;
  margin-top: 70px;
  flex: 1;
}

.post-card {
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 20px;
  margin-top: 0px;
  padding-bottom: 20px;
}

.post-card img {
  width: 100%;
  border-radius: 8px;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 10px;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 5px;
}

.meta {
  color: #003552;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.post-body {
  line-height: 1.7;
}

.post-body p {
  font-weight: 600;
}

.sidebar h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2rem;
  width: fit-content;
  text-transform: uppercase;
  margin-top: 30px;
}

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

.sidebar ul li {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9d9d9;
}

.sidebar a {
  text-decoration: none;
  color: #003552;
}

.sidebar a:hover {
  cursor: pointer;
}

.search-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 220px;
  gap: 10px;
  font-family: "Open Sans", sans-serif;
}

/* Input field */
.search-box input[type="text"] {
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #003552;
  background-color: #ffffff;
}

.search-box input[type="text"]::placeholder {
  color: #003552;
  opacity: 0.7;
}

.search-box input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #00a5ff;
}

/* Button */
.search-box button {
  border: none;
  display: inline-block;
  padding: 12px 25px;
  border-radius: 20px 0px 20px 0px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #00a5ff;
  color: #fff;
}

.search-box button:hover {
  opacity: 75%;
  cursor: pointer;
}

.read-more {
  color: #00a5ff;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 1.8rem;
  }

  .post-card h2 {
    font-size: 1.3rem;
  }

  .sidebar {
    max-width: 150px;
  }

  .search-box {
    width: 150px;
  }

  .container-blog {
    gap: 20px;
  }

  .main-content {
    padding-right: 10px;
  }
}

@media (max-width: 460px) {
  .container-blog {
    flex-direction: column-reverse;
  }

  .sidebar {
    max-width: 90%;
  }

  .search-box {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .main-content {
    padding-right: 0px;
    border-right: none;
    margin-top: 0px;
  }
}
