/* blog.css */

/* Main section styles */
main {
    padding: 2rem;
}

.blog-post {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    width: 75%;
}

/* Headings */
.blog-post h1 {
    font-size: 2.5rem;
    color: #5f4b8b;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

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

.blog-post h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Paragraphs */
.blog-post p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Blockquotes */
.blog-post blockquote {
    font-style: italic;
    background-color: rgba(95, 75, 139, 0.1);
    border-left: 5px solid #5f4b8b;
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 8px;
}

/* Lists */
.blog-post ul,
.blog-post ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-post ul li,
.blog-post ol li {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Images */
.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

.content-with-image {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.content-with-image img.left-image {
    margin-right: 1rem;
    width: 30%;
    flex-shrink: 0;
}

.content-with-image img.right-image {
    margin-left: 1rem;
    width: 30%;
    flex-shrink: 0;
}

.content-with-image div {
    flex-grow: 1;
}

/* Blog Cards Layout */
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card img {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    color: #5f4b8b;
    margin: 0.5rem 0;
}

.blog-card p {
    font-size: 1rem;
    color: #666;
}

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

.blog-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Author Information in Blog Posts */
.blog-author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem 0;
    font-size: 0.95rem;
    color: #666;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.blog-author-info a {
    color: #5f4b8b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-author-info a:hover {
    color: #4a3d6f;
    text-decoration: underline;
}

.blog-author-info .post-date {
    font-style: italic;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Author Profile Pages */
.author-profile {
    max-width: 1000px;
    margin: 0 auto;
}

.author-profile h1 {
    font-size: 2.8rem;
    color: #5f4b8b;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.author-profile .author-expertise {
    font-size: 1.3rem;
    color: #888;
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
}

.author-profile .author-bio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.author-profile .author-bio p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Expertise Areas */
.author-expertise-areas {
    margin-bottom: 3rem;
}

.author-expertise-areas h2 {
    font-size: 2rem;
    color: #5f4b8b;
    margin-bottom: 2rem;
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.expertise-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.expertise-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.expertise-item h3 {
    font-size: 1.2rem;
    color: #5f4b8b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.expertise-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Recent Posts Section */
.recent-posts {
    margin-bottom: 3rem;
}

.recent-posts h2 {
    font-size: 2rem;
    color: #5f4b8b;
    margin-bottom: 2rem;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.post-card h3 {
    font-size: 1.1rem;
    color: #5f4b8b;
    margin: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-card .post-date {
    font-size: 0.9rem;
    color: #888;
    margin: 0 1rem 1rem;
    font-style: italic;
}

/* Blog Post Meta Information */
.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #5f4b8b;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.author-name {
    font-size: 1rem;
    color: #5f4b8b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.author-name:hover {
    color: #4a3d6f;
    text-decoration: underline;
}

.publish-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.publish-date time {
    font-size: 1rem;
    color: #5f4b8b;
    font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .blog-post {
        width: 90%;
        padding: 1rem;
        margin: 1rem;
    }

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

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .content-with-image {
        flex-direction: column;
        align-items: center;
    }

    .content-with-image img.left-image,
    .content-with-image img.right-image {
        margin: 1rem 0;
        width: 80%;
    }

    .blog-post .btn {
        width: 90%;
        font-size: 1rem;
    }

    .blog-author-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-profile h1 {
        font-size: 2.2rem;
    }

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

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

    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
