/* =========================================
   BLOG DETAIL PAGE — FRAMEWORK SOLUTIONS
   ========================================= */

/* Hero */
.bld-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0d2255 55%, #102c6e 100%);
    padding: 90px 24px 70px;
    position: relative; overflow: hidden;
    text-align: center;
}
.bld-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 65% 35%, rgba(0,210,255,0.09) 0%, transparent 55%);
    pointer-events: none;
}
.bld-hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.bld-breadcrumb {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.45); margin-bottom: 22px;
}
.bld-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
.bld-breadcrumb a:hover { color: #fff; }
.bld-breadcrumb i { font-size: 9px; }
.bld-cat-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 16px;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 50px; color: #00d2ff;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 20px;
}
.bld-hero h1 {
    font-size: clamp(26px, 4vw, 48px); font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px;
}
.bld-hero-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500;
}
.bld-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bld-hero-meta i { color: var(--accent-cyan); font-size: 12px; }

/* Main Layout */
.bld-main { padding: 80px 0 100px; background: #f8faff; }
.bld-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Article Content */
.bld-article-wrap {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.bld-cover-img {
    width: 100%; height: 420px;
    object-fit: cover; display: block;
}
.bld-article-body { padding: 48px; }

/* Article Typography */
.bld-article-body h2 {
    font-size: 26px; font-weight: 800; color: #111827;
    margin: 36px 0 14px; line-height: 1.25; letter-spacing: -0.3px;
}
.bld-article-body h2:first-child { margin-top: 0; }
.bld-article-body h3 {
    font-size: 20px; font-weight: 700; color: #1d4f9f;
    margin: 28px 0 12px;
}
.bld-article-body p {
    font-size: 16px; color: #374151; line-height: 1.85;
    margin-bottom: 20px;
}
.bld-article-body ul, .bld-article-body ol {
    margin: 0 0 22px 0; padding-left: 24px;
}
.bld-article-body li {
    font-size: 16px; color: #374151; line-height: 1.75;
    margin-bottom: 8px;
}
.bld-article-body strong { color: #111827; font-weight: 700; }

/* Pull Quote */
.bld-pullquote {
    border-left: 4px solid var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0,210,255,0.05), rgba(29,79,159,0.04));
    padding: 22px 28px; margin: 32px 0;
    border-radius: 0 12px 12px 0;
}
.bld-pullquote p {
    font-size: 18px !important; font-style: italic;
    color: #0d2255 !important; margin: 0 !important; line-height: 1.6 !important;
    font-weight: 500;
}

/* Highlight Box */
.bld-highlight {
    background: linear-gradient(135deg, #0d2255, #1d4f9f);
    border-radius: 16px; padding: 32px 36px; margin: 32px 0;
    color: #fff;
}
.bld-highlight h3 { color: #00d2ff !important; margin-top: 0 !important; }
.bld-highlight p { color: rgba(255,255,255,0.8) !important; margin-bottom: 0 !important; }
.bld-highlight ul { margin-bottom: 0 !important; }
.bld-highlight li { color: rgba(255,255,255,0.8) !important; }
.bld-highlight li::marker { color: #00d2ff; }

/* Stat Row */
.bld-stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin: 32px 0;
}
.bld-stat-box {
    background: #f8faff; border: 1px solid #e5e7eb;
    border-radius: 14px; padding: 24px 20px;
    text-align: center;
}
.bld-stat-box strong {
    display: block; font-size: 32px; font-weight: 800;
    color: var(--primary); line-height: 1; margin-bottom: 6px;
}
.bld-stat-box span { font-size: 13px; color: #6b7280; font-weight: 600; }

/* Tags at bottom */
.bld-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding-top: 28px; margin-top: 36px;
    border-top: 1px solid #e5e7eb;
}
.bld-tag {
    padding: 6px 14px; background: rgba(29,79,159,0.07);
    border: 1px solid rgba(29,79,159,0.12);
    border-radius: 50px; font-size: 12px; font-weight: 600;
    color: var(--primary); text-decoration: none;
}

/* =========================================
   SIDEBAR
   ========================================= */
.bld-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }

.bld-sidebar-card {
    background: #fff; border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.bld-sidebar-card h4 {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #9ca3af; margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 1px solid #f3f4f6;
}

/* Author Card */
.bld-author {
    display: flex; align-items: center; gap: 16px; margin-bottom: 14px;
}
.bld-author-img {
    width: 56px; height: 56px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid rgba(29,79,159,0.15);
}
.bld-author-img-placeholder {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2a6fd6);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 22px; color: #fff; font-weight: 700;
}
.bld-author-name { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.bld-author-role { font-size: 12px; color: #9ca3af; font-weight: 500; }
.bld-author-bio { font-size: 13px; color: #6b7280; line-height: 1.65; }

/* Related Posts */
.bld-related-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: all 0.2s;
}
.bld-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.bld-related-item:hover .bld-related-title { color: var(--primary); }
.bld-related-thumb {
    width: 56px; height: 52px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
}
.bld-related-cat {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--accent-cyan); margin-bottom: 4px;
}
.bld-related-title {
    font-size: 13px; font-weight: 600; color: #111827;
    line-height: 1.4; transition: color 0.2s;
}

/* CTA Sidebar */
.bld-sidebar-cta {
    background: linear-gradient(135deg, #0d2255, #1d4f9f);
    border-radius: 16px; padding: 28px;
    text-align: center;
}
.bld-sidebar-cta i { font-size: 28px; color: #00d2ff; margin-bottom: 12px; display: block; }
.bld-sidebar-cta h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.bld-sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 20px; }
.bld-sidebar-cta a {
    display: block; padding: 13px 20px;
    background: #00b8d9;
    border-radius: 10px; border: 2px solid transparent;
    color: #fff; font-size: 14px; font-weight: 700;
    text-decoration: none; transition: all 0.3s;
}
.bld-sidebar-cta a:hover { transform: translateY(-2px); background: #0099bb; box-shadow: 0 8px 20px rgba(0,180,255,0.4); }

/* More Articles Section */
.bld-more {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.bld-more-header { text-align: center; margin-bottom: 48px; }
.bld-more-header h2 {
    font-size: clamp(24px, 3vw, 36px); font-weight: 800;
    color: #111827; letter-spacing: -0.5px;
}
.bld-more-header h2 span {
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bld-more-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.bld-more-card {
    background: #fff; border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden; text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.bld-more-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.bld-more-card-img {
    width: 100%; height: 180px; object-fit: cover; display: block;
}
.bld-more-card-body { padding: 22px; }
.bld-more-card-cat {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--primary); margin-bottom: 8px;
}
.bld-more-card h3 {
    font-size: 16px; font-weight: 700; color: #111827;
    line-height: 1.35; margin-bottom: 8px;
}
.bld-more-card p { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 14px; }
.bld-more-read {
    font-size: 13px; font-weight: 700; color: var(--primary);
    display: inline-flex; align-items: center; gap: 5px;
    transition: gap 0.2s;
}
.bld-more-card:hover .bld-more-read { gap: 8px; color: var(--accent-cyan); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .bld-layout { grid-template-columns: 1fr; }
    .bld-sidebar { position: static; }
    .bld-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .bld-hero { padding: 70px 20px 60px; }
    .bld-main { padding: 50px 0 70px; }
    .bld-cover-img { height: 240px; }
    .bld-article-body { padding: 28px 22px; }
    .bld-article-body h2 { font-size: 22px; }
    .bld-stat-row { grid-template-columns: 1fr; }
    .bld-more-grid { grid-template-columns: 1fr; }
    .bld-hero-meta { gap: 14px; }
}
