/* Blog Styles - Clean, Reading-Optimized Design for RTL Hebrew */

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .blog-container {
        padding: 3rem 2rem;
    }
}

/* Blog Index Page */
.blog-index {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.blog-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Article Card */
.blog-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.blog-article-card:hover {
    box-shadow: 0 4px 12px rgba(253, 137, 27, 0.15);
    transform: translateY(-2px);
    border-color: #FD891B;
}

.article-card-header {
    margin-bottom: 1rem;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.article-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-title a:hover {
    color: #FD891B;
}

.article-card-date {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.article-card-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    margin-top: 1rem;
}

.article-read-more {
    color: #FD891B;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    direction: rtl;
}

.article-read-more:hover {
    color: #E67A0F;
    transform: translateX(2px);
}

.blog-empty {
    text-align: center;
    color: #6b7280;
    font-size: 1.125rem;
    padding: 3rem 0;
}

/* Article Detail Page */
.blog-article {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.article-content {
    background: #ffffff;
    padding: 0;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-date {
    display: block;
    font-size: 0.9375rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 3rem;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-body ul li {
    list-style-type: disc;
}

.article-body ol li {
    list-style-type: decimal;
}

.article-body a {
    color: #FD891B;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: #E67A0F;
    text-decoration: underline;
}

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

.article-body em {
    font-style: italic;
}

.article-body blockquote {
    border-right: 4px solid #e2e8f0;
    padding-right: 1.5rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}

.article-body code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.article-body pre {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Intro paragraph styling - problem framing paragraph */
.article-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4b5563;
    font-weight: 400;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: justify;
    text-justify: inter-word;
}

/* CTA Box */
.article-cta-box {
    margin: 3rem 0 2rem;
    padding: 0;
}

.cta-box-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.cta-box-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

.cta-box-button {
    display: inline-block;
    background-color: #2B3A67;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-box-button:hover {
    background-color: #1e2847;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 58, 103, 0.3);
}

.cta-box-button:active {
    transform: translateY(0);
    background-color: #151b2e;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.article-back-link {
    color: #FD891B;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-back-link:hover {
    color: #E67A0F;
    transform: translateX(-2px);
}

/* Related Links Section */
.article-related-links {
    margin: 3rem 0 2rem;
    padding: 0;
}

.related-links-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
}

.related-links-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.related-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links-list li {
    margin-bottom: 0.75rem;
}

.related-links-list li:last-child {
    margin-bottom: 0;
}

.related-link {
    color: #FD891B;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.related-link:hover {
    color: #E67A0F;
    transform: translateX(-2px);
}

.related-link::before {
    content: "→";
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .related-links-content {
        padding: 1.5rem;
    }

    .related-links-title {
        font-size: 1.125rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-container {
        padding: 1.5rem 1rem;
    }

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

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

    .blog-article-card {
        padding: 1.5rem;
    }

    .article-card-title {
        font-size: 1.25rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-intro {
        font-size: 1.125rem;
        padding-bottom: 1rem;
    }

    .cta-box-content {
        padding: 1.5rem;
    }

    .cta-box-text {
        font-size: 1rem;
    }

    .cta-box-button {
        font-size: 0.9375rem;
        padding: 0.75rem 1.5rem;
    }
}

