/*
 * Blog Styles - Complete
 * استایل‌های کامل صفحات بلاگ
 * Version: 1.0
 */

/* ============================================
   Blog Hero
   ============================================ */
.blog-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.blog-hero-title .title-line {
    display: inline-block;
}

.blog-hero-title .title-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.blog-hero-title .gradient-word {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

/* Blog Hero Search */
.blog-hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 0.375rem;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 177, 34, 0.2);
}

.search-icon {
    position: absolute;
    right: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem 0.875rem 3.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 177, 34, 0.4);
}

/* ============================================
   Blog Categories
   ============================================ */
.blog-categories {
    padding: 3rem 0;
    background: var(--white);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.categories-slider {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-200);
}

.categories-slider::-webkit-scrollbar {
    height: 6px;
}

.categories-slider::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.categories-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--light);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-btn:hover .category-count,
.category-btn.active .category-count {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Featured Post
   ============================================ */
.featured-post {
    padding: 5rem 0;
    background: var(--light);
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
}

.featured-content {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-category {
    display: inline-flex;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 177, 34, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.meta-date,
.meta-read {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-title a:hover {
    color: var(--primary);
}

.featured-excerpt {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.featured-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9375rem;
}

.author-role {
    color: var(--gray-600);
    font-size: 0.8125rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: var(--dark);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 177, 34, 0.4);
}

/* ============================================
   Blog Posts Grid
   ============================================ */
.blog-posts {
    padding: 5rem 0;
    background: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
}

.post-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-600);
    font-size: 0.8125rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.875rem;
}

.post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    flex: 1;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.post-author span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-link:hover {
    gap: 0.625rem;
}

/* No Posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts svg {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.no-posts h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.no-posts p {
    color: var(--gray-600);
}

/* ============================================
   Blog Pagination
   ============================================ */
.blog-pagination {
    margin-top: 4rem;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination .page-numbers li {
    display: inline-block;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.875rem;
    background: var(--light);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers a:hover,
.blog-pagination .page-numbers .current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

.blog-pagination .page-numbers .current {
    pointer-events: none;
}

/* ============================================
   Newsletter CTA
   ============================================ */
.newsletter-cta {
    padding: 5rem 0;
    background: var(--light);
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.newsletter-icon svg {
    color: var(--dark);
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.newsletter-desc {
    font-size: 1.0625rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    color: var(--dark);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--dark);
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--dark);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.newsletter-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.8125rem;
}

/* ============================================
   Single Post Hero
   ============================================ */
.post-hero {
    position: relative;
    min-height: 50vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 6rem 0 3rem;
}

.post-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.post-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.post-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-hero-breadcrumb a:hover {
    color: var(--primary);
}

.post-hero-breadcrumb span {
    color: var(--primary);
    font-weight: 600;
}

.post-hero-breadcrumb svg {
    color: rgba(255, 255, 255, 0.4);
}

.post-hero-category {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: rgba(255, 177, 34, 0.2);
    border: 1px solid rgba(255, 177, 34, 0.3);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.post-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 2rem;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-hero-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-hero-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 177, 34, 0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.author-details .author-name {
    font-weight: 700;
    font-size: 1rem;
}

.author-details .author-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.post-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ============================================
   Single Post Content
   ============================================ */
.post-single {
    padding: 5rem 0;
    background: var(--white);
}

.post-single-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
}

.post-single-content {
    max-width: 820px;
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-wrapper {
    color: var(--gray-800);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.post-content-wrapper h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2.5rem 0 1.25rem;
    color: var(--dark);
}

.post-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.post-content-wrapper p {
    margin-bottom: 1.5rem;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.post-content-wrapper li {
    margin-bottom: 0.75rem;
}

.post-content-wrapper a {
    color: var(--primary);
    font-weight: 600;
}

.post-content-wrapper blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--light);
    border-right: 4px solid var(--primary);
    border-radius: 12px;
    font-style: italic;
}

.post-content-wrapper code {
    padding: 0.25rem 0.5rem;
    background: var(--light);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content-wrapper pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--dark);
    color: var(--white);
    border-radius: 12px;
    overflow-x: auto;
}

.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Post Tags */
.post-tags {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light);
    border-radius: 16px;
}

.tags-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Post Share */
.post-share {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.share-label {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    color: var(--dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: var(--white);
}

.share-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.share-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: var(--white);
}

.share-telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: var(--white);
}

.share-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Post Author Box */
.post-author-box {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light);
    border-radius: 16px;
    display: flex;
    gap: 1.5rem;
}

.author-box-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.author-box-bio {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.author-box-social {
    display: flex;
    gap: 0.5rem;
}

.author-box-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--dark);
    transition: all 0.3s ease;
}

.author-box-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
}

.related-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 177, 34, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.related-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.related-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card-title a:hover {
    color: var(--primary);
}

.related-date {
    display: block;
    color: var(--gray-600);
    font-size: 0.8125rem;
}

/* ============================================
   Post Sidebar
   ============================================ */
.post-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--light);
    border-radius: 16px;
    padding: 1.75rem;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.widget-title svg {
    color: var(--primary);
}

/* Table of Contents */
.toc-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.625rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    background: var(--white);
    color: var(--primary);
}

.toc-h3 {
    padding-right: 1rem;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.popular-item:hover {
    transform: translateX(-3px);
}

.popular-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.popular-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.popular-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-title a:hover {
    color: var(--primary);
}

.popular-date {
    color: var(--gray-600);
    font-size: 0.75rem;
}

/* Newsletter Widget */
.sidebar-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    text-align: center;
}

.newsletter-widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.newsletter-widget-icon svg {
    color: var(--dark);
}

.sidebar-newsletter .widget-title {
    color: var(--dark);
    border-bottom-color: rgba(0, 0, 0, 0.2);
    justify-content: center;
}

.newsletter-widget-desc {
    color: var(--secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.newsletter-widget-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-widget-input {
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: var(--dark);
    font-family: var(--font-main);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.newsletter-widget-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.newsletter-widget-input:focus {
    outline: none;
    border-color: var(--dark);
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-widget-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--dark);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Laptop */
@media (max-width: 1200px) {
    .post-single-container {
        grid-template-columns: 1fr 280px;
        gap: 3rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 2rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .blog-hero-title,
    .post-hero-title {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-single-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-hero,
    .post-hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    
    .blog-hero-title,
    .post-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-desc {
        font-size: 1rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .search-input {
        padding: 0.875rem 1rem 0.875rem 3rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .categories-slider {
        padding-bottom: 1rem;
    }
    
    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .featured-link {
        width: 100%;
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-card {
        padding: 3rem 2rem;
    }
    
    .newsletter-input-wrapper {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .post-hero-meta {
        flex-direction: column;
    }
    
    .post-single-container {
        padding: 0 1rem;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
    }
    
    .post-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar-sticky {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .blog-hero-title,
    .post-hero-title {
        font-size: 1.75rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .post-content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .post-content-wrapper h3 {
        font-size: 1.25rem;
    }
}