/* Blog Article Styles - Sapyen Style Design */

/* ============================================
   CSS Custom Properties for Blog
   ============================================ */
:root {
    --blog-shadow-sm: 0 1px 2px rgba(11, 61, 46, 0.04), 0 1px 3px rgba(11, 61, 46, 0.06);
    --blog-shadow-md: 0 4px 6px rgba(11, 61, 46, 0.04), 0 2px 4px rgba(11, 61, 46, 0.06);
    --blog-shadow-lg: 0 10px 20px rgba(11, 61, 46, 0.06), 0 6px 6px rgba(11, 61, 46, 0.04);
    --blog-shadow-xl: 0 20px 40px rgba(11, 61, 46, 0.08), 0 8px 16px rgba(11, 61, 46, 0.04);
    --blog-transition: 200ms ease;
    --blog-radius-sm: 8px;
    --blog-radius-md: 12px;
    --blog-radius-lg: 16px;
    --focus-ring: 0 0 0 3px rgba(212, 255, 0, 0.4);
}

/* ============================================
   Blog-specific Header - Simple
   ============================================ */
.blog-header {
    background: var(--white);
    border-bottom: 1px solid rgba(11, 61, 46, 0.06);
}

.blog-header .nav {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.blog-header .logo {
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: opacity var(--blog-transition);
    white-space: nowrap;
}

.blog-header .logo:hover {
    opacity: 0.8;
}

.blog-header .logo:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

.blog-header .back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    min-height: 44px;
    background: var(--light-color);
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all var(--blog-transition);
    cursor: pointer;
    white-space: nowrap;
}

.blog-header .back-home:hover {
    color: var(--primary-color);
    border-color: var(--secondary-color);
    background: var(--white);
}

.blog-header .back-home:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    color: var(--primary-color);
}

.blog-header .back-home svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================
   Blog-specific Footer - Simple
   ============================================ */
.blog-footer {
    padding: 2rem 0;
    background: var(--primary-color);
}

.blog-footer .footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-footer .logo {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    transition: opacity var(--blog-transition);
}

.blog-footer .logo:hover {
    opacity: 0.85;
}

.blog-footer .logo:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

.blog-footer .copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .blog-header .back-home {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    .blog-footer .footer-simple {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ============================================
   New Blog Structure (blog-content, post-body)
   ============================================ */
.blog-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 24px 4rem;
}

.blog-post {
    width: 100%;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(11, 61, 46, 0.08);
}

.post-header h1 {
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.post-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-color);
}

.post-body h2 {
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.post-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 2rem 0 0.75rem;
}

.post-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 1.5rem 0 0.5rem;
}

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

.post-body ul,
.post-body ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--secondary-color);
    transition: border-color var(--blog-transition);
}

.post-body a:hover {
    border-bottom-color: var(--primary-color);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.post-body th,
.post-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid rgba(11, 61, 46, 0.1);
}

.post-body th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.post-body .lead {
    font-size: 1.125rem;
    color: var(--dark-color);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .blog-content {
        padding: 1.5rem 16px 3rem;
    }

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

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

    .post-body h2 {
        font-size: 1.3rem;
    }

    .post-body h3 {
        font-size: 1.1rem;
    }
}

/* ============================================
   Article Header
   ============================================ */
.article-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}

.article-header h1 {
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

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

.article-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   Article Content - Typography
   ============================================ */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 24px;
}

.article-content h2 {
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--light-color);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 2.25rem 0 1rem;
    line-height: 1.4;
}

.article-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

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

.article-content li {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-color);
    margin-bottom: 0.625rem;
}

.article-content li strong {
    color: var(--dark-color);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--secondary-color);
    transition: border-color var(--blog-transition), color var(--blog-transition);
    cursor: pointer;
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

.article-content a:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 2px;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: var(--light-color);
    border-radius: 0 var(--blog-radius-md) var(--blog-radius-md) 0;
}

.article-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--dark-color);
}

/* ============================================
   Table of Contents
   ============================================ */
.toc {
    background: var(--light-color);
    border-radius: var(--blog-radius-md);
    padding: 1.75rem 2rem;
    margin: 2rem 0 2.5rem;
    box-shadow: var(--blog-shadow-sm);
    border-left: 4px solid var(--secondary-color);
}

.toc h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.375rem;
}

.toc a {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-left: -0.75rem;
    border-radius: var(--blog-radius-sm);
    transition: color var(--blog-transition), background-color var(--blog-transition);
    cursor: pointer;
    border-bottom: none;
}

.toc a:hover {
    color: var(--primary-color);
    background-color: rgba(11, 61, 46, 0.06);
}

.toc a:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    color: var(--primary-color);
}

/* ============================================
   Info Box
   ============================================ */
.info-box {
    background: linear-gradient(135deg, rgba(11, 61, 46, 0.04) 0%, rgba(212, 255, 0, 0.06) 100%);
    border: 1px solid rgba(11, 61, 46, 0.15);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--blog-radius-md);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    box-shadow: var(--blog-shadow-sm);
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h4::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B3D2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.info-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ============================================
   Inline CTA
   ============================================ */
.inline-cta {
    background: var(--primary-color);
    border-radius: var(--blog-radius-lg);
    padding: 2.25rem 2rem;
    margin: 2.5rem 0;
    text-align: center;
    color: var(--white);
    box-shadow: var(--blog-shadow-lg);
}

.inline-cta h4 {
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.inline-cta p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.inline-cta .cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    min-height: 44px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--blog-shadow-md);
    transition: transform var(--blog-transition), box-shadow var(--blog-transition), background-color var(--blog-transition);
    cursor: pointer;
    border-bottom: none;
}

.inline-cta .cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow-lg);
}

.inline-cta .cta-button:focus {
    outline: none;
    box-shadow: var(--blog-shadow-lg), 0 0 0 3px rgba(212, 255, 0, 0.5);
}

/* ============================================
   Service Links Box - Clean Grid
   ============================================ */
.service-links {
    background: var(--light-color);
    border-radius: var(--blog-radius-lg);
    padding: 2rem;
    margin: 2.5rem 0;
}

.service-links h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
}

.service-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.service-links li {
    margin: 0;
    display: flex;
}

.service-links a {
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 72px;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--blog-radius-md);
    box-shadow: var(--blog-shadow-sm);
    transition: all var(--blog-transition);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(11, 61, 46, 0.04);
}

.service-links a:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--blog-shadow-md);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.service-links a:focus {
    outline: none;
    box-shadow: var(--focus-ring), var(--blog-shadow-sm);
    border-color: var(--secondary-color);
}

/* Remove the ::before pseudo-element */
.service-links a::before {
    display: none;
}

/* Service links column variations */
.service-links.links-1 ul {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
}

.service-links.links-2 ul {
    grid-template-columns: repeat(2, 1fr);
}

/* ============================================
   Related Articles
   ============================================ */
.related-articles {
    background: var(--light-color);
    padding: 4.5rem 0;
    margin-top: 3rem;
}

.related-articles h3 {
    text-align: center;
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.related-card {
    background: var(--white);
    border-radius: var(--blog-radius-md);
    padding: 1.75rem;
    text-decoration: none;
    display: block;
    box-shadow: var(--blog-shadow-sm);
    transition: transform var(--blog-transition), box-shadow var(--blog-transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-shadow-xl);
    border-color: var(--secondary-color);
}

.related-card:focus {
    outline: none;
    box-shadow: var(--focus-ring), var(--blog-shadow-md);
}

.related-card h4 {
    color: var(--dark-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    transition: color var(--blog-transition);
}

.related-card:hover h4 {
    color: var(--primary-color);
}

.related-card p {
    color: var(--gray-color);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.related-card .read-more {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.related-card .read-more svg {
    width: 14px;
    height: 14px;
    transition: transform var(--blog-transition);
}

.related-card:hover .read-more svg {
    transform: translateX(4px);
}

/* ============================================
   Bottom CTA
   ============================================ */
.bottom-cta {
    background: var(--primary-color);
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}

.bottom-cta h3 {
    font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.bottom-cta p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.bottom-cta .cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1.125rem 2.75rem;
    min-height: 52px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--blog-shadow-lg);
    transition: transform var(--blog-transition), box-shadow var(--blog-transition), background-color var(--blog-transition);
    cursor: pointer;
}

.bottom-cta .cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow-xl);
}

.bottom-cta .cta-button:focus {
    outline: none;
    box-shadow: var(--blog-shadow-xl), 0 0 0 3px rgba(212, 255, 0, 0.5);
}

/* ============================================
   Table Styles
   ============================================ */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border-radius: var(--blog-radius-md);
    overflow: hidden;
    box-shadow: var(--blog-shadow-sm);
}

.article-content th,
.article-content td {
    padding: 1rem 1.25rem;
    text-align: left;
    border: 1px solid rgba(11, 61, 46, 0.08);
}

.article-content th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.article-content tr:hover td {
    background-color: rgba(212, 255, 0, 0.04);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .article-header {
        padding: 3.5rem 0 3rem;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 0.625rem;
    }

    .article-content {
        padding: 2.5rem 20px;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1rem;
    }

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

    .toc {
        padding: 1.5rem;
    }

    .info-box {
        padding: 1.25rem 1.5rem;
    }

    .service-links {
        padding: 1.5rem;
    }

    .service-links ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-links a {
        min-height: 64px;
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .inline-cta {
        padding: 2rem 1.5rem;
    }

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

    .related-card {
        padding: 1.5rem;
    }

    .bottom-cta {
        padding: 4rem 0;
    }

    .bottom-cta h3 {
        font-size: 1.625rem;
    }

    .bottom-cta p {
        font-size: 1rem;
    }

    .bottom-cta .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 2rem 16px;
    }

    .toc,
    .info-box {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: var(--blog-radius-sm);
    }

    .service-links {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: var(--blog-radius-sm);
        padding: 1.25rem;
    }

    .service-links ul {
        grid-template-columns: 1fr;
    }

    .service-links a {
        min-height: 52px;
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .inline-cta {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: var(--blog-radius-sm);
        padding: 1.75rem 1.25rem;
    }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .blog-header .back-home:hover svg,
    .related-card:hover,
    .related-card:hover .read-more svg,
    .inline-cta .cta-button:hover,
    .bottom-cta .cta-button:hover,
    .service-links a:hover {
        transform: none !important;
    }
}

/* ============================================
   High Contrast Mode Support
   ============================================ */
@media (prefers-contrast: high) {
    .info-box {
        border-width: 2px;
        border-color: var(--primary-color);
    }

    .toc,
    .service-links {
        border: 2px solid var(--gray-color);
    }

    .related-card {
        border: 2px solid var(--dark-color);
    }

    .article-content a {
        text-decoration: underline;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .blog-header,
    .blog-footer,
    .inline-cta,
    .bottom-cta,
    .related-articles {
        display: none !important;
    }

    .article-content {
        max-width: 100%;
        padding: 0;
    }

    .article-header {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0;
    }

    .article-header h1 {
        color: #000;
    }

    .toc,
    .info-box,
    .service-links {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
