/* Blog Styles */

/* Page Header Override */
.page-header.blog-header {
    background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.8)), 
                url('https://images.unsplash.com/photo-1629909615184-74f495363b67?w=1920&q=80') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.page-header.blog-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.page-header.blog-header p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: #f8fbff;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured Post */
.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.1);
}

.blog-card.featured .blog-image {
    height: 100%;
    min-height: 400px;
}

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

.blog-card.featured .blog-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card.featured h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-card.featured h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card.featured h2 a:hover {
    color: var(--accent);
}

/* Regular Blog Cards */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.15);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 30px;
}

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

.blog-date::before {
    content: '📅';
    margin-right: 5px;
}

.blog-readtime::before {
    content: '⏱️';
    margin-right: 5px;
}

.blog-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

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

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-numbers a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-numbers a:hover,
.page-numbers a.active {
    background: var(--accent);
    color: var(--primary);
}

.blog-pagination .btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1565c0 100%);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-box h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.newsletter-box p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Individual Blog Post Styles */
.blog-post-header {
    background: var(--primary);
    color: white;
    padding: 120px 0 60px;
    margin-top: 90px;
}

.blog-post-header .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-post-header .blog-category {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
    background: var(--accent);
}

.blog-post-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0.9;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
}

.blog-post-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.blog-post-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.blog-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #444;
}

.blog-post-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

.blog-post-content blockquote {
    background: #f8fbff;
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.blog-post-content img {
    width: 100%;
    border-radius: 16px;
    margin: 30px 0;
}

/* Author Box */
.author-box {
    background: #f8fbff;
    padding: 40px;
    border-radius: 16px;
    margin-top: 60px;
    display: flex;
    gap: 30px;
    align-items: center;
}

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

.author-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.author-info p {
    color: #666;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    background: #f8fbff;
    padding: 80px 0;
}

.related-posts h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb {
    background: #f0f4f8;
    padding: 20px 0;
    margin-top: 90px;
}

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

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: #888;
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured .blog-content {
        padding: 30px;
    }
    
    .blog-card.featured h2 {
        font-size: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    .page-header.blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-card.featured {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}
