/**
 * Kisma Estate - Blog Management Dashboard
 * Real estate theme: dark blue + gold
 */
.blog-dashboard .stat-card {
    border-left-color: #c9a227;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-dashboard .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.blog-dashboard .card-header {
    font-weight: 600;
    color: var(--dash-text);
}
.blog-dashboard .list-group-item a {
    color: inherit;
}
.blog-dashboard .table td a {
    color: var(--dash-text);
}
.blog-dashboard .table td a:hover {
    color: #c9a227;
}
.blog-dashboard .blog-views-card .card-header {
    min-height: 42px;
}
.blog-dashboard .blog-views-filter .form-select {
    width: auto;
    min-width: 9.5rem;
    font-size: 0.8rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.blog-dashboard .blog-views-chart-wrap {
    height: 130px;
    position: relative;
}

/* Blog form */
#blogForm .card-header {
    border-bottom: 1px solid var(--dash-border);
}
#blogForm .form-label {
    font-weight: 500;
}
.ck.ck-editor {
    max-width: 100%;
}
.ck.ck-content {
    min-height: 300px;
}

/* Frontend blog cards */
.blog-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.blog-card .card-title a:hover {
    color: #c9a227 !important;
}

/* —— Public blog article (professional) —— */
.blog-article-page {
    padding: 2.5rem 0 4rem;
    background:
        radial-gradient(ellipse 80% 40% at 50% -10%, rgba(201, 162, 39, 0.08), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 28%, #ffffff 100%);
}
.blog-article-breadcrumb {
    margin-bottom: 1.5rem;
}
.blog-article-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
}
.blog-article-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}
.blog-article-breadcrumb .breadcrumb-item a:hover {
    color: #c9a227;
}
.blog-article-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 500;
}
.blog-article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}

.blog-single {
    max-width: none;
    margin: 0;
}
.blog-single__reading {
    max-width: 780px;
    margin: 0 auto;
}
.blog-single__header {
    margin-bottom: 1.75rem;
    text-align: center;
}
.blog-single__category {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #c9a227;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}
.blog-single__category:hover {
    color: #f0d77a;
}
.blog-single__title {
    margin: 0 0 0.75rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.blog-single__dek {
    margin: 0 auto 1.15rem;
    max-width: 36rem;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.55;
}
.blog-single__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 1.25rem;
    color: #64748b;
    font-size: 0.875rem;
}
.blog-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.blog-single__meta-item i {
    color: #c9a227;
    font-size: 0.8rem;
}

.blog-single__hero {
    margin: 0 0 2rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.blog-single__hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 480px);
    object-fit: cover;
}

.blog-single__content,
.blog-single .blog-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}
.blog-single__content > *:first-child {
    margin-top: 0;
}
.blog-single__content h2,
.blog-single__content h3,
.blog-single__content h4,
.blog-single .blog-content h2,
.blog-single .blog-content h3,
.blog-single .blog-content h4 {
    font-family: "Playfair Display", Georgia, serif;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.25;
    margin: 2rem 0 0.85rem;
}
.blog-single__content h2,
.blog-single .blog-content h2 {
    font-size: 1.55rem;
}
.blog-single__content h3,
.blog-single .blog-content h3 {
    font-size: 1.3rem;
}
.blog-single__content p,
.blog-single .blog-content p {
    margin-bottom: 1.15rem;
}
.blog-single__content a,
.blog-single .blog-content a {
    color: #0f172a;
    text-decoration-color: rgba(201, 162, 39, 0.55);
    text-underline-offset: 3px;
}
.blog-single__content a:hover,
.blog-single .blog-content a:hover {
    color: #c9a227;
}
.blog-single__content img,
.blog-single .blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.25rem 0;
}
.blog-single__content blockquote,
.blog-single .blog-content blockquote {
    margin: 1.5rem 0;
    padding: 0.85rem 1.15rem;
    border-left: 3px solid #c9a227;
    background: rgba(15, 23, 42, 0.03);
    color: #475569;
    font-style: italic;
}
.blog-single__content ul,
.blog-single__content ol,
.blog-single .blog-content ul,
.blog-single .blog-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1.15rem;
}

.blog-single__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
}
.blog-single__gallery-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}
.blog-single__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.blog-single__gallery-item:hover img {
    transform: scale(1.04);
}

.blog-single__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 2.25rem 0 0;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.blog-single__share-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
}
.blog-single__share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.blog-single__share-btn {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    background: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.blog-single__share-btn:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #c9a227;
    transform: translateY(-2px);
}

.blog-related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.blog-related__head {
    margin-bottom: 1.25rem;
}
.blog-related__title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
}
.blog-related__card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-related__card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    color: inherit;
}
.blog-related__media {
    aspect-ratio: 16 / 10;
    background: #0f172a;
    overflow: hidden;
}
.blog-related__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.blog-related__card:hover .blog-related__media img {
    transform: scale(1.05);
}
.blog-related__placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a227;
    font-size: 1.5rem;
}
.blog-related__body {
    padding: 0.95rem 1rem 1.1rem;
}
.blog-related__card-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}
.blog-related__date {
    color: #94a3b8;
    font-size: 0.8rem;
}

@media (max-width: 767.98px) {
    .blog-article-page {
        padding: 1.5rem 0 3rem;
    }
    .blog-single__header {
        text-align: left;
    }
    .blog-single__meta {
        justify-content: flex-start;
    }
    .blog-single__gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .blog-single__gallery {
        grid-template-columns: 1fr;
    }
}

/* —— Public blog comments (professional) —— */
.blog-comments {
    margin: 2.5rem 0 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.blog-comments__head {
    margin-bottom: 1.5rem;
}
.blog-comments__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.blog-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: #0f172a;
    color: #f8fafc;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}
.blog-comments__sub {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}
.blog-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}
.blog-comments__empty {
    text-align: center;
    padding: 2rem 1.25rem;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    color: #64748b;
}
.blog-comments__empty i {
    font-size: 1.6rem;
    color: #c9a227;
    margin-bottom: 0.55rem;
    display: block;
}
.blog-comments__empty p {
    margin: 0;
    font-size: 0.95rem;
}
.blog-comment {
    display: flex;
    gap: 0.95rem;
    padding: 1.1rem 1.15rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-comment:hover {
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.blog-comment__avatar {
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: #c9a227;
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
.blog-comment__body {
    flex: 1;
    min-width: 0;
}
.blog-comment__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.85rem;
    margin-bottom: 0.4rem;
}
.blog-comment__name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.98rem;
}
.blog-comment__date {
    color: #94a3b8;
    font-size: 0.8rem;
}
.blog-comment__text {
    margin: 0;
    color: #334155;
    line-height: 1.65;
    font-size: 0.96rem;
}
.blog-comments__form-wrap {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.025) 0%, transparent 42%),
        #fff;
    padding: 1.35rem 1.35rem 1.45rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.blog-comments__form-head {
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.blog-comments__form-title {
    margin: 0 0 0.3rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}
.blog-comments__form-note {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}
.blog-comments__alert {
    margin-bottom: 1rem;
}
.blog-comments__form .form-label {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}
.blog-comments__input {
    border-color: rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.blog-comments__input:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.18);
}
.blog-comments__submit {
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    border-radius: 10px;
}
.blog-comments__privacy {
    color: #94a3b8;
    font-size: 0.8rem;
}
@media (max-width: 575.98px) {
    .blog-comment {
        padding: 1rem;
    }
    .blog-comments__form-wrap {
        padding: 1.1rem;
    }
}
