/* ------------------------------------- */
/* BLOG HERO SECTION                     */
/* ------------------------------------- */
.blog-hero {
    padding: 200px 40px 100px 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-bottom: 32px;
}
.breadcrumbs a { color: #111; text-decoration: none; transition: color 0.2s ease; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #ccc; }

.blog-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.15;
    color: #111;
    margin-bottom: 40px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 24px 0;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
}

.meta-detail {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #888; font-weight: 600; }
.meta-value { font-size: 14px; color: #111; font-weight: 600; }
.meta-divider { width: 1px; height: 30px; background: #eaeaea; }

.feature-image-container {
    max-width: 1280px;
    margin: -40px auto 80px auto;
    padding: 0 40px;
}

.feature-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
    background: #f5f5f5;
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ------------------------------------- */
/* EDITORIAL CONTENT SPLIT               */
/* ------------------------------------- */
.blog-layout {
    display: flex;
    gap: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 120px 40px;
    align-items: flex-start;
}

.blog-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.sidebar-widget h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 20px;
    font-weight: 700;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toc-list a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: block;
}

.toc-list a:hover, .toc-list a.active {
    color: #111;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.share-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.blog-content {
    flex: 1;
    max-width: 720px;
}

.blog-content p {
    font-size: 19px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 32px;
}

.blog-content h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #111;
    margin: 56px 0 24px 0;
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #111;
    margin: 40px 0 20px 0;
}

.blog-content blockquote {
    margin: 56px 0;
    padding: 40px 0;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-style: italic;
    line-height: 1.4;
    color: #111;
    text-align: center;
}

.blog-content figure {
    margin: 56px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-content figure img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content figcaption {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

.blog-content ul {
    margin-bottom: 32px;
    padding-left: 20px;
}

.blog-content li {
    font-size: 19px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 12px;
}

.article-footer {
    border-top: 1px solid #eaeaea;
    padding-top: 40px;
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.tags {
    display: flex;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tag:hover { background: #eaeaea; }

/* ------------------------------------- */
/* BLOG ARCHIVE CONTROLS & GRID          */
/* ------------------------------------- */
.blog-archive-hero {
    text-align: center;
    padding: 80px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top, rgba(245, 245, 245, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.archive-controls {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 20px 40px;
}

.search-bar-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #eaeaea;
    border-radius: 100px;
    background: #fafafa;
    color: #111;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.01);
}

.search-input:focus {
    background: #ffffff;
    border-color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon { color: #111; }

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 24px 0;
    margin-bottom: 40px;
}

.filter-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-label { font-size: 12px; text-transform: uppercase; font-weight: 600; color: #888; letter-spacing: 1px; min-width: 80px; }
.filter-pills, .tag-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.pill-btn { background: #ffffff; border: 1px solid #eaeaea; padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 500; color: #666; cursor: pointer; transition: all 0.25s ease; }
.pill-btn:hover { border-color: #111; color: #111; }
.pill-btn.active { background: #111; border-color: #111; color: #fff; }

.tag-btn { background: #fafafa; border: 1px solid #fafafa; padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 500; color: #888; cursor: pointer; transition: all 0.2s ease; }
.tag-btn:hover { background: #f0f0f0; color: #111; }
.tag-btn.active { background: #eaeaea; border-color: #bbb; color: #111; font-weight: 600; }

.filter-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #666; }
.results-count { font-weight: 500; }
.btn-clear { background: none; border: none; color: #111; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; display: none; font-family: inherit; }

.archive-grid-section { max-width: 1280px; margin: 0 auto; padding: 0 40px 120px 40px; position: relative; min-height: 400px; }
.blogs-grid.loading { opacity: 0.35; transform: translateY(10px); pointer-events: none; }
.spinner-wrapper { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); display: none; z-index: 10; }
.spinner { width: 40px; height: 40px; border: 3px solid #f3f3f3; border-top: 3px solid #111; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 80px 20px; display: none; }

.related-section { background-color: #fafafa; padding: 120px 40px; border-top: 1px solid #eaeaea; }
.related-container { max-width: 1280px; margin: 0 auto; }
.related-title { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 48px; }

@media (max-width: 1024px) {
    .blog-layout { gap: 40px; }
    .blog-sidebar { flex: 0 0 200px; }
}

@media (max-width: 768px) {
    .blog-hero { padding: 160px 24px 60px 24px; }
    .blog-meta { flex-direction: column; gap: 24px; align-items: flex-start; padding: 24px 0; }
    .meta-divider { display: none; }
    .feature-image-container { padding: 0 24px; margin-bottom: 40px; }
    .feature-image-wrapper { border-radius: 16px; aspect-ratio: 4/3; }
    .blog-layout { flex-direction: column; padding: 0 24px 80px 24px; gap: 64px; }
    .blog-sidebar { position: relative; top: 0; flex: none; width: 100%; border-bottom: 1px solid #eaeaea; padding-bottom: 40px; }
    .toc-list { display: none; }
    .blog-content p { font-size: 17px; }
    .blog-content h2 { font-size: 28px; }
    .blog-content blockquote { font-size: 24px; padding: 32px 0; }
    .related-section { padding: 80px 24px; }

    .archive-controls { padding: 20px 24px; }
    .filter-pills, .tag-pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .filter-pills::-webkit-scrollbar, .tag-pills::-webkit-scrollbar { display: none; }
    .pill-btn, .tag-btn { flex: 0 0 auto; }
    .archive-grid-section { padding: 0 24px 80px 24px; }
}
