/* Blog Styles */
.blog-section {
    padding: 80px 0;
}

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

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Blog Image with Video Support */
.blog-image {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

/* Video Indicator */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: none;
}

.video-indicator svg {
    margin-left: 3px;
}

.blog-card:hover .video-indicator {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Blog Content */
.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.blog-date {
    display: inline-block;
    color: #999;
    font-size: 0.9rem;
}

.blog-type {
    background: #ff0000;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

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

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #333;
    gap: 10px;
}

/* Blog Single Page */
.blog-single {
    padding: 60px 0;
    background: #fafafa;
    min-height: 100vh;
}

.blog-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Blog Header */
.blog-header {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a1a1a;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Video Container for Blog Single */
.video-wrapper {
    background: #000;
    margin: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Featured Image */
.featured-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Blog Post Content */
.blog-post-content {
    padding: 40px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

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

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2em 0 1em;
    color: #333;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5em 0 1em;
    color: #333;
}

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

.blog-post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #666;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5em;
    padding-left: 30px;
}

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

/* Content Video Embeds */
.content-video-wrapper {
    margin: 30px 0;
}

.content-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.content-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Blog Footer */
.blog-footer {
    padding: 40px;
    border-top: 1px solid #eee;
}

/* Share Section */
.blog-share {
    text-align: center;
}

.blog-share h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    color: white;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #22c35e;
    transform: translateY(-2px);
}

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

.related-posts h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.related-thumb {
    position: relative;
    display: block;
    padding-bottom: 56.25%;
    background: #f5f5f5;
    overflow: hidden;
}

.related-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,0,0,0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    pointer-events: none;
}

.related-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    margin-bottom: 10px;
}

.related-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.related-content h4 a:hover {
    color: var(--accent-color);
}

.related-content time {
    color: #999;
    font-size: 0.9rem;
}

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

.page-link {
    padding: 10px 15px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f8f8f8;
    color: #333;
    border-color: #ccc;
}

.page-link.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-dots {
    color: #999;
    padding: 0 5px;
}

/* Loading State */
.blog-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-empty p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-wrapper {
        border-radius: 0;
        box-shadow: none;
    }
    
    .blog-header {
        padding: 30px 20px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .blog-post-content {
        padding: 30px 20px;
        font-size: 1rem;
    }
    
    .blog-footer {
        padding: 30px 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.6rem;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.25rem;
    }
    
    .video-indicator {
        width: 50px;
        height: 50px;
    }
    
    .video-indicator svg {
        width: 30px;
        height: 30px;
    }
}