/* EduPrinter SEO Blog Shared Styles */
.seo-blog-section {
    margin-top: 3rem;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom, #fdfbf7, #f9f6f0);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    font-weight: 400;
}

.seo-book-container {
    max-width: 720px;
    margin: 0 auto;
    background: #fffef8;
    padding: 3rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

.seo-book-title {
    font-size: 1.625rem;
    color: #2c1810;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #a34a36;
    padding-bottom: 1rem;
}

.seo-book-subtitle {
    font-size: 0.9375rem;
    color: #8b6f47;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 500;
    font-style: italic;
}

.seo-book-section {
    margin-bottom: 2.5rem;
}

.seo-book-section h2 {
    font-size: 1.125rem;
    color: #a34a36;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.seo-book-section h2:first-of-type {
    margin-top: 0;
}

.seo-book-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #a34a36, transparent);
}

.seo-book-section h3 {
    font-size: 0.9375rem;
    color: #5d4037;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.seo-book-section p {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: #3e2723;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
}

.seo-book-section p.no-indent {
    text-indent: 0;
}

.seo-book-section ul {
    list-style: none;
    margin-bottom: 1.5rem;
    color: #3a3a3a;
    padding-left: 0;
}

.seo-book-section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
    padding-left: 1.5em;
    position: relative;
}

.seo-book-section ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #a34a36;
    font-size: 0.75em;
}

.seo-quote-box {
    background: #f5f0e8;
    border: 1px solid #d4c4a8;
    padding: 1.75rem;
    margin: 2rem 0;
    position: relative;
    font-style: italic;
}

.seo-quote-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: #a34a36;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.seo-quote-text {
    font-size: 1rem;
    color: #4a3a2a;
    line-height: 1.9;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
}

.seo-quote-author {
    display: block;
    text-align: right;
    color: #a34a36;
    font-weight: 500;
    font-size: 0.9375rem;
    font-style: normal;
}

/* Feature Boxes/Highlight Boxes */
.seo-highlight-box {
    background: #fff9f0;
    border: 1px solid #eaddca;
    border-left: 5px solid #a34a36;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(163, 74, 54, 0.05);
}

.seo-highlight-box h3 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #a34a36;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-highlight-box h3::before {
    content: '★';
    font-size: 0.9rem;
}

.seo-highlight-box p {
    color: #2c1810;
    margin: 0 !important;
    text-indent: 0 !important;
    line-height: 1.8;
    font-weight: 500;
    text-align: left !important;
}

/* CTA Styles */
.seo-cta-section {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #d4c4a8;
}

.seo-cta-section h2 {
    color: #a34a36;
    margin-bottom: 1rem;
    border: none !important;
    padding: 0 !important;
}

.seo-cta-section p {
    color: #5d4037;
    margin-bottom: 2rem;
    text-align: center !important;
    text-indent: 0 !important;
}

.seo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #a34a36;
    color: #fff !important;
    padding: 1rem 2.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.0625rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(163, 74, 54, 0.25);
    font-family: 'Noto Sans TC', sans-serif;
}

.seo-cta-btn:hover {
    background: #8b3a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 74, 54, 0.35);
}

/* Dark Mode Overrides */
.dark .seo-blog-section {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-top-color: #334155;
}

.dark .seo-book-container {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dark .seo-book-title {
    color: #f1f5f9;
    border-bottom-color: #a78bfa;
}

.dark .seo-book-subtitle {
    color: #94a3b8;
}

.dark .seo-book-section h2 {
    color: #a78bfa;
}

.dark .seo-book-section h2::after {
    background: linear-gradient(to right, transparent, #a78bfa, transparent);
}

.dark .seo-book-section h3 {
    color: #94a3b8;
}

.dark .seo-book-section p, 
.dark .seo-book-section ul {
    color: #cbd5e1;
}

.dark .seo-book-section ul li::before {
    color: #a78bfa;
}

.dark .seo-quote-box {
    background: rgba(51, 65, 85, 0.3);
    border-color: #475569;
}

.dark .seo-quote-box::before {
    color: #a78bfa;
}

.dark .seo-quote-text {
    color: #cbd5e1;
}

.dark .seo-quote-author {
    color: #94a3b8;
}

.dark .seo-highlight-box {
    background: rgba(163, 74, 54, 0.1);
    border-color: rgba(163, 74, 54, 0.3);
    border-left-color: #a78bfa;
}

.dark .seo-highlight-box h3 {
    color: #a78bfa;
}

.dark .seo-highlight-box p {
    color: #e2e8f0;
}

.dark .seo-cta-section {
    border-top-color: #334155;
}

.dark .seo-cta-section h2 {
    color: #a78bfa;
}

.dark .seo-cta-section p {
    color: #94a3b8;
}

.dark .seo-cta-btn {
    background: #a78bfa;
}

.dark .seo-cta-btn:hover {
    background: #8b5cf6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .seo-blog-section {
        padding: 2rem 1rem;
    }

    .seo-book-container {
        padding: 0;
        background: transparent;
        box-shadow: none;
        max-width: none;
        width: 100%;
        border: none;
    }

    .seo-book-title {
        font-size: 1.75rem;
        margin-top: 1rem;
    }

    .seo-book-section h2 {
        font-size: 1.5rem;
        margin-top: 3rem;
    }

    .seo-book-section h3 {
        font-size: 1.25rem;
    }

    .seo-book-section p {
        font-size: 1.125rem;
        line-height: 1.8;
        text-indent: 0 !important;
        margin-bottom: 2rem;
    }

    .seo-quote-box,
    .seo-highlight-box {
        padding: 1.5rem 0;
        background: transparent;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
        box-shadow: none;
    }
}
