/* =========================================================
   GIZMOO CORE
   BLOG
   ========================================================= */


/* =========================================================
   Blog Header
   ========================================================= */

.gizmoo-blog-header {

    padding: 80px 0 40px;

    text-align: center;
}


.gizmoo-page-title {

    margin: 0;

    color: var(--gizmoo-text);

    font-size: clamp(34px, 5vw, 46px);

    font-weight: 700;

    line-height: 1.2;
}



/* =========================================================
   Categories
   ========================================================= */

.gizmoo-blog-categories {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 32px;
}


.gizmoo-blog-categories a {

    display: inline-flex;

    align-items: center;

    min-height: 36px;

    padding: 0 18px;

    color: var(--gizmoo-text-secondary);

    background: var(--gizmoo-bg-secondary);

    border-radius: 30px;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none;

    transition: 
        color .2s ease,
        background .2s ease;
}


.gizmoo-blog-categories a:hover {

    color: #ffffff;

    background: var(--gizmoo-primary);
}



/* =========================================================
   Posts Grid
   ========================================================= */

.gizmoo-blog-content {

    padding: 40px 0 80px;
}


.gizmoo-post-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}



/* =========================================================
   Post Card
   ========================================================= */

.gizmoo-post-card {

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--gizmoo-border);

    border-radius: 16px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.gizmoo-post-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 20px 40px rgba(15,23,42,.08);
}



/* Image */

.gizmoo-post-image {

    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;

}


.gizmoo-post-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}


.gizmoo-post-card:hover
.gizmoo-post-image img {

    transform: scale(1.04);
}



/* Body */

.gizmoo-post-body {

    padding: 24px;
}


.gizmoo-post-meta {

    margin-bottom: 12px;

    color: var(--gizmoo-text-muted);

    font-size: 12px;
}


.gizmoo-post-body h2 {

    margin: 0 0 14px;

    font-size: 21px;

    line-height: 1.4;
}


.gizmoo-post-body h2 a {

    color: var(--gizmoo-text);

    text-decoration: none;
}


.gizmoo-post-body h2 a:hover {

    color: var(--gizmoo-primary);
}



.gizmoo-post-body p {

    margin: 0 0 20px;

    color: var(--gizmoo-text-muted);

    font-size: 14px;

    line-height: 1.8;
}



/* Read More */

.gizmoo-post-more {

    color: var(--gizmoo-primary);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}



/* =========================================================
   Pagination
   ========================================================= */

.gizmoo-pagination {

    margin-top: 50px;

    text-align: center;
}


.gizmoo-pagination .page-numbers {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 38px;

    height: 38px;

    margin: 0 4px;

    color: var(--gizmoo-text);

    border: 1px solid var(--gizmoo-border);

    border-radius: 8px;

    text-decoration: none;
}


.gizmoo-pagination .current {

    color: #ffffff;

    background: var(--gizmoo-primary);

    border-color: var(--gizmoo-primary);
}



/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .gizmoo-post-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}



/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {


    .gizmoo-blog-header {

        padding: 50px 0 30px;

    }


    .gizmoo-post-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .gizmoo-post-body {

        padding: 20px;

    }

}

/* =========================================================
   Blog Full Width Layout
   ========================================================= */

.gizmoo-blog-page .container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

}