/*
  LUMINARY — Editorial Portal Theme
  Inspired by: TemplateMo 586 Scholar

  Color DNA preserved from source:
  Primary purple:   #7a6ad8
  Light lavender:   #f1f0fe
  Dark text:        #1e1e1e
  Body text:        #4a4a4a
  White:            #ffffff
*/

/* =========================================
   CSS Variables & Reset
   ========================================= */

:root {
  --primary:        #7a6ad8;
  --primary-dark:   #5a4ac8;
  --primary-light:  #9b8fe2;
  --light:          #f1f0fe;
  --white:          #ffffff;
  --dark:           #1e1e1e;
  --body:           #4a4a4a;
  --border-sm:      12px;
  --border-md:      25px;
  --border-lg:      40px;
  --border-pill:    500px;
  --shadow:         0 4px 24px rgba(122, 106, 216, 0.12);
  --shadow-hover:   0 8px 40px rgba(122, 106, 216, 0.22);
  --transition:     all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
}

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

/* =========================================
   Global Components
   ========================================= */

.section {
  padding-top: 40px;
  margin-top: 100px;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-top: 8px;
}

.section-heading h2 em {
  color: var(--primary);
  font-style: normal;
}

.section-heading p {
  margin-top: 18px;
  max-width: 560px;
}

/* Pill Button */
.btn-pill {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  height: 48px;
  line-height: 48px;
  padding: 0 28px;
  border-radius: var(--border-pill);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.25px;
}

.btn-pill:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-pill-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-pill-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-pill-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  line-height: 44px;
}

.btn-pill-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Category Badge */
.badge {
  display: inline-block;
  background: rgba(122, 106, 216, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--border-pill);
}

.badge-white {
  background: rgba(255,255,255,0.92);
  color: var(--primary);
}

.badge-purple {
  background: var(--primary);
  color: var(--white);
}

/* Date label */
.post-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* =========================================
   Preloader
   ========================================= */

.js-preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.js-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-dots {
  display: flex;
  gap: 10px;
}

.preloader-dots span {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.preloader-dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* =========================================
   Header
   ========================================= */

.header-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

.header-area.scrolled {
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(122, 106, 216, 0.3);
  border-radius: 0 0 var(--border-md) var(--border-md);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  border-right: 1px solid rgba(255,255,255,0.3);
  padding-right: 20px;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  display: none;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 18px;
  border-radius: var(--border-pill);
  transition: var(--transition);
  letter-spacing: 0.2px;
  height: 40px;
  line-height: 24px;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* Hamburger */
.menu-trigger {
  display: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
}

.menu-trigger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-trigger span:nth-child(2) { width: 75%; }

.menu-trigger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-trigger.open span:nth-child(2) { opacity: 0; width: 100%; }
.menu-trigger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   Hero Section
   ========================================= */

.hero {
  position: relative;
  background-image: linear-gradient(135deg, #2d1f6e 0%, #7a6ad8 60%, #9b8fe2 100%);
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 35%;
  height: 100%;
  background: var(--white);
  border-radius: var(--border-pill) 0 0 var(--border-pill);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  padding-right: 20px;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 6px 18px;
  border-radius: var(--border-pill);
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.8);
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-subtitle p { color: rgba(255,255,255,0.8); font-size: 16px; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
}

.hero-scroll-line {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

/* Hero feature card on right */
.hero-feature {
  position: relative;
  z-index: 2;
}

.hero-feature-card {
  background: var(--white);
  border-radius: var(--border-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.hero-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(122, 106, 216, 0.25);
}

.hero-feature-img {
  position: relative;
  height: 220px;
  background: var(--light);
  overflow: hidden;
}

.hero-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-img .badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.hero-feature-body {
  padding: 24px 28px 28px;
}

.hero-feature-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 12px;
  line-height: 1.3;
}

.hero-feature-body h3 a {
  color: var(--dark);
  transition: var(--transition);
}

.hero-feature-body h3 a:hover { color: var(--primary); }

.hero-feature-body p {
  font-size: 14px;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Decorative background shape */
.hero-deco {
  position: absolute;
  right: 20%;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  z-index: 0;
}

.hero-deco-2 {
  position: absolute;
  left: 5%;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  z-index: 0;
}

/* =========================================
   Latest Posts Section
   ========================================= */

.latest-posts {
  margin-top: 100px;
  padding: 0 40px;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.latest-posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

/* Featured post */
.post-featured {
  background: var(--light);
  border-radius: var(--border-md);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  transition: var(--transition);
  position: relative;
}

.post-featured:hover { box-shadow: var(--shadow-hover); }
.post-featured:hover .post-featured-title a { color: var(--primary); }

.post-featured-img {
  position: relative;
  height: 320px;
  background: var(--light);
  overflow: hidden;
}

.post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-featured:hover .post-featured-img img { transform: scale(1.03); }

.post-featured-img .badge {
  position: absolute;
  top: 20px;
  left: 20px;
}

.post-featured-body {
  padding: 28px 32px 32px;
}

.post-featured-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 12px 0 14px;
}

.post-featured-title a {
  color: var(--dark);
  transition: var(--transition);
}

.post-featured-excerpt {
  font-size: 15px;
  color: var(--body);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-featured-excerpt p { font-size: 15px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.read-more::after {
  content: '→';
  transition: var(--transition);
}

.read-more:hover { color: var(--primary-dark); }
.read-more:hover::after { transform: translateX(4px); }

/* Secondary posts column */
.posts-secondary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  background: var(--light);
  border-radius: var(--border-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  flex: 1;
}

.post-card:hover { box-shadow: var(--shadow-hover); }
.post-card:hover .post-card-title a { color: var(--primary); }

.post-card-img {
  position: relative;
  height: 140px;
  background: var(--primary);
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-img img { transform: scale(1.05); }

.post-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0 10px;
}

.post-card-title a {
  color: var(--dark);
  transition: var(--transition);
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--body);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-excerpt p { font-size: 13px; }

/* =========================================
   Topics Section
   ========================================= */

.topics {
  position: relative;
  margin-top: 120px;
  padding: 80px 40px;
  overflow: hidden;
}

.topics::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 85%;
  background: var(--light);
  border-top-left-radius: var(--border-pill);
  border-bottom-left-radius: var(--border-pill);
  z-index: -1;
}

.topics-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
}

/* Topic card with floating icon (like Scholar's service cards) */
.topic-card {
  position: relative;
  margin-top: 60px;
}

.topic-card-icon {
  position: absolute;
  right: 0;
  top: -60px;
  width: 110px;
  height: 110px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 8px 32px rgba(122, 106, 216, 0.4);
  transition: var(--transition);
  z-index: 2;
}

.topic-card:hover .topic-card-icon {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(122, 106, 216, 0.5);
}

.topic-card-body {
  background: var(--white);
  border-radius: var(--border-md);
  padding: 32px 28px 28px;
  padding-right: 90px;
  min-height: 160px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.topic-card:hover .topic-card-body {
  box-shadow: var(--shadow-hover);
}

.topic-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  transition: var(--transition);
}

.topic-card:hover .topic-card-body h3 { color: var(--primary); }

.topic-card-body p { font-size: 14px; color: var(--body); line-height: 1.7; }
.topic-card-body p p { font-size: 14px; }

/* =========================================
   FAQ Section
   ========================================= */

.faq {
  margin-top: 120px;
  padding: 0 40px 80px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-sidebar h2 {
  font-size: 36px;
  margin-top: 12px;
  margin-bottom: 20px;
}

.faq-sidebar h2 em {
  color: var(--primary);
  font-style: normal;
}

.faq-sidebar p { color: var(--body); line-height: 1.7; }

/* Accordion — purple background, white cards (preserved from Scholar) */
.faq-accordion {
  background: var(--primary);
  border-radius: var(--border-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.faq-accordion::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.faq-accordion::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--border-lg) !important;
  margin-bottom: 20px;
  overflow: hidden;
}

.accordion-item:last-child { margin-bottom: 0; }

.accordion-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  user-select: none;
}

.accordion-question:hover { color: var(--primary); }

.accordion-toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: var(--transition);
}

.accordion-item.open .accordion-toggle {
  transform: rotate(45deg);
}

.accordion-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
}

.accordion-answer.open { display: block; }
.accordion-answer p { font-size: 14px; }

/* =========================================
   Page Template
   ========================================= */

.page-hero {
  background: var(--primary);
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  border-radius: var(--border-pill) var(--border-pill) 0 0;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-inner h1 {
  font-size: 44px;
  color: var(--white);
  margin-top: 16px;
  margin-bottom: 0;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.page-content h2 {
  font-size: 26px;
  color: var(--dark);
  margin: 40px 0 16px;
}

.page-content h3 {
  font-size: 20px;
  color: var(--dark);
  margin: 32px 0 12px;
}

.page-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  margin-bottom: 8px;
}

.page-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--light);
  border-radius: 0 var(--border-sm) var(--border-sm) 0;
  font-style: italic;
  color: var(--body);
}

.page-content a { color: var(--primary); text-decoration: underline; }

/* =========================================
   Blog Index
   ========================================= */

.blog-hero {
  background: linear-gradient(135deg, #2d1f6e 0%, var(--primary) 100%);
  padding: 130px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  border-radius: 50% 50% 0 0;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  font-size: 46px;
  color: var(--white);
  margin-top: 16px;
}

.blog-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  margin-top: 16px;
}

.blog-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

/* Blog post card */
.blog-card {
  background: var(--light);
  border-radius: var(--border-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.blog-card:hover .blog-card-title a { color: var(--primary); }

.blog-card-img {
  position: relative;
  height: 190px;
  background: var(--primary);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-img .badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 10px 0 12px;
  flex: 1;
}

.blog-card-title a {
  color: var(--dark);
  transition: var(--transition);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.blog-card-excerpt p { font-size: 14px; }

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(122, 106, 216, 0.1);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--border-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--light);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
}

.pagination a.active {
  background: var(--primary);
  color: var(--white);
}

.pagination-prev,
.pagination-next {
  width: auto !important;
  padding: 0 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* =========================================
   Post Template
   ========================================= */

.post-hero {
  background: linear-gradient(160deg, #2d1f6e 0%, var(--primary) 70%, #9b8fe2 100%);
  padding: 130px 40px 100px;
  position: relative;
  overflow: hidden;
}

.post-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  border-radius: 50% 50% 0 0;
}

.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.post-hero-inner h1 {
  font-size: 42px;
  color: var(--white);
  margin-top: 16px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.post-meta-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.post-meta-hero .post-date { color: rgba(255,255,255,0.75); }

.post-cover {
  max-width: 860px;
  margin: -40px auto 0;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.post-cover img {
  border-radius: var(--border-md);
  width: 100%;
  box-shadow: var(--shadow-hover);
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

/* Post content styles */
.post-body h2 { font-size: 26px; margin: 44px 0 16px; }
.post-body h3 { font-size: 21px; margin: 36px 0 14px; }
.post-body h4 { font-size: 18px; margin: 28px 0 12px; }

.post-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--body);
  margin-bottom: 24px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 24px 28px;
  padding: 0;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  margin-bottom: 8px;
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 36px 0;
  padding: 20px 28px;
  background: var(--light);
  border-radius: 0 var(--border-sm) var(--border-sm) 0;
  font-style: italic;
  font-size: 17px;
  color: var(--dark);
}

.post-body a { color: var(--primary); text-decoration: underline; }

.post-body img {
  border-radius: var(--border-md);
  margin: 32px 0;
}

.post-excerpt-block {
  background: var(--light);
  border-radius: var(--border-md);
  padding: 24px 28px;
  margin-bottom: 36px;
  border-left: 4px solid var(--primary);
}

.post-excerpt-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  font-style: italic;
  margin: 0;
}

/* =========================================
   Footer
   ========================================= */

footer {
  background: var(--primary);
  border-radius: 80px 80px 0 0;
  margin-top: 80px;
  padding: 64px 40px 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

footer::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 5%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.footer-brand h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-section h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 400;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: var(--transition);
}

.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

/* =========================================
   Responsive — 1024px
   ========================================= */

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

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .faq-inner { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
}

/* =========================================
   Responsive — 768px
   ========================================= */

@media (max-width: 768px) {
  .header-area { padding: 0 20px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-radius: 0 0 var(--border-md) var(--border-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    height: auto;
    line-height: 1.5;
  }

  .menu-trigger { display: flex; }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero::after { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 { font-size: 34px; }
  .hero-content { padding-right: 0; }

  .hero-cta { flex-wrap: wrap; }

  .latest-posts { padding: 0 20px; }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .posts-secondary { gap: 16px; }

  .post-card { flex-direction: row; }
  .post-card-img { width: 120px; flex-shrink: 0; height: auto; min-height: 120px; }

  .topics { padding: 60px 20px; }
  .topics-grid { grid-template-columns: 1fr; }
  .topics::before { display: none; }

  .faq { padding: 0 20px 60px; }

  .blog-hero { padding: 110px 20px 80px; }
  .blog-hero h1 { font-size: 32px; }

  .blog-list { padding: 60px 20px 80px; }
  .blog-grid { grid-template-columns: 1fr; }

  .post-hero { padding: 110px 20px 80px; }
  .post-hero-inner h1 { font-size: 28px; }
  .post-cover { padding: 0 20px; }
  .post-body { padding: 40px 20px 60px; }

  .page-hero { padding: 110px 20px 70px; }
  .page-hero-inner h1 { font-size: 30px; }
  .page-content { padding: 40px 20px 60px; }

  footer { padding: 50px 20px 32px; border-radius: 40px 40px 0 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .section-heading h2 { font-size: 28px; }

  .post-meta-hero { flex-wrap: wrap; gap: 12px; }
}

/* =========================================
   Responsive — 375px
   ========================================= */

@media (max-width: 375px) {
  .hero-content h1 { font-size: 28px; }
  .section-heading h2 { font-size: 24px; }
  .blog-hero h1, .post-hero-inner h1 { font-size: 24px; }
}

/* =========================================
   Focus styles
   ========================================= */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   Skip Navigation
   ========================================= */

.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--border-sm);
  z-index: 9999;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-nav:focus { top: 10px; }
