/* =====================================================
   BLOG PAGE - DESKTOP
   ===================================================== */

.archive-page{
    width:100%;
    padding:80px 0;
    background:var(--bg-light);
}

.archive-header{
    text-align:center;
    margin-bottom:60px;
}

.archive-title{
    font-size:42px;
    font-weight:var(--fw-bold);
    color:var(--text-dark);
    margin-bottom:15px;
    line-height:1.2;
}

.archive-description{
    max-width:700px;
    margin:0 auto;
    color:var(--text-light);
    font-size:16px;
    line-height:28px;
}

/* =====================================
   BLOG GRID
===================================== */

.blog-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

}

/* =====================================
   BLOG CARD
===================================== */

.blog-card{

    background:#fff;

    overflow:hidden;

    transition:.35s ease;

}

.blog-card:hover{

    transform:translateY(-8px);

}

/* =====================================
   IMAGE
===================================== */

.blog-image{

    display:block;

    overflow:hidden;

}

.blog-image img{

    width:100%;

    height:320px;

    object-fit:cover;

    display:block;

    transition:.5s ease;

}

.blog-card:hover .blog-image img{

    transform:scale(1.08);

}

/* =====================================
   CONTENT
===================================== */

.blog-content{

    padding:30px 0 10px;

}

.blog-date{

    font-size:13px;

    color:var(--text-light);

    letter-spacing:1px;

    text-transform:uppercase;

    margin-bottom:18px;

}

/* =====================================
   TITLE
===================================== */

.blog-title{

    margin:0 0 18px;

    line-height:1.4;

}

.blog-title a{

    font-size:26px;

    font-weight:var(--fw-semibold);

    color:var(--text-dark);

    text-decoration:none;

    transition:.3s;

}

.blog-title a:hover{

    color:var(--primary-color);

}

/* =====================================
   EXCERPT
===================================== */

.blog-excerpt{

    color:var(--text-light);

    font-size:15px;

    line-height:28px;

    margin-bottom:28px;

}

/* =====================================
   READ MORE
===================================== */

.blog-read-more{

    display:inline-flex;

    align-items:center;

    gap:10px;

    font-size:13px;

    font-weight:var(--fw-semibold);

    text-transform:uppercase;

    letter-spacing:1px;

    color:var(--text-dark);

    text-decoration:none;

    transition:.3s;

}

.blog-read-more span{

    transition:.3s;

}

.blog-read-more:hover{

    color:var(--primary-color);

}

.blog-read-more:hover span{

    transform:translateX(6px);

}

/* =====================================
   NO POSTS
===================================== */

.no-posts{

    grid-column:1/-1;

    text-align:center;

    padding:80px 20px;

}

.no-posts h2{

    margin-bottom:15px;

}

.no-posts p{

    color:var(--text-light);

}

/* =====================================================
   BLOG PAGE - TABLET
   768px - 991px
===================================================== */

@media (min-width:768px) and (max-width:991px){

    .archive-page{

        padding:60px 0;

    }

    .archive-header{

        margin-bottom:45px;

    }

    .archive-title{

        font-size:34px;

        line-height:1.3;

    }

    .archive-description{

        max-width:620px;

        font-size:15px;

        line-height:26px;

    }

    /* ===============================
       GRID
    =============================== */

    .blog-grid{

        grid-template-columns:repeat(2,1fr);

        gap:35px 30px;

    }

    /* ===============================
       CARD
    =============================== */

    .blog-card{

        width:100%;

    }

    /* ===============================
       IMAGE
    =============================== */

    .blog-image img{

        width:100%;

        height:270px;

        object-fit:cover;

    }

    /* ===============================
       CONTENT
    =============================== */

    .blog-content{

        padding:25px 0 10px;

    }

    .blog-date{

        font-size:12px;

        margin-bottom:15px;

    }

    /* ===============================
       TITLE
    =============================== */

    .blog-title{

        margin-bottom:15px;

        line-height:1.4;

    }

    .blog-title a{

        font-size:22px;

    }

    /* ===============================
       EXCERPT
    =============================== */

    .blog-excerpt{

        font-size:15px;

        line-height:26px;

        margin-bottom:22px;

    }

    /* ===============================
       READ MORE
    =============================== */

    .blog-read-more{

        font-size:12px;

        gap:8px;

    }

}

/* =====================================================
   BLOG PAGE - MOBILE
   767px and Below
===================================================== */

@media (max-width:767px){

    .archive-page{

        padding:45px 0;

    }

    .archive-header{

        margin-bottom:35px;

        padding:0 15px;

    }

    .archive-title{

        font-size:28px;

        line-height:1.3;

    }

    .archive-description{

        font-size:14px;

        line-height:24px;

        max-width:100%;

    }

    /* ===============================
       GRID
    =============================== */

    .blog-grid{

        grid-template-columns:1fr;

        gap:35px;

    }

    /* ===============================
       IMAGE
    =============================== */

    .blog-image img{

        width:100%;

        height:240px;

        object-fit:cover;

    }

    /* ===============================
       CONTENT
    =============================== */

    .blog-content{

        padding:20px 0 5px;

    }

    .blog-date{

        font-size:12px;

        margin-bottom:12px;

    }

    /* ===============================
       TITLE
    =============================== */

    .blog-title{

        margin-bottom:15px;

    }

    .blog-title a{

        font-size:22px;

        line-height:1.4;

    }

    /* ===============================
       EXCERPT
    =============================== */

    .blog-excerpt{

        font-size:14px;

        line-height:25px;

        margin-bottom:20px;

    }

    /* ===============================
       READ MORE
    =============================== */

    .blog-read-more{

        font-size:12px;

        gap:8px;

    }

}


/* =====================================================
   PAGINATION
===================================================== */

.blog-pagination{

    margin-top:70px;

    display:flex;

    justify-content:center;

}

.blog-pagination .nav-links{

    display:flex;

    align-items:center;

    gap:12px;

    flex-wrap:wrap;

}

.blog-pagination .page-numbers{

    width:45px;

    height:45px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:1px solid var(--border-color);

    color:var(--text-dark);

    text-decoration:none;

    font-size:14px;

    font-weight:var(--fw-semibold);

    transition:.3s;

}

.blog-pagination .page-numbers:hover,

.blog-pagination .current{

    background:var(--primary-color);

    color:#fff;

    border-color:var(--primary-color);

}


/* =====================================================
   TOUCH DEVICES
===================================================== */

@media (hover:none){

    .blog-card:hover{

        transform:none;

    }

    .blog-card:hover .blog-image img{

        transform:none;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width:480px){

    .archive-page{

        padding:35px 0;

    }

    .archive-title{

        font-size:24px;

    }

    .blog-image img{

        height:210px;

    }

    .blog-title a{

        font-size:20px;

    }

}


/* =====================================================
   IMAGE RATIO
===================================================== */

.blog-image{

    aspect-ratio:4/3;

    overflow:hidden;

}


/* =====================================================
   SMOOTH TRANSITIONS
===================================================== */

.blog-card,
.blog-image img,
.blog-read-more,
.blog-title a,
.page-numbers{

    transition:all .35s ease;

}

/* =====================================
   BLOG ANIMATION
===================================== */

.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:.7s ease;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}

/* =====================================
   IMAGE LOAD
===================================== */

.blog-image img{

    opacity:0;

    transition:opacity .5s ease, transform .5s ease;

}

.blog-image img.loaded{

    opacity:1;

}