#blog {
    #sec-title {
        position: relative;
        height: 35dvh;
        background-color: #FFCD9A;

        .background-img {
            height: 100%;

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

        .title-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;

            &.with-overlay {
                backdrop-filter: blur(2px);
                background: rgba(255, 255, 255, 0.6);
            }

            .title-text {
                padding: 0 40px;
                margin: auto 0;

                & h1 {
                    text-transform: uppercase;
                    font-family: 'Bayon', sans-serif;
                    font-size: 50px;
                    color: black;
                }

                .subtitle-container {
                    margin-top: 10px;
                    padding: 8px;
                    /* background: rgba(0, 0, 0, 1); */
                    width: fit-content;
                    background: linear-gradient(to right, #FE5000, #FFC175);

                    h2 {
                        text-transform: uppercase;
                        font-size: 18px;
                        color: white;
                    }
                }
            }
        }
    }

    #sec-tags {
        margin: 0 auto;
        padding: 40px 20px;
        max-width: 840px;

        .title-container {
            margin-bottom: 10px;
            padding: 10px 0;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;

            & h3 {
                font-size: 20px;
                font-family: 'Hiragino Kaku Gothic Pro W6', sans-serif;
            }

            .deselect-all {
                cursor: pointer;
                color: #FF5900;
                font-size: 14px;
                text-decoration: underline;
                transition: all 0.3s ease-in-out;

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

        .tags {
            margin-right: auto;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;

            .tag-none {
                color: gray;
            }

            .tag-container {
                position: relative;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                background-color: #FF752A;
                padding-left: 10px;
                height: 30px;
                min-width: 90px;
                margin-right: 15px;
                /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); */
                filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.3));
                cursor: pointer;
                transition: all 0.3s ease-in-out;

                &.selected {
                    background-color: #FF5900;
                    filter: drop-shadow(2px 3px 2px #FF752A);

                    &::after {
                        content: '';
                        position: absolute;
                        right: -15px;
                        top: 0;
                        width: 0;
                        height: 0;
                        border-left: 15px solid #FF5900;
                        border-top: 15px solid transparent;
                        border-bottom: 15px solid transparent;
                    }
                }

                /* Create triangle on the right side */
                &::after {
                    content: '';
                    position: absolute;
                    right: -15px;
                    top: 0;
                    width: 0;
                    height: 0;
                    border-left: 15px solid #FF752A;
                    border-top: 15px solid transparent;
                    border-bottom: 15px solid transparent;
                    transition: all 0.3s ease-in-out;
                }

                & p {
                    font-size: 12px;
                    color: white;
                }

                .circle {
                    width: 10px;
                    height: 10px;
                    background-color: #fff;
                    border-radius: 50%;
                    border: 1px solid gray;
                }
            }
        }
    }

    #sec-blog {
        margin: 0 auto;
        padding: 40px 60px;
        max-width: 840px;

        .title-container {
            padding-bottom: 20px;
            border-bottom: 1px solid #CCCBCB;
            margin-bottom: 10px;

            & h3 {
                font-size: 24px;
                font-family: 'Hiragino Kaku Gothic Pro W6', sans-serif;
                border-left: 3px solid #FF5900;
                padding: 10px 0;
                padding-left: 10px;
                color: #FF5900;
            }
        }

        .posts {
            .post {
                display: flex;
                flex-direction: row;
                gap: 30px;
                margin: 0 10px;
                padding: 20px 20px;
                border-bottom: 1px solid #CCCBCB;
                justify-content: center;
                cursor: pointer;
                transition: all 0.3s ease;

                &:hover {
                    opacity: 0.8;

                    & .img-container img {
                        transform: scale(1.1);
                    }
                }

                .img-container {
                    width: 30%;
                    position: relative;
                    aspect-ratio: 4/3;
                    overflow: hidden;

                    & img {
                        transition: transform 0.3s ease;
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }

                .text-container {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    padding-top: 10px;
                    gap: 10px;
                    max-width: 80%;

                    & h4 {
                        font-size: 18px;
                        color: #AF4A0F;
                    }

                    & p {
                        font-size: 14px;
                        line-height: 1.25;
                    }

                    .text-bottom {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        font-size: 14px;
                        color: #666;

                        .author {
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            gap: 10px;

                            & img {
                                width: 24px;
                                height: 24px;
                                border-radius: 50%;
                                object-fit: cover;
                            }
                        }
                    }
                }
            }
        }

        /* Pagination */
        .navigation.pagination {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid #CCCBCB;
            text-align: center;

            .nav-links {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 8px;
            }

            .page-numbers {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 44px;
                padding: 10px 16px;
                font-size: 14px;
                font-weight: 500;
                color: #AF4A0F;
                background: #fff;
                border: 1px solid #FF752A;
                border-radius: 6px;
                text-decoration: none;
                transition: all 0.3s ease;
                cursor: pointer;

                &:hover:not(.current) {
                    background: #FF752A;
                    color: #fff;
                    border-color: #FF752A;
                }

                &.current {
                    background: #FF5900;
                    color: #fff;
                    border-color: #FF5900;
                    cursor: default;
                }

                &.prev,
                &.next {
                    padding: 10px 20px;
                }

                &.dots {
                    border: none;
                    background: transparent;
                    cursor: default;
                    min-width: auto;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    #blog {
        #sec-blog {
            padding: 20px 20px;
            font-size: 16px;

            .title-container {
                padding-bottom: 15px;
                margin-bottom: 10px;

                h3 {
                    font-size: 20px;
                    padding: 5px 0;
                    padding-left: 10px;
                }
            }

            .posts {
                .post {
                    flex-direction: column;
                    gap: 10px;

                    .img-container {
                        width: 100%;
                        aspect-ratio: 16/9;
                    }

                    .text-container {
                        max-width: 100%;
                        flex: 1;
                        gap: 10px;
                    }
                }
            }

            .navigation.pagination .page-numbers {
                min-width: 40px;
                padding: 8px 12px;
                font-size: 13px;

                &.prev,
                &.next {
                    padding: 8px 14px;
                }
            }
        }
    }
}