/* ─── Blog Styles ─────────────────────────────────────────── */

/* Hero — Blog Index */
.blog-hero {
    text-align: center;
    padding: 120px 24px 48px;
    background: var(--tg-bg-main);
    border-bottom: 1px solid var(--tg-border-main);
}
.blog-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--tg-text-primary);
}
.blog-hero p {
    font-size: 1.1rem;
    color: var(--tg-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Card */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--tg-bg-surface);
    border: 1px solid var(--tg-border-main);
    border-radius: var(--tg-radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
    box-shadow: var(--tg-shadow-lg);
    border-color: var(--tg-primary-blue-light);
    transform: translateY(-2px);
}
.blog-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tg-primary-blue);
    background: rgba(59, 107, 155, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    align-self: flex-start;
}
.blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tg-text-primary);
    margin: 0 0 10px;
    line-height: 1.4;
}
.blog-card-desc {
    font-size: 0.92rem;
    color: var(--tg-text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--tg-text-muted);
}
.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.blog-card-meta svg {
    opacity: 0.6;
}

/* CTA block */
.blog-cta {
    text-align: center;
    margin-top: 56px;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(59,107,155,0.06) 0%, rgba(74,155,127,0.06) 100%);
    border: 1px solid var(--tg-border-light);
    border-radius: var(--tg-radius-lg);
}
.blog-cta h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tg-text-primary);
    margin: 0 0 8px;
}
.blog-cta p {
    color: var(--tg-text-secondary);
    margin: 0 0 24px;
}
.blog-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--tg-primary-blue);
    color: #fff;
    border-radius: var(--tg-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.blog-cta-btn:hover {
    background: var(--tg-primary-blue-dark);
    color: #fff;
}

/* ─── Article Page ────────────────────────────────────────── */

/* Hero — Article Page */
.article-hero {
    text-align: center;
    padding: 120px 24px 40px;
    background: var(--tg-bg-main);
    border-bottom: 1px solid var(--tg-border-main);
}
.article-hero-breadcrumb {
    font-size: 0.85rem;
    color: var(--tg-text-muted);
    margin-bottom: 16px;
}
.article-hero-breadcrumb a {
    color: var(--tg-primary-blue);
    text-decoration: none;
}
.article-hero-breadcrumb a:hover {
    text-decoration: underline;
}
.article-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
    color: var(--tg-text-primary);
}
.article-hero-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--tg-text-muted);
}
.article-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Article body */
.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--tg-text-primary);
}
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--tg-text-primary);
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--tg-text-primary);
}
.article-body p {
    margin: 0 0 16px;
}
.article-body ul, .article-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body strong {
    color: var(--tg-text-primary);
    font-weight: 600;
}

/* Highlight boxes in articles */
.article-tip {
    padding: 20px 24px;
    background: var(--tg-accent-green-light);
    border-left: 4px solid var(--tg-accent-green);
    border-radius: 0 var(--tg-radius-sm) var(--tg-radius-sm) 0;
    margin: 24px 0;
    font-size: 0.95rem;
}
.article-warning {
    padding: 20px 24px;
    background: var(--tg-orange-light);
    border-left: 4px solid var(--tg-orange);
    border-radius: 0 var(--tg-radius-sm) var(--tg-radius-sm) 0;
    margin: 24px 0;
    font-size: 0.95rem;
}
.article-info {
    padding: 20px 24px;
    background: rgba(59, 107, 155, 0.06);
    border-left: 4px solid var(--tg-primary-blue);
    border-radius: 0 var(--tg-radius-sm) var(--tg-radius-sm) 0;
    margin: 24px 0;
    font-size: 0.95rem;
}

/* Article CTA inline */
.article-cta-inline {
    text-align: center;
    padding: 32px;
    margin: 32px 0;
    background: linear-gradient(135deg, rgba(59,107,155,0.08) 0%, rgba(74,155,127,0.08) 100%);
    border-radius: var(--tg-radius-lg);
    border: 1px solid var(--tg-border-light);
}
.article-cta-inline h3 {
    margin: 0 0 8px !important;
    font-size: 1.15rem !important;
}
.article-cta-inline p {
    color: var(--tg-text-secondary);
    margin: 0 0 16px;
    font-size: 0.92rem;
}
.article-cta-inline a {
    display: inline-block;
    padding: 10px 28px;
    background: var(--tg-primary-blue);
    color: #fff;
    border-radius: var(--tg-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}
.article-cta-inline a:hover {
    background: var(--tg-primary-blue-dark);
    color: #fff;
}

/* Navigation between articles */
.article-nav {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--tg-border-main);
}
.article-nav a {
    flex: 1;
    padding: 16px 20px;
    background: var(--tg-bg-surface);
    border: 1px solid var(--tg-border-main);
    border-radius: var(--tg-radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.article-nav a:hover {
    border-color: var(--tg-primary-blue-light);
    box-shadow: var(--tg-shadow-sm);
}
.article-nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--tg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.article-nav-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--tg-primary-blue);
}
.article-nav .article-nav-next {
    text-align: right;
}

/* Footer */
.blog-footer {
    background: var(--tg-primary-blue-darker);
    color: rgba(255,255,255,0.8);
    padding: 40px 24px;
}
.blog-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.blog-footer-brand span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}
.blog-footer-brand p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 4px 0 0;
}
.blog-footer-links {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
}
.blog-footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.blog-footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero { padding: 90px 16px 36px; }
    .blog-hero h1 { font-size: 1.6rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-hero { padding: 90px 16px 32px; }
    .article-hero h1 { font-size: 1.5rem; }
    .article-nav { flex-direction: column; }
    .article-nav .article-nav-next { text-align: left; }
    .blog-footer-inner { flex-direction: column; text-align: center; }
    .blog-footer-links { flex-wrap: wrap; justify-content: center; }
}
