/* Blog Page Styles */

/* Hero Section */
.blog-hero {
    margin-top: 152px;
    height: 192px;
    background: #E0F3F1;
    position: relative;
    overflow: hidden;

    .container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;

        h1 {
            font-family: 'Raleway', sans-serif;
            font-weight: 700;
            font-size: 50px;
            color: #000;
            margin-bottom: 20px;
        }

        .blog-hero-clouds {
            position: absolute;
            top: 53px;
            right: 10px;
            z-index: 10;
            mix-blend-mode: soft-light;
            object-fit: cover;
        }
    }
}

/* Blog Posts Section */
.blog-posts {
    padding: 60px 0;

    .container {
        max-width: 1200px;
        margin: 0 auto;

        /* Blog Grid (List View) */
        .blog-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 60px;

            .blog-post {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 40px;
                align-items: start;

                .blog-post-image {
                    width: 100%;
                    height: 325px;
                    overflow: hidden;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }

                .blog-post-content {
                    padding-right: 40px;

                    h2 {
                        font-family: 'Montserrat', sans-serif;
                        font-weight: 700;
                        font-size: 30px;
                        line-height: 1.5;
                        color: #0D1425;
                        margin-bottom: 15px;
                    }

                    .blog-post-meta {
                        margin-bottom: 15px;
                        font-family: 'Montserrat', sans-serif;
                        font-size: 11px;
                        color: #000;
                        letter-spacing: -0.2px;

                        .date {
                            margin-right: 15px;
                        }

                        .author {
                            margin-right: 10px;
                        }

                        .byline {
                            display: none;
                        }
                    }

                    .preview {
                        font-family: 'Montserrat', sans-serif;
                        font-size: 13.5px;
                        line-height: 1.5;
                        color: #000;
                        margin-bottom: 20px;
                    }

                    .read-more {
                        font-family: 'Montserrat', sans-serif;
                        font-weight: 700;
                        font-size: 14px;
                        color: #0D1425;
                        text-decoration: none;
                        display: inline-block;
                        transition: color 0.3s ease;

                        &:hover {
                            color: #DE156F;
                        }
                    }
                }
            }
        }

        /* Single Post View */
        .single-post {
            max-width: 800px;
            margin: 0 auto;
            margin-top: 152px;

            .back-to-blog {
                display: none;  /* inline-block; */
                font-family: 'Montserrat', sans-serif;
                font-weight: 700;
                font-size: 16px;
                color: #0D1425;
                text-decoration: none;
                margin-bottom: 40px;
                transition: color 0.3s ease;

                &:hover {
                    color: #DE156F;
                }
            }

            .post-header {
                margin-bottom: 60px;

                h1 {
                    font-family: 'Montserrat', sans-serif;
                    font-weight: 700;
                    font-size: 40px;
                    line-height: 1.2;
                    color: #0D1425;
                    margin-bottom: 30px;
                }

                .post-meta {
                    font-family: 'Montserrat', sans-serif;
                    font-size: 14px;
                    font-weight: bold;
                    color: #000;
                    padding: 20px 0;
                    margin-bottom: 40px;
                    border-top: 1px solid #E0E0E0;
                    border-bottom: 1px solid #E0E0E0;

                    .date {
                        display: none;
                        margin-right: 15px;
                    }

                    .author {
                        font-weight: bold;
                    }

                    .byline {
                        font-weight: bold;
                    }
                }

                .post-image {
                    display: none;
                    width: 100%;
                    height: 400px;
                    overflow: hidden;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }

            .post-content {
                font-family: 'Montserrat', sans-serif;
                font-size: 18px;
                line-height: 1.8;
                color: #333;

                h1, h2, h3, h4, h5, h6 {
                    font-family: 'Montserrat', sans-serif;
                    font-weight: 700;
                    color: #0D1425;
                    margin: 2em 0 1em;
                }

                h2 {
                    font-size: 32px;
                }

                h3 {
                    font-size: 28px;
                }

                p {
                    margin-bottom: 1.5em;
                }

                ul, ol {
                    margin-bottom: 1.5em;
                    padding-left: 1.5em;

                    li {
                        margin-bottom: 0.5em;
                    }
                }

                ul li {
                    list-style-type: disc;
                }

                ol li {
                    list-style-type: decimal;
                }

                a {
                    color: #DE156F;
                    text-decoration: none;

                    &:hover {
                        text-decoration: underline;
                    }
                }

                blockquote {
                    border-left: 4px solid #DE156F;
                    padding-left: 20px;
                    margin: 2em 0;
                    font-style: italic;
                }

                code {
                    background: #f5f5f5;
                    padding: 0.2em 0.4em;
                    border-radius: 3px;
                    font-family: monospace;
                }

                pre {
                    background: #f5f5f5;
                    padding: 1em;
                    border-radius: 5px;
                    overflow-x: auto;
                    margin: 1.5em 0;

                    code {
                        background: none;
                        padding: 0;
                    }
                }

                aside {
                    margin: 50px auto;
                    max-width: 600px;
                    /* border: solid 1px #ccc; */
                    /* border-radius: 15px; */
                    background-color: #efddff;
                    padding: 30px;
                    font-size: 20px;
                }

                table {
                    border: 2px solid #f5f5f5;
                    border-collapse: collapse;
                    font-size: 11pt;
                    padding: 0;

                    tbody {
                        tr:nth-child(odd) {
                            background-color: #f5f5f5;
                        }
                    }

                    th {
                        border: 2px solid #f5f5f5;
                    }

                    td {
                        border: 2px solid #f5f5f5;
                        padding: 5px;
                        vertical-align: top;
                    }
                }

                .centered {
                    text-align: center;
                }
            }
        }
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-posts {
        .container {
            .blog-grid {
                .blog-post {
                    grid-template-columns: 1fr;
                    gap: 20px;

                    .blog-post-image {
                        height: 250px;
                    }

                    .blog-post-content {
                        padding-right: 0;
                    }
                }
            }

            .single-post {
                padding: 40px 20px 0;

                .post-header {
                    h1 {
                        font-size: 36px;
                    }

                    .post-image {
                        height: 300px;
                    }
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .blog-hero {
        margin-top: 150px;
        height: 160px;

        .container {
            h1 {
                font-size: 36px;
            }
        }
    }

    .blog-posts {
        .container {
            .blog-grid {
                .blog-post {
                    .blog-post-content {
                        h2 {
                            font-size: 24px;
                        }
                    }
                }
            }

            .single-post {
                .post-header {
                    h1 {
                        font-size: 28px;
                    }

                    .post-meta {
                        font-size: 12px;
                        padding: 15px 0;
                    }
                }

                .post-content {
                    font-size: 16px;

                    h2 {
                        font-size: 24px;
                    }

                    h3 {
                        font-size: 20px;
                    }
                }
            }
        }
    }
} 