/* ============================================================
 * Blog-specific styles.
 * Loaded AFTER the parent site's styles.css so it can override.
 * Only contains rules that aren't already provided by the parent theme.
 * ============================================================ */

/* ── Blog listing cards ─────────────────────────────────────── */
.blog-card {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}
.blog-card .img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ecef;
}
.blog-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: unset;
    transition: transform .35s ease;
}
.blog-card:hover .img-wrap img {
    transform: scale(1.04);
}
.blog-card .card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 .5rem;
    line-height: 1.35;
}
.blog-card .meta {
    color: #6c757d;
    font-size: .85rem;
    margin-bottom: .75rem;
}
.blog-card .desc {
    color: #495057;
    font-size: .95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card .read-more {
    margin-top: auto;
}

/* ── Single post ────────────────────────────────────────────── */
.post-hero img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: .75rem;
}
.post-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #212529;
}
.post-content p { margin-bottom: 1.1rem; }
.post-content h2 { font-weight: 700; margin-top: 2rem; }
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}

/* ============================================================
 * Admin panel styles (these pages do NOT use the parent theme)
 * ============================================================ */
.admin-body {
    background: #eef2f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.admin-sidebar {
    background: #1a202c;
    color: #cbd5e0;
    min-height: 100vh;
    padding: 1.5rem 0;
}
.admin-sidebar .brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid #2d3748;
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
}
.admin-sidebar a.nav-item {
    display: block;
    color: #cbd5e0;
    padding: .65rem 1.5rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .15s ease;
}
.admin-sidebar a.nav-item:hover,
.admin-sidebar a.nav-item.active {
    background: #2d3748;
    color: #fff;
    border-left-color: #0d6efd;
}
.admin-sidebar i { margin-right: .55rem; }

.admin-topbar {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    padding: .85rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-card {
    background: #fff;
    border: 0;
    border-radius: .65rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.stat-card {
    border-radius: .65rem;
    padding: 1.25rem;
    color: #fff;
}
.stat-card.bg-blue   { background: linear-gradient(135deg, #4f8cff, #2f63d8); }
.stat-card.bg-green  { background: linear-gradient(135deg, #3ccf9c, #2ba87b); }
.stat-card.bg-orange { background: linear-gradient(135deg, #ff9f43, #e07d10); }
.stat-card .num { font-size: 2rem; font-weight: 700; }
.stat-card .lbl { opacity: .85; font-size: .9rem; }

.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.login-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: .75rem;
    padding: 2.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

@media (max-width: 991.98px) {
    .admin-sidebar { min-height: auto; }
}
