/* Blog Layout Styles */
.blog-main .custom-container {
  max-width: 73.625rem;
}

.blogs-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.blog-layout {
  display: flex;
  gap: 1.25rem;
  margin: 0 auto;
  position: relative;
}

/* Sidebar Styles */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 26%;
  /* padding: 2rem 1.25rem; */
}

/* Contact Form Section */
.blog-form .contact-form-container {
  padding: 1.5rem;
  border-top-right-radius: unset;
  border-bottom-left-radius: unset;
  border-radius: 0.5625rem;
  background-color: #fff8f7;
  box-shadow: unset;
}

.blog-form .contact-form-container .form-intro {
  font-size: 0.6475rem;
}

/* .blog-form .contact-form .form-row input[type="text"] {
  width: 70%;
} */
.blogs-section .blog-form .form-group .form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: calc(100% - 2.05rem);
}

.blog-form .form-group input[type="text"] {
  width: calc(100% - 2.05rem);
}

.blog-form .form-row {
  gap: 1.2rem;
}

.contact-form-section h3 {
  color: #004a61;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form-section p {
  color: #004a61;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #004a61;
  font-weight: 500;
  font-size: 0.7rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 0.0625rem solid #ddd;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #004a61;
  box-shadow: 0 0 0 0.125rem rgba(0, 74, 97, 0.1);
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #004a61;
}

.submit-btn {
  background: #ae64bb;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

/* Search Section */
.search-section {
  padding: 0 0.3125rem;
}

.search-container {
  display: flex;
  align-items: center;
  border: 0.125rem solid #004a61;
  border-radius: 1.25rem;
  overflow: hidden;
}

.search-input {
  flex: 1;
  padding: 0.85rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
}

.search-btn {
  background: #004a61;
  color: white;
  border: 0.125rem solid #004a61;
  padding: 0.65rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #003d4f;
}

/* Recent Posts Section */
.recent-posts-section {
  background-color: #e9fff4;
  padding: 1.5rem;
  border-radius: 0.875rem;
}

.recent-posts-section h3 {
  color: #004a61;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.recent-posts-list {
  /* list-style: none; */
  padding: 0;
  margin: 0;
  padding-left: 1.25rem !important;
}

.recent-posts-list li {
  margin-bottom: 0.45rem;
  list-style-type: disc;
  color: #004a61;
}


.recent-posts-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-posts-list a {
  color: #004a61;
  text-decoration: none;
  font-size: 0.6995rem;
  line-height: 1.4;
  transition: color 0.3s ease;
  font-weight: 400;
}

.recent-posts-list a:hover {
  color: #004a61;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-btn {
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 0.3125rem;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.why-btn {
  background: #004a61;
  color: white;
}

.why-btn:hover {
  background-color: #f8f9fa;
  color: #004a61;
  border: 0.0938rem solid #004a61;
}

.demo-btn {
  background-color: #ae64bb;
  color: white;
}

.demo-btn:hover {
  background-color: #f8f9fa;
  color: #ae64bb;
  border: 0.0938rem solid #ae64bb;
}

/* Main Content Area */
.blog-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 74%;
}

.blog-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Blog Post Styles */
.blog-post {
  display: flex;
  background-color: #e9fff4;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: center;
}

/* .blog-post:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 0.75rem rgba(0, 0, 0, 0.15);
} */

.blog-post-image {
  overflow: hidden;
  border-bottom-left-radius: 0.75rem;
  border-top-left-radius: 0.75rem;
  width: 40%;
}

.blog-post-image a {
  display: flex;
}

.blog-post-image img {
  width: 100%;
  max-width: 100%;
  transition: transform 0.3s ease;
}

/* .blog-post:hover .blog-post-image img {
  transform: scale(1.05);
} */

.blog-post-content {
  display: flex;
  padding: 1rem 1.5rem;
  flex-direction: column;
  width: 60%;
}

.blog-post-content h2 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 100%;
  margin-bottom: 0.65rem;
}

.blog-post-content h2 a {
  color: #004a61;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* .blog-post-content h2 a:hover {
  color: #003d4f;
} */

.blog-post-content p {
  color: #004a61;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
  font-weight: 300;
  margin-bottom: 1.3rem;
}

.read-more-btn {
  align-self: flex-start;
  color: #ae64bb;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: 0.0819rem solid #ae64bb;
}

.read-more-btn:hover {
  background-color: #ae64bb;
  color: white;
}
.buttons-blog-post {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.action-buttons a {
  color: #ae64bb;
  padding: 0.392rem 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: 0.0819rem solid #ae64bb;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.action-buttons a:hover {
  background-color: #ae64bb;
  color: white;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .blog-layout {
    gap: 2rem;
  }

  .blog-post {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .blog-layout {
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
  }

  .blog-sidebar {
    width: 70%;
    padding: 1rem;
  }

  .blog-main-content {
    width: 93%;
  }

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

  .blog-post-image img {
    height: 12.5rem;
  }

  .read-more-btn {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .blogs-section {
    padding: 2rem 0;
  }

  .contact-form-section,
  .search-section,
  .recent-posts-section {
    padding: 1rem;
  }

  .blog-post {
    padding: 1rem;
  }

  .blog-post-content h2 {
    font-size: 1.1rem;
  }
}

/* Banner Styles */
.mindcare-banner-background-blog {
  background-image: unset;
  height: unset;
  padding: 3.75rem 0;
  background: linear-gradient(86deg, #003545 48.33%, #136683 100%);
}

.mindcare-banner-background-blog .mindcare-all-banner {
  flex-direction: column;
  text-align: center;
}

.mindcare-banner-background-blog .mindcare-all-banner .mindecare-column {
  width: 100%;
}

.mindcare-banner-background-blog
  .mindcare-all-banner
  .mindecare-column
  .mindcare-banner-heading {
  max-width: 55rem;
}

.mindcare-banner-background-blog
  .mindcare-all-banner
  .mindecare-column
  .mindcare-banner-heading
  p {
  padding: 1.4375rem 0 2.75rem;
}

/* Clean Professional Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: transparent;
  color: #004a61;
  border: none;
}

.pagination a:hover {
  color: #004a61;
  background: transparent;
}

.pagination .active {
  background: #ae64bb;
  color: white;
  border-radius: 50%;
  font-weight: 600;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.pagination .dots {
  background: transparent;
  border: none;
  color: #004a61;
  font-weight: 500;
  min-width: auto;
  padding: 0 0.25rem;
}

.pagination .disabled {
  background: transparent;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .disabled:hover {
  background: transparent;
  color: #9ca3af;
  transform: none;
}

/* Arrow buttons */
#paginationContainer {
  display: flex;
  align-items: center;
}

.pagination .arrow-btn {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 2.75rem;
  background: transparent;
  color: #004a61;
  border: none;
  position: relative;
}

.pagination .arrow-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 0.75rem solid #004a61;
  border-top: 0.5625rem solid transparent;
  border-bottom: 0.5625rem solid transparent;
}

/* Previous arrow (left-pointing) */
.pagination .prev-arrow::before {
  border-left: none;
  border-right: 0.75rem solid #004a61;
  border-top: 0.5625rem solid transparent;
  border-bottom: 0.5625rem solid transparent;
}

.pagination .arrow-btn:hover {
  background: transparent;
  color: #004a61;
}

.pagination .arrow-btn.disabled {
  background: transparent;
  color: #9ca3af;
}

.pagination .arrow-btn.disabled::before {
  border-left-color: #9ca3af;
}

.pagination .prev-arrow.disabled::before {
  border-left-color: transparent;
  border-right-color: #9ca3af;
}
