/* Blog Module Styles — designed for Tailwind reset environment */

/* ================================================
   Layout (replaces Bootstrap grid)
   ================================================ */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}
.blog-layout .blog-row {
    display: flex;
    gap: 40px;
}
.blog-layout .blog-main {
    flex: 1;
    min-width: 0;
}
.blog-layout .blog-aside {
    width: 300px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .blog-layout .blog-row {
        flex-direction: column;
    }
    .blog-layout .blog-aside {
        width: 100%;
    }
}

/* ================================================
   Breadcrumbs
   ================================================ */
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #999;
}
.blog-breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    color: #ccc;
}
.blog-breadcrumb li:last-child::after {
    content: "";
}
.blog-breadcrumb a {
    color: #666;
    text-decoration: none;
}
.blog-breadcrumb a:hover {
    color: #4caf50;
}
.blog-breadcrumb li:last-child {
    color: #333;
    font-weight: 500;
}

/* ================================================
   Page titles
   ================================================ */
.blog-page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a2b3c;
    line-height: 1.25;
    margin: 0 0 8px 0;
}

/* ================================================
   Post meta (author, date, category)
   ================================================ */
.blog-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.blog-meta a {
    color: #4caf50;
    text-decoration: none;
}
.blog-meta a:hover {
    text-decoration: underline;
}

/* ================================================
   Blog content typography (post body)
   ================================================ */
.blog-content {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}
.blog-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a2b3c;
    margin: 40px 0 16px;
    line-height: 1.3;
}
.blog-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a2b3c;
    margin: 32px 0 12px;
    line-height: 1.3;
}
.blog-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a2b3c;
    margin: 24px 0 10px;
}
.blog-content p {
    margin: 0 0 16px;
}
.blog-content a {
    color: #4caf50;
    text-decoration: underline;
}
.blog-content a:hover {
    color: #388e3c;
}
.blog-content ul, .blog-content ol {
    margin: 0 0 16px 24px;
    padding: 0;
}
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li {
    margin-bottom: 6px;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}
.blog-content blockquote {
    border-left: 4px solid #4caf50;
    padding: 12px 20px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 0 6px 6px 0;
}
.blog-content table {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
}
.blog-content table th,
.blog-content table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.blog-content table th {
    background: #f5f5f5;
    font-weight: 600;
}
.blog-content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    margin: 16px 0;
}
.blog-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.blog-content pre code {
    background: none;
    padding: 0;
}
.blog-content figure {
    margin: 24px 0;
}
.blog-content figcaption {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-top: 8px;
}
.blog-content strong {
    font-weight: 700;
}

/* ================================================
   Featured image
   ================================================ */
.blog-featured-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* ================================================
   Tags
   ================================================ */
.blog-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px 4px 4px 0;
    background: #f0f0f0;
    color: #555;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.blog-tag:hover {
    background: #4caf50;
    color: #fff;
}

/* ================================================
   Post navigation
   ================================================ */
.blog-post-nav {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.blog-post-nav a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}
.blog-post-nav a:hover {
    text-decoration: underline;
}

/* ================================================
   Sidebar
   ================================================ */
.blog-sidebar-section {
    margin-bottom: 28px;
}
.blog-sidebar-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a2b3c;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4caf50;
}
.blog-sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar-section li {
    margin-bottom: 8px;
}
.blog-sidebar-section a {
    color: #4caf50;
    text-decoration: none;
    font-size: 14px;
}
.blog-sidebar-section a:hover {
    text-decoration: underline;
}
.blog-sidebar-cta {
    background: #f5f7f5;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}
.blog-sidebar-cta h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2b3c;
    margin: 0 0 8px;
    border: none;
    padding: 0;
}
.blog-sidebar-cta p {
    color: #666;
    font-size: 14px;
    margin: 0 0 16px;
}
.blog-sidebar-cta .cta-button {
    display: inline-block;
    padding: 10px 24px;
    background: #4caf50;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.blog-sidebar-cta .cta-button:hover {
    background: #388e3c;
}

/* ================================================
   Post card (listing page)
   ================================================ */
.blog-post-card {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #eee;
}
.blog-post-card:last-child {
    border-bottom: none;
}
.blog-post-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}
.blog-post-card h2 a {
    color: #1a2b3c;
    text-decoration: none;
}
.blog-post-card h2 a:hover {
    color: #4caf50;
}
.blog-post-card .blog-meta {
    border: none;
    padding: 0;
    margin-bottom: 10px;
}
.blog-post-card .blog-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.blog-post-card .read-more {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}
.blog-post-card .read-more:hover {
    text-decoration: underline;
}
.blog-post-card .label-warning {
    display: inline-block;
    padding: 2px 8px;
    background: #ff9800;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ================================================
   Preview alert
   ================================================ */
.blog-alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.blog-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ================================================
   Pagination
   ================================================ */
.blog-pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}
.blog-pagination li a,
.blog-pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.blog-pagination li a:hover {
    background: #f5f5f5;
}
.blog-pagination li.active span {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

/* ================================================
   No posts message
   ================================================ */
.blog-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 18px;
}

/* ================================================
   Screen reader / a11y
   ================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #fff;
    padding: 10px 15px;
    z-index: 10000;
    font-weight: bold;
    text-decoration: underline;
}

/* Focus indicators (WCAG 2.4.7) */
.blog-content a:focus,
.blog-post-card a:focus,
.blog-sidebar-section a:focus,
.blog-breadcrumb a:focus,
.blog-pagination a:focus {
    outline: 2px solid #4A90D9;
    outline-offset: 2px;
}
