:root {
  --primary: #2d1b4e;
  --primary-light: #4a3371;
  --accent: #f4a89a;
  --accent-hover: #e88b78;
  --mint: #a8d5ba;
  --lavender: #b8b5d8;
  --yellow-soft: #f5e6a8;
  --bg-cream: #faf8f5;
  --text-dark: #2d1b4e;
  --text-muted: #6b5b7f;
  --border-light: #e8e4dc;
  --white: #ffffff;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Article Hero */
.article-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 70px 20px 90px;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
}

.article-hero-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.breadcrumb-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--white);
}

.category-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.article-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-hero-number {
  font-size: 16px;
  opacity: 0.75;
  font-weight: 500;
}

/* Article Body */
.article-wrap {
  background: var(--white);
  padding: 0 20px 100px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  border-radius: 40px 40px 0 0;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 60px;
}

.article-image-frame {
  background: var(--bg-cream);
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 50px;
}

.article-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body p {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.85;
  margin-bottom: 26px;
}

.eskalon-question-box {
  background: var(--bg-cream);
  border-left: 5px solid var(--accent);
  border-radius: 0 16px 16px 0;
  padding: 35px 40px;
  margin: 40px 0;
}

.eskalon-question-label {
  display: inline-block;
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.eskalon-question-box p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 0;
  color: var(--primary);
}

/* Related principle callout */
.principle-callout {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 30px 35px;
  margin: 50px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.principle-callout p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

.principle-callout a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: border-color 0.3s ease;
}

.principle-callout a:hover {
  border-color: var(--white);
}

/* Article CTA */
.article-cta {
  background: var(--bg-cream);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  margin: 60px 0;
}

.article-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.article-cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(244, 168, 154, 0.3);
}

.article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(244, 168, 154, 0.4);
}

/* Prev / Next Nav */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid var(--border-light);
}

.article-nav a {
  display: block;
  text-decoration: none;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-cream);
  transition: all 0.3s ease;
}

.article-nav a:hover {
  background: var(--white);
  box-shadow: 0 8px 25px rgba(45, 27, 78, 0.08);
}

.article-nav-next {
  text-align: right;
}

.article-nav-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.article-nav-title {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

/* Directory / Carousel page */
.directory-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 100px 20px 100px;
  text-align: center;
}

.directory-hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.directory-hero .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 30px;
}

.directory-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.directory-hero p {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
}

.directory-section {
  background: var(--white);
  padding: 90px 0 110px;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.carousel-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 70px;
}

.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--lavender) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--lavender);
  border-radius: 10px;
}

.carousel-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-cream);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(45, 27, 78, 0.12);
}

.carousel-card-image {
  background: var(--white);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.carousel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.carousel-card-body {
  padding: 26px 24px 30px;
}

.carousel-card-tag {
  display: inline-block;
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.carousel-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.carousel-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px rgba(45, 27, 78, 0.12);
  cursor: pointer;
  font-size: 18px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

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

.carousel-btn-prev { left: 0; }
.carousel-btn-next { right: 0; }

.directory-cta {
  text-align: center;
  padding: 70px 20px 0;
}

.directory-cta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
}

.directory-cta a:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero h1 { font-size: 32px; }
  .article-hero { padding: 60px 20px 70px; }
  .article-content { padding-top: 40px; }
  .article-body p { font-size: 17px; }
  .eskalon-question-box { padding: 26px 24px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next { text-align: left; }
  .principle-callout { flex-direction: column; align-items: flex-start; }
  .directory-hero h1 { font-size: 34px; }
  .directory-hero p { font-size: 17px; }
  .section-title { font-size: 30px; }
  .carousel-shell { padding: 0 20px; }
  .carousel-btn { display: none; }
  .carousel-card { flex-basis: 260px; }
}
