/* ===================================
   Blog Page Styles
   =================================== */

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

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .blog-header h1 {
        color: white;
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .blog-header p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.3rem;
    }

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

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .blog-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
}

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

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

.blog-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .blog-meta-item i {
        color: #667eea;
    }

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

    .blog-tag:hover {
        background: #667eea;
        color: white;
    }

/* Sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.blog-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .sidebar-widget h3 {
        color: #667eea;
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
        border-bottom: 2px solid #f0f0f0;
    }

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-categories li {
        margin-bottom: 0.8rem;
    }

    .sidebar-categories a {
        color: #333;
        text-decoration: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s;
    }

        .sidebar-categories a:hover {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
        }

.category-count {
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

    .popular-post:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
}

    .popular-post-title a {
        color: #333;
        text-decoration: none;
    }

        .popular-post-title a:hover {
            color: #667eea;
        }

.popular-post-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Search Box */
.blog-search {
    position: relative;
}

    .blog-search input {
        width: 100%;
        padding: 0.8rem 1rem;
        padding-right: 3rem;
        border: 2px solid #f0f0f0;
        border-radius: 10px;
        font-size: 1rem;
        transition: border-color 0.3s;
    }

        .blog-search input:focus {
            outline: none;
            border-color: #667eea;
        }

    .blog-search button {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        cursor: pointer;
        transition: opacity 0.3s;
    }

        .blog-search button:hover {
            opacity: 0.9;
        }

/* Single Post Styles */
.post-container {
    max-width: 900px;
    margin: 0 auto;
}

.post-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .post-meta-item i {
        color: #667eea;
    }

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

    .post-content h2 {
        color: #667eea;
        font-size: 2rem;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .post-content h3 {
        color: #764ba2;
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 0.8rem;
    }

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

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

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

    .post-content strong {
        color: #667eea;
        font-weight: 600;
    }

    .post-content a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s;
    }

        .post-content a:hover {
            border-bottom-color: #667eea;
        }

/* Info Boxes in Posts */
.info-box,
.tip-box,
.warning-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.info-box {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
}

.tip-box {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

    .related-posts h3 {
        color: #667eea;
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

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

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s;
}

    .share-button:hover {
        transform: translateY(-3px);
    }

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

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

.share-linkedin {
    background: #0077b5;
}

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

/* Breadcrumbs */
.breadcrumbs {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

    .breadcrumbs ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .breadcrumbs li {
        color: white;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .breadcrumbs a {
        color: white;
        text-decoration: none;
        transition: opacity 0.3s;
    }

        .breadcrumbs a:hover {
            opacity: 0.8;
        }

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

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

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

    .post-card {
        padding: 2rem 1.5rem;
    }

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

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

    .share-buttons {
        flex-wrap: wrap;
    }
}
