@font-face {
    font-family: morabba;
    src: url("../fonts/Morabba.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: morabba, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Blog Page Container - ParsPack Style */
.blog-page {
    width: 100%;
    padding: 2rem 1rem;
    margin-top: 80px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb - ParsPack Style */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 14px;
    color: #6c757d;
}

.blog-breadcrumb a {
    color: #FF6600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: #FF8533;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #adb5bd;
    margin: 0 0.25rem;
}

/* Main Wrapper */
.blog-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

/* Article */
.blog-article {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* Article Header */
.blog-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.blog-category-badge {
    margin-bottom: 1rem;
}

.blog-category-badge a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #FF6600;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-category-badge a:hover {
    background: #FF8533;
    transform: translateY(-1px);
}

.blog-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.blog-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

.blog-author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blog-author-name {
    font-weight: 600;
    color: #212529;
    font-size: 15px;
}

.blog-publish-date {
    font-size: 13px;
    color: #6c757d;
}

.blog-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #6c757d;
}

.blog-stat-item i {
    color: #FF6600;
    font-size: 16px;
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

/* Table of Contents - ParsPack Style */
.blog-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.blog-toc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.blog-toc-header i {
    color: #FF6600;
    font-size: 20px;
}

.blog-toc-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc-item {
    margin-bottom: 0.75rem;
    padding-right: 1rem;
}

.blog-toc-item:last-child {
    margin-bottom: 0;
}

.blog-toc-level-2 {
    padding-right: 0;
    font-weight: 600;
}

.blog-toc-level-3 {
    padding-right: 1.5rem;
    font-weight: 400;
    font-size: 14px;
}

.blog-toc-item a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.6;
}

.blog-toc-item a:hover {
    color: #FF6600;
}

/* Content */
.blog-content {
    font-size: 16px;
    line-height: 2;
    color: #495057;
    margin-bottom: 2rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.blog-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF6600;
}

.blog-content h3 {
    font-size: 1.5rem;
}

.blog-content h4 {
    font-size: 1.25rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-content a {
    color: #FF6600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
    transition: all 0.2s ease;
}

.blog-content a:hover {
    color: #FF8533;
    border-bottom-color: #FF6600;
}

.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-content blockquote {
    border-right: 4px solid #FF6600;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
    font-style: italic;
    color: #495057;
}

.blog-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
    font-family: 'Courier New', monospace;
}

.blog-content pre {
    background: #212529;
    color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Share Section */
.blog-share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-share-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 15px;
}

.blog-share-label i {
    color: #FF6600;
    font-size: 18px;
}

.blog-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.blog-share-telegram {
    background: #0088cc;
    color: #ffffff;
}

.blog-share-telegram:hover {
    background: #006ba3;
    transform: translateY(-2px);
}

.blog-share-twitter {
    background: #1da1f2;
    color: #ffffff;
}

.blog-share-twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

.blog-share-link {
    background: #6c757d;
    color: #ffffff;
}

.blog-share-link:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Related Articles */
.blog-related-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.blog-section-header p {
    color: #6c757d;
    font-size: 15px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.blog-related-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    background: #ffffff;
}

.blog-related-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #FF6600;
}

.blog-related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-related-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-related-card:hover .blog-related-image img {
    transform: scale(1.1);
}

.blog-related-content {
    padding: 1.25rem;
}

.blog-related-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-card:hover .blog-related-content h3 {
    color: #FF6600;
}

.blog-related-meta {
    display: flex;
    gap: 1rem;
    font-size: 13px;
    color: #6c757d;
}

.blog-related-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-related-meta i {
    color: #FF6600;
    font-size: 14px;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.blog-sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.blog-widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-widget-title i {
    color: #FF6600;
    font-size: 20px;
}

/* Popular List */
.blog-popular-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-popular-item {
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.blog-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-popular-rank {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF6600;
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    z-index: 1;
}

.blog-popular-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.blog-popular-link:hover {
    transform: translateX(-3px);
}

.blog-popular-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.blog-popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-popular-link:hover .blog-popular-image img {
    transform: scale(1.1);
}

.blog-popular-content {
    flex: 1;
    min-width: 0;
}

.blog-popular-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-popular-link:hover .blog-popular-content h4 {
    color: #FF6600;
}

.blog-popular-meta {
    font-size: 12px;
    color: #6c757d;
}

.blog-popular-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-popular-meta i {
    color: #FF6600;
    font-size: 13px;
}

/* Recent List */
.blog-recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-recent-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.blog-recent-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateX(-3px);
}

.blog-recent-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.blog-recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-recent-content {
    flex: 1;
    min-width: 0;
}

.blog-recent-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-recent-item:hover .blog-recent-content h4 {
    color: #FF6600;
}

.blog-recent-date {
    font-size: 12px;
    color: #6c757d;
}

/* Categories List */
.blog-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.blog-category-link:hover {
    background: #fff5f2;
    border-color: #FFE5D9;
    color: #FF6600;
    transform: translateX(-3px);
}

.blog-category-link i {
    color: #FF6600;
    margin-left: 0.5rem;
}

.blog-category-count {
    padding: 0.25rem 0.625rem;
    background: #FF6600;
    color: #ffffff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Toast Notification */
.blog-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #212529;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.blog-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Custom Scrollbar for Sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF8533 0%, #FFA366 100%);
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .blog-main-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .blog-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .blog-page {
        padding: 1rem 0.75rem;
        margin-top: 70px;
    }
    
    .blog-article {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .blog-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-toc {
        padding: 1.25rem;
    }
    
    .blog-share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-share-buttons {
        width: 100%;
    }
    
    .blog-share-btn {
        flex: 1;
        justify-content: center;
    }
    
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .blog-article {
        padding: 1.25rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-content {
        font-size: 15px;
    }
    
    .blog-popular-image,
    .blog-recent-image {
        width: 60px;
        height: 60px;
    }
}
