/* ============================================
   Blog System Styles - Using Theme Colors
   ============================================ */

/* Base Styles */
.blog-listing-page,
.blog-detail-page,
.category-listing-page {
    /* background: var(--secondary-light); */
    min-height: 100vh;
}

/* Hero Section */
.blog-listing-page .page-header,
.blog-detail-page .article-header,
.category-listing-page .page-header {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.blog-listing-page .page-header {
    padding: 3rem 0 2.5rem;
}

.blog-detail-page .article-header {
    padding: 2.5rem 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 2rem);
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
}

.hero-title .highlight {
    color: var(--accent-blue);
    font-weight: 500;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 600px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* Sidebar */
.blog-sidebar {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px var(--shadow-light);
    position: sticky;
    top: 1.5rem;
}

.sidebar-section {
    margin-bottom: 1.75rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-light);
    font-size: 0.8rem;
}

.sidebar-filters .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.4rem;
    display: block;
}

.sidebar-filters .form-control,
.sidebar-filters .form-select {
    border-color: var(--border-light);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.sidebar-filters .form-control:focus,
.sidebar-filters .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.15rem rgba(77, 106, 146, 0.1);
    outline: none;
}

.recent-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    transition: transform 0.2s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-item:hover {
    transform: translateX(3px);
}

.recent-post-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 4px var(--shadow-light);
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-img img {
    transform: scale(1.08);
}

.recent-post-info {
    flex-grow: 1;
    margin-left: 0.7rem;
}

.recent-post-info span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.recent-post-info h6 {
    margin: 0;
    line-height: 1.35;
}

.recent-post-info a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.recent-post-info a:hover {
    color: var(--accent-blue);
}

.categories-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.4rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--secondary-light);
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.85rem;
}

.categories-list a:hover {
    background: var(--accent-blue);
    color: var(--primary-light);
    border-color: var(--accent-blue);
}

.categories-list .badge {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
}

.categories-list a:hover .badge {
    background: rgba(255, 255, 255, 0.2);
}

/* Toolbar */
.blog-toolbar {
    /* background: var(--primary-light); */
    /* border: 1px solid var(--border-light); */
    /* border-radius: 10px; */
    padding: 0.9rem 1.25rem;
    /* box-shadow: 0 2px 6px var(--shadow-light); */
    /* margin-bottom: 1.5rem; */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .blog-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.result-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.result-count strong {
    color: var(--text-dark);
    font-weight: 600;
}

.sort-filter {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sort-filter label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0;
}

.sort-filter select {
    border-color: var(--border-light);
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

/* Blog Cards Grid - 3 Columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--shadow-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.blog-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--tertiary-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary-light);
    padding: 0.6rem 0.85rem;
    border-top-right-radius: 10px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
}

.blog-card-date-day {
    font-size: 1.1rem;
    color: var(--accent-blue);
    line-height: 1;
    display: block;
}

.blog-card-date-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1;
    display: block;
    margin-top: 0.2rem;
}

.blog-card-category {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--accent-blue);
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px var(--shadow-light);
    transition: all 0.2s ease;
}

.blog-card-category:hover {
    background: var(--accent-blue);
    color: var(--primary-light);
}

.blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--accent-blue);
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 0.9rem;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.blog-card-author {
    color: var(--text-light);
    font-size: 10px;
}

.blog-card-author i {
    margin-right: 0.2rem;
}

.blog-card-link {
    /* padding: 0.4rem 0.85rem; */
    background: transparent;
    /* border: 1px solid var(--border-light); */
    color: var(--text-medium);
    /* border-radius: 20px; */
    font-size: 10px;
    /* font-weight: 600; */
    text-decoration: none;
    /* transition: all 0.3s ease; */
    /* display: inline-flex; */
    /* align-items: center; */
    gap: 0.2rem;
    /* font-family: 'Space Grotesk', sans-serif; */
}

.blog-card-link:hover {
    /* background: var(--accent-blue); */
    /* border-color: var(--accent-blue); */
    color: var(--accent-blue);
    transform: translateX(2px);
}

/* Detail Page */
.featured-image-wrapper {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 6px var(--shadow-light);
    margin-bottom: 1.5rem;
}

.featured-image-wrapper img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 2px 6px var(--shadow-light);
    margin-bottom: 1.5rem;
    max-width: 100%;
}

/* @media (min-width: 992px) {
    .article-content {
        padding: 2.5rem;
        max-width: 90%;
    }
} */

.content-body {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-medium);
    font-family: 'Inter', sans-serif;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
}

.content-body h2 {
    font-size: 1.5rem;
}

.content-body h3 {
    font-size: 1.3rem;
}

.content-body h4 {
    font-size: 1.1rem;
}

.content-body p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.content-body blockquote {
    border-left: 3px solid var(--accent-blue);
    padding-left: 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: var(--text-light);
    background: var(--secondary-light);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.content-body li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}

.content-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-body a:hover {
    color: var(--text-dark);
}

.content-body code {
    background: var(--secondary-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--border-light);
}

.content-body pre {
    background: var(--secondary-light);
    padding: 0.9rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid var(--border-light);
}

/* Tags Section */
.tags-section {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px var(--shadow-light);
    margin-bottom: 1.5rem;
}

.tags-section h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.tags-section h5 i {
    margin-right: 0.5rem;
    color: var(--accent-blue);
}

.tag-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: var(--secondary-light);
    color: var(--text-medium);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: var(--accent-blue);
    color: var(--primary-light);
    border-color: var(--accent-blue);
}

/* Author Card */
.author-card {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px var(--shadow-light);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

@media (min-width: 768px) {
    .author-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 6px var(--shadow-light);
}

.author-info {
    flex-grow: 1;
}

.author-info small {
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.4rem;
}

.author-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.85rem;
}

/* Category Cards */
.category-card {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 2px 6px var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--primary-light);
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(77, 106, 146, 0.3);
}

.category-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
}

.category-card-text {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.category-card-btn {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-medium);
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-size: 0.85rem;
    font-family: 'Space Grotesk', sans-serif;
}

.category-card-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-state i {
    color: var(--text-light);
    margin-bottom: 0.9rem;
}

.empty-state h3 {
    color: var(--text-medium);
    margin-bottom: 0.4rem;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.empty-state p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Pagination */
.blog-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-link {
    color: var(--text-medium);
    border: 1px solid var(--border-light);
    margin: 0 2px;
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    transition: all 0.2s ease;
}

.blog-pagination .page-item.active .page-link {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--primary-light);
}

.blog-pagination .page-link:hover {
    color: var(--accent-blue);
    background-color: var(--secondary-light);
    border-color: var(--accent-blue);
}

/* Back Button */
.blog-back-btn {
    text-align: center;
    margin: 1.75rem 0;
}

.blog-back-btn a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.75rem;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-medium);
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
}

.blog-back-btn a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px var(--shadow-light);
}

/* Loading State */
[wire\:loading] {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .blog-listing-page .row,
    .blog-detail-page .row {
        flex-direction: column-reverse;
    }

    .blog-sidebar {
        position: static;
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .blog-sidebar .recent-post-img {
        width: 55px;
        height: 55px;
    }

    .blog-sidebar h5 {
        font-size: 0.75rem;
    }

    .blog-detail-page .article-header {
        padding: 1.75rem 0;
    }

    .blog-detail-page .hero-title {
        font-size: 1.5rem;
    }

    .featured-image-wrapper {
        padding: 0.4rem;
    }

    .featured-image-wrapper img {
        max-height: 300px;
    }

    .article-content {
        padding: 1.25rem;
        max-width: 100%;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto 0.9rem;
    }

    .blog-toolbar {
        padding: 0.9rem;
    }

    .content-body {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .category-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card-body {
        padding: 1rem;
    }
}

/* ============================================
   Recent Articles Section - Grid on Large, Carousel on Small
   ============================================ */

.recent-articles-section {
    background: var(--primary-light);
    margin: 0;
    padding: 2rem 0;
    width: 100%;
}

/* Small screens: reduce section padding */
@media (max-width: 575.98px) {
    .recent-articles-section {
        padding: 1.5rem 0;
    }
}

.recent-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-articles-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
}

.recent-articles-title i {
    color: var(--accent-blue);
}

/* Articles Container */
.recent-articles-container {
    position: relative;
    padding: 0;
    width: 100%;
}

/* Small screens: adjust container padding */
@media (max-width: 991.98px) {
    .recent-articles-container {
        padding: 0 0.5rem;
    }
}

/* Carousel Navigation removed - using indicators only */

/* Articles Wrapper - Grid on Large, Single on Small */
.recent-articles-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    min-height: auto;
    width: 100%;
    padding: 0;
}

/* Tablet: Single column carousel */
@media (min-width: 768px) and (max-width: 991.98px) {
    .recent-articles-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }
}

/* Large Screens: 4 per row - NO SCROLLBAR */
@media (min-width: 992px) {
    .recent-articles-wrapper {
        grid-template-columns: repeat(4, 1fr);
        min-height: auto;
        gap: 1.5rem;
        overflow: visible;
    }

    .recent-articles-container {
        padding: 0;
        overflow: visible;
    }

    /* Ensure all cards are visible on large screens - override any inline styles */
    .recent-articles-wrapper .recent-article-card {
        display: flex !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* Hide carousel indicators on large screens */
    .recent-articles-carousel-indicators {
        display: none !important;
    }
}

.recent-article-card {
    width: 100%;
    max-width: 100%;
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 6px var(--shadow-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: translateX(0);
}

/* Small screens: carousel mode */
@media (max-width: 991.98px) {
    .recent-article-card {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    .recent-articles-wrapper {
        overflow: hidden;
    }
}

.recent-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.recent-article-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.recent-article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--tertiary-light);
}

/* Small screens: adjust image height */
@media (max-width: 575.98px) {
    .recent-article-image {
        height: 180px;
    }
}

.recent-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recent-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(77, 106, 146, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    opacity: 0;
}

.recent-article-card:hover .recent-article-overlay {
    background: rgba(77, 106, 146, 0.85);
    opacity: 1;
}

.recent-article-card:hover .recent-article-image img {
    transform: scale(1.1);
}

.recent-article-read-more {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    background: var(--accent-blue);
    border-radius: 25px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.recent-article-card:hover .recent-article-read-more {
    transform: translateY(0);
}

.recent-article-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Small screens: reduce content padding */
@media (max-width: 575.98px) {
    .recent-article-content {
        padding: 1rem;
    }
}

.recent-article-category {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    background: var(--secondary-light);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.recent-article-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0 0 0.6rem 0;
    transition: color 0.3s ease;
}

.recent-article-card:hover .recent-article-title {
    color: var(--accent-blue);
}

.recent-article-excerpt {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 0.9rem 0;
    flex-grow: 1;
}

.recent-article-meta {
    display: flex;
    align-items: center;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.recent-article-date {
    color: var(--text-light);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.recent-article-date i {
    color: var(--accent-blue);
}

/* Carousel Indicators (Small Screens Only) */
.recent-articles-carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0;
    flex-wrap: wrap;
    width: 100%;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.carousel-indicator:hover:not(.active) {
    background: var(--accent-blue);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--accent-blue);
    width: 30px;
    border-radius: 5px;
    border-color: var(--accent-blue);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .recent-article-image {
        height: 220px;
    }
}

@media (min-width: 992px) {
    .recent-articles-section {
        padding: 4rem 0;
    }

    .recent-articles-wrapper {
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .recent-articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .recent-articles-section {
        padding: 2rem 0;
    }

    .recent-articles-container {
        padding: 0 0.75rem;
    }

    .recent-article-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .recent-article-excerpt {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .recent-article-meta {
        padding-top: 0.75rem;
    }

    .recent-articles-carousel-indicators {
        margin-top: 0.75rem;
        margin-bottom: 0.25rem;
    }
}

/* ============================================
   Scroll Into View Animations
   ============================================ */

/* Article highlight effect when scrolled into view */
.recent-article-card.article-highlight {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 8px 24px rgba(77, 106, 146, 0.3);
    border-color: var(--accent-blue);
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

/* Section fade-in animation when coming into view */
.recent-articles-section.section-in-view {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions handled in main .recent-article-card definition above */

/* Enhanced hover state for highlighted articles */
.recent-article-card.article-highlight:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 12px 32px rgba(77, 106, 146, 0.4);
}