/* blog.css */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

/* BLOG SECTION */
.blog-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.blog-section h2 {
  font-size: 36px;
  color: #007bff;
  margin-bottom: 10px;
}

.blog-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

/* BLOG CONTAINER */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

/* BLOG POST */
.blog-post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-6px);
}

.blog-post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-post h3 {
  font-size: 20px;
  margin: 20px;
  color: #222;
}

.blog-post p {
  font-size: 14px;
  margin: 0 20px 20px 20px;
  color: #555;
}

.blog-post a {
  display: inline-block;
  margin: 0 20px 20px;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.blog-post a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer-bnetfit {
  background: #002244;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 250px;
  margin: 10px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .blog-post img {
    height: 180px;
  }
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.modal-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}
