/* ============================================================
   Blog post cards — archive + single recent posts
   ============================================================ */

/* ----------------------------------------------------------
   Archive grid
   ---------------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.blog-grid .gd-post-card {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: none !important;
}

.blog-grid .gd-card-link {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    background: #ffffff;
    height: 100%;
    transition: background 0.15s ease;
}

.blog-grid .gd-card-link:hover {
    background: #f5f6f8;
}

/* ----------------------------------------------------------
   Shared card styles (archive + recent posts)
   ---------------------------------------------------------- */

/* Image with padding so gray bg shows around it on hover */
.gd-card-thumb {
    margin: 12px 12px 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #ededed;
}

.gd-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 18px;
    background: transparent;
    flex: 1;
}

.gd-card-cat {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.gd-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.gd-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
}

.gd-card-meta {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
}

.gd-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    transform: rotate(180deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.gd-card-link:hover .gd-card-arrow {
    opacity: 1;
}

/* ----------------------------------------------------------
   Recent articles in single post (reuse same classes)
   ---------------------------------------------------------- */

.single-recent-posts .recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.single-recent-posts .recent-post-card {
    display: flex;
    flex-direction: column;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    background: #ffffff;
    box-shadow: none !important;
    transition: background 0.15s ease;
}

.single-recent-posts .recent-post-card:hover {
    background: #f5f6f8 !important;
}

.single-recent-posts .recent-post-thumb {
    margin: 12px 12px 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border: 1px solid #ededed;
}

.single-recent-posts .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
}

.single-recent-posts .recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 18px;
    background: transparent;
    flex: 1;
}

.single-recent-posts .recent-post-cat {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    background: none !important;
    padding: 0 !important;
}

.single-recent-posts .recent-post-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.single-recent-posts .recent-post-card:hover .recent-post-name {
    color: #111827 !important;
}

.single-recent-posts .recent-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
}

.single-recent-posts .recent-post-date {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
}

.single-recent-posts .recent-post-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    transform: rotate(180deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.single-recent-posts .recent-post-card:hover .recent-post-arrow {
    opacity: 1;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-recent-posts .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .single-recent-posts .recent-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------
   CTA block: title always centered on mobile
   ---------------------------------------------------------- */

@media (max-width: 820px) {
    .cta-block h2 {
        text-align: center !important;
    }
}

/* ----------------------------------------------------------
   Pagination
   ---------------------------------------------------------- */

.goodday-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    text-decoration: none !important;
    background: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.goodday-pagination .page-numbers.current {
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    border: none !important;
    outline: none !important;
}

.goodday-pagination .page-numbers:not(.current):hover {
    background: #f3f4f6;
    color: #111827;
}
