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

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

header {
  background: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
}

.logo {
  font-weight: 700;
  font-size: 26px;
  color: #0D3B66; /* royal blue */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

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

nav a:hover {
  color: #EF476F; /* coral pink */
}

.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, #0D3B66, #3D5A80);
  color: white;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 22px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #EF476F;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: background 0.3s;
}

.btn:hover {
  background: #d93b62;
}

.featured {
  padding: 70px 20px;
  max-width: 1200px;
  margin: auto;
}

.featured h2 {
  text-align: center;
  font-size: 38px;
  color: #0D3B66;
  margin-bottom: 50px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.card {
  background: #ffffff;
  border: 1px solid #eee;
  padding: 20px;
  width: 300px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #0D3B66;
}

.card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.card-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #EF476F;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.card-btn:hover {
  background: #d93b62;
}

.cta {
  background: #fef5f7;
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #0D3B66;
}

.cta p {
  font-size: 20px;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn.secondary {
  background: #0D3B66;
}

.btn.secondary:hover {
  background: #092a4c;
}

footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  background: #fafafa;
  color: #999;
  margin-top: 50px;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

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

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

  .cards {
    flex-direction: column;
    align-items: center;
  }

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

/* Target only blog.html images */
#blog-page .blog-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

#blog-page .blog-card {
  width: 250px; /* Smaller fixed width */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

#blog-page .blog-card img {
  width: 100%; /* Fit inside the card */
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

#blog-page .blog-card:hover {
  transform: scale(1.02);
}

#blog-page .blog-card:hover img {
  transform: scale(1.05);
}

/* === Elegant Blog Post Page === */
.blog-post-page {
  background-color: #f9f9f9;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.7;
  padding: 0;
  margin: 0;
}

.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  border-radius: 12px;
}

.post-header {
  text-align: center;
}

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

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: #222;
}

.post-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 32px;
}

.post-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}


