/* =====================================================================
   Blog pages — styles for database-driven posts, matching the site
   theme (dark #0e0f11, lime var(--main-color)).
   ===================================================================== */

/* ---------- Author avatar (initials) ---------- */
.blog-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-color);
    color: #0e0f11;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.blog-avatar.circle-60 {
    width: 60px;
    height: 60px;
    font-size: 18px;
}

.blog-avatar-lg {
    width: 100px;
    height: 100px;
    font-size: 30px;
}

/* ---------- Blog list ---------- */
.blog-card-cat {
    display: inline-block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Photos of any shape fill the card frame evenly (display only; files are untouched) */
.blog-mp .item .img a {
    display: block;
    height: 100%;
}

.blog-mp .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.last-post-thum .item .img img {
    object-fit: cover;
}

.blog-mp .item:hover .img img {
    transform: scale(1.05);
}

.blog-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.blog-filter-tag {
    padding: 6px 18px;
    border: 1px solid var(--main-color);
    border-radius: 30px;
    color: var(--main-color);
}

.blog-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    list-style: none;
}

/* Centred circle page buttons: ‹ 1 2 3 › */
.blog-pagination li > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 15px;
    transition: border-color 0.2s, color 0.2s;
}

.blog-pagination li.active > *,
.blog-pagination li a:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.blog-pagination .disabled > * {
    opacity: 0.4;
}

/* ---------- Comments ---------- */
.comments-post .item-box {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-post .item-box p {
    opacity: 0.8;
}

/* Spam trap field: off-screen for people, still visible to bots */
.comment-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.comment-alert {
    margin-bottom: 30px;
    color: var(--main-color);
    font-size: 15px;
}

.comment-alert.is-error {
    color: #ff7a7a;
}

.comment-note {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.75; /* enough contrast to read comfortably */
}

/* ---------- Article text ---------- */
/* Links inside the post text keep the theme colour, underlined so they read as links. */
.main-post .text a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Post header ---------- */
/* The theme pins the caption bottom-left without a right edge; keep it inside the image. */
.post-header .bg-img .row {
    right: 30px;
}

@media (max-width: 768px) {
    .post-header .bg-img .row {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .post-header h1 {
        font-size: 24px !important;
        line-height: 1.3;
    }

    .post-header .caption .tags a {
        display: inline-block;
        margin-bottom: 8px;
        padding: 5px 14px;
    }

    .post-header .info .d-flex {
        flex-wrap: wrap;
        row-gap: 14px;
    }

    .post-header .info .date.ml-50 {
        margin-left: 24px !important;
    }

    .post-header .info .right-info {
        margin-top: 14px;
    }
}
