/* Blog-specific styles */

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav-links .active {
    color: #ff9900;
    font-weight: 600;
}

/* Blog Main Layout */
.blog-main {
    margin-top: 80px;
    min-height: calc(100vh - 200px);
    clear: both;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Content Area */
.blog-content-area {
    background: #f8f9fa;
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

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

.blog-card-content {
    padding: 2.5rem;
}

.blog-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h2 a:hover {
    color: #ff9900;
}

.blog-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.blog-meta {
    margin-bottom: 1.5rem;
}

.blog-tags {
    background: #ff9900;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more {
    color: #ff9900;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #e68900;
}

/* Blog CTA Section */
.blog-cta {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.cta-content h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.cta-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-large {
    background: #ff9900;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button-large:hover {
    background: #e68900;
    transform: translateY(-1px);
}

/* Individual Blog Post Styles */
.blog-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    clear: both;
    box-shadow: none !important;
}

.blog-header-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.blog-post-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
    z-index: 2;
    box-shadow: none !important;
}

.blog-post-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post-meta {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-content-wrapper {
    background: #f8f9fa;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    box-shadow: none !important;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    line-height: 1.7;
    color: #333;
    box-shadow: none !important;
    overflow: hidden;
}

.blog-content-inner {
    padding: 3rem;
}

.blog-content h2 {
    color: #333;
    margin: 2.5rem 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.blog-content h4 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.blog-content ul, .blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.blog-content strong {
    color: #333;
    font-weight: 600;
}

.blog-content em {
    color: #666;
}

.blog-content blockquote {
    border-left: 4px solid #ff9900;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

/* Book Promotion Section */
.book-promotion {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 2px solid #ff9900;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.book-promotion-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    align-items: center;
}

.book-promotion-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.book-promotion-text h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.book-promotion-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.book-promotion-button {
    background: #ff9900;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.book-promotion-button:hover {
    background: #e68900;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .book-promotion-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-promotion-text p {
        text-align: center;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-main {
        margin-top: 120px;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
}