/* Blog Page Styles - Synchronized with Main Page */

:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

/* Blog Header */
.blog-simple-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.logo a:hover {
    color: var(--secondary-color);
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Blog Header Section */
.blog-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

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

/* Article Card */
.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

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

.article-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-card-image::after {
    content: '🔧';
    font-size: 60px;
    opacity: 0.5;
}

.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-card-title a:hover {
    color: var(--primary-color);
}

.article-card-excerpt {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.article-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.article-read-more:hover {
    color: var(--secondary-color);
}

.article-read-more::after {
    content: '→';
    transition: var(--transition);
}

.article-read-more:hover::after {
    transform: translateX(3px);
}

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

.pagination-btn,
.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-number:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f9ff;
}

.pagination-number.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    color: #9ca3af;
    padding: 0 5px;
}

/* Related Articles */
.related-articles {
    margin-top: 80px;
    padding: 60px 0;
    background: #f8fafc;
    border-radius: 20px;
}

.related-articles-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 40px;
}

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

.related-article-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.related-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-article-card a {
    text-decoration: none;
    color: inherit;
}

.related-article-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-header {
        padding: 40px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .article-card-content {
        padding: 20px;
    }

    .article-card-title {
        font-size: 1.1rem;
    }

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

    .related-articles {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 20px 15px;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 0.9rem;
    }

    .blog-header {
        padding: 30px 15px;
        margin-bottom: 40px;
    }

    .article-card-image::after {
        font-size: 40px;
    }

    .article-card-content {
        padding: 15px;
    }

    .article-card-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .article-card-excerpt {
        font-size: 0.875rem;
        margin-bottom: 15px;
    }

    .article-card-footer {
        padding-top: 15px;
    }

    .pagination {
        margin: 40px 0;
    }

    .pagination-btn,
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .related-articles {
        margin-top: 60px;
        padding: 30px 15px;
    }

    .related-articles-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .related-article-card {
        padding: 20px;
    }

    .related-article-card h3 {
        font-size: 1rem;
    }
}

/* Fixed Call Button (same as main page) */
.fixed-call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(37, 99, 235, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.fixed-call-button:hover {
    background: #1e40af;
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 99, 235, 0.5);
}

.fixed-call-button svg {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 25px rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 5px 35px rgba(37, 99, 235, 0.6);
    }
    100% {
        box-shadow: 0 5px 25px rgba(37, 99, 235, 0.4);
    }
}

@media (max-width: 768px) {
    .fixed-call-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .fixed-call-button svg {
        width: 24px;
        height: 24px;
    }
}