.single-blog {
    position: relative;
    margin-bottom: 5rem;
    @media(min-width: $tabletP1) {
        margin-bottom: 15rem;
    }

    // .single-blog__container

    &__container {
        position: relative;
        z-index: 2;
    }

    // .single-blog__head

    &__head {
        text-align: center;
        padding-block: 5rem;

        h1 {
            line-height: 1.2;
            letter-spacing: 0;
            @include adaptiveProperty("font-size", 42, 26);
            @media(min-width: $tabletSmallP1) {
                letter-spacing: -.4px
            }

            &:not(:first-child) {
                margin-top: 1.6rem;
                @media (min-width: $tabletP1) {
                    margin-top: 2.2rem;
                }
            }
        }

        p {
            margin-top: 2rem;
            @include adaptiveProperty("font-size", 18, 14);

            &:has(strong) {
                @include adaptiveProperty("font-size", 16, 12);
            }
        }
    }

    // .single-blog__badges

    &__badges {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: .8rem;

        @media(min-width: $tabletSmallP1) {
            width: 50%;
            justify-content: flex-end;
        }

        span {
            background-color: $primary;
            min-height: 2rem;
            min-width: 8rem;
            font-size: 1.4rem;
            line-height: 1;
            padding: .3rem .5rem .1rem;
            color: $white;
            text-align: center;
        }
    }

    // .single-blog__socials-wrapper

    &__socials-wrapper {
        @media(min-width: $tabletSmallP1) {
            width: 50%;
        }

        h3 {
            line-height: 1.5;
            font-family: $primary-font;
            font-weight: 600;
            @include adaptiveProperty("font-size", 18, 14);
        }
    }

    // .single-blog__socials

    &__socials {
        display: flex;
        align-items: center;
        gap: .5rem;
        margin-top: 1.5rem;

        a {
            display: flex;
            align-content: center;
            justify-content: center;
            max-width: 3.2rem;
            min-width: 3.2rem;
            height: auto;
            width: 100%;
            border-radius: .4rem;
            position: relative;

            &::after {
                content: '';
                width: 4rem;
                height: 4rem;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            &:hover {
                transform: translateY(-.2rem);
            }

            img, svg {
                max-width: 100%;
                height: auto;
                transition: .2s all;
            }
        }
    }

    // .single-blog__copy

    &__copy {
        &::before {
            position: absolute;
            content: "";
            inset: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23000000'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M9 12L10.5 13.5V13.5C10.7761 13.7761 11.2239 13.7761 11.5 13.5V13.5L15 10' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
            background-position: center;
            background-size: 100% auto;
            background-repeat: no-repeat;
            z-index: 2;
            opacity: 0;
            transition: .2s all;
        }

        &.copied {
            background-color: $secondary;
            img, svg {
                opacity: 0;
            }

            &::before {
                opacity: 1;
            }
        }
    }

    // .single-blog__content

    &__content {
    }

    // .single-blog__image

    &__image {
        &:not(:last-child) {
            margin-bottom: 3rem;
            @media(min-width: $tabletP1) {
                margin-bottom: 8rem;
            }
        }

        img {
            width: 100%;
            height: auto;
            object-fit: cover;
            @media(max-width: $mobile) {
                aspect-ratio: 335/250;
            }
        }
    }

    // .single-blog__content-inner

    &__content-inner {
        max-width: 76.8rem;
        width: 100%;
        margin: 0 auto;

        p {
            margin-top: 1.8rem;

            @media(min-width: $mobileP1) {
                margin-top: 1.8rem;
            }

            &:first-child {
                margin-top: 0rem;
            }

            &:has(q) {
                margin-top: 3.5rem;

                @media(min-width: $tabletSmallP1) {
                    margin-top: 5rem;
                }

                & + p {
                    margin-top: 2rem;

                    @media(min-width: $tabletSmallP1) {
                        margin-top: 3.5rem;
                    }
                }
            }

            q {
                text-decoration: underline;
                @include adaptiveProperty("font-size", 20, 16);
                display: block;
            }
        }

        a {
            @extend .p1;
            color: $secondary;
            position: relative;

            &::before {
                content: '';
                width: 0;
                height: .1rem;
                background-color: $secondary;
                position: absolute;
                bottom: 0;
                right: 0;
                transition: .2s all;
            }

            &:hover {
                &::before {
                    width: 100%;
                    left: 0;
                }
            }
        }
    }

    // .single-blog__footer

    &__footer {
        max-width: 76.8rem;
        width: 100%;
        margin: 6.4rem auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        
        padding-bottom: 2rem;
        border-bottom: 1px solid $primary;

        @media(min-width: $tabletSmallP1) {
            margin: 6rem auto 0;
            padding-bottom: 5rem;
            flex-direction: row;
            align-items: flex-end;
            justify-content: space-between;
            text-align: left;
        }
    }

    // .single-blog__slider

    &__slider {
        padding: 2.6rem 0 2.5rem;
        @media(min-width: $tabletSmallP1) {
            padding: 6.6rem 0 5rem;
        }

        &.single-blog__slider--slick-notinitial {
            padding-bottom: 1.3rem;
            @media(min-width: $tabletSmallP1) {
                padding-bottom: 4.1rem;
            }
        }

        &.slick-slider {
            .slick-slide {
                cursor: grab;
                margin: 0 1rem;
            }

            .slick-list {
                margin: 0 -1rem;
            }

            .slick-dots {
                list-style: none;
                display: flex;
                align-items: center;
                gap: .9rem;
                padding: 2rem 0;
                margin: 0;
                @media(min-width: $tabletSmallP1) {
                    justify-content: flex-start;
                }

                li {
                    width: .6rem;
                    height: .6rem;
                    border-radius: 50%;
                    background-color: rgba($primary, .2);
                    margin: 0;
                    padding: 0;
                    position: relative;
                    cursor: pointer;
                    transition: all .2s;

                    &::before {
                        content: '';
                        width: 1.25rem;
                        aspect-ratio: 1/1;
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                    }

                    &.slick-active {
                        background-color: $primary;
                        pointer-events: none;
                    }
                }
                
                button {
                    font-size: 0;
                    color: transparent;
                }
            }

            .slick-arrow {
                width: 2.4rem;
                aspect-ratio: 1/1;
                border-radius: 50%;
                overflow: hidden;
                font-size: 0;
                color: transparent;
                border: .1rem solid $primary;
                transition: .2s all;
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                bottom: 2.5rem;
                cursor: pointer;
                right: 0;

                @media(min-width: $tabletSmallP1) {
                    width: 2.8rem;
                    bottom: 4.8rem;
                }

                &::before {
                    content: '';
                    width: 1.1rem;
                    height: 1.1rem;
                    background-image: url("data:image/svg+xml,%3Csvg width='11' height='10' viewBox='0 0 11 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.24874 4.39502L4.77395 0.92039C4.66658 0.812811 4.61232 0.686496 4.61116 0.541443C4.6099 0.39639 4.6629 0.269653 4.77016 0.161232C4.87753 0.0524948 5.00421 -0.00124141 5.15021 2.17584e-05C5.29621 0.00128493 5.42332 0.0555484 5.53153 0.162812L9.921 4.55229C9.97847 4.61039 10.0203 4.67081 10.0464 4.73355C10.0726 4.79639 10.0857 4.86302 10.0857 4.93344C10.0857 5.00386 10.0726 5.07034 10.0464 5.13286C10.0203 5.1955 9.97847 5.25576 9.921 5.31365L5.52774 9.70692C5.41668 9.81418 5.28947 9.86781 5.1461 9.86781C5.00284 9.86781 4.87753 9.81418 4.77016 9.70692C4.66289 9.59702 4.60926 9.47023 4.60926 9.32655C4.60926 9.18276 4.66289 9.05702 4.77016 8.94934L8.24874 5.47092L0.541737 5.47092C0.387526 5.47092 0.258683 5.41986 0.15521 5.31776C0.0517359 5.21565 -1.34999e-08 5.08739 0 4.93297C1.34999e-08 4.77855 0.0517359 4.65028 0.15521 4.54818C0.258683 4.44607 0.387526 4.39502 0.541737 4.39502L8.24874 4.39502Z' fill='%2339462F'/%3E%3C/svg%3E%0A");
                    background-size: 100%;
                    background-position: center;
                    background-repeat: no-repeat;
                    transition: all .2s;

                    @media(min-width: $tabletSmallP1) {
                        width: 1.2rem;
                        height: 1.2rem;
                    }
                }

                &.slick-prev {
                    right: 3rem;
                    @media(min-width: $tabletSmallP1) {
                        right: 3.3rem;
                    }
                    &::before {
                        transform: rotate(-180deg);
                    }
                }
                &.slick-next {
                    
                    @media(min-width: $tabletSmallP1) {
                        right: 0;
                    }
                }

                &.slick-disabled {
                    transform: rotate(0);
                    pointer-events: none;
                    opacity: .7;

                    &::before {
                    }
                }
            }
        }

        & + p {
            margin-top: 0;
        }
    }
}

