/* Blog Styles */

.blog-hero {
    background: linear-gradient(135deg, rgba(43, 111, 126, 0.95), rgba(91, 163, 179, 0.9)), 
                url('https://images.unsplash.com/photo-1455390582262-044cdead277a?w=1600&h=600&fit=crop') center/cover;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

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

.blog-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

.blog-controls {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.search-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary-teal);
    background: white;
    color: var(--primary-teal);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-teal);
    color: white;
}

.filter-btn.active {
    background: var(--primary-teal);
    color: white;
}

.featured-post-section {
    background: var(--cream-bg);
    padding: 60px 0;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    min-height: 400px;
    align-items: center;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.featured-content {
    padding: 40px;
}

.featured-badge {
    display: inline-block;
    background: var(--secondary-coral);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.featured-meta span i {
    margin-right: 5px;
    color: var(--primary-teal);
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--cream-bg);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-teal);
}

.blog-grid-section {
    background: white;
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

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

.blog-card-content {
    padding: 30px;
}

.blog-card-category {
    display: inline-block;
    background: var(--primary-teal);
    color: white;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-teal);
    line-height: 1.4;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.blog-card-meta span i {
    margin-right: 5px;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.blog-card-tags .tag {
    font-size: 0.75rem;
}

.read-more {
    color: var(--secondary-coral);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.no-results i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.no-results p {
    color: #999;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 16px;
    border: 2px solid var(--primary-teal);
    background: white;
    color: var(--primary-teal);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-teal);
    color: white;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

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

.pagination span {
    color: #666;
}

.newsletter-cta {
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-teal));
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 14px 30px;
    white-space: nowrap;
}

@media (max-width: 968px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 300px;
    }

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

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        padding: 100px 0 60px;
    }

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

    .featured-content {
        padding: 30px 20px;
    }

    .featured-content h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .blog-controls {
        position: relative;
        top: 0;
    }
}

.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: var(--primary-teal);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
