/* Blog Styles */

/* Enhanced Section Dividers for Blog */
.blog-section .section-divider {
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.blog-section .section-divider::before,
.blog-section .section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.blog-section .section-divider::before {
    left: calc(50% - 150px);
}

.blog-section .section-divider::after {
    right: calc(50% - 150px);
}

.blog-section .section-divider span {
    background: white;
    padding: 0 20px;
    color: var(--primary-blue);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(rgba(0, 80, 158, 0.8), rgba(0, 80, 158, 0.6)), url('../images/NPLabs24_134 copy.png');
    background-size: cover;
    background-position: center;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5rem 0;
    min-height: 400px;
}

.blog-hero h1 {
    color: white;
    font-size: 2.65rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    color: white;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.blog-section .highlight {
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
}

.blog-section .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-teal));
    border-radius: 1px;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--dark-grey);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 300;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2rem 0;
    padding: 2rem 0;
}

.category-link {
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 50px;
}

.category-link:hover::before {
    transform: translateY(0);
}

.category-link.active::before {
    transform: translateY(0);
}

.post-count {
    margin-left: 8px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    color: inherit; /* Match the link text color */
    background: transparent; /* No pill background by default */
    opacity: 1; /* Ensure same visual weight as text */
}

.category-link:hover, .category-link.active {
    color: white;
    box-shadow: 0 8px 25px rgba(0, 80, 158, 0.25);
    transform: translateY(-3px);
    border-color: var(--primary-blue);
}

.category-link.active {
    position: relative;
}

.category-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.category-link:hover .post-count,
.category-link.active .post-count {
    color: white;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.8;
    }
}

/* NoScript Message */
.noscript-message {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: left;
}

.noscript-message p {
    margin-bottom: 15px;
    font-weight: 600;
}

.noscript-message ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.noscript-message li {
    margin-bottom: 5px;
}

.noscript-message a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.noscript-message a:hover {
    text-decoration: none;
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .post-card,
    .category-link,
    .category-link::before,
    .category-link.active::after,
    .no-results-message,
    .filter-loading,
    .spinner {
        transition: none !important;
        animation: none !important;
    }

    .post-card:hover {
        transform: none !important;
    }

    .post-card:hover .post-image img {
        transform: none !important;
    }
}

/* Blog responsive polish */
.blog-post,
.post-body {
    overflow-wrap: anywhere;
}

.post-card img,
.featured-post-card img,
.blog-post img {
    background-color: #f4f8fb;
}

.post-card:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 4px;
}

.page-link.active {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 80, 158, 0.2);
}

@media (max-width: 992px) {
    .blog-hero {
        min-height: 340px;
        padding-top: 8.5rem;
        padding-bottom: 4rem;
    }

    .blog-hero h1 {
        font-size: 2.05rem;
        line-height: 1.15;
    }

    .blog-section {
        padding: 3rem 0;
    }

    .featured-post {
        border-radius: 0;
        margin-top: 0;
    }

    .blog-posts {
        margin: 2rem 0;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        min-height: 300px;
        padding-top: 7.5rem;
        padding-bottom: 3rem;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-hero p,
    .lead-text {
        font-size: 1rem;
    }

    .blog-categories {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .category-link {
        width: 100%;
        min-height: 44px;
        padding: 0.8rem 1rem;
        border-radius: 14px;
    }

    .category-link::before {
        border-radius: 14px;
    }

    .category-link.active::after {
        display: none;
    }

    .featured-post-card,
    .post-card {
        border-radius: 10px;
    }

    .post-content,
    .featured-post-content {
        padding: 1.25rem;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 0.5rem 0.85rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-link.next,
    .page-link.prev {
        width: auto;
        min-width: 44px;
    }
}

.category-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--dark-grey);
    font-style: italic;
}

/* Category Filtering */
.post-card {
    transition: opacity 0.3s ease, transform var(--transition-speed);
}

/* Accessibility - Focus Styles */
.category-link:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.3);
}

.post-card:focus-within {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Using the default box-shadow instead of the blue one */
}

.post-card h3:focus,
.post-card a:focus {
    outline: none; /* Removed visible outline */
}

.reset-filter:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.3);
}

/* Loading Indicator */
.filter-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-loading p {
    margin-top: 15px;
    color: var(--primary-blue);
    font-weight: 600;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 80, 158, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results-message {
    text-align: center;
    padding: 60px 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.no-results-message p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.no-results-message::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.2;
    display: block;
    margin-bottom: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Featured Post */
.featured-post {
    padding: 60px 0;
    background-color: var(--light-grey);
    margin-top: 2rem;
    border-radius: 15px;
}

.featured-post h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.featured-post-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.featured-post-image {
    flex: 0 0 50%;
    position: relative;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-teal);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.featured-post-content {
    flex: 0 0 50%;
    padding: 40px;
}

.featured-post-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--primary-blue);
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-category {
    color: var(--primary-blue);
    font-weight: 700;
}

.post-date {
    color: #777;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0;
    margin: 4rem 0;
}

.blog-posts h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 2rem;
}

.post-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 80, 158, 0.1);
    border-bottom: 4px solid transparent;
}

.post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 80, 158, 0.2);
    border-bottom: 4px solid var(--primary-blue);
    border-color: rgba(0, 80, 158, 0.2);
}

.post-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 80, 158, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-image::after {
    opacity: 1;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image img {
    transform: scale(1.08);
}

.post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--primary-blue);
    font-weight: 700;
    transition: color 0.3s ease;
}

.post-card:hover .post-content h3 {
    color: var(--secondary-teal);
}

.post-content p {
    color: #666;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed);
    margin-top: auto;
}

.read-more:hover {
    color: var(--primary-blue-dark);
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link, .current-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.page-link {
    background-color: white;
    color: var(--dark-grey);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    background-color: var(--primary-blue-light);
    color: white;
}

.current-page {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 80, 158, 0.2);
}

.page-link.next {
    width: auto;
    padding: 0 20px;
    border-radius: 20px;
    gap: 8px;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5;
}

/* CTA Section Override */
.blog-posts + .cta-section {
    margin-top: 0;
}

/* Newsletter Form in CTA Section */
.newsletter-form {
    max-width: 500px;
    margin: 2rem auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn {
    padding: 12px 25px;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.form-consent input[type="checkbox"] {
    margin-top: 5px;
    accent-color: var(--secondary-teal);
}

/* Premium Blog Post Hero Section - Award-Worthy 2025 Design */
.blog-post-header {
    min-height: 100vh;
    background: linear-gradient(135deg,
        rgba(0, 80, 158, 0.95) 0%,
        rgba(0, 150, 136, 0.9) 50%,
        rgba(0, 80, 158, 0.95) 100%),
        url('../images/NPLabs24_134 copy.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Sophisticated overlay patterns */
.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    z-index: 1;
}

/* Animated geometric shapes */
.blog-post-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.03) 60deg,
            transparent 120deg,
            rgba(255, 255, 255, 0.03) 180deg,
            transparent 240deg,
            rgba(255, 255, 255, 0.03) 300deg,
            transparent 360deg);
    animation: rotate 60s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Premium typography with perfect hierarchy */
.blog-post-title {
    font-size: clamp(2.05rem, 3.45vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 1200px;
    margin: 0 auto 2rem;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* Premium breadcrumb navigation */
.blog-breadcrumb {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: white;
}

.blog-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* Premium meta information with modern styling */
.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0 3rem;
    position: relative;
    z-index: 10;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.meta-item i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Author information with premium styling */
.author-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: white;
}

/* Premium social sharing buttons */
.social-share {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.share-button.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-button.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
}

.share-button.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

/* Updated brand hovers */
.share-button.x:hover { background: #000000; border-color: #000000; }
.share-button.instagram:hover { background: #E1306C; border-color: #E1306C; }


/* Elegant scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-arrow i {
    font-size: 0.8rem;
    transform: translateY(1px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.blog-post-image {
    max-width: 900px;
    margin: 0 auto 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    text-align: left;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    background-color: var(--light-grey);
    margin: 2rem 0;
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem auto;
}

.blog-post-content .callout {
    background-color: rgba(0, 80, 158, 0.05);
    border-radius: 8px;
    padding: 25px;
    margin: 2rem 0;
}

.blog-post-content .callout h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}


/* Related Posts */
.related-posts {
    padding: 60px 0;
}

.related-posts h2 {
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-post-card {
        flex-direction: column;
    }

    .featured-post-image, .featured-post-content {
        flex: 0 0 100%;
    }

    .featured-post-image {
        height: 300px;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content, .newsletter-form {
        flex: 0 0 100%;
    }

    .newsletter-content h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 0;
        min-height: 300px;
    }

    .blog-hero h1 {
        font-size: 1.95rem;
        margin-bottom: 0.8rem;
    }

    .blog-hero p {
        font-size: 1.1rem;
    }

    .blog-section {
        padding: 3rem 0;
    }

    .lead-text {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .blog-categories {
        gap: 12px;
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }

    .category-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .post-count {
        font-size: 0.8em;
        padding: 1px 6px;
    }

    .post-image {
        height: 200px;
    }

    .post-content {
        padding: 25px;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .blog-post-header {
        padding: 3rem 0;
    }

    .blog-post-header {
        min-height: 80vh;
        background-attachment: scroll;
    }

    .blog-post-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0 2rem;
    }

    .meta-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .social-share {
        position: fixed;
        top: auto;
        bottom: 2rem;
        right: 1rem;
        flex-direction: row;
        gap: 0.75rem;
        transform: none;
    }

    .share-button {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .blog-breadcrumb {
        top: 1rem;
        left: 1rem;
        font-size: 0.85rem;
    }

    .scroll-indicator {
        bottom: 1rem;
        font-size: 0.8rem;
    }

    .featured-post-content {
        padding: 30px;
    }

    .featured-post-content h2 {
        font-size: 1.8rem;
    }

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

@media (max-width: 576px) {
    .blog-hero {
        padding: 2.5rem 0;
        min-height: 250px;
    }

    .blog-hero h1 {
        font-size: 1.65rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .blog-section {
        padding: 2.5rem 0;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .posts-grid, .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-categories {
        flex-direction: column;
        gap: 10px;
        padding: 1rem 0;
    }

    .category-link {
        width: 100%;
        display: block;
        text-align: center;
        padding: 12px 20px;
    }

    .post-content {
        padding: 20px;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }

    .blog-post-header {
        padding: 2.5rem 0;
    }

    .blog-post-header {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .blog-post-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1rem 0 1.5rem;
        padding: 0 1rem;
    }

    .meta-item {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        width: fit-content;
        margin: 0 auto;
    }

    .author-meta {
        padding: 0.5rem 1rem;
        margin: 0 auto;
        width: fit-content;
    }

    .social-share {
        bottom: 1rem;
        right: 0.5rem;
        gap: 0.5rem;
    }

    .share-button {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .blog-breadcrumb {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.8rem;
    }

    .scroll-indicator {
        display: none;
    }

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

    .newsletter-container {
        padding: 30px 20px;
    }
}

/* Final mobile overrides: fixed header clearance and single-column filter controls. */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 320px;
        padding-top: 7.75rem;
        padding-bottom: 3rem;
    }

    .blog-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        min-height: 300px;
        padding-top: 7.5rem;
        padding-bottom: 2.75rem;
    }

    .blog-categories {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .category-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border-radius: 14px;
    }

    .category-link::before {
        border-radius: 14px;
    }

    .category-link.active::after {
        display: none;
    }
}

/* Pediatric article editorial redesign */
.pediatric-article-page {
    background: #f8fbfa;
}

.pediatric-article-page .pediatric-hero {
    display: block;
    min-height: auto;
    padding: 6.25rem 0 3.75rem;
    background:
        linear-gradient(115deg, #f8fbfa 0%, #f8fbfa 52%, #e8f4f1 52%, #eef7f4 100%);
    overflow: hidden;
    text-align: left;
}

.pediatric-article-page .pediatric-hero::before,
.pediatric-article-page .pediatric-hero::after {
    display: none;
}

.pediatric-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.pediatric-hero-copy {
    max-width: 720px;
    color: #1f3448;
}

.pediatric-article-page .pediatric-breadcrumb {
    position: static;
    margin-bottom: 1.35rem;
    color: #587082;
}

.pediatric-article-page .pediatric-breadcrumb a {
    color: #315f89;
}

.pediatric-article-page .pediatric-breadcrumb a:hover {
    color: var(--primary-blue);
}

.pediatric-article-page .pediatric-breadcrumb .separator {
    color: #9aaebb;
}

.article-eyebrow,
.article-kicker {
    margin: 0 0 0.85rem;
    color: #008577;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pediatric-article-page .blog-post-title {
    max-width: 760px;
    margin: 0 0 1.15rem;
    color: #143652;
    font-size: clamp(2.05rem, 3.45vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-align: left;
    text-shadow: none;
}

.pediatric-hero-deck {
    max-width: 690px;
    margin: 0;
    color: #40596b;
    font-size: clamp(1.06rem, 1.45vw, 1.25rem);
    line-height: 1.72;
}

.pediatric-article-page .pediatric-meta {
    justify-content: flex-start;
    gap: 0.65rem;
    margin: 1.65rem 0 0;
}

.pediatric-article-page .meta-item {
    border: 1px solid rgba(0, 80, 158, 0.12);
    background: rgba(255, 255, 255, 0.76);
    color: #315166;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(17, 60, 87, 0.06);
}

.pediatric-article-page .meta-item:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(17, 60, 87, 0.08);
}

.pediatric-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.pediatric-hero-actions .btn {
    border-radius: 8px;
    box-shadow: none;
}

.pediatric-hero-actions .btn-outline {
    border-color: rgba(0, 80, 158, 0.32);
    color: #00509e;
    background: rgba(255, 255, 255, 0.72);
}

.pediatric-hero-actions .btn-outline:hover {
    background: #ffffff;
    color: var(--primary-blue-dark);
}

.pediatric-hero-visual {
    position: relative;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(0, 80, 158, 0.1);
    border-radius: 8px;
    box-shadow: 0 26px 60px rgba(21, 60, 86, 0.14);
}

.pediatric-hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    box-shadow: none;
}

.pediatric-hero-card {
    position: absolute;
    width: min(270px, 76%);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 168, 150, 0.18);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(21, 60, 86, 0.14);
}

.pediatric-hero-card span {
    display: block;
    margin-bottom: 0.22rem;
    color: #008577;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pediatric-hero-card strong {
    color: #16394e;
    line-height: 1.35;
}

.pediatric-hero-card-top {
    top: 1.4rem;
    left: -1.1rem;
}

.pediatric-hero-card-bottom {
    right: -1.1rem;
    bottom: 1.4rem;
}

.pediatric-inline-hero-image {
    display: none;
}

.pediatric-article-page .pediatric-article {
    max-width: 850px;
    margin-top: 0;
    padding: 3.7rem 2rem 2rem;
    color: #263746;
    font-size: 1.08rem;
    line-height: 1.82;
}

.pediatric-article-page .pediatric-article > h2 {
    margin-top: 3.75rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(0, 80, 158, 0.12);
    color: #073f70;
    font-size: clamp(1.65rem, 2.3vw, 2.15rem);
    line-height: 1.2;
}

.pediatric-article-page .pediatric-article > h2:first-of-type {
    margin-top: 2.75rem;
}

.pediatric-article-page .pediatric-article h3 {
    margin-top: 2.1rem;
    color: #0b5a87;
    font-size: 1.22rem;
}

.pediatric-article-page .pediatric-article p {
    margin-bottom: 1.35rem;
}

.article-intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.78fr);
    gap: 1.5rem;
    align-items: start;
    margin: 0 0 2.6rem;
    padding: 1.45rem;
    background: #ffffff;
    border: 1px solid rgba(0, 80, 158, 0.1);
    border-left: 5px solid var(--secondary-teal);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 36, 78, 0.07);
}

.article-intro-panel .article-kicker {
    color: var(--secondary-teal);
}

.article-intro-panel h2 {
    margin: 0;
    color: #073f70;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    line-height: 1.2;
    text-align: left;
}

.article-intro-panel ul {
    margin: 0;
    padding-left: 1.1rem;
}

.article-intro-panel li {
    margin-bottom: 0.65rem;
}

.pediatric-article-page .callout {
    margin: 2rem 0;
    padding: 1.25rem 1.4rem;
    background: #edf8f6;
    border: 1px solid rgba(0, 171, 165, 0.22);
    border-left: 5px solid var(--secondary-teal);
    border-radius: 8px;
}

.pediatric-article-page .callout h4 {
    margin: 0 0 0.55rem;
    color: #075e6b;
}

.pediatric-article-page .blog-post-tags,
.pediatric-article-page .blog-post-share,
.pediatric-article-page .key-takeaways,
.pediatric-article-page .post-nav {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.pediatric-article-page .key-takeaways {
    padding: 1.6rem 1.8rem;
    background: #ffffff;
    border: 1px solid rgba(0, 80, 158, 0.12);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 36, 78, 0.08);
}

.pediatric-article-page .key-takeaways h3 {
    margin-top: 0;
    color: #073f70;
}

.pediatric-article-page .related-posts {
    background: #f1f6fa;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pediatric-article-page .cta-section {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .pediatric-article-page .pediatric-hero {
        padding-top: 5.75rem;
    }

    .pediatric-hero-grid {
        grid-template-columns: 1fr;
    }

    .pediatric-hero-visual {
        max-width: 720px;
    }

    .pediatric-hero-card-top {
        left: 1.25rem;
    }

    .pediatric-hero-card-bottom {
        right: 1.25rem;
    }
}

@media (max-width: 768px) {
    .pediatric-article-page .pediatric-hero {
        padding: 4.9rem 0 2.35rem;
        background: linear-gradient(180deg, #f8fbfa 0%, #eef7f4 100%);
    }

    .pediatric-hero-grid {
        gap: 1.55rem;
    }

    .pediatric-article-page .blog-post-title {
        font-size: clamp(1.8rem, 8.6vw, 2.45rem);
    }

    .pediatric-hero-actions {
        flex-direction: column;
    }

    .pediatric-hero-actions .btn {
        width: 100%;
    }

    .pediatric-hero-visual {
        max-width: none;
        padding: 0.55rem;
    }

    .pediatric-hero-visual img {
        aspect-ratio: 16 / 10;
    }

    .pediatric-hero-card {
        display: none;
    }

    .pediatric-inline-hero-image {
        display: none;
    }

    .pediatric-article-page .pediatric-article {
        padding: 2.7rem 1.2rem 1rem;
        font-size: 1rem;
        line-height: 1.76;
    }

    .article-intro-panel {
        grid-template-columns: 1fr;
        padding: 1.2rem;
    }

    .pediatric-article-page .social-share {
        position: static;
        transform: none;
    }
}

@media (max-width: 560px) {
    .pediatric-article-page .pediatric-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .pediatric-article-page .meta-item {
        width: 100%;
        justify-content: center;
    }

    .pediatric-article-page .blog-post-tags,
    .pediatric-article-page .blog-post-share,
    .pediatric-article-page .key-takeaways,
    .pediatric-article-page .post-nav {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Blog index editorial redesign */
.blog-index-page {
    background: #f8fbfa;
}

.blog-index-page .blog-index-hero {
    padding: 4.5rem 0 4rem;
    background:
        linear-gradient(115deg, #f8fbfa 0%, #f8fbfa 51%, #e8f4f1 51%, #eef7f4 100%);
    overflow: hidden;
}

.blog-index-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.84fr);
    gap: clamp(2rem, 5vw, 4.75rem);
    align-items: center;
}

.blog-index-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
    color: #587082;
    font-size: 0.95rem;
}

.blog-index-breadcrumb a {
    color: #315f89;
}

.blog-index-breadcrumb .separator {
    color: #9aaebb;
}

.blog-index-hero-copy {
    max-width: 760px;
}

.blog-index-hero-copy h1 {
    max-width: 760px;
    margin: 0 0 1.25rem;
    color: #143652;
    font-size: clamp(2.05rem, 3.45vw, 3.85rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.blog-index-hero-deck {
    max-width: 690px;
    margin: 0;
    color: #40596b;
    font-size: clamp(1.08rem, 1.45vw, 1.28rem);
    line-height: 1.72;
}

.blog-index-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.blog-index-hero-actions .btn {
    border-radius: 8px;
    box-shadow: none;
}

.blog-index-hero-actions .btn-outline {
    border-color: rgba(0, 80, 158, 0.32);
    color: #00509e;
    background: rgba(255, 255, 255, 0.72);
}

.blog-index-hero-actions .btn-outline:hover {
    background: #ffffff;
    color: var(--primary-blue-dark);
}

.blog-index-hero-visual {
    position: relative;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(0, 80, 158, 0.1);
    border-radius: 8px;
    box-shadow: 0 26px 60px rgba(21, 60, 86, 0.14);
}

.blog-index-hero-visual img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.blog-index-visual-panel {
    position: absolute;
    width: min(280px, 76%);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 168, 150, 0.18);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(21, 60, 86, 0.14);
}

.blog-index-visual-panel span {
    display: block;
    margin-bottom: 0.22rem;
    color: #008577;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-index-visual-panel strong {
    color: #16394e;
    line-height: 1.35;
}

.blog-index-visual-panel-top {
    top: 1.3rem;
    left: -1.1rem;
}

.blog-index-visual-panel-bottom {
    right: -1.1rem;
    bottom: 1.3rem;
}

.blog-index-page .blog-index-featured {
    position: relative;
    margin: 0;
    padding: 4.5rem 0;
    background:
        linear-gradient(90deg, rgba(7, 38, 61, 0.92) 0%, rgba(7, 70, 89, 0.78) 42%, rgba(248, 251, 250, 0.34) 100%),
        url('../images/blog/nplabs-blog-editorial-background.png');
    background-size: cover;
    background-position: center;
    border-radius: 0;
}

.blog-index-section-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.blog-index-featured .blog-index-section-heading {
    margin-left: 0;
    color: #ffffff;
}

.blog-index-section-heading h2 {
    margin: 0;
    color: #143652;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.blog-index-featured .blog-index-section-heading h2 {
    max-width: 700px;
    color: #ffffff;
    text-align: left;
}

.blog-index-featured .article-eyebrow {
    color: #9be7dc;
}

.blog-index-page .featured-post-card {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
    overflow: hidden;
    max-width: 1040px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 27, 43, 0.22);
}

.blog-index-page .featured-post-image {
    min-height: 360px;
    flex: none;
}

.blog-index-page .featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-index-page .featured-post-content {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3rem);
}

.blog-index-page .featured-post-content h2 {
    color: #143652;
    font-size: clamp(1.75rem, 2.6vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.blog-index-page .featured-post-content p {
    color: #40596b;
    line-height: 1.72;
}

.blog-index-page .blog-section {
    padding: 4rem 0 3.25rem;
    background: #f8fbfa;
    scroll-margin-top: 6rem;
}

.blog-index-page .blog-section .lead-text {
    max-width: 760px;
    color: #40596b;
}

.blog-index-page .blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 980px;
    margin: 2rem auto 0;
    padding: 0;
}

.blog-index-page .category-link {
    min-height: 44px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 80, 158, 0.12);
    border-radius: 999px;
    color: #315166;
    box-shadow: 0 8px 24px rgba(17, 60, 87, 0.06);
}

.blog-index-page .category-link::before,
.blog-index-page .category-link.active::after {
    display: none;
}

.blog-index-page .category-link.active,
.blog-index-page .category-link:hover {
    background: #00509e;
    border-color: #00509e;
    color: #ffffff;
    transform: translateY(-1px);
}

.blog-index-page .category-description {
    margin-top: 1rem;
    color: #587082;
}

.blog-index-page .blog-posts {
    margin: 0;
    padding: 4rem 0 5rem;
    background: #ffffff;
}

.blog-index-page .blog-posts .blog-index-section-heading {
    margin-bottom: 2.5rem;
}

.blog-index-page .posts-grid {
    gap: 1.35rem;
}

.blog-index-page .post-card {
    border-radius: 8px;
    border: 1px solid rgba(0, 80, 158, 0.1);
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(17, 60, 87, 0.08);
}

.blog-index-page .post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(17, 60, 87, 0.14);
    border-bottom: 1px solid rgba(0, 80, 158, 0.1);
}

.blog-index-page .post-image {
    height: auto;
    aspect-ratio: 16 / 9;
}

.blog-index-page .post-image img {
    height: 100%;
    object-fit: cover;
}

.blog-index-page .post-content {
    padding: 1.35rem;
}

.blog-index-page .post-content h3 {
    color: #143652;
    font-size: 1.23rem;
    line-height: 1.25;
}

.blog-index-page .post-content p {
    color: #536678;
    line-height: 1.65;
}

.blog-index-page .read-more {
    color: #00509e;
}

.blog-index-page .pagination {
    margin-top: 2.5rem;
}

.blog-index-page .cta-section {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .blog-index-hero-grid,
    .blog-index-page .featured-post-card {
        grid-template-columns: 1fr;
    }

    .blog-index-hero-visual {
        max-width: 760px;
    }

    .blog-index-visual-panel-top {
        left: 1.1rem;
    }

    .blog-index-visual-panel-bottom {
        right: 1.1rem;
    }
}

@media (max-width: 768px) {
    .blog-index-page .blog-index-hero {
        padding: 3.75rem 0 3rem;
        background: linear-gradient(180deg, #f8fbfa 0%, #eef7f4 100%);
    }

    .blog-index-hero-grid {
        gap: 1.55rem;
    }

    .blog-index-hero-copy h1 {
        font-size: clamp(1.9rem, 8.5vw, 2.55rem);
    }

    .blog-index-hero-actions {
        flex-direction: column;
    }

    .blog-index-hero-actions .btn {
        width: 100%;
    }

    .blog-index-hero-visual {
        padding: 0.55rem;
    }

    .blog-index-visual-panel {
        display: none;
    }

    .blog-index-page .blog-index-featured {
        padding: 3rem 0;
    }

    .blog-index-page .featured-post-image {
        min-height: 260px;
    }

    .blog-index-page .blog-categories {
        display: grid;
        grid-template-columns: 1fr;
    }

    .blog-index-page .category-link {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }

    .blog-index-page .blog-posts {
        padding: 3rem 0 4rem;
    }
}

@media (max-width: 560px) {
    .blog-index-page .blog-index-hero {
        padding-top: 3rem;
    }

    .blog-index-page .featured-post-content,
    .blog-index-page .post-content {
        padding: 1.2rem;
    }

    .blog-index-page .featured-post-image {
        min-height: 220px;
    }
}
