/* Blog Page Styles - Modern Design */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-green) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Featured Post */
.featured-post {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin-bottom: 40px;
}

.featured-post-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 450px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post-content:hover .featured-post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: var(--primary-purple);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.featured-post-text {
    padding: 50px 40px 50px 0;
}

.featured-post-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--primary-purple);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.featured-post-text p {
    margin-bottom: 35px;
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.featured-post-text .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.featured-post-text .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Blog Posts Section */
.blog-posts {
    padding: 60px 0 80px;
    background-color: white;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
    background-color: white;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: var(--primary-green);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    background-color: #f5f5f5;
    color: #666;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-purple);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.blog-card-content p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.7;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: var(--primary-purple);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(8px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
}

.pagination a.active {
    background-color: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pagination a.next {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-green) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.newsletter-content p {
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1.2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background-color: white;
    color: var(--primary-purple);
    border: none;
    padding: 0 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form button:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-post-content {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        min-height: 350px;
    }
    
    .featured-post-text {
        padding: 40px 30px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .featured-post-text h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 15px;
    }
    
    .newsletter-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2.3rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 25px;
    }
    
    .blog-card-content h3 {
        font-size: 1.3rem;
    }
} 