/* Blog Post Specific Styles */

.blog-post-hero {
    background: #f4f7ff;
    padding-bottom: 1rem;
}

.blog-post {
    background: #fff;
    padding: 2rem 0 4rem 0;
}

.blog-post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;

    i {
        color: #013DC4;
        margin-top: 10px;
    }
}

.breadcrumb a {
    color: #013DC4;
    text-decoration: none;
}

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

.breadcrumb span {
    color: #888;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #013DC4;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta .date::before {
    content: '📅';
    font-size: 0.8rem;
}

.blog-post-meta .reading-time::before {
    content: '⏱️';
    font-size: 0.8rem;
}

.blog-post-meta .author::before {
    content: '👤';
    font-size: 0.8rem;
}

.blog-post-content {
    max-width: 700px;
    margin: 0 auto;
}

.blog-post-intro {
    position: relative;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8faff;
    border-radius: 8px;
    border-left: 4px solid #013DC4;
}

.blog-post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #013DC4;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #013DC4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.tip-box {
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    margin-top: 100px;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content strong {
    color: #013DC4;
    font-weight: 700;
}

.related-img {
    width: 100%;
    min-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.cta-section {
    background: #013DC4;
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    margin-top: unset;
}

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

.cta-section .signup-form {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    padding: 0;
    margin: 0;
}

.cta-section .signup-input {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.cta-section .email-input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
}

.cta-section .email-input::placeholder {
    color: #999;
}

.cta-section button {
    padding: 1rem 2rem;
    background: #6688ff;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0;
}

.cta-section button:hover {
    background: #5577ee;
}

.blog-post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #013DC4;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;

    i {
        margin-bottom: 3px;
    }
}

.back-to-blog:hover {
    background-color: rgba(1, 61, 196, 0.1);
    transform: translateX(-4px);
}

.related-posts {
    background: #f8faff;
    padding: 4rem 0;
}

.related-posts h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #013DC4;
    text-align: center;
    margin-bottom: 3rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.related-post-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #013DC4;
}

.related-post-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.related-post-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #013DC4;
    margin-bottom: 1rem;
}

.related-post-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .blog-post-header h1 {
        font-size: 3rem;
    }

    .blog-post-meta {
        gap: 3rem;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section .signup-input {
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .blog-post-body {
        font-size: 1.15rem;
    }

    .blog-post-header h1 {
        font-size: 3.5rem;
    }

    .blog-post-intro {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .blog-post-hero,
    .related-posts,
    .footer,
    .cta-section,
    .blog-post-navigation {
        display: none;
    }

    .blog-post {
        background: #fff;
        padding: 0;
    }

    .blog-post-header h1 {
        color: #000;
        font-size: 2rem;
    }

    .blog-post-body {
        color: #000;
        font-size: 1rem;
    }

    .tip-box {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
}

/* Accessibility improvements */
.blog-post-content {
    scroll-behavior: smooth;
}

.blog-post-body h2:focus,
.blog-post-body h3:focus {
    outline: 2px solid #013DC4;
    outline-offset: 2px;
}

/* Loading animation for content */
.blog-post-content {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
