/* =============================================
   Theme: Velvet Ink
   Visual DNA: Scholar (templatemo_586)
   =============================================
   Color mood: Purple accent on lavender/white
   Typography: Geometric sans-serif (system stack)
   Layout: Full-width asymmetric sections with
           massive border-radius pseudo-elements
   Components: Pill shapes, overlapping elements,
               soft shadows, lavender card fills
   ============================================= */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4a4a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all .3s; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { color: #1e1e1e; font-weight: 700; line-height: 1.3; }

:root {
  --accent: #7a6ad8;
  --accent-light: #8d7fe0;
  --accent-dark: #6355b8;
  --lavender: #f1f0fe;
  --lavender-mid: #e6e4f9;
  --text-dark: #1e1e1e;
  --text-body: #4a4a4a;
  --text-light: #7a7a7a;
  --white: #fff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 25px;
  --radius-xl: 40px;
  --radius-pill: 50px;
  --radius-blob: 500px;
  --container: 1140px;
}

::selection { background: var(--accent); color: var(--white); }

.vi-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; top: -100px; left: 10px;
  background: var(--accent); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-md);
  z-index: 9999; font-size: 14px;
}
.skip-link:focus { top: 10px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 20px 0; transition: all .4s;
}
.site-header.scrolled {
  background: var(--accent); padding: 12px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 20px rgba(122,106,216,.25);
}
.site-header .vi-container {
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-size: 26px; font-weight: 700; color: var(--white);
  letter-spacing: -.5px; padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,.25); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-block; padding: 8px 18px;
  border-radius: var(--radius-md); font-size: 14px;
  font-weight: 400; color: var(--white); letter-spacing: .2px;
}
.site-nav a:hover { background: rgba(255,255,255,.12); }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 32px; height: 32px; cursor: pointer;
  background: none; border: none; padding: 0;
}
.hamburger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: all .3s;
}
.hamburger span:nth-child(2) { width: 75%; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 160px 0 100px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -15%; left: -5%;
  width: 350px; height: 350px; background: rgba(255,255,255,.04); border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-label {
  display: inline-block; background: rgba(255,255,255,.15);
  color: var(--white); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 18px; border-radius: var(--radius-pill); margin-bottom: 28px;
}
.hero h1 { font-size: 44px; font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 22px; }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,.85); line-height: 1.8; margin-bottom: 40px; max-width: 580px; }
.hero-subtitle p { color: rgba(255,255,255,.85); }
.btn-pill {
  display: inline-block; padding: 14px 32px;
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; transition: all .3s;
}
.btn-pill--white { background: var(--white); color: var(--accent); }
.btn-pill--white:hover { background: var(--lavender); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.btn-pill--ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn-pill--ghost:hover { background: rgba(255,255,255,.22); }
.btn-pill--accent { background: var(--accent); color: var(--white); }
.btn-pill--accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(122,106,216,.35); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== TOPICS — asymmetric blob right ===== */
.topics { position: relative; padding: 100px 0 80px; margin-top: 40px; }
.topics::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 85%; background: var(--lavender);
  border-top-left-radius: var(--radius-blob);
  border-bottom-left-radius: var(--radius-blob); z-index: -1;
}
.topics-header { margin-bottom: 50px; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 14px;
}
.section-title { font-size: 32px; font-weight: 700; line-height: 1.3; }
.topics-layout { display: flex; gap: 30px; align-items: flex-start; }
.topics-sidebar { flex: 0 0 320px; padding-right: 20px; }
.topics-sidebar .section-desc { margin-top: 18px; color: var(--text-body); line-height: 1.8; }
.topics-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.topic-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative; overflow: hidden; transition: all .3s;
}
.topic-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent); border-radius: 0 4px 4px 0; opacity: 0; transition: opacity .3s;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(122,106,216,.12); }
.topic-card:hover::before { opacity: 1; }
.topic-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.topic-card .topic-desc { font-size: 14px; color: var(--text-body); line-height: 1.7; }

/* ===== LATEST POSTS ===== */
.latest-posts { padding: 100px 0 60px; }
.latest-posts .section-header { text-align: center; margin-bottom: 70px; }
.post-item {
  background: var(--lavender); border-radius: var(--radius-lg);
  padding: 30px; margin-bottom: 28px; display: flex;
  align-items: flex-start; gap: 30px; position: relative; transition: all .3s;
}
.post-item:hover { box-shadow: 0 8px 30px rgba(122,106,216,.1); transform: translateY(-2px); }
.post-item-image {
  flex: 0 0 220px; border-radius: var(--radius-md);
  overflow: hidden; position: relative; margin-top: -50px;
}
.post-item-image img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-md); }
.post-item-body { flex: 1; min-width: 0; }
.post-item-date { display: inline-block; font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.post-item-body h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.post-item-body h3 a { color: var(--text-dark); }
.post-item-body h3 a:hover { color: var(--accent); }
.post-item-excerpt { font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 14px; }
.post-item-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  background: var(--white); padding: 8px 20px; border-radius: var(--radius-pill);
}
.post-item-link:hover { background: var(--accent); color: var(--white); }
.post-item-link .arrow { transition: transform .3s; }
.post-item-link:hover .arrow { transform: translateX(4px); }
.posts-cta { text-align: center; margin-top: 40px; }

/* ===== FAQ — purple block + sidebar ===== */
.faq { position: relative; padding: 100px 0; margin-top: 40px; }
.faq::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 88%; background: var(--lavender);
  border-top-right-radius: var(--radius-blob);
  border-bottom-right-radius: var(--radius-blob); z-index: -1;
}
.faq-layout { display: flex; gap: 50px; align-items: flex-start; }
.faq-content { flex: 1; }
.faq-accordion {
  background: var(--accent); border-radius: var(--radius-xl); padding: 50px 40px 30px;
}
.faq-item { background: var(--white); border-radius: var(--radius-xl); margin-bottom: 18px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--white); border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-dark);
  text-align: left; gap: 12px; transition: color .3s;
}
.faq-question:hover { color: var(--accent); }
.faq-toggle {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--white); display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  font-weight: 500; transition: transform .3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 14px; line-height: 1.8; color: var(--text-body); }
.faq-sidebar { flex: 0 0 340px; padding-top: 20px; }
.faq-sidebar .section-desc { margin-top: 18px; color: var(--text-body); line-height: 1.8; }

/* ===== FOOTER ===== */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,.7); padding: 60px 0 30px; margin-top: 80px; }
.footer-inner { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { flex: 0 0 280px; }
.footer-brand-name { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-nav { flex: 1; }
.footer-nav-title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 16px; }
.footer-nav-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav-list a { font-size: 14px; color: rgba(255,255,255,.6); padding: 4px 0; }
.footer-nav-list a:hover { color: var(--white); }
.footer-contact { flex: 0 0 240px; }
.footer-contact-title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 16px; }
.footer-email a { display: inline-block; background: var(--accent); color: var(--white); padding: 8px 22px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; }
.footer-email a:hover { background: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; text-align: center; color: rgba(255,255,255,.4); }

/* ===== PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 150px 0 70px; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; top: -20%; right: -8%; width: 400px; height: 400px; background: rgba(255,255,255,.05); border-radius: 50%; }
.page-hero h1 { font-size: 38px; color: var(--white); }
.page-content { padding: 60px 0 80px; }
.page-content-inner { max-width: 780px; margin: 0 auto; }

/* Content HTML styling */
.content-html h1,.content-html h2,.content-html h3,.content-html h4,.content-html h5,.content-html h6 { margin-top: 1.8em; margin-bottom: .6em; }
.content-html h2 { font-size: 28px; }
.content-html h3 { font-size: 22px; }
.content-html p { margin-bottom: 1.2em; line-height: 1.85; }
.content-html ul,.content-html ol { margin-bottom: 1.2em; padding-left: 24px; list-style: disc; }
.content-html ol { list-style: decimal; }
.content-html li { margin-bottom: .5em; line-height: 1.7; }
.content-html a { color: var(--accent); text-decoration: underline; }
.content-html a:hover { color: var(--accent-dark); }
.content-html blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: 16px 24px; background: var(--lavender); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.content-html img { border-radius: var(--radius-md); margin: 1.5em 0; }
.content-html pre,.content-html code { background: var(--lavender); border-radius: 6px; font-size: 14px; }
.content-html code { padding: 2px 6px; }
.content-html pre { padding: 16px 20px; overflow-x: auto; margin-bottom: 1.2em; }
.content-html pre code { padding: 0; }

/* ===== BLOG INDEX ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 150px 0 70px; position: relative; overflow: hidden;
}
.blog-hero::before { content: ''; position: absolute; bottom: -30%; left: -5%; width: 350px; height: 350px; background: rgba(255,255,255,.04); border-radius: 50%; }
.blog-hero h1 { font-size: 38px; color: var(--white); }
.blog-grid { padding: 60px 0 40px; }
.blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.blog-card { background: var(--lavender); border-radius: var(--radius-lg); overflow: hidden; transition: all .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(122,106,216,.12); }
.blog-card-image img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px 28px 28px; }
.blog-card-date { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.blog-card-body h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.blog-card-body h2 a { color: var(--text-dark); }
.blog-card-body h2 a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 16px; }
.blog-card-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--white); padding: 8px 20px; border-radius: var(--radius-pill); }
.blog-card-link:hover { background: var(--accent); color: var(--white); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0 80px; }
.pagination a,.pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--text-dark); background: var(--lavender); transition: all .3s; }
.pagination a:hover { background: var(--accent); color: var(--white); }
.pagination a.active { background: var(--accent); color: var(--white); pointer-events: none; }
.pagination .prev,.pagination .next { font-weight: 600; padding: 0 20px; }

/* ===== SINGLE POST ===== */
.post-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 150px 0 70px; position: relative; overflow: hidden;
}
.post-hero::before { content: ''; position: absolute; top: -25%; right: -8%; width: 450px; height: 450px; background: rgba(255,255,255,.05); border-radius: 50%; }
.post-hero h1 { font-size: 36px; color: var(--white); max-width: 780px; }
.post-hero-date { display: inline-block; margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); padding: 6px 18px; border-radius: var(--radius-pill); }
.post-cover { max-width: 780px; margin: -40px auto 0; position: relative; z-index: 2; }
.post-cover img { border-radius: var(--radius-lg); width: 100%; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.post-body { padding: 50px 0 80px; }
.post-body-inner { max-width: 780px; margin: 0 auto; }
.post-excerpt { font-size: 17px; line-height: 1.8; color: var(--text-body); margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--lavender-mid); font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .topics-layout { flex-direction: column; }
  .topics-sidebar { flex: none; max-width: 100%; padding-right: 0; }
  .faq-layout { flex-direction: column-reverse; }
  .faq-sidebar { flex: none; max-width: 100%; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--lavender); flex-direction: column; padding: 12px 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { color: var(--text-dark); width: 100%; padding: 12px 18px; border-radius: var(--radius-sm); }
  .site-nav a:hover { background: var(--lavender-mid); }
  .hamburger { display: flex; }
  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .topics::before { width: 95%; }
  .topics-grid { grid-template-columns: 1fr; }
  .post-item { flex-direction: column; gap: 16px; }
  .post-item-image { flex: none; width: 100%; margin-top: 0; }
  .post-item-image img { height: 180px; }
  .faq::before { width: 100%; border-radius: 0; }
  .faq-accordion { padding: 30px 20px 20px; }
  .blog-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-brand { flex: none; }
  .footer-contact { flex: none; }
  .section-title { font-size: 26px; }
  .page-hero h1,.blog-hero h1 { font-size: 30px; }
  .post-hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-pill { text-align: center; }
  .section-title { font-size: 22px; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
