/* Blog integration styles for ZeroToIAM website */

/* Ensure blog pages match main site theme */
.blog-header {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 3rem 0;
    text-align: center;
}

.blog-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-header p {
    color: var(--gray-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.blog-content .container {
    display: flex;
    gap: 3rem;
}

.blog-posts {
    flex: 2;
}

.blog-sidebar {
    flex: 1;
}

.blog-post {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.blog-post h2 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.blog-post h2 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.post-excerpt {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.sidebar-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 0.8rem;
}

.sidebar-section ul li a {
    color: var(--gray-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.blog-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.blog-footer a {
    color: #fff;
    text-decoration: underline;
}

.blog-footer a:hover {
    color: var(--primary-color);
}

/* Individual blog post page styles */
.blog-post-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem;
}

.blog-post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.blog-post-body {
    color: var(--dark-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 2.5rem 0 1rem;
}

.blog-post-body h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.blog-post-body ul, .blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--gray-color);
    margin: 2rem 0;
}

.blog-post-body code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.blog-post-body pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-post-body pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.back-to-blog {
    display: inline-block;
    margin-top: 3rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.back-to-blog:hover {
    color: var(--primary-dark);
}

/* Responsive styles for blog */
@media (max-width: 992px) {
    .blog-content .container {
        flex-direction: column;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
