﻿h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a:hover {
    text-decoration: none;
}

section {
    max-width: 1200px;
    margin: auto;
    display: flex;
}

.blogHeader {
    display: flex;
    justify-content: space-between;
    gap: 1rem 2rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 25px auto 15px auto;
}

    .blogHeader #detail-account-header {
        font-size: 1.5rem;
        font-weight: 700;
        opacity: 90%;
    }

    .blogHeader form {
        position: relative;
    }

    .blogHeader .left-icon-magnifying-glass {
        top: 0;
        left: 0;
    }

    .blogHeader input {
        border: none;
        border-bottom: 2px solid #808080;
        padding: 10px 10px 10px 30px;
        border-radius: 0;
    }

        .blogHeader input:focus {
            outline: none;
        }

.blogMain {
    margin-bottom: 4rem;
}

.blogHighlight {
    background-color: #0F7771;
    width: 100%;
    padding-top: 50px;
}

.blogHighlight section {
    max-width: min(80%, 1200px);
    flex-direction: column;
}

.blogHighlight .imgContainer {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
    .blogHighlight .blogpost__img {
        width: 100%;
        height: auto;
        transition: transform 400ms cubic-bezier(0.4, 0, 0.25, 1) 0ms;
        box-shadow: 0 -10px 50px 0 rgb(0, 0, 0, 0.25);
    }

    .blogHighlight .blogpost__img img{
        width: 100%;
        height: auto;
    }

.blogMain:hover .blogpost__img, .blogMain:active .blogpost__img {
    transform: scale(1.03);
}

.blogMain__text {
    max-width: min(80%, 1200px);
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 0 50px 0 rgb(0, 0, 0, 0.25);
}

.blogContent {
    display: flex;
    flex-direction: column;
    margin: 0 auto 5rem auto;
    gap: 4rem;
}

.blogpostGrid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blogpostGrid__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 1rem;
}

    .blogpostGrid__title .blogpostGrid__title__text {
        font-size: 2.25rem;
        font-weight: 700;
        opacity: 50%;
    }

.blogpostGrid__title__links {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

    .blogpostGrid__title__links a {
        color: #858585;
        text-decoration: underline;
        text-underline-offset: 5px;
    }

    .blogpostGrid__title__links svg {
        transform: scale(0.8);
        position: relative;
        top: 10px;
    }

.blogpostGrid__content {
    display: flex;
    flex-wrap: wrap;
}

.blogpost {
    margin: 1rem;
    display: flex;
    flex-direction: column;
    width: 362px;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.25);
}

.blogpostGrid .imgContainer {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.blogpost__img {
    display: flex;
    width: 362px;
    max-width: 100%;
    height: 225px;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.25, 1) 0ms;
}

.blogpost:hover .blogpost__img, .blogpost:active .blogpost__img {
    transform: scale(1.03);
}

.blogpost__text {
    height: calc(100% - 225px);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    box-sizing: border-box;
    padding: 1rem;
    color: #000000;
}

.blogpost__text h2 {
    font-weight: 600;
    color: #000000;
}

    .blogpost__text h3 {
        font-size: 1.5rem;
        font-weight: 500;
    }

.blogpost__text--subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #888888;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}


.author__bio {
    display: none;
    flex-direction: column;
    background: #FFFFFF;
    color: #505050;
    font-weight: 400;
    padding: 1.5rem;
    gap: 0.5rem;
    border: 1px solid #50505050;
    border-radius: 1rem;
    width: min(80%, 800px);
    position: absolute;
    top: 30px;
    left: 80px;
    z-index: 100;
}

.author__with__bio {
    width: fit-content;
    border-bottom: 1px solid;
    padding-bottom: 1px;
    cursor: pointer;
}

.author__bio p {
    margin: 0;
}

.author__headline {
    display: flex;
    gap: 0.5rem 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.author__headline--image {
    width: 100px;
    height: 100px;
    background-image: url("/img/blog/author_zina_kumok.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.author__headline--text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .author__headline--text .name {
        font-size: 2rem;
        line-height: 1.2;
    }


.blogpost__text--line3Container {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.blogpost__text--topics, .blogpost__text-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 90%;
    color: #53B5A9;
}

.blogpost__text--topics > a {
    border: 1px solid #53B5A9;
    padding: 5px 10px;
    border-radius: 30px;
}

    .blogpost__text--topics > a:hover, .blogpost__text--topics > a:active {
        background-color: #53B5A9;
        color: #FFFFFF;
    }

.blogpost__shareWrapper {
    padding: 0 1rem 1rem 1rem;
}

.blogpost__text--share {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-top: 10px;
}

.socialWrapperOuter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.socialWrapperInner {
    position: absolute;
    display: flex;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    top: -170px;
    padding: 10px;
    z-index: 1;
}

.blogpost .socialWrapperInner {
    flex-direction: row;
    top: -8px;
    left: 25px;
}

.socialShareIcon svg {
    opacity: 50%;
    position: relative;
    top: 3px;
    transform: scale(0.8);
}

.socialShareIcon svg:hover {
    opacity: 70%;
    cursor: pointer;
}

.socialIconContainer {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #30CEBB;
}

    .socialIconContainer:hover, .socialIconContainer:active {
        background: #30CEBB90;
        cursor: pointer;
    }

.socialIcon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    color: aliceblue;
}

.socialIcon--facebook {
    background-image: url(/img/Facebook.svg)
}

.socialIcon--linkedin {
    background-image: url(/img/LinkedIn.svg)
}

.socialIcon--twitter {
    background-image: url(/img/Twitter.svg)
}

.socialIcon--copyLink {
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.3333 10.6667L10.6666 17.3334' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20.6667 15.6667L24.0001 12.3334C26.3012 10.0322 26.3012 6.30124 24.0001 4.00006C21.6989 1.69887 17.9679 1.69887 15.6667 4.00006L12.3334 7.33339M7.33339 12.3334L4.00006 15.6667C1.69887 17.9679 1.69887 21.6989 4.00006 24.0001C6.30124 26.3012 10.0322 26.3012 12.3334 24.0001L15.6667 20.6667' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.copyLinkMessage {
    display: none;
    position: relative;
    top: -38px;
    left: -70px;
    font-size: 0.8rem;
    color: #53B5A9;
    width: max-content;
    padding: 4px 8px;
    background-color: #344645;
    border: 1px solid #344645;
    border-radius: 8px;
}

.blogCTA {
    display: flex;
    background-color: #F2FFFE;
    padding: 5rem 3rem;
}

    .blogCTA section {
        max-width: min(80%, 945px);
        align-items: center;
        gap: 3rem;
        font-size: 2rem;
    }

    .blogCTA .greenbutton {
        padding: 0.25rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.75rem;
    }

        .blogCTA .greenbutton a {
            color: #FFFFFF;
        }

        .blogCTA .greenbutton svg {
            width: 2rem;
            height: 2rem;
        }

.diagonal-1 {
    background: #F2FFFE;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    height: 5vw;
}

.diagonal-2 {
    background: #F2FFFE;
    margin-bottom: -0.5px
}

.diagonal-2-inner {
    background: #344645;
    color: red;
    clip-path: polygon(0 100%, 0 0, 100% 100%);
    height: 5vw;
}

@media(max-width: 1210px) {
    .blogpostGrid__title {
        padding: 0 10%;
    }

    .blogpostGrid__content {
        justify-content: center;
    }
}

@media(max-width: 834px) {
    .blogCTA section {
        flex-wrap: wrap;
    }
}

@media(max-width: 600px) {
    .blogMain {
        margin-bottom: 2rem;
    }

    .blogHighlight .blogpost__img, .blogHighlight .blogpost__img img {
        min-height: 225px;
    }

    .author__bio {
        width: 90%;
        padding: 1rem;
        top: 50px;
        left: 0;
    }

    .author__headline--image {
        width: 100px;
        height: 100px;
    }

    .author__headline--text .name {
        font-size: 1.25rem;
    }

    .blogpost__text--line3Container {
        flex-direction: column;
    }

    .socialWrapperInner {
        flex-direction: row;
        top: -8px;
        left: 25px;
    }

    .blogCTA {
        padding: 2.5rem 1.5rem;
    }

        .blogCTA section {
            max-width: 100%;
            align-items: center;
            gap: 1.5rem;
            font-size: 1.5rem;
        }

        .blogCTA .greenbutton {
            padding: 0.25rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.25rem;
        }
}

@media(max-width: 470px) {
    .blogHighlight {
        padding-top: 2rem;
    }

    .blogHighlight > section {
        max-width: 100%;
    }

    .blogMain__text {
        max-width: 100%;
        margin: 0 6px;
    }
}

@media (hover: none) {
    .blogHighlight > section > img {
        box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.25);
    }
}
