@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap');
* {
    font-family: 'Inter', sans-serif;
}

.header-section {
    width: 100%;
    height: 50vh;
    margin-bottom: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #1f5eabc6;
}

.header-section::after {
    background-size: cover;
    background-position: 90% 60%;
    background-repeat: no-repeat;
    background-image: url("../media/blogs.jpg");
    clear: both;
    display: block;
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(5px);
}

.header-section .header-section-main {
    width: 50%;
    height: 20%;
    display: flex;
    justify-items: center;
    align-items: center;
    /* background: red; */
}

.header-section .header-section-main .header-section-text {
    /* background: blue; */
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.header-section .header-section-main .header-section-text h1 {
    font-size: 5vw;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}

.header-section .header-section-main .header-section-text p {
    font-size: 1.5vw;
}

.blogs-section {
    height: max-content;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 5vh;
}

.blogs-section .blog-card {
    width: 85%;
    height: 45vh;
    /* background: blue; */
    place-self: center;
    box-shadow: 4px 4px 15px -3px rgba(0, 0, 0, 0.25);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5vh;
}

.blogs-section .blog-card .blog-card-upper {
    width: 100%;
    height: 60%;
    /* background: yellow; */
    background-color: #D9D9D9;
    border-radius: 7px 7px 0px 0px;
}

.blogs-section .blog-card .blog-card-upper img {
    width: 100%;
    height: 100%;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.blogs-section .blog-card .blog-card-lower {
    width: 100%;
    text-align: center;
    padding-bottom: 9vh;
}

.blogs-section .blog-card .blog-card-lower .upload-date {
    color: #8E8E8E;
    text-align: right;
    padding-right: 1vw;
    padding-top: 1vh;
}

.blogs-section .blog-card .blog-card-lower .main-text {
    display: flex;
    flex-direction: column;
}

.blogs-section .blog-card .blog-card-lower .main-text .main-text-heading {
    font-weight: bold;
    width: 100%;
    text-align: center;
    font-size: 3vh;
    margin: 2vh 0vw;
}

.blogs-section .blog-card .blog-card-lower .main-text .main-text-paragraph {
    font-size: .9vw;
    padding: 0px 10px;
    margin: 0;
    padding-bottom: 10px;
    padding-bottom: 3%;
    line-height: 23px;
}

.blogs-section .blog-card .blog-card-lower .main-text button {
    width: 35%;
    height: 3.5vh;
    background: var(--main-color);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1.5vh;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 32.5%;
    margin-top: 0vh;
    margin-bottom: 1vh;
}

.blogs-section .blog-card .blog-card-lower .category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: max-content;
    margin-left: 10vw;
}

.blogs-section .blog-card .blog-card-lower .category .circle {
    width: 10px;
    height: 10px;
    clip-path: circle();
    margin-right: 0.5vw;
    background: var(--main-color);
}

@media only screen and (max-width: 1080px) {
    .header-section {
        height: 25vh;
    }
    .blogs-section .blog-card .blog-card-lower .category {
        margin-left: 15.5vw;
    }
    .blogs-section {
        grid-template-columns: 1fr 1fr;
    }
    .blogs-section .blog-card {
        width: 80%;
        height: 33vh;
    }
    .blogs-section .blog-card .blog-card-upper {
        height: 50%;
    }
    .blogs-section .blog-card .blog-card-lower .upload-date {
        color: #8E8E8E;
        letter-spacing: 1.5px;
        width: 24%;
        font-size: 1.4vw;
    }
    .blogs-section .blog-card .blog-card-lower .main-text .main-text-heading {
        font-size: 2.3vw;
    }
    .blogs-section .blog-card .blog-card-lower .main-text .main-text-paragraph {
        font-size: 1.35vw;
        line-height: 18px;
    }
    .blogs-section .blog-card .blog-card-lower .main-text button {
        width: 30%;
        height: 2.4vh;
        font-size: 1.2vw;
    }
}

@media only screen and (max-width: 500px) {
    .header-section .header-section-main .header-section-text h1 {
        font-size: 6vw;
    }
    .header-section .header-section-main .header-section-text p {
        font-size: 3.2vw;
    }
    .blogs-section {
        grid-template-columns: 1fr;
    }
    .blogs-section .blog-card .blog-card-lower .upload-date {
        font-size: 2vw;
        padding-right: 0px;
        letter-spacing: 2px;
        width: 23%;
    }
    .blogs-section .blog-card .blog-card-lower .main-text .main-text-heading {
        font-size: 4vw;
    }
    .blogs-section .blog-card .blog-card-lower .main-text .main-text-paragraph {
        font-size: 2.2vw;
        line-height: 13px;
    }
    .blogs-section .blog-card .blog-card-lower .main-text button {
        font-size: 1.8vw;
    }
    .blogs-section .blog-card .blog-card-lower .category {
        margin-left: 30.5vw;
    }
    .blogs-section .blog-card .blog-card-lower .category .circle {
        width: 7px;
        height: 7px;
    }
    .blogs-section .blog-card .blog-card-lower .category p {
        font-size: 3vw;
    }
}