/* Info Cards */
.card p {
    font-size: 17px;
    font-weight: 400;
    line-height: 20px;
    color: #666;
}

.card p.small {
    font-size: 14px;
}

.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 32px;
    height: 32px;
    overflow: hidden;
    top: 0;
    right: 0;
    background-color: #00838d;
    border-radius: 0 4px 0 32px;
}

.go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
}

.card3 {
    display: block;
    top: 0px;
    position: relative;
    border-radius: 4px;
    padding: 32px 24px;
    margin: 12px 0;
}

.card3 .go-corner {
    opacity: 0.7;
}

.card3:hover {
    border: 1px solid #00838d;
    /*box-shadow: 0px 0px 999px 999px rgba(255, 255, 255, 0.5);*/
    z-index: 500;
}

.card3:hover p {
    color: #00838d;
}

.card3:hover .go-corner {
    transition: opacity 0.3s linear;
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #d32f2f;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Post Header Styles */
.post-category-badge {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.post-detail-content .post-title {
    font-size: 38px;
    line-height: 1.3;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Post Body Content Styles */
.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    /* Prevent content overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.lead-paragraph {
    font-size: 20px;
    line-height: 1.7;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 25px;
}

.post-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 35px 0 18px;
    line-height: 1.3;
}

.post-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.post-body h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 25px 0 12px;
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Prevent long URLs and text from overflowing */
.post-body a {
    word-break: break-all;
    overflow-wrap: break-word;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-body li strong {
    color: #1a1a1a;
    font-weight: 600;
}



.post-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #d32f2f;
    padding: 25px 30px;
    margin: 30px 0;
    font-size: 19px;
    line-height: 1.7;
    font-style: italic;
    color: #333;
}

.post-body blockquote p {
    margin: 0;
}

.post-body blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 15px;
    font-style: normal;
    color: #666;
    font-weight: 600;
}

.post-body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d32f2f;
}

.post-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
    line-height: 1.6;
    position: relative;
    max-width: 100%;
    /* Prevent horizontal scroll on page */
    word-wrap: normal;
    white-space: pre-wrap;
}

.post-body pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
    font-size: 14px;
}

/* Copy Button for Code Blocks */
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.copy-code-btn:active {
    transform: translateY(0);
}

.copy-code-btn.copied {
    background: #4caf50;
    border-color: #4caf50;
}

.copy-code-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

.post-body table th,
.post-body table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.post-body table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.post-body table tr:hover {
    background: #f9f9f9;
}

.post-body hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
}

.post-body strong,
.post-body b {
    font-weight: 600;
    color: #1a1a1a;
}

.post-body em,
.post-body i {
    font-style: italic;
}

/* Prevent all inline elements from overflowing */
.post-body div,
.post-body span {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive embeds (iframe, video, etc.) */
.post-body iframe,
.post-body video,
.post-body embed,
.post-body object {
    max-width: 100%;
    height: auto;
}

/* Responsive video wrapper */
.post-body .video-wrapper,
.post-body .embed-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 25px 0;
}

.post-body .video-wrapper iframe,
.post-body .embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Info Box */
.info-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 4px;
}

.info-box h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #856404;
}

.info-box p {
    margin: 0;
    font-size: 16px;
    color: #856404;
    line-height: 1.6;
}

/* Stats Box */
.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.stat-item p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.prev-post,
.next-post {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.prev-post:hover,
.next-post:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.next-post {
    text-align: right;
}

.nav-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
}

/* Related Posts */
.related-posts {
    margin: 50px 0;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 18px;
}

.related-post-category {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.related-post-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-content h3 a:hover {
    color: #d32f2f;
}

.related-post-date {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-content .post-title {
        font-size: 28px;
    }
    
    .post-body {
        font-size: 16px;
    }
    
    .lead-paragraph {
        font-size: 18px;
    }
    
    .post-body h2 {
        font-size: 22px;
    }
    
    .post-body h3 {
        font-size: 18px;
    }
    
    .post-body blockquote {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .post-body pre {
        padding: 15px;
        font-size: 13px;
    }
    
    .stats-box {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-post-image {
        height: 200px;
    }
}
