﻿

/* Blog Header */
.blog-header {
    background-color: #f0f9ff;
    padding: 60px 0 40px;
    text-align: center;
}

    .blog-header h1 {
        color: #059669;
        margin-bottom: 20px;
    }

    .blog-header p {
        color: #6aac7b;
        font-size: 20px;
        max-width: 800px;
        margin: 0 auto;
        font-weight: bold;
    }

/* Blog Search */
.blog-search {
    background-color: #f0f9ff;
    padding: 0 0 40px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #059669;
    border-radius: 5px 0 0 5px;
    font-family: 'peyda';
    font-size: 16px;
}

    .search-input:focus {
        outline: none;
        border-color: #047857;
    }

.search-button {
    background-color: #059669;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 5px 0px 0px 5px;
    cursor: pointer;
    font-family: 'peyda';
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .search-button:hover {
        background-color: #047857;
    }

/* Blog Categories */
.blog-categories {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.categories-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-tag {
    background-color: white;
    color: #059669;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #059669;
    transition: all 0.3s ease;
}

    .category-tag:hover, .category-tag.active {
        background-color: #059669;
        color: white;
    }

/* Blog Posts */
.blog-posts {
    padding: 60px 0;
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background-color: #e6f7f0;
    color: #059669;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.post-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.4;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-read-more {
    color: #059669;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .post-read-more:hover {
        color: #047857;
    }

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

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: white;
    color: #059669;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

    .page-item:hover, .page-item.active {
        background-color: #059669;
        color: white;
        border-color: #059669;
    }

.page-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: white;
    color: #059669;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

    .page-arrow:hover {
        background-color: #f0f0f0;
        border-color: #059669;
    }

/* Newsletter */
.newsletter {
    background-color: #f0f9ff;
    padding: 60px 0;
    text-align: center;
}

    .newsletter h2 {
        color: #059669;
        margin-bottom: 20px;
        font-size: 32px !important;
    }

    .newsletter p {
        color: #6aac7b;
        font-size: 18px;
        max-width: 600px;
        margin: 0 auto 30px;
    }

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #059669;
    border-radius: 5px 0 0 5px;
    font-family: 'peyda';
    font-size: 16px;
}

    .newsletter-input:focus {
        outline: none;
        border-color: #047857;
    }

.newsletter-button {
    background-color: #059669;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-family: 'peyda';
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .newsletter-button:hover {
        background-color: #047857;
    }

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

    .footer-column h3 {
        color: white;
        font-size: 18px !important;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 2px;
            background-color: #059669;
        }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: #059669;
        }

.footer-contact-info {
    margin-bottom: 15px;
}

    .footer-contact-info p {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        color: #ccc;
        font-size: 14px;
    }

    .footer-contact-info i {
        color: #059669;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: #059669;
        transform: translateY(-3px);
    }

.footer-newsletter h3 {
    margin-bottom: 15px;
}

.footer-newsletter p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-newsletter-form {
    display: flex;
    max-width: 100%;
}

.footer-newsletter-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
}

.footer-newsletter-button {
    background-color: #059669;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .footer-newsletter-button:hover {
        background-color: #047857;
    }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

    .footer-bottom p {
        margin-bottom: 10px;
    }

    .footer-bottom a {
        color: #059669;
        text-decoration: none;
    }

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    /* Header Mobile */
    .header-container {
        position: relative;
    }

    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        margin: 0 auto;
    }

    .auth-buttons {
        display: none;
    }

    /* Blog Header Mobile */
    .blog-header {
        padding: 40px 0 30px;
    }

        .blog-header h1 {
            font-size: 36px !important;
        }

        .blog-header p {
            font-size: 16px;
        }

    /* Blog Posts Mobile */
    .posts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card {
        max-width: 450px;
        margin: 0 auto;
    }

    /* Newsletter Mobile */
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input {
        border-radius: 5px;
    }

    .newsletter-button {
        border-radius: 5px;
        padding: 12px;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .footer-newsletter-input {
        border-radius: 4px;
        width: 100%;
    }

    .footer-newsletter-button {
        border-radius: 4px;
        width: 100%;
        padding: 10px;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 28px !important;
    }

    .blog-header p {
        font-size: 14px;
    }

    .category-tag {
        font-size: 14px;
        padding: 6px 15px;
    }

    .pagination {
        gap: 5px;
    }

    .page-item, .page-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

