/* General Blog Page Styles */
.blog-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: #f8f9fa;
    color: #333;
}

/* Hero Section */
.blog-hero {
    background: none !important;
    color: #1a202c;
    padding: 60px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 600!important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1a202c;
}

.blog-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #4a5568;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    outline: none;
}

.search-box .search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 50px;
    border: none;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.search-box .search-button:hover {
    background-color: var(--secondary);
}

/* Featured Post */
.featured-post {
    padding: 80px 0;
}

.featured-post .container {
    max-width: 1200px;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.featured-text {
    flex: 1;
}

.featured-text .category {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    margin-bottom: 20px;
}

.featured-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.featured-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.featured-image {
    flex: 1;
}

.featured-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Blog Grid */
.blog-grid {
    padding: 80px 0;
    background-color: white;
}

.blog-grid .container {
    max-width: 1200px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.filter-options button {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.filter-options button.active, .filter-options button:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

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

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-image .category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 20px;
    flex-wrap: wrap;
}

.post-actions .like-btn,
.post-actions .comment-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.post-actions .read-more {
    margin-left: auto;
    color: #4A90E2;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-details .author {
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    display: block;
}

.meta-details .date {
    font-size: 0.9rem;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

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

.pagination a,
.pagination span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.pagination button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.pagination button.active, .pagination button:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button.next {
    width: auto;
    padding: 0 25px;
    border-radius: 50px;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
    padding: 80px 0;
    text-align: center;
    color: #333;
}

.newsletter .container {
    max-width: 900px;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .featured-content {
        flex-direction: column;
        text-align: center;
    }
    .featured-image {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 20px;
    }
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    .featured-text h2, .section-header h2, .newsletter-content h2 {
        font-size: 2rem;
    }
}
