/* =============================================
   Wapp Group Extractor — Blog Shared Styles
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f0f2f5; color: #1a1a1a; line-height: 1.7; }
a { color: #075e54; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---- NAV ---- */
nav { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.nav-logo { font-size: 17px; font-weight: 700; color: #075e54; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo span { font-size: 22px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.nav-links a { color: #444; }
.nav-links a:hover { color: #075e54; text-decoration: none; }

/* ---- BREADCRUMB ---- */
.breadcrumb { max-width: 800px; margin: 20px auto 0; padding: 0 24px; font-size: 13px; color: #999; }
.breadcrumb a { color: #667781; }
.breadcrumb a:hover { color: #075e54; }
.breadcrumb span { margin: 0 6px; }

/* ---- ARTICLE LAYOUT ---- */
.post-wrap { max-width: 800px; margin: 0 auto; padding: 32px 24px 64px; }

.post-header { margin-bottom: 36px; }
.post-category { display: inline-block; background: #e8f5e9; color: #075e54; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.post-header h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; line-height: 1.2; color: #1a1a1a; margin-bottom: 16px; }
.post-intro { font-size: 18px; color: #444; line-height: 1.6; margin-bottom: 20px; }
.post-meta { display: flex; gap: 16px; font-size: 13px; color: #999; align-items: center; flex-wrap: wrap; }
.post-meta strong { color: #555; }

/* ---- TABLE OF CONTENTS ---- */
.toc { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 20px 24px; margin: 32px 0; }
.toc h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #667781; margin-bottom: 12px; }
.toc ol { padding-left: 20px; }
.toc li { font-size: 14px; padding: 4px 0; }
.toc a { color: #075e54; }

/* ---- POST BODY ---- */
.post-body { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

.post-body h2 { font-size: 22px; font-weight: 700; color: #075e54; margin: 36px 0 14px; padding-top: 8px; border-top: 2px solid #f0f2f5; }
.post-body h2:first-child { margin-top: 0; border-top: none; }
.post-body h3 { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 24px 0 10px; }
.post-body p { font-size: 16px; color: #333; margin-bottom: 16px; line-height: 1.75; }
.post-body ul, .post-body ol { margin: 12px 0 20px 24px; }
.post-body li { font-size: 16px; color: #333; padding: 4px 0; line-height: 1.65; }
.post-body strong { color: #1a1a1a; }
.post-body code { background: #f0f2f5; padding: 2px 7px; border-radius: 4px; font-family: "SF Mono", "Monaco", "Consolas", monospace; font-size: 14px; color: #075e54; }
.post-body pre { background: #1a1a2e; color: #e0e0e0; padding: 20px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 20px 0; }

/* Highlight box */
.highlight-box { background: #e8f5e9; border-left: 4px solid #25d366; border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0; }
.highlight-box p { margin: 0; color: #1b5e20; }

/* Warning box */
.warning-box { background: #fff8e1; border-left: 4px solid #f9a825; border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0; }
.warning-box p { margin: 0; color: #5d4037; }

/* Step list */
.step-list { list-style: none; padding: 0; margin: 20px 0; counter-reset: step; }
.step-list li { counter-increment: step; display: flex; gap: 16px; margin-bottom: 18px; align-items: flex-start; }
.step-list li::before { content: counter(step); min-width: 32px; height: 32px; background: linear-gradient(135deg, #075e54, #25d366); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }

/* ---- IN-POST CTA ---- */
.inline-cta { background: linear-gradient(135deg, #075e54, #128c7e); border-radius: 14px; padding: 28px 32px; margin: 36px 0; text-align: center; color: #fff; }
.inline-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.inline-cta p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.inline-cta a { display: inline-block; background: #25d366; color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.inline-cta a:hover { background: #1ebe57; text-decoration: none; }

/* ---- BOTTOM CTA ---- */
.cta-section { background: linear-gradient(135deg, #075e54, #128c7e); padding: 56px 24px; text-align: center; color: #fff; margin-top: 48px; }
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-white { display: inline-block; background: #fff; color: #075e54; padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.btn-cta-white:hover { background: #f0f2f5; text-decoration: none; }
.btn-cta-outline { display: inline-block; background: transparent; border: 2px solid rgba(255,255,255,0.7); color: #fff; padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 15px; }

/* ---- RELATED POSTS ---- */
.related-section { max-width: 800px; margin: 48px auto; padding: 0 24px; }
.related-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #1a1a1a; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); transition: transform 0.15s; }
.related-card:hover { transform: translateY(-3px); }
.related-card .cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #25d366; margin-bottom: 8px; display: block; }
.related-card h3 { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin-bottom: 10px; }
.related-card a.read-more { font-size: 13px; color: #075e54; font-weight: 600; }

/* ---- BLOG LISTING ---- */
.blog-hero { background: linear-gradient(135deg, #075e54, #128c7e); color: #fff; padding: 56px 24px; text-align: center; }
.blog-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.blog-hero p { font-size: 16px; opacity: 0.9; max-width: 500px; margin: 0 auto; }
.blog-grid-wrap { max-width: 900px; margin: 48px auto; padding: 0 24px 64px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.blog-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.blog-card .cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #25d366; margin-bottom: 12px; display: block; }
.blog-card h2 { font-size: 17px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin-bottom: 12px; }
.blog-card p { font-size: 14px; color: #667781; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.blog-card .card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid #f0f2f5; }
.blog-card .read-time { font-size: 12px; color: #aaa; }
.blog-card .read-more { font-size: 13px; font-weight: 700; color: #075e54; }

/* ---- FOOTER ---- */
footer { background: #1a1a1a; color: #aaa; text-align: center; padding: 32px 24px; font-size: 13px; }
footer a { color: #ccc; }
footer .foot-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .post-body { padding: 24px 18px; }
  .post-wrap { padding: 24px 16px 48px; }
  .nav-links { gap: 12px; font-size: 13px; }
}
