/* ========================================
   Blog Archive Page Styles
   ======================================== */

/* Breadcrumb */
.blog-breadcrumb {
    background-color: #fff;
    padding: 30px 0;
    font-size: 16px;
}

.blog-breadcrumb a {
    color: #5B5B5B;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: #235582;
}
.blog-breadcrumb strong {
    color: #235582;
}


/* Blog Archive Header */
.blog-archive__header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-archive__title {
    font-size: 56px;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    text-align: left;
}

/* Featured Blog Section */
.featured-blog-section {
    display: grid;
    grid-template-columns: 1fr 50%;
    gap: 2rem;
    margin-bottom: 80px;
}

.related-btn {
  font-size: 16px;
  margin-top: 0px;
  font-weight: 600;
  color: #000;
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-blog-slider {
    position: relative;
    background: url('/wp-content/themes/synergy/assets/images/blogs.png') no-repeat center;
    border-radius: 12px;
    padding: 3rem 5rem;
    color: #000;
    overflow: hidden;
    background-size: cover;
    text-align: center;
}

.featured-blog__label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.featured-blog-wrapper {
    position: relative;
}

.featured-blog-slide {
    display: none;
}

.featured-blog-slide.active {
    display: block;
}

.featured-blog__category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-blog__title {
    font-size: 32px;
    font-weight: 600;
    line-height: 44px;
    margin-bottom: 20px;
    color: #000;
}

.featured-blog__excerpt {
    font-size: 1rem;
    line-height: 26px;
    font-weight: 400;
    color: #000;
    margin-bottom: 60px;
    opacity: 0.95;
}

.featured-blog__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f7cc59;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.featured-blog__btn:hover {
    background: #ffd670;
    transform: translateX(4px);
}

/* Slider Navigation */
.featured-blog-prev,
.featured-blog-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.featured-blog-prev:hover,
.featured-blog-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.featured-blog-prev {
    left: 1rem;
}

.featured-blog-next {
    right: 1rem;
}

/* Latest Articles (Right Side) */
.latest-articles {
    display: flex;
    flex-direction: column;
}

.latest-article-item {
    display: flex;
    gap: 28px;
    padding: 2rem 0px;
    background: #ffffff;
    border-bottom: 1px solid #E6E6E8;
    transition: all 0.3s ease;
    align-items: center;
}
.latest-article-item:last-child {
    border-bottom: 0px;
}


.latest-article__thumb {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
}

.latest-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-article__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-article__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.latest-article__title a {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 600;
    font-size: 20px;
    line-height: 34px;
}

.latest-article__title a:hover {
    color: #000;
}

.latest-article__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f7cc59;
    text-decoration: none;
    margin-top: auto;
}

/* Newsletter Section */
.blog-newsletter-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
    background: #879CCF;
    border-radius: 20px;
    margin-bottom: 80px;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}
.blog-newsletter-section:after,
.blog-newsletter-section:before {
    content: '';
    background: url('/wp-content/themes/synergy/assets/images/news-after.png') no-repeat center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 278px;
}
.blog-newsletter-section:after {
    right: -150px;
    background: url('/wp-content/themes/synergy/assets/images/news-before.png') no-repeat center;
}
.blog-newsletter-section:before {
    left: -128px;
}

.blog-newsletter__left {
    text-align: center;
    border-right: 1px solid #BAC9EE;
}
.blog-newsletter__right {
    padding: 0px 120px 0px 100px;
}
.blog-newsletter__left h3,
.blog-newsletter__right h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    position: relative;

}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9375rem;
    outline: none;
}

.newsletter-form button {
    width: 46px;
    height: 46px;
    background: #f7cc59;
    border: none;
    padding: 0px;
    border-radius: 50%;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    top: 4px;
    right: 4px;
}

.newsletter-form button:hover {
    background: #ffd670;
    transform: scale(1.05);
}

/* All Posts Section */
.all-posts-section {
    margin-top: 4rem;
    padding-bottom: 80px;
}

.all-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}
.all-posts-header:after {
    content: '';
    background: #E6E6E8;
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    right: 0;
}

.all-posts-header h2 {
    font-size: 44px;
    font-weight: 600;
    color: #000;
    background: #fff;
    position: relative;
    z-index: 99;
    padding-right: 20px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding-left: 20px;
    position: relative;
    z-index: 99;
}

/* ===== Promo Banner ===== */
.blog-single__promo {
  margin: 40px 0px 80px;
}
.promo-banner {
  background-image: url('/wp-content/themes/synergy/assets/images/blog.png');
  display: flex;
  flex-wrap: wrap;
  background-color: #032a47;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  align-items: center;
}
.promo-banner__content {
  flex: 1 1 40%;
  padding: 90px 40px 90px 120px;
}
.promo-banner__content h2 {
  font-size: 44px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 50px;
}
.promo-banner__content p {
  color: #dbe5ec;
  margin-bottom: 30px;
}
/*.promo-banner__content .btn {
  background: #f9c900;
  color: #000;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 5px;
  text-decoration: none;
}*/
.promo-banner__image {
  flex: 1 1 55%;
  display: flex;
}
.promo-banner__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.filter-controls span {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    min-width: 70px;
}

.blog-filter-select {
    padding: 1rem 2rem 1rem 1rem;
    border: 1px solid #C8C8C8;
    min-width: 280px;
    border-radius: 6px;
    font-size:16px;
    background-color: #ffffff;
    color: #5B5B5B;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 50px;
}
.blog-card .related-btn {
    position: absolute;
    bottom: 10px;
    left: 0px;
}
.blog-card:hover {
}

.blog-card__image-link {
    display: block;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.blog-card__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 1.5rem 0px;
}

.blog-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.blog-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    color: #000;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    line-height: 34px;
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: #000;
}

.blog-card__excerpt {
    font-size: 16px;
    line-height: 26px;
    color: #000;
    margin-bottom: 1rem;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f7cc59;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card__read-more:hover {
    color: #000;
    transform: translateX(4px);
}

/* Load More Button */
.blog-load-more {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    padding: 0.875rem 2.5rem;
    background: #F7CC59;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    transform: translateY(-1px);
}

/* No Posts */
.blog-no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.blog-no-posts p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-blog-section {
        grid-template-columns: 1fr;
    }

    .latest-articles {
        flex-direction: row;
        overflow-x: auto;
    }

    .latest-article-item {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .blog-archive__title {
        font-size: 2rem;
    }

    .featured-blog-slider {
        padding: 2rem;
    }

    .featured-blog__title {
        font-size: 1.5rem;
    }

    .blog-newsletter-section {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .all-posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .featured-blog-slider {
        padding: 1.5rem;
    }

    .featured-blog__title {
        font-size: 1.25rem;
    }

    .latest-articles {
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 8px;
    }
}

/* Blog Filter Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* No Results Message Styling */
.no-results {
    animation: fadeIn 0.5s ease;
}

.no-results p {
    margin: 0;
}