.blog {
    padding: 2rem;
    margin-top: 3rem;

    @media only screen and (max-width: 1200px) {
        padding: 0;
        margin-top: 1rem;
    }
}

.blog-header {
    width: 100%;
    min-height: 50vh;
    position: relative;

    @media only screen and (max-width: 1200px) {
        min-height: 30vh;
    }
}

.blog-white-box {
    margin-left: 2rem;
    width: 50vw;
    height: 32vh;
    background: #fff;
    border-radius: 2rem;
    padding: 2rem;

    @media only screen and (max-width: 900px) {
        margin-left: 0;
        margin-right: 8%;
        border-radius: 0 0.7rem 0.7rem 0;
        padding: 1rem 1rem 20vh;
        align-self: flex-start;
        width: 90vw;
        height: 37vh;
    }

    @media only screen and (min-width: 900px) and (max-width: 1200px) {
        margin-left: 0;
        margin-right: 8%;
        border-radius: 0 0.7rem 0.7rem 0;
        padding: 1rem 1rem 20vh;
        align-self: flex-start;
        width: 90vw;
        height: 35vh;
    }
}

.blog-text-box {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    gap: 1rem;
    margin-left: 2rem;

    @media only screen and (max-width: 600px) {
        width: 80%;
        margin-left: 1rem;
    }

    @media only screen and (min-width: 601px) and (max-width: 1200px) {
        width: 80%;
        margin-left: 1rem;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1650px) {
        width: 70%;
    }

    @media only screen and (max-height: 800px) {
        gap: 0.25rem;
    }
}

.blog-text-box h1 {
    color: #000;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;

    @media only screen and (max-width: 1200px) {
        font-size: 2rem;
    }
}

.blog-text-box p {
    color: #4A4A4A;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;

    @media only screen and (max-width: 600px) {
        font-size: 0.75rem;
    }

    @media only screen and (min-width: 601px) and (max-width: 1200px) {
        font-size: 0.85rem;
    }
}

.blog-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    margin-bottom: 4rem;
}

.blog-posts-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    width: 100%;
    height: 100%;
    padding: 0 10vw;

    @media only screen and (max-width: 1200px) {
        grid-template-columns: 1fr;
        padding: 0 5vw;
    }
}

.blog-post {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 25vw;
    width: 16vw;
    cursor: pointer;

    @media only screen and (max-width: 1200px) {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
    }
}

.blog-post-photo-overlay {
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 0.5rem;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.4;
    z-index: 5;
    display: none;

    @media only screen and (max-width: 1200px) {
        border-radius: 0.5rem;
    }
}

.blog-desc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-post-photo-container {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;

    @media only screen and (max-width: 1200px) {
        width: 27vw;
        height: 27vw;
    }
}

.blog-image {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
}

.blog-timestamp {
    color: #909090;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 0.7px;
}

.blog-title {
    overflow: hidden;
    color: #000;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;

    @media only screen and (max-width: 1200px) {
        max-width: 50vw;
        min-height: 10vh;
        color: #000;
        font-size: 0.9rem;
        font-style: normal;
        font-weight: 600;
        line-height: 150%;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.blog-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

li {
    list-style: none;
}

.blog-pagination>ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.blog-pagination>ul>li>a>span {
    color: #FF4C00;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.blog-pagination>ul>li>a {
    color: black;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.arrow-pagination {
    border-radius: 50%;
    background: #FF4C00;
    padding: .6rem;
}

.left {
    transform: rotate(180deg);
}