/* 
 * Blog Post Styles
 */

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

/* ============================================
   BLOG POST HEADER
============================================ */
.blog-post-header {
    margin-top: 70px;
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2f4a 100%);
    color: var(--white);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-color);
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0;
    letter-spacing: -0.5px;
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   BLOG POST CONTENT
============================================ */
.blog-post-content {
    padding: 4rem 0;
    background-color: var(--white);
}

.post-hero-image {
    margin: -6rem 0 3rem;
    box-shadow: var(--shadow-lg);
}

.post-intro {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 400;
}

.blog-post-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
}

.blog-post-content h4 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.blog-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.blog-post-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.source-note {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

/* ============================================
   CALLOUT BOXES
============================================ */
.stat-callout {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-left: 4px solid var(--accent-color);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    text-align: center;
}

.stat-callout-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-callout-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-callout-source {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.stat-callout-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-left-color: #22c55e;
}

.stat-callout-success .stat-callout-number {
    color: #22c55e;
}

.stat-callout-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-left-color: #f59e0b;
}

.stat-callout-warning .stat-callout-number {
    color: #f59e0b;
}

.dual-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

/* ============================================
   EXAMPLE BOXES
============================================ */
.example-box {
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.example-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.3rem;
}

.example-box p,
.example-box ul {
    margin-bottom: 1rem;
}

.example-box .note {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

.example-success {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, var(--secondary-color) 100%);
}

/* ============================================
   CASE STUDY BOXES
============================================ */
.case-study-box {
    background-color: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow);
}

.case-study-box h3 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.5rem;
}

.case-study-box h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

/* ============================================
   TABLES
============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}

thead {
    background-color: var(--primary-color);
    color: var(--white);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--secondary-color);
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

/* ============================================
   TAKEAWAYS BOX
============================================ */
.takeaways-box {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00bce6 100%);
    color: var(--primary-color);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.takeaways-box ul {
    list-style: none;
    padding-left: 0;
}

.takeaways-box li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    font-weight: 500;
}

.takeaways-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   CHECKLIST
============================================ */
.checklist-box {
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

/* ============================================
   ROI BREAKDOWN
============================================ */
.roi-breakdown {
    background-color: var(--secondary-color);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2.5rem 0;
}

.roi-result {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ============================================
   TIMELINE BOX
============================================ */
.timeline-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-left: 4px solid #ef4444;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

/* ============================================
   INVESTMENT ANALOGY
============================================ */
.investment-analogy {
    background-color: var(--secondary-color);
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

/* ============================================
   DECISION SCENARIOS
============================================ */
.comparison-scenario {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.scenario-col {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.scenario-col h4 {
    color: var(--accent-color);
    margin-top: 0;
}

/* ============================================
   REFERENCES
============================================ */
.references {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.references h2 {
    margin-top: 0;
}

.references ol {
    padding-left: 1.5rem;
}

.references li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.references a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.references a:hover {
    text-decoration: underline;
}

/* ============================================
   POST CTA
============================================ */
.post-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2f4a 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 4rem 0;
}

.post-cta h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

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

.post-cta .btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.post-cta .btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.post-cta .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ============================================
   RELATED POSTS
============================================ */
.related-posts {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-posts h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.related-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.related-card h4 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin: 0 0 0.75rem 0;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   BLOCKQUOTES
============================================ */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: var(--secondary-color);
    border-radius: 0 8px 8px 0;
    font-size: 1.15rem;
    font-style: italic;
}

blockquote p {
    margin-bottom: 0.5rem;
}

cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: normal;
}

/* ============================================
   DECISION MATRIX & SURVEY RESULTS
============================================ */
.decision-matrix,
.survey-results,
.dora-metrics {
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.decision-matrix h4,
.survey-results h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================
   LOGO LINK
============================================ */
.logo a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   RESPONSIVE - BLOG POSTS
============================================ */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-content h2 {
        font-size: 1.75rem;
    }

    .blog-post-content h3 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1.15rem;
    }

    .stat-callout-number {
        font-size: 3rem;
    }

    .dual-stats {
        grid-template-columns: 1fr;
    }

    .comparison-scenario {
        grid-template-columns: 1fr;
    }

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

    .post-cta-buttons {
        flex-direction: column;
    }

    .post-cta .btn {
        width: 100%;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-post-header {
        padding: 3rem 0 1.5rem;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-callout {
        padding: 1.5rem;
    }

    .stat-callout-number {
        font-size: 2.5rem;
    }

    .example-box,
    .case-study-box {
        padding: 1.5rem;
    }
}

/* ============================================
   BLOG LISTING PAGE
============================================ */
.blog-listing-header {
    margin-top: 70px;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2f4a 100%);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-listing {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.blog-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.blog-listing-grid {
    display: grid;
    gap: 2rem;
}

.blog-card-listing {
    display: flex;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card-listing:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.blog-image-listing {
    width: 300px;
    flex-shrink: 0;
}

.blog-image-listing .blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content-listing {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-title-listing {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt-listing {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-footer-listing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.read-time-listing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-more-btn {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2f4a 100%);
    padding: 4rem;
    border-radius: 16px;
    margin-top: 4rem;
    text-align: center;
    color: var(--white);
}

.newsletter-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.newsletter-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
}

/* ============================================
   RESPONSIVE - BLOG LISTING
============================================ */
@media (max-width: 968px) {
    .blog-card-listing {
        flex-direction: column;
    }

    .blog-image-listing {
        width: 100%;
        height: 250px;
    }

    .page-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .blog-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .blog-title-listing {
        font-size: 1.4rem;
    }
}
