/* Blog Navigation */
.blog-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.blog-nav a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.blog-nav a:hover {
    color: #D90429;
    background: #fef2f2;
    transform: translateY(-1px);
}

.blog-nav a.active {
    color: #ffffff;
    background: #D90429;
    box-shadow: 0 2px 8px rgba(217, 4, 41, 0.3);
}

@media (max-width: 768px) {
    .blog-nav {
        display: none;
    }
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.blog-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: #D90429;
    outline: none;
}

.blog-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.category-btn:hover,
.category-btn.active {
    background: #D90429;
    color: #fff;
    border-color: #D90429;
    text-decoration: none;
}

.blog-content h1 {
    margin-bottom: 30px;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: #D90429;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.pagination-btn:hover {
    background: #A90321;
    text-decoration: none;
}

.pagination-info {
    color: #666;
    font-size: 0.95rem;
}

/* Post Featured Image */
.post-featured-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.post-tags {
    margin-bottom: 20px;
}

.post-tags .tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px 5px 5px 0;
    background: #f8f9fa;
    color: #666;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tags .tag:hover {
    background: #D90429;
    color: #fff;
}

.post-share {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.post-share strong {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-size: 0.95rem;
}

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

.share-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn svg {
    flex-shrink: 0;
}

.post-share-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.post-share-top span {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.share-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-share-top a:nth-of-type(1) {
    background: #0866FF;
    color: #fff;
}

.post-share-top a:nth-of-type(1):hover {
    background: #0654D4;
}

.post-share-top a:nth-of-type(2) {
    background: #000;
    color: #fff;
}

.post-share-top a:nth-of-type(2):hover {
    background: #14171A;
}

.post-share-top a:nth-of-type(3) {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}

.post-share-top a:nth-of-type(3):hover {
    opacity: 0.85;
}

.post-share-top a:nth-of-type(4) {
    background: #0A66C2;
    color: #fff;
}

.post-share-top a:nth-of-type(4):hover {
    background: #004182;
}

.post-share-top a:nth-of-type(5) {
    background: #25D366;
    color: #fff;
}

.post-share-top a:nth-of-type(5):hover {
    background: #128C7E;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.share-btn.facebook {
    background: #0866FF;
}

.share-btn.facebook:hover {
    background: #0654D4;
}

.share-btn.twitter {
    background: #000;
}

.share-btn.twitter:hover {
    background: #14171A;
}

.share-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-btn.instagram:hover {
    opacity: 0.85;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.linkedin:hover {
    background: #004182;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #128C7E;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.nav-prev, .nav-next {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-prev:hover, .nav-next:hover {
    background: #D90429;
    color: #fff;
    text-decoration: none;
}

.nav-next {
    text-align: right;
}

.back-to-blog {
    text-align: center;
    margin: 40px 0;
}

.blog-post {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    padding: 60px 80px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .blog-post {
        padding: 25px 20px;
        margin: 20px 10px;
        border-radius: 8px;
    }
}

.post-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0;
}

.post-date,
.post-author {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-date::before {
    content: "📅";
    font-size: 1rem;
}

.post-author::before {
    content: "✍️";
    font-size: 1rem;
}

.post-category {
    background: #D90429;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    border-left: 4px solid #D90429;
    padding-left: 15px;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #2c2c2c;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 25px 0;
    padding-left: 35px;
}

.post-content li {
    margin-bottom: 18px;
    line-height: 1.9;
    padding-left: 8px;
}

.post-content ul li {
    list-style-type: disc;
}

.post-content li strong {
    font-weight: 600;
}

.post-content li p {
    margin-bottom: 8px;
}

.post-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.post-content em {
    color: #666;
    font-style: italic;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.post-content table thead {
    background: #D90429;
    color: #fff;
}

.post-content table th,
.post-content table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.post-content table tbody tr:hover {
    background: #f8f9fa;
}

.post-content table tbody tr:last-child td {
    border-bottom: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-content blockquote {
    border-left: 4px solid #D90429;
    padding: 15px 20px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.post-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #D90429;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-content a {
    color: #D90429;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-content a:hover {
    border-bottom-color: #D90429;
}

@media (max-width: 768px) {
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 35px;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    
    .post-content table {
        font-size: 0.9rem;
    }
    
    .post-content table th,
    .post-content table td {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-sidebar {
        position: static;
        order: 2;
    }
    
    .blog-content {
        order: 1;
    }
    
    .blog-categories {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .post-navigation {
        flex-direction: column;
    }
}
