/* Grid Layout */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Blog Card Styling */
.blog-card {
  background: #fff;
  border-radius: 12px;

  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-size: 1.8rem;
  color: #152c47;
  margin-bottom: 15px;
  font-weight: 500;
}

.blog-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  text-decoration: none;
  color: #be1823;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.read-more:hover {
  color: #d3d800;
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-title {
    font-size: 2.5rem;
  }

  .blog-description {
    font-size: 1rem;
  }
}

.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.section .text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  text-align: left;
}

.section .text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #152c47;
}

.section .text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 20px;
}

.section .text a {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  background-color: #be1823;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.section .text a:hover {
  background-color: #9e151e;
}

.section .image {
  flex: 1;
  max-width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section .image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.section .image img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .section {
    flex-direction: column;
    text-align: center;
  }

  .section .text {
    padding: 10px;
  }

  .section .image {
    margin-top: 20px;
  }
}