/* =========================================================
   GODRONES BLOG
========================================================= */

.gd-blog {
    --gd-primary: #2563EB;
    --gd-primary-dark: #1D4ED8;

    --gd-dark: #0F172A;
    --gd-text: #1E293B;
    --gd-muted: #64748B;

    --gd-border: #E2E8F0;

    --gd-bg: #F8FAFC;
    --gd-white: #FFFFFF;

    font-family: 'Inter', sans-serif;
    color: var(--gd-text);
}


/* =========================================================
   HERO
========================================================= */

.gd-blog-hero {
    padding: 120px 0 60px;
    background: radial-gradient(circle at top right,
            rgba(37, 99, 235, .22),
            transparent 42%),
        linear-gradient(145deg,
            #111c30,
            #0f172a);
}

.gd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 35px;

    font-size: .85rem;
    color: var(--gd-muted);
}

.gd-breadcrumb a {
    color: var(--gd-muted);
    text-decoration: none;
}

.gd-breadcrumb a:hover {
    color: var(--gd-primary);
}

.gd-breadcrumb i {
    font-size: .65rem;
}

.gd-blog-heading {
    max-width: 780px;
}

.gd-eyebrow {
    display: block;
    margin-bottom: 12px;
    color:#29abe2;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.gd-blog-heading h1 {
    margin: 0 0 18px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -1px;
    color: #fff;
}

.gd-blog-heading p {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   CONTEÚDO
========================================================= */

.gd-blog-content {
    padding: 70px 0 100px;
}


/* =========================================================
   FILTROS
========================================================= */

.gd-blog-filters {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 40px;

    overflow-x: auto;

    padding-bottom: 5px;

    scrollbar-width: none;
}

.gd-blog-filters::-webkit-scrollbar {
    display: none;
}

.gd-filter {
    flex-shrink: 0;

    padding: 10px 18px;

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

    border-radius: 100px;

    background: #FFF;

    color: var(--gd-muted);

    font-size: .9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.gd-filter:hover {
    color: var(--gd-primary);
    border-color: #BFDBFE;

    transform: translateY(-1px);
}

.gd-filter.active {
    background: var(--gd-dark);
    border-color: var(--gd-dark);
    color: #FFF;
}


/* =========================================================
   GRID PRINCIPAL
========================================================= */

.gd-blog-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 340px;

    gap: 60px;

    align-items: start;
}


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

.gd-posts {
    min-width: 0;
}

.gd-post-card {
    display: grid;

    grid-template-columns:
        minmax(260px, 42%) 1fr;
    min-height: 290px;
    margin-bottom: 30px;
    background: #FFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    border-radius: 20px;
    overflow: hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.gd-post-card.gd-visible {
    opacity: 1;
    transform: translateY(0);
}

.gd-post-card:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, .08);
}


/* imagem */

.gd-post-image {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: #E2E8F0;
}

.gd-post-image img {
    width: 100%;
    height: 100%;
    min-height: 290px;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}

.gd-post-card:hover .gd-post-image img {
    transform: scale(1.045);
}


/* categoria */

.gd-post-category {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 13px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    color: var(--gd-dark);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}


/* conteúdo */

.gd-post-body {
    display: flex;
    flex-direction: column;
    padding: 28px 30px;
}

.gd-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
    color: #94A3B8;
    font-size: .78rem;
}

.gd-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-post-body h2 {
    margin: 0 0 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 650;
    line-height: 1.28;
}

.gd-post-body h2 a {
    color: var(--gd-dark);
    text-decoration: none;
    transition: color .2s ease;
}

.gd-post-body h2 a:hover {
    color: var(--gd-primary);
}

.gd-post-description {
    margin: 0 0 25px;
    color: var(--gd-muted);
    font-size: .95rem;
    line-height: 1.65;
}


/* footer do card */

.gd-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
}

.gd-post-update {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #94A3B8;
    font-size: .75rem;
}

.gd-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--gd-primary);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
}

.gd-read-more i {
    transition: transform .2s ease;
}

.gd-read-more:hover i {
    transform: translateX(4px);
}


/* =========================================================
   SEM RESULTADOS
========================================================= */

.gd-empty-results {
    display: none;

    padding: 70px 30px;

    text-align: center;

    border: 1px dashed #CBD5E1;

    border-radius: 18px;
}

.gd-empty-results.active {
    display: block;
}

.gd-empty-results i {
    display: block;

    margin-bottom: 15px;

    color: #94A3B8;

    font-size: 2.2rem;
}

.gd-empty-results h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--gd-dark);
}

.gd-empty-results p {
    color: var(--gd-muted);
}


/* =========================================================
   SIDEBAR
========================================================= */

.gd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 120px;
}

.gd-sidebar-card {
    padding: 26px;
    background: #FFF;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.gd-sidebar-card>h3,
.gd-sidebar-title h3 {
    margin: 0 0 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--gd-dark);
}

.gd-sidebar-title {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.gd-sidebar-title i {
    color: var(--gd-primary);
}


/* =========================================================
   PESQUISA
========================================================= */

.gd-search-form {
    position: relative;
}

.gd-search-form input {
    width: 100%;

    height: 52px;

    padding:
        0 55px 0 18px;

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

    border-radius: 12px;

    outline: none;

    background: #F8FAFC;

    font-family: inherit;

    font-size: .9rem;

    color: var(--gd-text);

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

.gd-search-form input:focus {
    background: #FFF;

    border-color: var(--gd-primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .1);
}

.gd-search-form button {
    position: absolute;

    top: 6px;
    right: 6px;

    width: 40px;
    height: 40px;

    display: flex;

    justify-content: center;
    align-items: center;

    border: 0;

    border-radius: 9px;

    background: var(--gd-dark);

    color: #FFF;

    cursor: pointer;

    transition:
        background .2s,
        transform .2s;
}

.gd-search-form button:hover {
    background: var(--gd-primary);

    transform: scale(1.03);
}


/* =========================================================
   MAIS LIDAS
========================================================= */

.gd-popular-list {
    display: flex;

    flex-direction: column;
}

.gd-popular-item {
    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 13px;

    padding: 17px 0;

    border-bottom: 1px solid #F1F5F9;
}

.gd-popular-item:first-child {
    padding-top: 0;
}

.gd-popular-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gd-popular-number {
    font-family: 'Outfit', sans-serif;

    font-size: 1.45rem;

    font-weight: 700;

    color: #CBD5E1;

    line-height: 1;
}

.gd-popular-item a {
    display: block;

    margin-bottom: 7px;

    color: var(--gd-dark);

    text-decoration: none;

    font-size: .88rem;

    font-weight: 600;

    line-height: 1.45;

    transition: color .2s;
}

.gd-popular-item:hover a {
    color: var(--gd-primary);
}

.gd-popular-item small {
    color: #94A3B8;
    font-size: .72rem;
}


/* =========================================================
   CATEGORIAS
========================================================= */

.gd-category-list {
    list-style: none;

    padding: 0;
    margin: 0;
}

.gd-category-list li {
    border-bottom: 1px solid #F1F5F9;
}

.gd-category-list li:last-child {
    border-bottom: 0;
}

.gd-category-list a {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 11px 0;

    color: var(--gd-muted);

    text-decoration: none;

    font-size: .88rem;

    transition:
        color .2s,
        padding .2s;
}

.gd-category-list a:hover {
    color: var(--gd-primary);

    padding-left: 4px;
}

.gd-category-list span {
    min-width: 30px;

    padding: 4px 8px;

    border-radius: 50px;

    background: #F1F5F9;

    color: #64748B;

    text-align: center;

    font-size: .68rem;

    font-weight: 700;
}


/* =========================================================
   TAGS
========================================================= */

.gd-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.gd-tags a {
    padding: 8px 12px;

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

    border-radius: 8px;

    background: #F8FAFC;

    color: var(--gd-muted);

    text-decoration: none;

    font-size: .76rem;

    font-weight: 600;

    transition:
        background .2s,
        color .2s,
        border-color .2s,
        transform .2s;
}

.gd-tags a:hover {
    background: var(--gd-dark);

    border-color: var(--gd-dark);

    color: #FFF;

    transform: translateY(-2px);
}


/* =========================================================
   PAGINAÇÃO
========================================================= */

.gd-pagination {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 45px;
}

.gd-pagination a,
.gd-pagination span {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

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

    border-radius: 10px;

    color: var(--gd-muted);

    text-decoration: none;

    font-size: .85rem;

    font-weight: 600;

    transition: .2s;
}

.gd-pagination a:hover {
    border-color: var(--gd-dark);

    color: var(--gd-dark);
}

.gd-pagination a.active {
    background: var(--gd-dark);
    border-color: var(--gd-dark);
    color: #FFF;
}

.gd-pagination a.disabled {
    pointer-events: none;
    opacity: .4;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media(max-width:1199px) {

    .gd-blog-layout {
        grid-template-columns:
            minmax(0, 1fr) 300px;

        gap: 35px;
    }

    .gd-post-card {
        grid-template-columns: 38% 1fr;
    }

}


@media(max-width:991px) {

    .gd-blog-layout {
        grid-template-columns: 1fr;
    }

    .gd-sidebar {
        position: static;

        display: grid;

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

}


@media(max-width:767px) {

    .gd-blog-hero {
        padding: 50px 0;
    }

    .gd-blog-content {
        padding: 50px 0 70px;
    }

    .gd-post-card {
        grid-template-columns: 1fr;
    }

    .gd-post-image {
        aspect-ratio: 16/9;
    }

    .gd-post-image img {
        min-height: 0;
    }

    .gd-post-body {
        padding: 24px;
    }

    .gd-post-footer {
        flex-direction: column;

        align-items: flex-start;
    }

    .gd-sidebar {
        grid-template-columns: 1fr;
    }

}


@media(max-width:575px) {

    .gd-blog-heading h1 {
        font-size: 2.25rem;
    }

    .gd-blog-heading p {
        font-size: .95rem;
    }

    .gd-post-body h2 {
        font-size: 1.3rem;
    }

    .gd-sidebar-card {
        padding: 22px;
    }

}