* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.back-link, .nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.back-link:hover, .nav-link:hover {
    background: rgba(255,255,255,0.3);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    color: #667eea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo h1 {
    font-size: 1.75rem;
}

.tagline {
    opacity: 0.9;
    font-size: 1rem;
}

main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    min-height: 300px;
}

.blog-posts {
    display: grid;
    gap: 24px;
}

.blog-post-card {
    display: block;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post-card .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-card .post-content {
    padding: 20px;
}

.blog-post-card h2 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 8px;
}

.post-date {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.post-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.loading, .no-posts, .error {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.no-posts {
    font-size: 1.1rem;
}

/* Individual Post Styles */
.blog-article {
    max-width: 100%;
}

.blog-article h1 {
    font-size: 2.25rem;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.article-date {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
}

.preview-banner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #374151;
    max-width: 100%;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.article-content p {
    margin-bottom: 1.5em;
    margin-top: 0;
}

.article-content p + p {
    margin-top: 1.5em;
}

.article-content p:first-of-type {
    font-size: 1.2rem;
    color: #1f2937;
    line-height: 1.9;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 2.5em 0 0.8em;
    color: #1f2937;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-left: 4px solid #667eea;
    padding-left: 16px;
    line-height: 1.35;
}

.article-content h3 {
    font-size: 1.15rem;
    margin: 2.5em 0 1em;
    color: #1f2937;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5em;
}

.article-content h4 {
    font-size: 1.05rem;
    margin: 2em 0 0.75em;
    color: #374151;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
}

.article-content ul, .article-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-content li {
    margin-bottom: 0.75em;
    line-height: 1.7;
    padding-left: 0.5em;
}

.article-content li::marker {
    color: #667eea;
    font-weight: 600;
}

.article-content a {
    color: #667eea;
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.3);
    transition: all 0.2s;
}

.article-content a:hover {
    color: #5a67d8;
    text-decoration-color: #5a67d8;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1em 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: #4b5563;
    background: #f8f9ff;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content strong {
    color: #1f2937;
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: #4b5563;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
}

.article-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

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

.article-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2.5em 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.article-content th, .article-content td {
    padding: 0.75em 1em;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-content th {
    background: #f3f4f6;
    font-weight: 600;
}

.article-content p:first-child {
    font-size: 1.15em;
    color: #374151;
    line-height: 1.8;
}

/* Highlighted callouts */
.article-content p:has(strong:first-child) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1em 1.5em;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    margin: 1.5em 0;
}

.not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found h2 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 12px;
}

.not-found p {
    color: #6b7280;
    margin-bottom: 24px;
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}

.back-button:hover {
    background: #5a67d8;
}

footer {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.8);
}

footer p {
    margin-bottom: 10px;
}

.footer-link, .admin-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 10px;
}

.footer-link:hover, .admin-link:hover {
    color: white;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .blog-article h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 20px 15px;
    }
    
    .blog-post-card {
        margin-bottom: 16px;
    }
    
    .post-content {
        padding: 16px;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 10px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    main {
        padding: 16px 12px;
        border-radius: 12px;
    }
    
    .blog-article h1 {
        font-size: 1.3rem;
    }
    
    .back-link, .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .join-discussion {
        padding: 16px;
    }
    
    .discussion-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Discussion CTA */
.join-discussion {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 32px;
}

.join-discussion h3 {
    color: #0369a1;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.join-discussion p {
    color: #64748b;
    margin-bottom: 16px;
}

.discussion-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.discussion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.social-share-bar.bottom-share {
    margin-top: 32px;
    margin-bottom: 0;
    border-bottom: none;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.share-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.twitter {
    background: #1d9bf0;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.copy-link {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.share-btn.copy-link:hover {
    background: #e5e7eb;
}

.share-btn.copy-link.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

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

@media (max-width: 600px) {
    .social-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
    }
    
    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    
    .share-btn span {
        display: none;
    }
}

/* B|CHAT CTA Section */
.bchat-cta {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 168, 132, 0.15));
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.bchat-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bchat-cta-icon {
    font-size: 2rem;
}

.bchat-cta-text {
    flex: 1;
    min-width: 200px;
}

.bchat-cta-text h3 {
    color: #00d4aa;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.bchat-cta-text p {
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
}

.bchat-cta-btn {
    background: linear-gradient(135deg, #00d4aa, #00a884);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bchat-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.bchat-link {
    background: linear-gradient(135deg, #00d4aa, #00a884) !important;
    color: white !important;
}

@media (max-width: 600px) {
    .bchat-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .bchat-cta-btn {
        width: 100%;
    }
}
