/* ================================================================
   Blog Suite – Main Stylesheet  v1.0.0
   ================================================================ */

/* ── Reset / Base ─────────────────────────────────────────────── */
.bs-wrap *,
.bs-wrap *::before,
.bs-wrap *::after {
    box-sizing: border-box;
}

.bs-wrap {
    --bs-font:        'Georgia', 'Times New Roman', serif;
    --bs-sans:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-radius:      10px;
    --bs-shadow:      0 2px 16px rgba(0,0,0,.08);
    --bs-border:      #e8e8e8;
    --bs-text:        #1a1a2e;
    --bs-text-light:  #666;
    --bs-link:        #0f2044;
    --bs-accent:      #f5a623;
    --bs-max-width:   1100px;
    font-family: var(--bs-sans);
    color: var(--bs-text);
}

/* ── Hero Header ──────────────────────────────────────────────── */
.bs-hero {
    padding: 60px 24px;
}
.bs-hero__inner {
    max-width: var(--bs-max-width);
    margin: 0 auto;
}
.bs-hero__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.15;
    color: inherit;
}
.bs-hero__subtitle {
    font-size: 16px;
    opacity: .8;
    margin: 0 0 20px;
    color: inherit;
}
.bs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 13px;
    color: inherit;
    opacity: .9;
}

/* ── Archive Section ──────────────────────────────────────────── */
.bs-archive-section {
    padding: 40px 24px 60px;
    background: #fff;
}
.bs-archive__inner {
    max-width: var(--bs-max-width);
    margin: 0 auto;
}
.bs-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 28px;
    color: var(--bs-text);
}

/* ── Post Grid ────────────────────────────────────────────────── */
.bs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.bs-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Card ─────────────────────────────────────────────────────── */
.bs-card {
    background: #fff;
    border-radius: var(--bs-radius);
    overflow: hidden;
    box-shadow: var(--bs-shadow);
    border: 1px solid var(--bs-border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.bs-card__thumb-link { display: block; }
.bs-card__thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.bs-card__thumb--placeholder {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.bs-card__body { padding: 16px; }
.bs-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
.bs-card__title a {
    color: var(--bs-text);
    text-decoration: none;
}
.bs-card__title a:hover { color: var(--bs-link); text-decoration: underline; }
.bs-card__meta {
    font-size: 12px;
    color: var(--bs-text-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.bs-meta-sep { opacity: .5; }
.bs-card__excerpt { font-size: 13px; color: var(--bs-text-light); margin: 8px 0 0; line-height: 1.6; }
.bs-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--bs-text-light);
    font-size: 12px;
}

/* ── Pagination ───────────────────────────────────────────────── */
.bs-pagination { margin-top: 48px; display: flex; justify-content: center; }
.bs-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}
.bs-pagination .page-numbers li a,
.bs-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--bs-border);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--bs-text);
    transition: all .18s;
}
.bs-pagination .page-numbers li a:hover { background: var(--bs-link); color: #fff; border-color: var(--bs-link); }
.bs-pagination .page-numbers li .current { background: var(--bs-link); color: #fff; border-color: var(--bs-link); }
.bs-pagination .page-numbers li .dots { border: none; width: auto; }

/* ── CTA Banner ───────────────────────────────────────────────── */
.bs-cta-banner {
    padding: 48px 24px;
}
.bs-cta-banner__inner {
    max-width: var(--bs-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.bs-cta-banner h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin: 0 0 8px; color: inherit; }
.bs-cta-banner p  { margin: 0; opacity: .85; font-size: 15px; color: inherit; }

/* ── Buttons ──────────────────────────────────────────────────── */
.bs-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.bs-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; text-decoration: none; }
.bs-btn--cta  { background: var(--bs-cta-btn); }
.bs-btn--sidebar { display: block; text-align: center; margin-top: 12px; }

/* ── No posts ─────────────────────────────────────────────────── */
.bs-no-posts { text-align: center; padding: 60px 0; color: var(--bs-text-light); font-size: 16px; }

/* ════════════════════════════════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════════════════════════════════ */
.bs-single-wrap { background: #fff; }

/* Breadcrumb */
.bs-breadcrumb { border-bottom: 1px solid var(--bs-border); padding: 12px 24px; font-size: 13px; color: var(--bs-text-light); }
.bs-breadcrumb__inner { max-width: var(--bs-max-width); margin: 0 auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bs-breadcrumb a { color: var(--bs-link); text-decoration: none; }
.bs-breadcrumb a:hover { text-decoration: underline; }
.bs-breadcrumb__sep { color: #bbb; }

/* Layout */
.bs-single-layout {
    max-width: var(--bs-max-width);
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* Main */
.bs-single-header { margin-bottom: 28px; }
.bs-single-title {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--bs-text);
}
.bs-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 14px;
    color: var(--bs-text-light);
}
.bs-single-meta strong { color: var(--bs-text); }

/* Featured image */
.bs-featured-img { margin-bottom: 28px; border-radius: var(--bs-radius); overflow: hidden; }
.bs-featured-img__img { width: 100%; height: auto; display: block; }

/* TOC */
.bs-toc {
    background: #f8f9fc;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 20px 24px;
    margin: 0 0 28px;
}
.bs-toc__title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.bs-toc__list { margin: 0; padding-left: 20px; }
.bs-toc__list li { padding: 3px 0; font-size: 14px; }
.bs-toc__link { color: var(--bs-link); text-decoration: none; }
.bs-toc__link:hover { text-decoration: underline; }

/* Audio player */
.bs-audio-player {
    background: #f8f9fc;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 16px 20px;
    margin: 0 0 28px;
}
.bs-audio-player__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bs-text-light);
    margin-bottom: 10px;
}
.bs-audio-player__controls { display: flex; align-items: center; gap: 14px; }
.bs-audio-btn {
    background: var(--bs-link);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: opacity .2s;
}
.bs-audio-btn:hover { opacity: .8; }
.bs-audio-progress { flex: 1; }
.bs-audio-bar {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}
.bs-audio-fill {
    height: 100%;
    width: 0%;
    background: var(--bs-link);
    border-radius: 2px;
    transition: width .3s linear;
}
.bs-audio-time { font-size: 12px; color: var(--bs-text-light); white-space: nowrap; }

/* Post content */
.bs-single-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--bs-text);
}
.bs-single-content h2 { font-size: 24px; font-weight: 700; margin: 36px 0 16px; }
.bs-single-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.bs-single-content h4 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.bs-single-content p  { margin: 0 0 20px; }
.bs-single-content ul,
.bs-single-content ol { margin: 0 0 20px 24px; }
.bs-single-content li { margin-bottom: 6px; }
.bs-single-content blockquote {
    margin: 28px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--bs-link);
    background: #f8f9fc;
    border-radius: 0 var(--bs-radius) var(--bs-radius) 0;
    font-style: italic;
    color: #444;
}
.bs-single-content img { max-width: 100%; height: auto; border-radius: var(--bs-radius); margin: 16px 0; }
.bs-single-content a { color: var(--bs-link); }
.bs-single-content pre {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: var(--bs-radius);
    overflow-x: auto;
    font-size: 14px;
    margin: 20px 0;
}
.bs-single-content code {
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.bs-single-content pre code { background: none; padding: 0; color: inherit; }

/* Social share */
.bs-social-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 36px 0;
    padding: 20px 0;
    border-top: 1px solid var(--bs-border);
    border-bottom: 1px solid var(--bs-border);
}
.bs-social-share__label { font-size: 13px; font-weight: 600; color: var(--bs-text-light); }
.bs-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}
.bs-share-btn:hover { opacity: .85; transform: translateY(-1px); }
.bs-share-btn--twitter  { background: #000; color: #fff; }
.bs-share-btn--linkedin { background: #0a66c2; color: #fff; }
.bs-share-btn--facebook { background: #1877f2; color: #fff; }
.bs-share-btn--copy     { background: #f0f0f5; color: var(--bs-text); }

/* Author box */
.bs-author-box {
    display: flex;
    gap: 20px;
    background: #f8f9fc;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 24px;
    margin: 36px 0;
    align-items: flex-start;
}
.bs-author-avatar { border-radius: 50%; width: 64px; height: 64px; object-fit: cover; }
.bs-author-box__name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.bs-author-box__bio  { font-size: 14px; color: var(--bs-text-light); line-height: 1.6; margin: 0 0 8px; }
.bs-author-box__link { font-size: 13px; color: var(--bs-link); text-decoration: none; font-weight: 500; }
.bs-author-box__link:hover { text-decoration: underline; }

/* Bottom CTA */
.bs-bottom-cta {
    border-radius: var(--bs-radius);
    padding: 32px 28px;
    margin: 36px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
}
.bs-bottom-cta h3 { font-size: 20px; font-weight: 700; margin: 0; color: inherit; }

/* Related posts */
.bs-related { margin-top: 48px; }
.bs-related__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.bs-related__all { font-size: 14px; color: var(--bs-link); font-weight: 500; text-decoration: none; }
.bs-related__all:hover { text-decoration: underline; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.bs-single-sidebar {
    position: sticky;
    top: 24px;
}
.bs-sidebar-widget {
    border-radius: var(--bs-radius);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--bs-border);
}
.bs-sidebar-widget__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-border);
}
.bs-sidebar-post {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--bs-border);
}
.bs-sidebar-post:last-child { border-bottom: none; }
.bs-sidebar-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.bs-sidebar-post__info { flex: 1; min-width: 0; }
.bs-sidebar-post__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bs-text);
    text-decoration: none;
    margin-bottom: 4px;
}
.bs-sidebar-post__title:hover { color: var(--bs-link); }
.bs-sidebar-post__read { font-size: 12px; color: var(--bs-link); font-weight: 500; text-decoration: none; }
.bs-sidebar-post__read:hover { text-decoration: underline; }

.bs-sidebar-cta { text-align: center; border: none !important; }
.bs-sidebar-cta__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: inherit; }
.bs-sidebar-cta__sub   { font-size: 13px; opacity: .8; margin: 0; color: inherit; }

/* ════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .bs-grid { grid-template-columns: repeat(2, 1fr); }
    .bs-single-layout { grid-template-columns: 1fr; }
    .bs-single-sidebar { position: static; }
    .bs-sidebar-recent { order: 3; }
    .bs-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .bs-hero { padding: 40px 16px; }
    .bs-archive-section { padding: 28px 16px 40px; }
    .bs-grid { grid-template-columns: 1fr; }
    .bs-grid--3 { grid-template-columns: 1fr; }
    .bs-cta-banner__inner { flex-direction: column; text-align: center; }
    .bs-cta-banner__text { text-align: center; }
    .bs-single-layout { padding: 24px 16px 40px; gap: 32px; }
    .bs-author-box { flex-direction: column; align-items: center; text-align: center; }
    .bs-bottom-cta { flex-direction: column; text-align: center; }
    .bs-breadcrumb { padding: 10px 16px; }
    .bs-related__header { flex-direction: column; align-items: flex-start; }
    .bs-social-share { justify-content: flex-start; }
    .bs-pagination .page-numbers li a,
    .bs-pagination .page-numbers li span { width: 32px; height: 32px; font-size: 13px; }
}

@media (max-width: 380px) {
    .bs-hero__title { font-size: 24px; }
    .bs-single-title { font-size: 20px; }
    .bs-share-btn { padding: 6px 10px; font-size: 12px; }
}
