@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --black-clr: #000;
    --white-clr: #FFF;
    --light_grey-clr: #F3F6FB;
    --dark_grey-clr: #71788b;
    --primary-clr: #0A669F;
    --accent-clr: #B2211F;
    --button-br: 10px;
    --block-br: 15px;
    --h1-fz: 26px;
    --h2-fz: 22px;
    --base-fz: 16px;
    --container-width: 1350px;
    --section-padding: 40px 0;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    font-size: var(--base-fz);
    overflow-x: hidden !important;
}
.wrapper {
    overflow-x: hidden !important;
}
h1, h2, h3, p {
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    transition: all 0.3s;
}
a:hover {
    transition: all 0.3s;
}
ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}
.section {
    padding: var(--section-padding);
}
.hero__section {
    padding-bottom: 0 !important;
}
.section-title {
    font-size: var(--h1-fz);
    font-weight: 600;
}
.remove-scroll {
    overflow-y: hidden;
}

/* main section */

.main__article-wrapper {
    background: var(--light_grey-clr);
    width: 100vw; 
    margin-left: calc(50% - 50vw);
    padding: 50px;
    margin-top: 50px;
}
.blog-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
}
.blog-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--dark_grey-clr);
}

/* Featured post */

.blog-featured {
    overflow: hidden;
    margin-top: 20px;
}
.featured-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px;
}
.featured-title {
    font-size: 24px;
    margin: 20px 0 8px 0;
    color: var(--black-clr);
}
.featured-meta {
    color: #777;
    font-size: 14px;
}

/* List of posts */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}
.blog-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 23px;
}
.blog-item a {
    display: flex;
    align-items: center;
}
.blog-item:last-child {
    border-bottom: none;
}
.item-thumb img {
    width: 200px;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}
.item-text {
    margin-left: 30px;
}
.item-text h3 {
    font-size: 25px;
    color: var(--black-clr);
    margin: 0 0 10px;
}
.item-meta {
    font-size: 14px;
    color: #999;
}

/* Pagination */

.pagination {
    margin: 50px 0;
    text-align: center;
}
.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: var(--light_grey-clr);
    color: var(--black-clr);
    border-radius: 4px;
    text-decoration: none;
}
.pagination .current {
    background: #333;
    color: #fff;
}

@media (max-width: 600px) {
    
    .blog-title {
        font-size: 22px;
    }
    .blog-subtitle {
        font-size: 15px;
    }
    .featured-thumb img {
        max-height: 200px;
    }
    .featured-title {
        font-size: 21px;
    }
    .item-thumb img {
        width: 150px;
        max-height: 150px;
    }
    .blog-item a {
        flex-direction: column;
        row-gap: 20px;
        align-items: flex-start;
    }
    .item-text {
        margin-left: 0;
    }
    .item-text h3 {
        font-size: 18px;
    }

}
