/* Yuvan Infotech v2: blog article layout (works with both legacy article templates). */

/* ---------- Article hero ---------- */
.yi-article-hero, .yi-blog-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 56px; background: linear-gradient(180deg, #fbfcff 0%, #eef3fc 100%); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.yi-article-hero::before, .yi-blog-hero::before { content: ''; position: absolute; z-index: -1; width: 480px; height: 480px; right: -140px; top: -220px; border-radius: 50%; filter: blur(60px); opacity: .5; background: radial-gradient(circle, rgba(27,63,160,.35), transparent 65%); }
.yi-article-hero-inner, .yi-blog-hero-inner { width: min(100% - 48px, 860px); margin-inline: auto; }
.yi-article-hero h1, .yi-blog-hero h1 { margin: 16px 0 0; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; color: var(--ink); }
.yi-article-hero p, .yi-blog-hero p { margin-top: 18px; max-width: 760px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.yi-blog-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.yi-blog-kicker::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--orange); }
.yi-blog-hero-meta, .yi-tutorial-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.yi-blog-hero-meta span, .yi-tutorial-meta span { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }

/* ---------- Article body ---------- */
.yi-article-wrap, .yi-blog-wrap { width: min(100% - 48px, 780px); margin: 0 auto; padding: 56px 0 88px; }
.yi-article-wrap article, .yi-blog-content { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.yi-article-wrap article > :first-child, .yi-blog-content > :first-child { margin-top: 0; }
.yi-article-wrap p, .yi-blog-content p { margin: 0 0 22px; }
.yi-article-wrap h2, .yi-blog-content h2 { margin: 56px 0 16px; font-size: clamp(27px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 110px; }
.yi-article-wrap h3, .yi-blog-content h3 { margin: 36px 0 12px; font-size: 22px; line-height: 1.3; scroll-margin-top: 110px; }
.yi-article-wrap h4, .yi-article-wrap h5, .yi-blog-content h4, .yi-blog-content h5 { margin: 28px 0 10px; font-family: var(--display); font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.yi-article-wrap ul, .yi-article-wrap ol, .yi-blog-content ul, .yi-blog-content ol { margin: 0 0 24px; padding-left: 24px; }
.yi-article-wrap li, .yi-blog-content li { margin: 8px 0; padding-left: 4px; }
.yi-article-wrap li::marker, .yi-blog-content li::marker { color: var(--brand); font-weight: 700; }
.yi-article-wrap a, .yi-blog-content a { color: var(--brand); font-weight: 650; text-decoration: underline; text-decoration-color: var(--brand-100); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.yi-article-wrap a:hover, .yi-blog-content a:hover { text-decoration-color: var(--brand); }
.yi-article-wrap strong, .yi-blog-content strong { color: var(--ink); }
.yi-article-wrap img, .yi-blog-content img { display: block; max-width: 100%; height: auto; margin: 32px auto; border-radius: 20px; box-shadow: var(--shadow); }
.yi-article-wrap figure, .yi-blog-content figure { margin: 32px 0; }
.yi-article-wrap blockquote, .yi-blog-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; background: var(--orange-50); color: var(--ink); font-weight: 500; }
.yi-article-wrap span[style*="font-weight: 400"] { font-weight: inherit !important; }
.yi-article-wrap .yi-flow-image { width: min(100%, 640px); }

/* ---------- Components inside articles ---------- */
.yi-blog-author { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0 0 32px !important; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; background: var(--bg-soft); font-size: 15px; line-height: 1.6; }
.yi-blog-feature-image { width: 100%; margin: 0 0 36px !important; aspect-ratio: 3 / 2; object-fit: cover; }
.yi-blog-answer { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; background: var(--green-50); font-size: 17px; }
.yi-blog-answer p:last-child { margin-bottom: 0; }
.yi-blog-grid, .yi-tutorial-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 36px; }
.yi-blog-card, .yi-overview-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.yi-overview-card { background: var(--bg-soft); }
.yi-blog-card h3, .yi-overview-card h2 { margin: 0 0 8px !important; font-size: 19px !important; }
.yi-blog-card p, .yi-overview-card li { font-size: 15.5px; margin: 0; color: var(--muted); }
.yi-overview-card ul, .yi-overview-card ol { margin: 0 !important; }
.yi-blog-steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 12px; }
.yi-blog-steps li { counter-increment: s; position: relative; margin: 0 !important; padding: 18px 20px 18px 66px !important; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.yi-blog-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; }
.yi-blog-table-wrap, .yi-article-wrap .table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.yi-blog-table, .yi-article-wrap table, .yi-blog-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.yi-blog-table th, .yi-article-wrap th, .yi-blog-content th { text-align: left; padding: 14px 18px; background: var(--bg-soft); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.yi-blog-table td, .yi-article-wrap td, .yi-blog-content td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.yi-blog-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ blocks (all legacy variants) ---------- */
.yi-blog-faq, .yi-faq { margin-top: 56px; }
.yi-blog-faq details, .yi-faq details, .yi-article-wrap details.e-n-accordion-item { margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: transparent !important; }
.yi-blog-faq summary, .yi-faq summary, .e-n-accordion-item-title { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 !important; cursor: pointer; color: var(--ink) !important; font-weight: 700; font-size: 17.5px; line-height: 1.4; }
.yi-blog-faq summary::-webkit-details-marker, .yi-faq summary::-webkit-details-marker, .e-n-accordion-item-title::-webkit-details-marker { display: none; }
.yi-blog-faq summary::after, .yi-faq summary::after, .e-n-accordion-item-title::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--brand); font-size: 19px; font-weight: 600; transition: transform .25s var(--ease); }
details[open] > .e-n-accordion-item-title::after, .yi-blog-faq details[open] summary::after, .yi-faq details[open] summary::after { transform: rotate(45deg); }
.e-n-accordion-item-title-icon { display: none !important; }
.yi-blog-faq details p, .yi-faq details p, .e-n-accordion-item > div, .e-n-accordion-item > p { padding: 0 0 20px !important; margin: 0 !important; color: var(--muted) !important; font-size: 16.5px; }

/* ---------- CTAs ---------- */
.yi-blog-cta, .yi-article-cta { position: relative; overflow: hidden; isolation: isolate; margin: 56px 0 0; padding: 40px 36px; border-radius: 24px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #dbe5ff; text-align: left; }
.yi-article-cta { width: min(100% - 48px, 780px); margin: 0 auto 96px; }
.yi-blog-cta::after, .yi-article-cta::after { content: ''; position: absolute; z-index: -1; right: -60px; bottom: -110px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.45), transparent 65%); }
.yi-blog-cta h2, .yi-article-cta h2 { margin: 0 0 10px !important; color: #fff !important; font-size: 28px !important; }
.yi-blog-cta p, .yi-article-cta p { margin: 0 0 22px !important; color: #dbe5ff; font-size: 17px; }
.yi-blog-cta-links { display: flex; flex-wrap: wrap; gap: 10px; }
.yi-blog-cta a, .yi-article-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; background: #fff; color: var(--brand-700) !important; font-weight: 700; text-decoration: none !important; transition: transform .15s ease, background-color .2s ease; }
.yi-blog-cta a:hover, .yi-article-cta a:hover { transform: translateY(-1px); background: var(--brand-50); }
.yi-blog-cta-links a + a { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.4); }

@media (max-width: 600px) {
  .yi-article-hero, .yi-blog-hero { padding: 40px 0 36px; }
  .yi-article-hero-inner, .yi-blog-hero-inner, .yi-article-wrap, .yi-blog-wrap, .yi-article-cta { width: min(100% - 32px, 780px); }
  .yi-article-hero h1, .yi-blog-hero h1 { font-size: 32px; }
  .yi-article-hero p, .yi-blog-hero p { font-size: 17px; }
  .yi-article-wrap article, .yi-blog-content { font-size: 17px; }
  .yi-blog-grid, .yi-tutorial-overview { grid-template-columns: 1fr; }
  .yi-blog-cta, .yi-article-cta { padding: 28px 22px; }
}
