/* --- BLOG & SINGLE POST STYLES - FULL VERSION (ORIGINAL RESTORED) --- */

.section-blog-list { padding: 0 0 100px; background: #f8fafc; }
.section-hero-archive { padding: 80px 0 60px; background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%); }
.hero-subtitle-archive { max-width: 600px; margin: 20px auto 0; color: #64748b; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.post-card { background: white; border-radius: 24px; overflow: hidden; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; height: 100%; position: relative; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); border-color: rgba(13, 62, 154, 0.15); }
.post-thumbnail { height: 240px; overflow: hidden; position: relative; background-color: #f1f5f9; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-cat-badge { position: absolute; top: 20px; left: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); color: var(--primary); padding: 6px 14px; border-radius: 30px; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; z-index: 2; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.badge-news-cat { background: #ef4444 !important; color: #fff !important; }
.badge-item-new { background: #22c55e; color: white; padding: 2px 8px; border-radius: 28px; font-weight: 700; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.5px; margin-left: auto; }

.post-content { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: #64748b; margin-bottom: 12px; font-weight: 500; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-icon { width: 18px; height: 18px; }

.post-title { font-size: 1.35rem; line-height: 1.35; margin-bottom: 12px; font-weight: 800; color: var(--text-main); display: block; overflow: visible; }
.post-title a { color: inherit; text-decoration: none; background: linear-gradient(to right, var(--primary), var(--primary)) 0% 100% / 0% 2px no-repeat; transition: background-size 0.3s; padding-bottom: 2px; }
.post-card:hover .post-title a { background-size: 100% 2px; color: var(--primary); }
.post-excerpt { font-size: 1rem; color: #64748b; line-height: 1.6; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.read-more-link { margin-top: auto; font-weight: 700; font-size: 0.95rem; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.read-more-link svg { transition: transform 0.3s; }
.read-more-link:hover { color: var(--primary-dark); }
.read-more-link:hover svg { transform: translateX(4px); }

.pagination-wrap { margin-top: 60px; text-align: center; }
.empty-state-container { padding: 100px 0; text-align: center; }
.empty-state-title { color: #64748b; margin-bottom: 20px; }

@media (min-width: 992px) { .featured-post { grid-column: span 3; flex-direction: row; min-height: 420px; align-items: stretch; } .featured-post .post-thumbnail { width: 55%; height: auto; order: 2; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%); position: relative; } .featured-post .post-cat-badge { left: auto; right: 30px; } .featured-post .post-content { width: 45%; padding: 60px; justify-content: center; } .featured-post .post-title { font-size: 2.2rem; margin-bottom: 20px; } .featured-post .post-excerpt { font-size: 1.1rem; margin-bottom: 30px; } .post-grid { grid-template-columns: repeat(3, 1fr); } }

.single-post-container { max-width: 900px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.single-post-header { text-align: center; padding: 60px 0 130px; background: linear-gradient(to bottom, #f8fafc 0%, #edf2f7 100%); position: relative; overflow: hidden; }
.single-post-header::before { content: ''; position: absolute; top: -50%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(13, 62, 154, 0.03) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.single-cat-badge { display: inline-flex; align-items: center; padding: 6px 16px; background: white; color: var(--primary); border-radius: 30px; font-size: 0.85rem; font-weight: 700; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }
.single-title { font-size: 2.2rem; margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.3; color: var(--text-main); font-weight: 800; }
.single-meta { color: #64748b; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 24px; }
.single-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.single-featured-image { margin-top: -80px; margin-bottom: 30px; overflow: hidden; box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1); max-width: 800px; margin-left: auto; margin-right: auto; position: relative; z-index: 10; background: #fff; }

.single-content-wrap { max-width: 740px; margin: 0 auto; font-size: 1.05rem; color: #334155; line-height: 1.8; }
.single-content-wrap h2 { margin-top: 40px; margin-bottom: 20px; font-size: 1.75rem; color: var(--text-main); letter-spacing: -0.01em; }
.single-content-wrap h3 { margin-top: 32px; margin-bottom: 16px; font-size: 1.4rem; color: var(--text-main); }
.single-content-wrap h4 { margin-top: 24px; margin-bottom: 12px; font-size: 1.25rem; color: var(--text-main); font-weight: 700; }
.single-content-wrap h5 { margin-top: 20px; margin-bottom: 10px; font-size: 1.1rem; color: var(--text-main); font-weight: 700; text-transform: uppercase; }
.single-content-wrap p { margin-bottom: 24px; display: block; }
.single-content-wrap em { line-height: 1.6; }
.single-content-wrap > em { display: block; margin-top: 20px; color: #64748b; }
.single-content-wrap a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; transition: 0.2s; }
.single-content-wrap a:hover { color: var(--accent); }
.single-content-wrap ul { list-style-type: disc; padding-left: 40px; margin-bottom: 24px; }
.single-content-wrap ol { list-style-type: decimal; padding-left: 40px; margin-bottom: 24px; }
.single-content-wrap li { margin-bottom: 8px; padding-left: 0; }
.single-content-wrap img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; box-shadow: var(--shadow-sm); display: block; }
.wp-caption { max-width: 100%; margin-bottom: 24px; }
.wp-caption-text { text-align: center; font-size: 0.9rem; color: #64748b; margin-top: 8px; font-style: italic; }
.single-content-wrap blockquote { border-left: none; padding: 24px 32px; font-style: italic; font-size: 1.25rem; color: var(--text-main); margin: 30px 0; background: #f8fafc; border-radius: 16px; position: relative; text-align: center; }
.single-content-wrap blockquote::before { content: '“'; font-family: serif; font-size: 60px; color: var(--primary); opacity: 0.1; position: absolute; top: -10px; left: 20px; line-height: 1; }

.single-post-excerpt { line-height: 1.6; color: var(--text-body); font-weight: 500; max-width: 800px; margin: 0 auto 40px; opacity: 0.9; font-style: italic; background-color: transparent; padding-left: 24px; border-left: none; box-shadow: none; border-radius: 0; position: relative; }
.single-post-excerpt::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--vibe-gradient); border-radius: 4px; }

.author-bio-box { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px; display: flex; align-items: center; gap: 24px; margin-top: 60px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }
.author-bio-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: none; }
.author-bio-content h4 { margin: 0 0 8px; font-size: 1.1rem; }
.author-bio-content p { margin: 0; color: #64748b; font-size: 0.95rem; }

.related-posts-section { padding: 60px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.related-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.3s; border: 1px solid rgba(0, 0, 0, 0.03); display: flex; flex-direction: column; }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.related-thumb { height: 180px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.related-card:hover .related-thumb img { transform: scale(1.05); }
.related-content { padding: 20px; }
.related-title { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.related-title a { color: var(--text-main); text-decoration: none; }
.related-date { font-size: 0.85rem; color: #64748b; }
.related-title.hover-underline a { display: inline; background-image: linear-gradient(var(--primary), var(--primary)); background-size: 0% 2px; background-repeat: no-repeat; background-position: left bottom; transition: background-size 0.3s ease; padding-bottom: 2px; }
.related-card:hover .related-title.hover-underline a { background-size: 100% 2px; color: var(--primary); }

@media (max-width: 768px) { .post-grid { grid-template-columns: 1fr; } .single-title { font-size: 1.8rem; } .single-featured-image { border-radius: 0; margin-left: -24px; margin-right: -24px; width: calc(100% + 48px); max-width: none; margin-top: -60px; } .related-grid { grid-template-columns: 1fr; } .author-bio-box { flex-direction: column; text-align: center; } .single-post-excerpt { font-size: 1.1rem; text-align: left; padding-left: 15px; } }