/* Podmod Blog Styles */

/* General Blog Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem; /* Remove top padding, keep bottom and horizontal padding */
}

.blog-header {
    text-align: center;
    margin-bottom: 0; /* Remove gap between header and navigation */
    margin-top: 0; /* Remove any top margin to connect with nav */
    /* Modern gradient with better accessibility and professional appearance */
    background: linear-gradient(135deg, #5B3AFF 0%, #6366F1 50%, #5B3AFF 100%);
    color: #ffffff;
    padding: 4rem 2rem 5rem 2rem;
    position: relative;
    overflow: hidden;
    /* Full width design - naturally full width since it's outside container */
    border-radius: 0;
    /* Subtle shadow for depth */
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
}

/* Subtle geometric pattern overlay for visual interest */
.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.6;
}

.blog-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    color: #ffffff; /* Pure white for maximum contrast (21:1 ratio) */
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    /* Subtle text shadow for depth without compromising readability */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.blog-description {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #ffffff; /* Pure white for maximum contrast and readability */
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-weight: 400;
    /* Subtle text shadow for better readability */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

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

/* Unified Blog Card Styles */
.blog-card,
.post-card,
.subpillar-card,
.article-card,
.other-subpillar-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid #5B3AFF;
}

.blog-card:hover,
.post-card:hover,
.subpillar-card:hover,
.article-card:hover,
.other-subpillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-card-image,
.post-card-image,
.subpillar-card-image,
.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content,
.post-card-content,
.subpillar-card-content,
.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3,
.post-card h3,
.subpillar-card h3,
.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.4;
}

.blog-card h3 a,
.post-card h3 a,
.subpillar-card h3 a,
.article-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover,
.post-card h3 a:hover,
.subpillar-card h3 a:hover,
.article-card h3 a:hover {
    color: #5B3AFF;
}

.blog-card p,
.post-card p,
.subpillar-card p,
.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-meta,
.post-card-meta,
.subpillar-card-meta,
.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #888;
}

.blog-meta-left,
.post-meta-left,
.subpillar-meta-left,
.article-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Category and Tag Styling */
.category,
.tag {
    background-color: #f8f9ff;
    color: #5B3AFF;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: default;
    pointer-events: none;
}

/* Search and Filter */
.blog-search-filter {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.blog-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.blog-search-input:focus {
    outline: none;
    border-color: #5B3AFF;
}

.blog-search-btn {
    background-color: #5B3AFF;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-search-btn:hover {
    background-color: #4A2DE8;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.blog-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-filter-select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
}

/* Show More Section */
.show-more-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.posts-info {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.show-more-btn {
    background: linear-gradient(135deg, #5B3AFF 0%, #7C5EFF 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 58, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 58, 255, 0.4);
    text-decoration: none;
    color: white;
}

.show-more-btn:active {
    transform: translateY(-1px);
}



/* Legacy Pagination Styles - Keep for compatibility */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #5B3AFF;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #5B3AFF;
    color: white;
    border-color: #5B3AFF;
}

.pagination .current {
    background-color: #5B3AFF;
    color: white;
    border-color: #5B3AFF;
}

/* Individual Blog Post Styles */
.blog-post-hero {
    background: linear-gradient(135deg, #5B3AFF 0%, #7C5EFF 100%);
    color: white;
    padding: 4rem 0 6rem 0; /* Increased bottom padding for more space */
    position: relative;
    overflow: hidden;
    margin: 0; /* Remove any default margins */
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-post-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
    flex-wrap: wrap;
    margin-bottom: 2rem; /* Added margin bottom to push content away from container edge */
}

.blog-post-date,
.blog-post-author,
.blog-post-readtime {
    position: relative;
}

.blog-post-date::after,
.blog-post-author::after {
    content: '•';
    margin-left: 1.5rem;
    opacity: 0.6;
}

.blog-post-readtime::after {
    display: none;
}

.blog-post-container {
    background-color: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    margin-top: -2rem; /* Small negative margin to create overlay effect but not too much */
    position: relative;
    z-index: 2;
    padding: 4rem 0 3rem 0; /* Increased top padding to prevent overlap */
    min-height: calc(100vh - 400px); /* Ensure adequate height */
}

/* Override any container padding for full-width hero */
.blog-post-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post Tags - Now positioned at bottom */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem auto 2rem; /* More margin at top since it's now at bottom */
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    max-width: 800px;
}

.post-tags .tag {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    color: #5B3AFF;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e8ebff;
    cursor: default;
    pointer-events: none;
}

/* Featured Image */
.featured-image {
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    max-width: 800px;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Post Content */
.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

/* Remove duplicate H1 styling since we have it in hero */
.blog-post-content h1 {
    display: none; /* Hide any H1 in content since we have it in hero */
}

.blog-post-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #444;
    font-weight: 600;
    line-height: 1.4;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: #555;
    font-weight: 600;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.blog-post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-post-content blockquote {
    border-left: 4px solid #5B3AFF;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
    position: relative;
}

.blog-post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: #5B3AFF;
    opacity: 0.3;
    font-family: serif;
}

.blog-post-content code {
    background-color: #f8f8f8;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e91e63;
    border: 1px solid #e8e8e8;
}

.blog-post-content pre {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e8e8e8;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.blog-post-content pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    color: #333;
}

/* Company Info Box - Two Column Layout */
.company-info-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    border: 2px solid #e8ebff;
    border-left: 4px solid #5B3AFF;
    padding: 2rem;
    margin: 3rem auto;
    border-radius: 12px;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Left side - Text content */
.company-info-left {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.company-info-left p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Right side - CTA Button */
.company-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* Prevents CTA from shrinking */
}

/* CTA Button within Company Info Box - inherits from .get-started-button */
.company-info-box .get-started-button {
    white-space: nowrap; /* Keeps button text on one line */
    margin: 0;
}

/* Subtext under CTA button */
.cta-subtext {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    white-space: nowrap; /* Keeps text on one line */
}

/* Social Share Section */
.social-share-section {
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #fafbff;
    border-radius: 12px;
    max-width: 800px;
}

.social-share-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #3b5998 0%, #4267B2 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
}

.share-btn.copy-link {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Related Posts Section */
.related-posts-section {
    margin: 4rem auto 2rem;
    max-width: 1000px;
    padding: 0 1rem;
}

.related-posts-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 3px solid #5B3AFF;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.related-post-content {
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-content h4 {
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.related-post-card:hover .related-post-content h4 {
    color: #5B3AFF;
}

.related-post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.related-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* Category Navigation System - OLD NAVIGATION BAR (HIDDEN) */
/* Kept for backward compatibility but hidden */
.blog-category-nav {
    display: none !important;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-nav-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 0.5rem;
}

.category-nav-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.category-nav-item {
    flex-shrink: 0;
}

.category-nav-button {
    background: #f8f9fa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-nav-button:hover {
    background: #5B3AFF;
    color: white;
    border-color: #5B3AFF;
    box-shadow: 0 4px 12px rgba(91, 58, 255, 0.2);
}

.category-nav-button.active {
    background: #5B3AFF;
    color: white;
    border-color: #5B3AFF;
}

.category-nav-button .count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.category-nav-button:not(.active) .count {
    background: #e5e7eb;
    color: #6b7280;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .blog-post-hero {
        padding: 3rem 0 5rem 0; /* Increased bottom padding for mobile */
    }
    
    .blog-post-title {
        font-size: 2.5rem;
    }
    
    .blog-post-meta {
        margin-bottom: 2rem; /* Maintain bottom margin on mobile */
    }
    
    .blog-post-container {
        padding: 3rem 0 2rem 0; /* Increased top padding for mobile */
        border-radius: 15px 15px 0 0;
        margin-top: -1.5rem; /* Slightly less negative margin on mobile */
    }
    
    .blog-post-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Stack company info box vertically on mobile */
    .company-info-box {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .company-info-right {
        align-items: center; /* Center the button horizontally */
    }
    
    .company-info-box .get-started-button {
        width: auto; /* Let button size to its content */
        display: inline-block; /* Allows centering while maintaining button size */
        text-align: center;
    }
    
    .social-share-section {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .social-share-buttons {
        gap: 0.75rem;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-post-date::after,
    .blog-post-author::after {
        display: none;
    }
    
    .post-tags {
        padding: 0 1rem 2rem;
    }
    
    .related-posts-section {
        padding: 0 1rem;
    }

    .blog-category-nav {
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
    }
    
    .category-nav-container {
        padding: 0 0.75rem;
    }
    
    /* Hide desktop navigation on mobile */
    .category-nav-list {
        display: none;
    }
    
    /* Show mobile dropdown on mobile */
    .mobile-category-dropdown {
        display: block;
    }
    
    .mobile-category-select {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
        padding-right: 2.25rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .category-nav-container {
        padding: 0 1.5rem;
    }
    
    .category-nav-list {
        justify-content: center;
    }
    
    /* Hide mobile dropdown on tablet and up */
    .mobile-category-dropdown {
        display: none;
    }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
    .category-nav-list {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .category-nav-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    /* Hide mobile dropdown on desktop */
    .mobile-category-dropdown {
        display: none;
    }
}

/* Smooth scrolling for mobile */
.category-nav-list {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.category-nav-button:focus {
    outline: 2px solid #5B3AFF;
    outline-offset: 2px;
}

/* Loading state */
.category-nav-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Active state - No animation, clean, static appearance */
/* .category-nav-button.active styling is intentionally omitted for clean appearance */

/* Mobile Dropdown Navigation */
.mobile-category-dropdown {
    display: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.mobile-category-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    min-height: 44px; /* Touch-friendly minimum height */
}

.mobile-category-select:focus {
    outline: none;
    border-color: #5B3AFF;
    box-shadow: 0 0 0 3px rgba(91, 58, 255, 0.1);
}

.mobile-category-select:hover {
    border-color: #d1d5db;
}

.mobile-category-select option {
    padding: 0.5rem;
    font-size: 0.875rem;
    background: white;
    color: #374151;
}

/* Loading state for mobile dropdown */
.mobile-category-select.loading {
    opacity: 0.7;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3ccircle cx='12' cy='12' r='10' stroke='%236b7280' stroke-width='2' fill='none' stroke-dasharray='31.416' stroke-dashoffset='31.416'%3e%3canimate attributeName='stroke-dashoffset' dur='1s' values='31.416;0' repeatCount='indefinite'/%3e%3c/circle%3e%3c/svg%3e");
    background-position: right 0.75rem center, right 2.5rem center;
    background-size: 1.5em 1.5em, 1em 1em;
}

/* ============================================
   BLOG CATEGORY SELECT NAVIGATION
   Styled to match header navigation pill buttons
   ============================================ */

/* Blog Category Select Dropdown - Modern pill style matching header nav */
.blog-category-select {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 2.5rem 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    background: rgba(91, 58, 255, 0.1);
    color: #5B3AFF;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'14\' height=\'14\' viewBox=\'0 0 14 14\'%3E%3Cpath fill=\'%235B3AFF\' d=\'M7 10L2 5h10z\'/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 14px;
    transition: all 0.3s ease;
    min-width: 220px;
    box-shadow: 0 2px 4px rgba(91, 58, 255, 0.1);
}

.blog-category-select:focus {
    outline: none;
    background-color: #5B3AFF;
    color: white;
    box-shadow: 0 0 0 3px rgba(91, 58, 255, 0.2), 0 4px 12px rgba(91, 58, 255, 0.3);
    background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'14\' height=\'14\' viewBox=\'0 0 14 14\'%3E%3Cpath fill=\'%23ffffff\' d=\'M7 10L2 5h10z\'/%3E%3C/svg%3E');
}

.blog-category-select option {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    background: white;
    color: #333;
    border-radius: 0;
}

.blog-category-select option:checked {
    background-color: #5B3AFF;
    color: white;
}

/* Responsive styling for category select */
@media (max-width: 768px) {
    .blog-category-select {
        font-size: 0.9375rem;
        padding: 0.625rem 2.25rem 0.625rem 1.25rem;
        min-width: 200px;
        width: 100%;
        max-width: 100%;
    }
    
    .category-title-wrapper {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-category-select {
        min-width: 200px;
    }
}