/* ==========================================================================
   Blog Masonry — Full Width  |  mytheme
   ========================================================================== */

/* Wrapper & header
   ========================================================================== */

.blog-masonry-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.blog-masonry-header {
    margin-bottom: 3.5rem;
}

.blog-masonry-page-title {
	margin-top: 50px;
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.03em;
	color: #F7F6FF;
/*     color: #C77B38; */
    line-height: 1.15;
    margin: 0;
}

.blog-masonry-page-title strong,
.blog-masonry-page-title span {
    font-weight: 700;
    color: #2563eb; /* accent blue — tweak to your brand colour */
}

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

.blog-masonry-grid {
    columns: 1;
    column-gap: 1.75rem;
}

@media (min-width: 640px) {
    .blog-masonry-grid {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .blog-masonry-grid {
        columns: 3;
    }
}

/* Cards
   ========================================================================== */

.bm-card {
    break-inside: avoid;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 1.75rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
}

.bm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
    border-color: #d0d0d0;
}

/* No-image variant (blue card) */
.bm-card--no-image {
    background: #2563eb;
    border-color: transparent;
    min-height: 200px;
    justify-content: flex-end;
}

.bm-card--no-image:hover {
    background: #1d4ed8;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.28);
    border-color: transparent;
    transform: translateY(-4px);
}

/* Thumbnail
   ========================================================================== */

.bm-card__thumb-link {
    display: block;
    overflow: hidden;
}

.bm-card__thumb {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.bm-card:hover .bm-card__thumb {
    transform: scale(1.04);
}

/* Card body
   ========================================================================== */

.bm-card__body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

/* Category badge */
.bm-card__cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C77B38;
    text-decoration: none;
    transition: color 0.15s;
}

.bm-card__cat:hover {
    color: #C77B38;
}

.bm-card__cat--light {
    color: rgba(255, 255, 255, 0.75);
}

.bm-card__cat--light:hover {
    color: #fff;
}

/* Title */
.bm-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
    margin: 0;
    color: #111;
}

.bm-card--no-image .bm-card__title {
    color: #fff;
    font-size: 1.15rem;
}

.bm-card__title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.3s ease;
}

.bm-card__title a:hover {
    background-size: 100% 1px;
}

/* Meta row */
.bm-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.bm-card__date {
    font-size: 0.78rem;
    color: #888;
    letter-spacing: 0.01em;
}

.bm-card--no-image .bm-card__date {
    color: rgba(255, 255, 255, 0.6);
}

.bm-card__read-time {
    font-size: 0.78rem;
    color: #aaa;
}

.bm-card__read-time:not(:empty)::before {
    content: '·';
    margin-right: 0.75rem;
    color: #ccc;
}

.bm-card--no-image .bm-card__read-time {
    color: rgba(255, 255, 255, 0.55);
}

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

.blog-masonry-wrapper .navigation.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 2rem;
}

.blog-masonry-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.blog-masonry-wrapper .page-numbers:hover,
.blog-masonry-wrapper .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Responsive tweaks
   ========================================================================== */

@media (max-width: 639px) {
    .blog-masonry-wrapper {
        padding: 2rem 1rem 4rem;
    }

    .bm-card__body {
        padding: 1rem 1.1rem 1.25rem;
    }
}