.blog-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 60px 0;
}

.blog-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-header p {
    opacity: 0.9;
    max-width: 800px;
}

.blog-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-main {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.post-image {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

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

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #4361ee;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #212529;
}

.post-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.post-date {
    font-weight: 500;
}

.read-time {
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #3a0ca3;
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-top: 20px;
}

.post-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 60px 0 40px;
}

.post-header .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.post-category-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.post-header .post-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    color: white;
}

.post-content-wrapper {
    background-color: white;
    padding: 20px 0 40px;
}

.post-meta-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.post-meta-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #6c757d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item .icon {
    color: #4361ee;
    font-size: 1.1rem;
}

.post-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-content {
    max-width: none;
}

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

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

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #212529;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #212529;
}

.post-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #212529;
}

.post-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #495057;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #495057;
    list-style-type: disc;
}

.post-content blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #4361ee;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #495057;
}

.highlight-box {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.highlight-box h4 {
    color: #1976d2;
    margin-top: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content table th,
.post-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.post-content table tbody td {
    color: #495057 !important;
}

.post-content table th {
    background-color: #4361ee;
    color: white;
    font-weight: 600;
}

.post-content table tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.related-posts-section {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 20px;
}

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

.related-posts-section h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #212529;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.related-post-image {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

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

.related-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #4361ee;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #212529;
}

.related-post-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.related-post-date {
    font-weight: 500;
}

.related-post-read-time {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
}


@media (max-width: 768px) {
    .blog-layout {
        padding: 0 15px;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

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

    .post-header .post-title {
        font-size: 1.8rem;
    }

    .post-meta-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        text-align: center;
    }

    .meta-item {
        font-size: 0.85rem;
        min-width: auto;
    }

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

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

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

    .post-content p {
        font-size: 1rem;
    }

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

    .social-share {
        gap: 10px;
    }

    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .blog-header {
        padding: 60px 0;
    }

    .post-header {
        padding: 40px 0 30px;
    }

    .post-content-wrapper {
        padding: 30px 0 60px;
    }

    .post-layout {
        gap: 20px;
        padding: 0 10px;
    }

    .dimension-card {
        padding: 15px;
    }

    .post-content table {
        font-size: 0.85rem;
    }

    .post-content table th,
    .post-content table td {
        padding: 8px 10px;
    }

    .related-posts-section {
        padding: 30px 0;
        margin-top: 30px;
    }

    .related-posts-section h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

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

    .featured-image {
        margin: 15px auto;
    }

    .post-content-wrapper {
        padding: 15px 0 40px;
    }
}