/* Blog Page Specific Styles */

/* Blog Hero */
.blog-hero {
   background-color: #005678;
   min-height: 559px;
}

.blog-hero-container {
    max-width: 1213px;
    width: 100%;
    margin: 0 auto;
    padding-top: 41px;
}

.blog-hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-blog-content {
    margin-top: 31px;
}

.hero-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.blog-hero-title {
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    color: #fff;
    margin: 0;
}

.search-bar {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    width: 351px;
}

.search-bar button {
    padding: 12px 16px;
    background-color: #fff;
    color: #005678;
    border: none;
    cursor: pointer;
    border:none;
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;

}

.grid-header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media (max-width: 750px){
    .grid-header-container {
        flex-direction: column-reverse;
        gap: 16px;
        padding: 20px;
    }
}

.grid-header-container .search-bar, body > section.all-articles > div > div.grid-header-container > div {
    height: 50px;
    border: 1px solid gray !important;
    box-shadow: #333;
}



.blog-hero-featured {
    position: relative;
    margin-top: 47px;
    min-height: 345px;
    padding-bottom: 75px;
}

/* Ensure consistent hero layout regardless of search state */
.hero-blog-content {
    display: block;
    width: 100%;
}

.hero-blog-header {
    width: 100%;
    flex-wrap: nowrap;
}

.search-bar-container {
    display: flex;
    flex-direction: row;
}

/* Search form consistency */
.search-bar {
    border: none !important;
    box-shadow: none !important;
}

.search-bar input {
    background-color: transparent;
    color: #333;
}

.search-bar input::placeholder {
    color: #666;
}

.search-bar .search-bar-container .blog-search-button {
    background-color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button img {
    width: 16px;
    height: 16px;
}

.featured-post {
    position: relative;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.featured-post .blog-featured-image {
    width: 617px;
    height: 345px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
}


.featured-overlay {
    display: flex;
    flex-direction: column;
    max-width: 418px;
}

.featured-overlay .blog-featured-date {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #FFFFFF;
}

.featured-overlay .blog-featured-title {
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    color: #FFFFFF;
    margin-top: 24px;
}

.blog-featured-link {
    font-family: Plus Jakarta Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: #FFFFFF;
    margin-top: 55px;
    width: 130px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.blog-featured-link:hover {
    text-decoration: none;
    background-color: #fff;
    color: #005678;
}


/* Featured Articles */
.featured-articles {
    background-color: var(--secondary-color);
    padding: var(--spacing-xl) 0;
    background-color: #F6F6F6;
}

.featured-articles-container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
}

.featured-articles .article-slide-title {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: #0D2B37;
    min-height: 80px;
    height: 80px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.articles-carousel {
     
}

.blog-featured-section-title {
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    color: #0D2B37;
    margin:0;
    margin-left: 52px;
    margin-bottom: 20px;
}

.article-slide {
    padding: 24px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 342px;
    margin-top: 20px;
}

.article-slide  .blog-carousel-image {
    width: 100%;
    height: 167px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 31px;
}

.blog-article-arrow {
    width: 24px;
    height: 24px;
}


.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary-color);
}

/* All Articles */
.all-articles {
    background-color: #ffff;
    padding: 94px 0;
}

.all-articles-container {
    max-width: 1213px;
    width: 100%;
    margin: 0 auto;
}

.blog-articles-section-title {
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0%;
    color: #0D2B37;
    max-width: 447px;
    margin-bottom: 40px;
}

@media (max-width: 1250px) {
    .blog-articles-section-title {
        padding: 0 16px;
        max-width: 100%;
        width: 100%
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.article-card {
    border-radius: 12px;
    max-width: 382px;
    min-height: 342px;
    height: auto;
    transition: var(--transition-base);
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.article-card .blog-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 31px;
}

.article-card .article-content {
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.article-slide-title {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: #0D2B37;

}

.article-card .read-more {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    margin-top: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.page-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--secondary-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.page-link:hover,
.page-link.active,
.page-link.current {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    border-color: var(--primary-color);
}

/* Ensure active state is prominent */
.pagination .page-link.active,
.pagination .page-link.current,
.pagination span.page-link.active,
.pagination span.page-link.current {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 600;
}

/* See Also */
.see-also {
    background-color: var(--secondary-color);
}

.see-also h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.see-also-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.see-also-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-base);
}

.see-also-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}


.see-also-card p {
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin: 0;
}

.see-also-card .read-more {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Slick Carousel Styles */
.featured-carousel {
    position: relative;
    margin: 0 60px var(--spacing-2xl) 60px;
    overflow: visible;
}

.mobile-arrows {
    display: none;
}

.featured-articles .container {
    overflow: visible;
}

.featured-carousel .slick-list {
    margin: 0 -15.5px;
}

.featured-carousel .slick-slide {
    padding: 0 15.5px;
}

.featured-carousel .carousel-slide {
    min-height: 342px;
    width: 350px;
}

.featured-carousel.slick-slider {
    margin-bottom: 50px;
}

.article-slide-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-slide {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}



.article-slide .blog-carousel-image, .article-card .blog-article-image {
    width: 100%;
    height: 167px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: 31px;
}

.article-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


 .article-card-title {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    color: #0E0E0E;
    margin-top: 31px;
}

.article-slide-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.article-slide-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Slick Navigation Arrows */
.featured-carousel .slick-prev,
.featured-carousel .slick-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition-base);
    z-index: 2;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.featured-carousel .slick-prev:hover,
.featured-carousel .slick-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    opacity: 1;
}

.featured-carousel .slick-next {
    right: -70px;
}

.featured-carousel .slick-prev {
    left: -70px;
}

.featured-carousel .slick-prev:before,
.featured-carousel .slick-next:before {
    display: none;
}

/* Slick Pagination Dots */
.featured-carousel .slick-dots {
    position: relative;
    bottom: auto;
    margin-top: var(--spacing-lg);
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.featured-carousel .slick-dots li {
    margin: 0 6px;
}

.featured-carousel .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0;
    padding: 0;
}

.featured-carousel .slick-dots li.slick-active button {
    background: var(--primary-color);
}

/* Article Card Links */
.article-card-link,
.see-also-card-link {
    display: block;
    text-decoration: none;
}

.article-card-link:hover,
.see-also-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.article-date {
    font-family: Inter;
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.article-excerpt {
    font-family: Inter;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-top: 40px;
}

.no-posts-found p {
    font-family: Inter;
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .articles-carousel,
    .articles-grid,
    .see-also-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .featured-carousel {
        margin: 0 40px var(--spacing-2xl) 40px;
    }
    
    .featured-carousel .slick-next {
        right: -65px;
    }
    
    .featured-carousel .slick-prev {
        left: -65px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .blog-hero-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .blog-hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-header,
    .hero-blog-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .blog-hero-title {
        font-size: 24px;
    }
    
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .blog-hero-featured {
        margin-top: 30px;
        min-height: auto;
    }
    
    .featured-post {
        flex-direction: column-reverse;
        gap: 20px;
    }
    
    .featured-post .blog-featured-image {
        width: 100%;
        height: 200px;
        order: 2;
    }
    
    .featured-overlay {
        max-width: 100%;
        order: 1;
    }
    
    .featured-overlay .blog-featured-title {
        font-size: 24px;
        margin-top: 16px;
    }
    
    .blog-featured-link {
        margin-top: 20px;
    }
    
    .featured-articles-container {
        padding: 0 20px;
    }
    
    .blog-featured-section-title {
        margin-left: 0;
        text-align: center;
        font-size: 24px;
    }
    
    .featured-carousel {
        margin: 0 0 var(--spacing-2xl) 0;
    }
    
    .mobile-arrows {
        display: flex !important;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }
    
    .mobile-arrows .slick-prev,
    .mobile-arrows .slick-next {
        position: static !important;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        border-radius: 50%;
        border: none;
        color: var(--secondary-color);
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-arrows .slick-prev:before,
    .mobile-arrows .slick-next:before {
        display: none;
    }
    
    .articles-grid,
    .see-also-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero-text h1 {
        font-size: var(--font-size-xl);
    }
    
    .featured-carousel {
        margin: 0 10px var(--spacing-2xl) 10px;
    }
    
    .featured-overlay {
        padding: var(--spacing-md);
    }
    
    .article-card .article-content {
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Custom Slick Carousel Arrows */
.slick-prev,
.slick-next {
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    z-index: 1000;
    transform: none !important;
    transition: none !important;
}

.slick-prev:hover,
.slick-next:hover,
.slick-prev:focus,
.slick-next:focus {
    background: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
}

.slick-prev:before,
.slick-next:before {
    display: none !important;
}

.slick-prev img,
.slick-next img {
    width: 63px;
    height: 63px;
    object-fit: contain;
}

.slick-prev {
    left: -30px;
}

.slick-next {
    right: -30px;
}


/* Mobile arrow positioning */
@media (max-width: 768px) {
    .slick-prev {
        left: 10px;
    }
    
    .slick-next {
        right: 10px;
    }
}