/* ============================================
   BLOG.CSS — Public blog page styles
   Loaded via @push('styles') on blog pages only
   ============================================ */

/* Blog Hero Section */
.blog-hero {
    background: white;
    color: #333;
    padding: 40px 0 30px 0;
    display: grid;
    justify-items: center;
    text-align: center;
    width: 100%;
}

.blog-hero-content {
    width: 100%;
    max-width: min(1200px, calc(100vw - 2rem));
    padding: 0 1rem;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 2.375rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #003D83;
}

.blog-hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Posts Grid */
.blog-section {
    background: white;
    padding: 3rem 0;
    display: grid;
    justify-items: center;
    width: 100%;
}

.blog-container {
    width: 100%;
    max-width: min(900px, calc(100vw - 2rem));
    display: grid;
    gap: 2rem;
    justify-items: center;
    padding: 0 0.5rem;
    margin: 0 auto;
}

.blog-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin-bottom: 3rem;
}

/* Blog Post Cards */
.blog-post-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 61, 131, 0.15);
    border-left: 4px solid #003D83;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 61, 131, 0.25);
}

.blog-post-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blog-post-title {
    color: #003D83;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #FFD700;
}

.blog-post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: none;
}

.blog-read-more {
    color: #003D83;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-more:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Single Post Styles */
.post-header {
    background: white;
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.post-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2.2rem;
    color: #003D83;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Question Series Navigation */
.question-series-nav {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto 2rem auto;
    max-width: 800px;
    text-align: center;
}

.question-series-nav p {
    margin: 0;
    color: #003D83;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Post Content */
.post-content {
    background: white;
    padding: 2rem 0 3rem 0;
}

.post-content-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.post-content-inner p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-content-inner h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #003D83;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-content-inner h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #003D83;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-content-inner h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #003D83;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.post-content-inner ul, .post-content-inner ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-content-inner li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Question Highlight Box */
.question-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #003D83;
    margin: 2rem auto;
    max-width: 800px;
}

.question-highlight p {
    margin: 0;
    color: #003D83;
    font-weight: 600;
}

/* Problem Box */
.problems-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    margin: 1.5rem auto;
    max-width: 800px;
}

.problems-box h4 {
    color: #003D83;
    margin-top: 0;
    margin-bottom: 1rem;
}

.problems-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Solutions Box */
.solutions-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin: 1.5rem auto;
    max-width: 800px;
}

.solutions-box h4 {
    color: #003D83;
    margin-top: 0;
    margin-bottom: 1rem;
}

.solutions-box ol {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}

/* CTA Assessment Box */
.cta-assessment-box {
    background: linear-gradient(45deg, #003D83, #002a5c);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}

.cta-assessment-box h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cta-assessment-box p {
    margin-bottom: 1.5rem;
    color: white;
}

.cta-assessment-box .cta-details {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #e9ecef;
}

.cta-assessment-box .cta-button {
    background: #FFD700;
    color: #003D83;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-assessment-box .cta-button:hover {
    color: #003D83;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Preview Banner */
.preview-banner {
    background: #d97706;
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Social Sharing */
.social-sharing {
    background: linear-gradient(135deg, #003D83 0%, #002a5c 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.social-sharing-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.social-sharing h3 {
    color: white;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #6c757d;
    color: white;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #5a6268;
}

.social-icon {
    font-weight: 700;
    font-size: 1.2rem;
    color: inherit;
}

/* Post Navigation */
.post-navigation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
}

.post-nav-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.post-nav-link {
    background: linear-gradient(45deg, #FF6B35, #FFA500);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-nav-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.post-nav-link.secondary {
    background: transparent;
    color: #003D83;
    border: 2px solid #003D83;
}

.post-nav-link.secondary:hover {
    background: #003D83;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 61, 131, 0.4);
}

/* Blog CTA Section (index page) */
.blog-cta-section {
    text-align: center;
    margin-top: 3rem;
}

.blog-cta-section h3 {
    color: #003D83;
    margin-bottom: 1rem;
}

.blog-cta-section p {
    margin-bottom: 2rem;
    color: #666;
}

/* Prev/Next Navigation */
.post-prev-next {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #dee2e6;
}

.post-prev-next-top {
    border-top: none;
    border-bottom: none;
    padding: 0 1rem 0.5rem;
    font-size: 0.9rem;
}

.post-prev-next a {
    color: #003D83;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    max-width: 45%;
}

.post-prev-next a:hover {
    color: #FFD700;
}

.post-prev-next .prev-post {
    text-align: left;
}

.post-prev-next .next-post {
    text-align: right;
    margin-left: auto;
}

.post-prev-next .nav-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

/* Responsive */
@media (min-width: 600px) {
    .blog-hero h1 {
        font-size: 3.2rem;
    }

    .post-title {
        font-size: 2.5rem;
    }

    .post-content-inner h2 {
        font-size: 2.2rem;
    }

    .post-content-inner h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 900px) {
    .blog-hero h1 {
        font-size: 3.2rem;
    }

    .post-title {
        font-size: 2.8rem;
    }

    .post-content-inner h2 {
        font-size: 2.5rem;
    }

    .post-content-inner h3 {
        font-size: 1.6rem;
    }
}
