/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 60px;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb-item:not(:last-child)::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumb-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 600;
    padding: 4px 8px;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 0;
        margin-top: 56px;
    }
    
    .breadcrumb-container {
        padding: 0 16px;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   BLOG SECTION STYLES
   ============================================ */
.blog-section {
    padding: 60px 0;
}


.blog-section .container {
    display: flex;
    flex-direction: column;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Stats Section */
.blog-stats-section {
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.blog-stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Blog Section */
.featured-blog-section {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.featured-blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border: 3px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s ease;
}

.featured-blog-card:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    transform: translateY(-4px);
}

.featured-content {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 380px;
}

.featured-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 380px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 280px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

/* Ensure SVG images display correctly */
.featured-image img[src$=".svg"] {
    width: 80%;
    height: auto;
    max-width: 240px;
}

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

.featured-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Blog Featured Badge - Unique class to avoid conflicts with all-tools.css */
.blog-featured-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: static !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

.blog-featured-badge::before {
    content: '★';
    font-size: 0.7rem;
}

/* Ensure blog featured badge is never affected by all-tools.css */
.featured-info .blog-featured-badge,
.featured-blog-card .blog-featured-badge,
#featured-blog .blog-featured-badge {
    display: inline-flex !important;
    position: static !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}


.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.featured-category {
    color: #667eea;
    font-weight: 700;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.featured-readtime {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-readtime::before {
    content: '⏱';
    font-size: 0.85rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.featured-excerpt {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 28px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
    margin-top: auto;
}

.featured-author {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.featured-author strong {
    color: #334155;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    cursor: pointer;
}

.featured-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    gap: 14px;
}

.featured-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.featured-btn:hover::after {
    transform: translateX(4px);
}

/* Blog Controls Section */
.blog-controls-section {
    padding: 30px 0;
    background: white;
    position: sticky;
    top: 60px;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.blog-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-wrapper {
    flex: 1;
    min-width: 280px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #667eea;
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #f0f0f0;
    color: #667eea;
}

/* Filter Row - Contains filter controls and category chips */
.filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 12px 36px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 160px;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Category Chips */
.category-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.chip {
    padding: 8px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip:hover {
    border-color: #667eea;
    color: #667eea;
}

.chip.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* Results Counter */
.results-counter {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.results-counter span {
    font-weight: 600;
    color: #667eea;
}

/* Blog Grid Container */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Blog Card Styles */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 480px;
    position: relative;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(102, 126, 234, 0.1) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(102, 126, 234, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-card:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) translateY(-12px);
    box-shadow: 0 20px 40px rgba(118, 75, 162, 0.3), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #999;
}

.blog-card-category {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #999;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #667eea;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    flex: 0 0 auto;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.blog-card-author::before {
    content: "By";
    font-size: 0.85rem;
}

.blog-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.blog-card-link:hover .blog-read-more {
    gap: 10px;
}

/* Loading Skeleton */
.blog-skeleton {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 480px;
    border: 2px solid #f0f0f0;
}

.skeleton-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-meta {
    height: 20px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
}

.skeleton-title {
    height: 24px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-excerpt {
    height: 60px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
}

.skeleton-footer {
    height: 20px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50px;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.load-more-btn svg {
    transition: transform 0.3s ease;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* See All Section */
.blog-see-all {
    text-align: center;
    margin-top: 40px;
}

.blog-see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: black;
    color: white;
    border: 2px solid black;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-see-all-link:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid,
    .blog-skeleton {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-header h2 {
        font-size: 2rem;
    }

    .blog-section {
        padding: 40px 0;
    }

    .blog-stats-bar {
        gap: 40px;
    }

    .featured-content {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 280px;
        padding: 30px;
    }

    .featured-image img {
        max-width: 220px;
        max-height: 220px;
    }

    .featured-info {
        padding: 30px;
    }

    .featured-title {
        font-size: 1.6rem;
    }
}

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

    .blog-header h2 {
        font-size: 1.75rem;
    }

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

    .blog-section {
        padding: 30px 0;
    }

    .blog-card {
        height: 460px;
    }

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

    .blog-card-content {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 1rem;
    }

    .blog-card-excerpt {
        font-size: 0.9rem;
    }

    /* Mobile controls */
    .blog-controls-section {
        position: static;
        padding: 20px 0;
    }

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        min-width: 100%;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        width: 100%;
    }

    .filter-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .filter-group {
        flex: 1;
        min-width: 140px;
    }

    .filter-group select {
        width: 100%;
        min-width: 100%;
    }

    .category-chips {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        width: 100%;
    }

    .category-chips::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* Stats bar mobile */
    .blog-stats-bar {
        gap: 24px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    /* Featured blog mobile */
    .featured-image {
        min-height: 220px;
        padding: 24px;
    }

    .featured-image img {
        max-width: 180px;
        max-height: 180px;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .featured-excerpt {
        font-size: 0.95rem;
    }

    .featured-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .featured-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-grid,
    .blog-skeleton {
        grid-template-columns: 1fr;
    }

    .blog-card {
        height: 440px;
    }

    .blog-header h2 {
        font-size: 1.5rem;
    }

    .blog-header p {
        font-size: 0.95rem;
    }

    .blog-card-content {
        padding: 14px;
    }

    .blog-card-title {
        font-size: 0.95rem;
    }

    .blog-card-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }

    .blog-section {
        padding: 24px 0;
    }

    .blog-see-all-link {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .load-more-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
    }

    .filter-row {
        gap: 12px;
        margin-bottom: 12px;
    }

    .filter-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        min-width: 100%;
    }

    .filter-group select {
        width: 100%;
        padding: 10px 32px 10px 12px;
        font-size: 0.9rem;
    }

    .category-chips {
        gap: 6px;
        padding-bottom: 4px;
    }

    .chip {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .featured-image {
        min-height: 180px;
        padding: 20px;
    }

    .featured-image img {
        max-width: 150px;
        max-height: 150px;
    }

    .featured-info {
        padding: 20px;
    }

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

    .blog-featured-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .featured-meta {
        font-size: 0.85rem;
        gap: 12px;
    }

    .featured-excerpt {
        font-size: 0.9rem;
    }
}

/* Grid mode for all-blogs page */
.blog-grid.grid-mode {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

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

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

@media (max-width: 480px) {
    .blog-grid.grid-mode {
        grid-template-columns: 1fr;
    }
}

/* Related Blogs Section Styles */
.related-blogs-section {
    padding: 60px 0;
    background: transparent;
}

.related-blogs-section .container {
    display: flex;
    flex-direction: column;
}

.related-blogs-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.related-blogs-section .section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Related Blogs Grid */
.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    margin-top: 40px;
}

/* Related Blog Card Styles */
.related-blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 480px;
    position: relative;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(102, 126, 234, 0.1) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.related-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(102, 126, 234, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.related-blog-card:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) translateY(-12px);
    box-shadow: 0 20px 40px rgba(118, 75, 162, 0.3), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-blog-card:hover::before {
    opacity: 1;
}

.related-blog-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.related-blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.related-blog-card:hover .related-blog-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.related-blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.related-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #999;
}

.related-blog-category {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
}

.related-blog-date {
    font-size: 0.85rem;
    color: #999;
}

.related-blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

.related-blog-card:hover .related-blog-title {
    color: #667eea;
}

.related-blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.related-blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    flex: 0 0 auto;
}

.related-blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.related-blog-author::before {
    content: "By";
    font-size: 0.85rem;
}

.related-blog-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.related-blog-card-link:hover .related-blog-read-more {
    gap: 10px;
}

.related-blog-card-link:hover .related-blog-card {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) translateY(-12px);
    box-shadow: 0 20px 40px rgba(118, 75, 162, 0.3), 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Related Blogs Footer */
.related-blogs-footer {
    text-align: center;
}

/* No blogs message */
.no-blogs-message {
    text-align: center;
    color: #666;
    font-size: 1rem;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Responsive Design for Related Blogs */
@media (max-width: 1024px) {
    .related-blogs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .related-blog-card {
        height: 460px;
    }

    .related-blog-image-wrapper {
        height: 150px;
    }

    .related-blog-content {
        padding: 16px;
    }

    .related-blog-title {
        font-size: 1rem;
    }

    .related-blog-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .related-blogs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-blog-card {
        height: 440px;
    }

    .related-blog-content {
        padding: 14px;
    }

    .related-blog-title {
        font-size: 0.95rem;
    }

    .related-blog-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }
}
