/* ================================================================
   doto Landing - Blog Styles (blog.css)
   ================================================================ */

/* --- Blog Hero --- */
.blog-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.blog-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    color: var(--doto-text-light);
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .blog-hero {
        padding: 100px 0 40px;
    }
    .blog-hero .hero-title {
        font-size: 1.75rem;
    }
}

/* --- Blog Card Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991.98px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: white;
    border: 1px solid var(--doto-border);
    border-radius: var(--doto-radius);
    overflow: hidden;
    transition: all var(--doto-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--doto-shadow-lg);
    border-color: transparent;
    color: inherit;
}

.blog-card-thumb {
    aspect-ratio: 16 / 9;
    background: var(--doto-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-card-thumb i {
    font-size: 2.5rem;
    color: var(--doto-accent);
    opacity: 0.5;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--doto-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-body p {
    color: var(--doto-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--doto-text-light);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--doto-border);
}

/* --- Blog Article Header --- */
.blog-article-header {
    padding: 120px 0 40px;
    text-align: center;
}

.blog-article-header .blog-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--doto-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.blog-article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.blog-article-header .blog-meta {
    font-size: 0.9rem;
    color: var(--doto-text-light);
}

.blog-article-header .blog-meta span + span::before {
    content: '\00b7';
    margin: 0 0.5rem;
}

@media (max-width: 575.98px) {
    .blog-article-header {
        padding: 100px 0 30px;
    }
    .blog-article-header h1 {
        font-size: 1.5rem;
    }
}

/* --- Blog Article Body --- */
.blog-article-body {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--doto-text);
}

.blog-article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.blog-article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

.blog-article-body ul,
.blog-article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

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

.blog-article-body blockquote {
    border-left: 4px solid var(--doto-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--doto-bg-alt);
    border-radius: 0 var(--doto-radius) var(--doto-radius) 0;
    color: var(--doto-text);
    font-size: 1rem;
}

.blog-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.blog-article-body figure {
    margin: 2rem 0;
    text-align: center;
}

.blog-article-body figure img {
    max-width: 100%;
    border-radius: var(--doto-radius);
    border: 1px solid var(--doto-border);
}

.blog-article-body figcaption {
    font-size: 0.85rem;
    color: var(--doto-text-light);
    margin-top: 0.75rem;
}

.blog-article-body strong {
    font-weight: 700;
    color: var(--doto-primary);
}

/* Feature highlight box in article */
.blog-feature-box {
    background: var(--doto-bg-alt);
    border: 1px solid var(--doto-border);
    border-radius: var(--doto-radius);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.blog-feature-box h3 {
    margin-top: 0;
}

.blog-feature-box ul {
    margin-bottom: 0;
}

/* --- Blog Related Posts --- */
.blog-related {
    border-top: 1px solid var(--doto-border);
    padding-top: 40px;
    margin-top: 20px;
}

.blog-related h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* --- Blog Table of Contents --- */
.blog-toc {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    background: var(--doto-bg-alt);
    border: 1px solid var(--doto-border);
    border-radius: var(--doto-radius);
}

.blog-toc h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--doto-text);
}

.blog-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}

.blog-toc li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-toc a {
    color: var(--doto-accent);
    text-decoration: none;
}

.blog-toc a:hover {
    text-decoration: underline;
}

/* --- Blog Inline CTA --- */
.blog-inline-cta {
    text-align: center;
    padding: 1.25rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
    border-radius: var(--doto-radius);
    border: 1px solid #bae6fd;
}

.blog-inline-cta p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.blog-inline-cta a {
    color: var(--doto-accent);
    text-decoration: underline;
    font-weight: 700;
}

/* --- Blog FAQ --- */
.blog-faq {
    margin: 1.5rem 0;
}

.blog-faq details {
    border: 1px solid var(--doto-border);
    border-radius: var(--doto-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.blog-faq summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--doto-bg-alt);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-faq summary::before {
    content: '\25B6';
    font-size: 0.7rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.blog-faq details[open] summary::before {
    transform: rotate(90deg);
}

.blog-faq summary::-webkit-details-marker {
    display: none;
}

.blog-faq details p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--doto-text-light);
}

/* --- Blog Comparison Table: doto Column Highlight --- */
.blog-comparison-table th.highlight,
.blog-comparison-table td.highlight {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}
.blog-comparison-table th.highlight {
    background-color: #4f46e5;
    color: white;
}

/* --- Blog CTA (reuse feature-cta) --- */
.blog-cta-wrap {
    max-width: 800px;
    margin: 0 auto 60px;
}
