/* =========================================
   CSS VARIABLES
========================================= */

:root {
    --color-primary: #6E6A67;
    --color-title: #4B3A2F;
    --color-secondary: #4B3A2F;
}


/* =========================================
   BLOG BANNER
========================================= */

.blog-banner {
    min-height: 100vh;
    padding-top: 160px;
    position: relative;
    padding-inline: 80px;
    display: flex;
    align-items: center;
}

.blog-banner::before {
    display: none;
}

.blog-banner .img-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
}

.blog-banner .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-banner .content-wrapper {
    position: relative;
    z-index: 2;
    width: 50%;
    max-width: 814px;
}

.blog-banner .content-wrapper h1 {
    font-size: 72px;
    line-height: 84px;
    color: var(--color-title);
    font-weight: 400;
    margin-bottom: 20px;
    font-family: 'GC saphone DEMO';
}

.blog-banner .content-wrapper .actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 50px;
}

.blog-banner .content-wrapper .actions .btn {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    text-decoration: none;
}

.blog-banner .content-wrapper .actions .btn.btn-secondary {
    background: #FFFFFF0D;
    border: 1.5px solid #FFFFFF;
    backdrop-filter: blur(44px);
    color: var(--color-title);
    border-radius: 40px;
    padding: 17px 28px;
}


/* =========================================
   INSIGHTS SECTION
========================================= */

.insights-section h2 {
    font-size: 48px;
    line-height: 58px;
    color: var(--color-title);
    font-weight: 400;
    font-family: 'GC saphone DEMO';
}

.insights-section p.desc {
    margin-top: 16px;
    font-size: 18px;
    line-height: 28px;
    max-width: 699px;
    width: 100%;
    color: var(--color-primary);
}


/* =========================================
   POST TABS
========================================= */

.post-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block: 30px 40px;
}

.post-tabs .tab {
    all: unset;
    cursor: pointer;
    padding: 6px 20px;
    border-radius: 40px;
    border: 1px solid #6E6A673D;
    font-size: 15px;
    line-height: 24px;
    color: var(--color-primary);
}

.post-tabs .tab.active {
    border-color: var(--color-title);
    color: var(--color-title);
}


/* =========================================
   POST GRID
========================================= */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 36px;
}

.post-grid .post {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #FEECDE 0%, rgba(254, 236, 222, 0.44) 100%);
    border: 3px solid #F4F5EE;
    box-shadow: 0px 0px 0px 6px #FFFFFF inset;
    text-decoration: none;
    transition: all 0.3s;
}

.post-grid .post:hover {
    border-color: #FDB99A;
}

.post-grid .post .post-thumbnail {
    height: 258px;
    padding: 6px;
    padding-bottom: 0;
    overflow: hidden;
}

.post-grid .post .post-thumbnail img {
    border-radius: 16px 16px 0 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.post-grid .post .content {
    padding: 24px;
}

.post-grid .post .content h3 {
    font-family: 'GC saphone DEMO';
    font-size: 22px;
    line-height: 30px;
    letter-spacing: 1px;
    color: var(--color-title);
}

.post-grid .post .content p {
    font-size: 16px;
    line-height: 24px;
    margin-top: 8px;
    color: var(--color-primary);
}

@media (max-width: 1440px) {
    .blog-banner {
        padding-inline: 40px;
    }
    .blog-banner .content-wrapper {
        width: 60%;
    }
    .post-grid {
        gap: 24px;
    }
    .post-grid .post .post-thumbnail {
        height: 208px;
    }
}

@media (max-width: 1024px) {
    .post-grid .post .content {
        padding: 20px;
    }
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-grid .post .post-thumbnail {
        height: 238px;
    }
    .blog-banner .content-wrapper {
        width: 90%;
    }
    .blog-banner .content-wrapper h1 {
        font-size: 52px;
        line-height: 64px;
    }
}

@media (max-width: 767px) {
    .blog-banner {
        padding-inline: 20px;
        padding-top: 100px;
    }
    .blog-banner .content-wrapper h1 {
        font-size: 42px;
        line-height: 54px;
    }
    .blog-banner .content-wrapper .actions {
        flex-wrap: wrap;
    }
    .post-tabs .tab {
        padding: 6px 18px;
        font-size: 14px;
        line-height: 21px;
    }
}

@media (max-width: 540px) {
    .post-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* =========================================
   PAGINATION
========================================= */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #6E6A673D;
    color: var(--color-title);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.blog-pagination .page-numbers:hover {
    border-color: var(--color-title);
    background: #FEECDE;
    color: var(--color-title);
}

.blog-pagination .page-numbers.current {
    background: var(--color-title);
    color: #FFFDF8;
    border-color: var(--color-title);
    font-weight: 600;
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--color-primary);
    cursor: default;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    width: 44px;
    height: 44px;
}

.blog-pagination .page-numbers.prev svg path,
.blog-pagination .page-numbers.next svg path {
    transition: stroke 0.3s ease;
}

.blog-pagination .page-numbers.prev:hover svg path,
.blog-pagination .page-numbers.next:hover svg path {
    stroke: var(--color-title);
}
