/* Blogs Section */
.blogs-section {
  padding: 50px 0;
  background-color: #f5f7fa;
  /* Softer background */
  text-align: center;
}

.heading {
  font-size: 36px;
  color: #2c3e50;
  /* Darker, more modern color */
  margin-bottom: 20px;
  /* Slightly reduced spacing */
}

.heading span {
  color: #ff6347;
  /* Eye-catching color for span */
}

/* Updated CSS for Blogs Section */
.blogs-section {
  padding: 50px 0;
  background-color: #f5f7fa;
  text-align: center;
}
.neat-button {
  display: inline-flex; /* Use flexbox for centering */
  justify-content: center; /* Center text horizontally */
  align-items: center; /* Center text vertically */
  width: 150px; /* Set a fixed width for both buttons */
  height: 40px; /* Set a fixed height for both buttons */
  padding: 10px; /* Consistent padding */
  font-size: 16px; /* Consistent font size */
  font-weight: bold; /* Bold text */
  color: white; /* Text color */
  background-color: #2980b9; /* Button background color */
  border: none; /* Remove default border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s ease; /* Smooth background color transition */
}

.neat-button:hover {
  background-color: #ff6347; /* Darker shade on hover */
}

.swiper-container {
  width: 80%; /* Set a specific width for the carousel */
  max-width: 1200px; /* Max width for larger screens */
  margin: 0 auto; /* Center the carousel */
  padding: 20px 0;
  padding-bottom: 80px; /* Add padding for better spacing */
}

.swiper-slide {
  display: flex;
  justify-content: center; /* Center the content */
  align-items: center;
  justify-content: center;
}

.blog-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for transform and shadow */
  width: calc(33.333% - 20px); /* Make it responsive */
  max-width: 350px; /* Set a max width for better control */
  margin: 0 auto; /* Center the card */
}

.blog-card:hover {
  transform: translateY(10px); /* Lift the card slightly */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
}

.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid #ff6347;
}

.blog-content {
  padding: 20px;
  text-align: left;
}

.blog-content h3 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 12px;
}

.blog-content h3:hover {
  color: #2980b9; /* Change color on hover */
}

.blog-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
  text-align: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: #2980b9; /* Change navigation button color */
  top: auto !important;
  bottom: 5px !important; /* Align with pagination */
  font-size: 9px;
}
.swiper-button-prev {
  left: calc(50% - 90px) !important; /* Position to the left of pagination */
}

.swiper-button-next {
  right: calc(50% - 90px) !important;
  /* Position to the right of pagination */
}
.button-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.swiper-pagination {
  bottom: 10px !important; /* Move pagination down */ /* Space between slides and pagination */
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #2980b9;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}
/* Carousel Responsive Styles */
@media (max-width: 768px) {
  .swiper-container {
    width: 100%; /* Full width on smaller screens */
    padding: 10px 0; /* Adjust padding */
  }

  .swiper-slide {
    width: 100%; /* Full width for each slide */
  }

  .blog-card {
    width: 90%; /* Make cards wider on smaller screens */
    margin: 10px auto; /* Center with margin */
  }

  .swiper-button-next,
  .swiper-button-prev {
    font-size: 10px; /* Slightly larger button size for better touch targets */
    width: 30px; /* Set a fixed width for buttons */
    height: 30px; /* Set a fixed height for buttons */
  }
}

@media (max-width: 480px) {
  .blog-card {
    width: 100%; /* Full width for cards on very small screens */
  }

  .swiper-button-next,
  .swiper-button-prev {
    font-size: 7px; /* Smaller button size */
    width: 25px; /* Adjust width for smaller screens */
    height: 25px; /* Adjust height for smaller screens */
  }

  .swiper-button-prev {
    left: 10px !important; /* Position to the left with some margin */
  }

  .swiper-button-next {
    right: 10px !important; /* Position to the right with some margin */
  }

  .swiper-pagination-bullet {
    width: 10px; /* Smaller pagination bullets */
    height: 10px;
  }
}

/* Newsletter Section */
.newsletter {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #ecf2fc;
  /* Softer blue background */
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  /* Deeper shadow for a more prominent effect */
  margin: 30px 0;
  height: 250px;
  /* Increased height */
  position: relative;
}

.newsletter-left {
  text-align: center;
  margin-bottom: auto;
  /* Keeps input at the bottom */
}

.newsletter-left h1 {
  font-size: 26px;
  color: #2c3e50;
  margin-bottom: 15px;
  /* Adjusted spacing */
}

.newsletter-left p {
  font-size: 16px;
  color: #34495e;
  line-height: 1.6;
}

.newsletter-left span {
  font-weight: bold;
  color: #2980b9;
}

.newsletter-right {
  position: absolute;
  bottom: 30px;
  /* Positioned at the bottom */
  width: 100%;
  display: flex;
  justify-content: center;
}

.input-group {
  display: flex;
  max-width: 450px;
  width: 100%;
}

.input-group .input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #bdc3c7;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-group .input:focus {
  border-color: #2980b9;
  background-color: #ecf0f1;
}

.button--submit {
  background-color: #2980b9;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button--submit:hover {
  background-color: #21618c;
  transform: scale(1.03);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blogs-container {
    flex-direction: column;
    align-items: center;
  }

  .blog-card {
    width: 80%;
  }

  .newsletter {
    padding: 30px;
    height: auto;
  }

  .newsletter-right {
    position: static;
    margin-top: 20px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .newsletter-left h1 {
    font-size: 22px;
  }

  .newsletter-left p {
    font-size: 14px;
  }

  .input-group .input {
    font-size: 14px;
    padding: 10px 15px;
  }

  .button--submit {
    font-size: 14px;
    padding: 10px 15px;
  }
}

.toast {
  position: fixed;
  top: 20px; /* Position from the top */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust for centering */
  background-color: #4caf50; /* Green background */
  color: white; /* White text */
  padding: 10px 20px; /* Padding around the text */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
  z-index: 1000; /* Ensure it appears above other elements */
  transition: opacity 0.5s ease; /* Smooth fade out */
  opacity: 1; /* Initial opacity */
}
.toast-success {
  background-color: #4caf50; /* Success color */
}
