/* Blog Posts Grid and Post Content Styles */
.sobe-blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}
.sobe-blog-post-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 200px;
}
.sobe-blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.sobe-blog-post-image {
  width: 100%;
  height: auto;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f8fa;
  overflow: hidden;
}
.sobe-blog-post-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.sobe-blog-post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sobe-blog-post-excerpt-content {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 10px;
  flex: 1;
}
.sobe-blog-post-excerpt-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sobe-blog-post-excerpt-content h1,
.sobe-blog-post-excerpt-content h2,
.sobe-blog-post-excerpt-content h3,
.sobe-blog-post-excerpt-content h4 {
  color: #1e293b;
  margin: 18px 0 10px 0;
  font-weight: 700;
}
.sobe-blog-post-excerpt-content ul,
.sobe-blog-post-excerpt-content ol {
  margin: 10px 0 10px 20px;
  padding-left: 20px;
}
.sobe-blog-post-excerpt-content li {
  margin-bottom: 6px;
}
.sobe-blog-post-excerpt-content p {
  margin-bottom: 10px;
}
.sobe-blog-post-excerpt-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 18px 0;
}
@media (max-width: 992px) {
  .sobe-blog-posts {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  .sobe-blog-post-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .sobe-blog-post-image {
    height: 160px;
  }
}
@media (max-width: 768px) {
  .sobe-blog-posts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sobe-blog-post-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .sobe-blog-post-image {
    height: 60px;
  }
  .sobe-blog-post-excerpt-content {
    font-size: 14px;
  }
  .sobe-blog-featured-post {
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .sobe-blog-featured-image {
    flex: 0 0 50%;
    background-color: #f5f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a94a6;
    overflow: hidden;
    min-height: unset;
    height: auto;
  }
  .sobe-blog-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
  .sobe-blog-featured-content {
    padding: 18px 14px 18px 14px;
    margin-bottom: 200px;
  }
  .sobe-blog-featured-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .sobe-blog-featured-excerpt {
    font-size: 0.97rem;
    margin-bottom: 14px;
  }
  .sobe-blog-featured-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .sobe-blog-post-meta {
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 12px;
  }
  .sobe-blog-read-more {
    font-size: 0.97rem;
    padding: 8px 18px;
    margin-top: 10px;
  }
}
@media (max-width: 576px) {
  .sobe-blog-search-bar {
    padding: 0 2vw;
    border-radius: 18px;
    margin-bottom: 18px;
  }
  .sobe-blog-search-bar form {
    flex-direction: row;
    align-items: center;
  }
  .sobe-blog-search-bar input[type="text"] {
    font-size: 0.97rem;
    height: 38px;
    padding: 8px 66px 8px 12px;
    border-radius: 18px 0 0 18px;
  }
  .sobe-blog-search-bar input[type="text"]::placeholder {
    font-size: 0.97rem;
    padding: 8px 66px 8px 12px;
  }
  .sobe-blog-search-bar button.sobe-blog-search-button {
    height: 38px;
    min-width: 38px;
    font-size: 1.1rem;
    padding-right: 0;
    border-radius: 0 18px 18px 0;
  }
}

/* --- Blog Header & Search Bar Modern Styles --- */
.sobe-blog-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 32px;
  padding: 0 0 18px 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
  gap: 24px;
}
.sobe-blog-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 auto 32px auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.10), 0 1.5px 8px rgba(30, 41, 59, 0.08);
  padding: 0 16px;
  box-sizing: border-box;
}
.sobe-blog-search-bar form {
  display: flex;
  align-items: center;
  width: 100%;
}
.sobe-blog-search-bar input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 16px 12px 16px 24px;
  font-size: 1.1rem;
  border-radius: 30px 0 0 30px;
  height: 54px;
  box-sizing: border-box;
  color: #1e293b;
  display: flex;
  align-items: center;
}
.sobe-blog-search-bar input[type="text"]::placeholder {
  color: #8a94a6;
  opacity: 1;
  font-size: 1.1rem;
  vertical-align: middle;
  padding: 16px 12px 16px 24px;
}
.sobe-blog-search-bar button.sobe-blog-search-button {
  border: none;
  background: none;
  color: #4a6cf7;
  height: 54px;
  min-width: 54px;
  border-radius: 0 30px 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding-right: 60px;
}
.sobe-blog-search-bar button.sobe-blog-search-button:hover,
.sobe-blog-search-bar button.sobe-blog-search-button:focus {
  background: #f5f8fa;
  color: #3451d1;
}
@media (max-width: 1024px) {
  .sobe-blog-search-bar {
    max-width: none;
    width: 100%;
    padding: 0 8px;
  }
  .sobe-blog-search-bar input[type="text"] {
    font-size: 1rem;
    height: 44px;
    padding: 12px 8px 12px 0;
  }
  .sobe-blog-search-bar button.sobe-blog-search-button {
    height: 44px;
    min-width: 44px;
    font-size: 1.1rem;
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .sobe-blog-header {
    padding: 0 12px 18px 12px;
  }
  .sobe-blog-search-bar {
    max-width: none;
    width: 100%;
    padding: 0 4px;
  }
}
@media (max-width: 600px) {
  .sobe-blog-search-bar {
    padding: 0 2vw;
    border-radius: 18px;
    margin-bottom: 18px;
  }
  .sobe-blog-search-bar form {
    flex-direction: row;
    align-items: center;
  }
  .sobe-blog-search-bar input[type="text"] {
    font-size: 0.97rem;
    height: 38px;
    padding: 8px 66px 8px 12px;
    border-radius: 18px 0 0 18px;
  }
  .sobe-blog-search-bar input[type="text"]::placeholder {
    font-size: 0.97rem;
    padding: 8px 66px 8px 12px;
  }
  .sobe-blog-search-bar button.sobe-blog-search-button {
    height: 38px;
    min-width: 38px;
    font-size: 1.1rem;
    padding-right: 0;
    border-radius: 0 18px 18px 0;
  }
}

.sobe-blog-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .sobe-blog-container {
    padding: 0 8px;
  }
}
@media (max-width: 400px) {
  .sobe-blog-container {
    padding: 0 4px;
  }
}

/* Responsive Newsletter Section */
@media (max-width: 600px) {
  .sobe-blog-newsletter {
    padding: 18px 6px;
  }
  .sobe-blog-newsletter-form {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
  }
  .sobe-blog-newsletter-form input {
    border-radius: 30px;
    font-size: 1rem;
    margin-bottom: 0;
  }
  .sobe-blog-subscribe-btn {
    border-radius: 30px;
    width: 100%;
    font-size: 1rem;
    padding: 12px 0;
  }
}
@media (max-width: 400px) {
  .sobe-blog-newsletter {
    padding: 12px 2px;
  }
  .sobe-blog-newsletter-form input {
    font-size: 0.97rem;
  }
  .sobe-blog-subscribe-btn {
    font-size: 0.97rem;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .sobe-blog-featured-image {
    min-height: unset;
    height: auto;
  }
}

