/* ==========================================================================
   YEF Ghost Theme - Main Stylesheet
   A professional theme for YEF e.V. (Yunus Emre Förderverein)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   
   Note: --ghost-accent-color is automatically injected by Ghost from 
   Settings > Design > Brand > Accent color. We use this as the primary color.
   -------------------------------------------------------------------------- */
:root {
  /* 
       Primary Color: Uses Ghost's accent color (set in Admin > Design > Brand)
       Default fallback: #1e3a5f (deep blue)
    */
  --ghost-accent-color: #1e3a5f;

  /* Derived colors from accent (these work with any accent color) */
  --yef-primary: var(--ghost-accent-color);
  --yef-primary-light: color-mix(in srgb, var(--ghost-accent-color) 80%, white);
  --yef-primary-dark: color-mix(in srgb, var(--ghost-accent-color) 80%, black);

  /* Secondary/Accent - warm gold for highlights */
  --yef-accent: #d4a574;
  --yef-accent-light: #e4c4a4;

  /* Neutral Colors */
  --yef-white: #ffffff;
  --yef-gray-50: #f9fafb;
  --yef-gray-100: #f3f4f6;
  --yef-gray-200: #e5e7eb;
  --yef-gray-300: #d1d5db;
  --yef-gray-400: #9ca3af;
  --yef-gray-500: #6b7280;
  --yef-gray-600: #4b5563;
  --yef-gray-700: #374151;
  --yef-gray-800: #1f2937;
  --yef-gray-900: #111827;

  /* Semantic Colors */
  --yef-success: #10b981;
  --yef-warning: #f59e0b;
  --yef-error: #ef4444;

  /* Typography */
  --yef-font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --yef-font-serif: "Merriweather", Georgia, serif;

  /* Spacing */
  --yef-spacing-xs: 0.25rem;
  --yef-spacing-sm: 0.5rem;
  --yef-spacing-md: 1rem;
  --yef-spacing-lg: 1.5rem;
  --yef-spacing-xl: 2rem;
  --yef-spacing-2xl: 3rem;
  --yef-spacing-3xl: 4rem;

  /* Border Radius */
  --yef-radius-sm: 4px;
  --yef-radius-md: 8px;
  --yef-radius-lg: 12px;
  --yef-radius-xl: 16px;
  --yef-radius-full: 9999px;

  /* Shadows */
  --yef-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --yef-shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yef-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yef-shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --yef-transition-fast: 150ms ease;
  --yef-transition-normal: 250ms ease;
  --yef-transition-slow: 350ms ease;

  /* Container */
  --yef-container-max: 1200px;
  --yef-content-max: 720px;
}

/* Dark Mode */
.dark-mode {
  --yef-gray-50: #111827;
  --yef-gray-100: #1f2937;
  --yef-gray-200: #374151;
  --yef-gray-700: #e5e7eb;
  --yef-gray-800: #f3f4f6;
  --yef-gray-900: #f9fafb;
  --yef-white: #0f172a;
}

/* --------------------------------------------------------------------------
   Custom Font Settings (from Ghost Admin)
   -------------------------------------------------------------------------- */
/* Title Fonts */
.has-title-font-System\ sans-serif h1,
.has-title-font-System\ sans-serif h2,
.has-title-font-System\ sans-serif h3,
.has-title-font-System\ sans-serif h4,
.has-title-font-System\ sans-serif h5,
.has-title-font-System\ sans-serif h6 {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.has-title-font-Inter h1,
.has-title-font-Inter h2,
.has-title-font-Inter h3,
.has-title-font-Inter h4,
.has-title-font-Inter h5,
.has-title-font-Inter h6 {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.has-title-font-Merriweather h1,
.has-title-font-Merriweather h2,
.has-title-font-Merriweather h3,
.has-title-font-Merriweather h4,
.has-title-font-Merriweather h5,
.has-title-font-Merriweather h6 {
  font-family: "Merriweather", Georgia, serif;
}

.has-title-font-Elegant\ serif h1,
.has-title-font-Elegant\ serif h2,
.has-title-font-Elegant\ serif h3,
.has-title-font-Elegant\ serif h4,
.has-title-font-Elegant\ serif h5,
.has-title-font-Elegant\ serif h6 {
  font-family: Georgia, "Times New Roman", serif;
}

/* Body Fonts */
.has-body-font-System\ sans-serif {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.has-body-font-Inter {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.has-body-font-Merriweather {
  font-family: "Merriweather", Georgia, serif;
}

.has-body-font-Elegant\ serif {
  font-family: Georgia, "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--yef-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--yef-gray-800);
  background-color: var(--yef-gray-50);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--yef-spacing-md);
  font-family: var(--yef-font-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--yef-gray-900);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--yef-spacing-md);
}

a {
  color: var(--yef-primary);
  text-decoration: none;
  transition: color var(--yef-transition-fast);
}

a:hover {
  color: var(--yef-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--yef-container-max);
  margin: 0 auto;
  padding: 0 var(--yef-spacing-lg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.yef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--yef-spacing-sm);
  padding: 0.625rem 1.25rem;
  font-family: var(--yef-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--yef-radius-md);
  cursor: pointer;
  transition: all var(--yef-transition-fast);
}

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

.yef-btn-primary:hover {
  background-color: var(--yef-primary-light);
  border-color: var(--yef-primary-light);
  color: var(--yef-white);
}

.yef-btn-outline {
  background-color: transparent;
  color: var(--yef-primary);
  border-color: var(--yef-primary);
}

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

.yef-btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.yef-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--yef-white);
  border-bottom: 1px solid var(--yef-gray-200);
}

.yef-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--yef-spacing-lg);
}

.yef-header-brand {
  flex-shrink: 0;
}

.yef-logo {
  display: flex;
  align-items: center;
}

.yef-logo img {
  height: 44px;
  width: auto;
}

.yef-site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yef-gray-900);
}

/* Navigation */
.yef-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.yef-nav ul {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.yef-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--yef-gray-700);
  transition: color var(--yef-transition-fast);
}

.yef-nav a:hover,
.yef-nav .nav-current a {
  color: var(--yef-primary);
}

/* Header Actions */
.yef-header-actions {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-md);
}

.yef-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  color: var(--yef-gray-600);
  cursor: pointer;
  border-radius: var(--yef-radius-full);
  transition: all var(--yef-transition-fast);
}

.yef-search-btn:hover {
  background-color: var(--yef-gray-100);
  color: var(--yef-primary);
}

/* Mobile Menu Toggle */
.yef-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.yef-menu-icon {
  position: relative;
  width: 22px;
  height: 2px;
  background-color: var(--yef-gray-700);
  transition: background-color var(--yef-transition-fast);
}

.yef-menu-icon::before,
.yef-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--yef-gray-700);
  transition: transform var(--yef-transition-fast);
}

.yef-menu-icon::before {
  top: -7px;
}
.yef-menu-icon::after {
  bottom: -7px;
}

/* Mobile Navigation */
.yef-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--yef-white);
  border-bottom: 1px solid var(--yef-gray-200);
  padding: var(--yef-spacing-lg);
  box-shadow: var(--yef-shadow-lg);
}

.yef-nav.is-open ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.yef-nav.is-open a {
  display: block;
  padding: var(--yef-spacing-md) 0;
  border-bottom: 1px solid var(--yef-gray-100);
}

/* Desktop Styles */
@media (min-width: 768px) {
  .yef-menu-toggle {
    display: none;
  }

  .yef-nav {
    display: flex;
  }

  .yef-header-actions .yef-btn {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .yef-header-actions .yef-btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.yef-hero {
  position: relative;
  background-color: var(--yef-white);
  overflow: hidden;
  padding: var(--yef-spacing-lg) 0;
}

@media (min-width: 768px) {
  .yef-hero {
    padding: var(--yef-spacing-2xl) 0;
  }
}

@media (min-width: 992px) {
  .yef-hero {
    padding: var(--yef-spacing-3xl) 0;
  }
}

.yef-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yef-spacing-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .yef-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--yef-spacing-3xl);
  }
}

.yef-hero-content {
  max-width: 600px;
}

.yef-hero-badge {
  display: inline-block;
  color: var(--yef-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--yef-spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yef-hero-title {
  font-size: 2.15rem;
  font-weight: 700;
  margin-bottom: var(--yef-spacing-lg);
  color: var(--yef-gray-900);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .yef-hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .yef-hero-title {
    font-size: 2.5rem;
  }
}

.yef-hero-description {
  font-size: 1rem;
  color: var(--yef-gray-600);
  line-height: 1.7;
  margin-bottom: var(--yef-spacing-xl);
}

/* Hero Bullet Points */
.yef-hero-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yef-spacing-sm);
  margin-bottom: var(--yef-spacing-xl);
}

@media (min-width: 576px) {
  .yef-hero-bullets {
    grid-template-columns: 1fr 1fr;
    gap: var(--yef-spacing-sm) var(--yef-spacing-xl);
  }
}

.yef-hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--yef-spacing-sm);
  color: var(--yef-gray-700);
  font-size: 0.9375rem;
}

.yef-hero-bullet-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--yef-primary);
}

.yef-hero-bullet-icon svg {
  width: 100%;
  height: 100%;
}

.yef-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yef-spacing-md);
}

/* Hero Image Column */
.yef-hero-image-wrapper {
  position: relative;
}

.yef-hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--yef-radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (min-width: 992px) {
  .yef-hero-image {
    aspect-ratio: 1/1;
    max-height: 500px;
  }
}

/* Experience Badge */
.yef-hero-experience {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background-color: var(--yef-primary);
  color: var(--yef-white);
  padding: var(--yef-spacing-md) var(--yef-spacing-lg);
  border-radius: var(--yef-radius-md);
  text-align: left;
  max-width: 200px;
}

.yef-hero-experience strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.yef-hero-experience span {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Highlights Section
   -------------------------------------------------------------------------- */
.yef-highlights {
  padding: var(--yef-spacing-3xl) 0;
  background-color: var(--yef-white);
}

.yef-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yef-spacing-xl);
}

@media (min-width: 768px) {
  .yef-highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.yef-highlight-card {
  text-align: center;
  padding: var(--yef-spacing-xl);
  background-color: var(--yef-gray-50);
  border-radius: var(--yef-radius-lg);
  transition:
    transform var(--yef-transition-normal),
    box-shadow var(--yef-transition-normal);
}

.yef-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yef-shadow-lg);
}

.yef-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--yef-spacing-lg);
  background-color: var(--yef-primary);
  color: var(--yef-white);
  border-radius: var(--yef-radius-full);
}

.yef-highlight-card h3 {
  margin-bottom: var(--yef-spacing-sm);
  color: var(--yef-primary);
}

.yef-highlight-card p {
  color: var(--yef-gray-600);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.yef-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--yef-spacing-2xl);
}

.yef-section-header h2 {
  color: var(--yef-primary);
  margin-bottom: var(--yef-spacing-md);
}

.yef-section-header p {
  color: var(--yef-gray-600);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Posts Section
   -------------------------------------------------------------------------- */
.yef-posts-section {
  padding: var(--yef-spacing-3xl) 0;
}

.yef-post-feed {
  display: grid;
  gap: var(--yef-spacing-xl);
}

.yef-feed-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .yef-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .yef-feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.yef-feed-list {
  grid-template-columns: 1fr;
  max-width: var(--yef-content-max);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Post Card
   -------------------------------------------------------------------------- */
.yef-post-card {
  display: flex;
  flex-direction: column;
  background-color: var(--yef-white);
  border-radius: var(--yef-radius-lg);
  overflow: hidden;
  box-shadow: var(--yef-shadow-sm);
  transition:
    transform var(--yef-transition-normal),
    box-shadow var(--yef-transition-normal);
}

.yef-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yef-shadow-lg);
}

.yef-post-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.yef-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--yef-transition-slow);
}

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

.yef-featured-label {
  position: absolute;
  top: var(--yef-spacing-md);
  left: var(--yef-spacing-md);
  padding: var(--yef-spacing-xs) var(--yef-spacing-sm);
  background-color: var(--yef-accent);
  color: var(--yef-gray-900);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--yef-radius-sm);
}

.yef-post-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--yef-spacing-lg);
}

.yef-post-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yef-accent);
  margin-bottom: var(--yef-spacing-sm);
}

.yef-post-card-title {
  font-size: 1.125rem;
  margin-bottom: var(--yef-spacing-sm);
}

.yef-post-card-title a {
  color: var(--yef-gray-900);
}

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

.yef-post-card-excerpt {
  flex: 1;
  color: var(--yef-gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--yef-spacing-md);
}

.yef-post-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
  padding-top: var(--yef-spacing-md);
  border-top: 1px solid var(--yef-gray-100);
}

.yef-post-card-author {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-sm);
}

.yef-post-card-author-image {
  width: 28px;
  height: 28px;
  border-radius: var(--yef-radius-full);
  object-fit: cover;
}

/* List Layout */
.yef-feed-list .yef-post-card {
  flex-direction: row;
}

.yef-feed-list .yef-post-card-image {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

@media (max-width: 639px) {
  .yef-feed-list .yef-post-card {
    flex-direction: column;
  }

  .yef-feed-list .yef-post-card-image {
    width: 100%;
    aspect-ratio: 16/10;
  }
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.yef-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--yef-spacing-lg);
  margin-top: var(--yef-spacing-2xl);
  padding-top: var(--yef-spacing-xl);
  border-top: 1px solid var(--yef-gray-200);
}

.yef-pagination a {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-sm);
  padding: var(--yef-spacing-sm) var(--yef-spacing-md);
  font-weight: 500;
  color: var(--yef-primary);
  border-radius: var(--yef-radius-md);
  transition: background-color var(--yef-transition-fast);
}

.yef-pagination a:hover {
  background-color: var(--yef-gray-100);
}

.yef-pagination-info {
  color: var(--yef-gray-500);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.yef-cta {
  padding: var(--yef-spacing-3xl) 0;
  background-color: var(--yef-primary);
  color: var(--yef-white);
}

.yef-cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.yef-cta h2 {
  color: var(--yef-white);
  margin-bottom: var(--yef-spacing-md);
}

.yef-cta p {
  opacity: 0.9;
  margin-bottom: var(--yef-spacing-xl);
}

.yef-cta .yef-btn-primary {
  background-color: var(--yef-accent);
  border-color: var(--yef-accent);
  color: var(--yef-gray-900);
}

.yef-cta .yef-btn-primary:hover {
  background-color: var(--yef-accent-light);
  border-color: var(--yef-accent-light);
}

.yef-subscribed-large {
  font-size: 1.125rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Article Styles
   -------------------------------------------------------------------------- */
.yef-article-header {
  padding: var(--yef-spacing-2xl) 0;
  background-color: var(--yef-gray-100);
}

.yef-article-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--yef-spacing-2xl);
  align-items: stretch;
}

.yef-article-header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yef-article-header-image {
  position: relative;
  display: flex;
  align-items: center;
}

.yef-article-header-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  border-radius: var(--yef-radius-lg);
  object-fit: cover;
}

.yef-article-header-image figcaption {
  margin-top: var(--yef-spacing-sm);
  color: var(--yef-gray-500);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .yef-article-header-grid {
    grid-template-columns: 1fr;
    gap: var(--yef-spacing-xl);
  }

  .yef-article-header-content {
    order: 1;
  }

  .yef-article-header-image {
    order: 2;
  }
}

.yef-article-tags {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-md);
  margin-bottom: var(--yef-spacing-lg);
}

.yef-tag {
  display: inline-block;
  padding: var(--yef-spacing-xs) var(--yef-spacing-md);
  background-color: var(--yef-gray-200);
  color: var(--yef-gray-700);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--yef-radius-full);
  transition: all var(--yef-transition-fast);
}

.yef-tag:hover {
  background-color: var(--yef-primary);
  color: var(--yef-white);
}

.yef-featured-badge {
  padding: var(--yef-spacing-xs) var(--yef-spacing-md);
  background-color: var(--yef-accent);
  color: var(--yef-gray-900);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--yef-radius-full);
}

.yef-article-title {
  font-size: 2.5rem;
  margin-bottom: var(--yef-spacing-lg);
}

.yef-article-excerpt {
  font-size: 1.25rem;
  color: var(--yef-gray-600);
  margin-bottom: var(--yef-spacing-xl);
}

.yef-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yef-spacing-lg);
}

.yef-article-authors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yef-spacing-md);
}

.yef-author {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-sm);
}

.yef-author-image {
  width: 40px;
  height: 40px;
  border-radius: var(--yef-radius-full);
  object-fit: cover;
}

.yef-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--yef-primary);
  color: var(--yef-white);
  font-weight: 600;
  border-radius: var(--yef-radius-full);
}

.yef-author-name {
  font-weight: 500;
  color: var(--yef-gray-900);
}

.yef-article-info {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-sm);
  color: var(--yef-gray-500);
  font-size: 0.9375rem;
}

.yef-separator {
  color: var(--yef-gray-300);
}

/* Article Feature Image */
.yef-article-image {
  margin: 0 auto var(--yef-spacing-2xl);
  max-width: 1400px;
}

.yef-article-image img {
  width: 100%;
  border-radius: var(--yef-radius-lg);
}

.yef-article-image figcaption {
  margin-top: var(--yef-spacing-md);
  text-align: center;
  color: var(--yef-gray-500);
  font-size: 0.875rem;
}

/* Article Content */
.yef-article-content {
  max-width: var(--yef-content-max);
  margin: 0 auto;
  padding: var(--yef-spacing-2xl) var(--yef-spacing-lg);
}

.yef-article-content > * + * {
  margin-top: 1.5em;
}

.yef-article-content h2 {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--yef-gray-200);
}

.yef-article-content h3 {
  margin-top: 1.5em;
}

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

.yef-article-content blockquote {
  margin: 2em 0;
  padding: var(--yef-spacing-lg) var(--yef-spacing-xl);
  background-color: var(--yef-gray-50);
  border-left: 4px solid var(--yef-primary);
  font-size: 1.125rem;
  font-style: italic;
}

.yef-article-content pre {
  background-color: var(--yef-gray-900);
  color: var(--yef-gray-100);
  padding: var(--yef-spacing-lg);
  border-radius: var(--yef-radius-md);
  overflow-x: auto;
}

.yef-article-content code {
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.875em;
}

.yef-article-content img {
  border-radius: var(--yef-radius-md);
}

.yef-article-content figure {
  margin: 2em 0;
}

.yef-article-content figcaption {
  margin-top: var(--yef-spacing-sm);
  text-align: center;
  color: var(--yef-gray-500);
  font-size: 0.875rem;
}

/* Article Footer */
.yef-article-footer {
  max-width: var(--yef-content-max);
  margin: 0 auto;
  padding: var(--yef-spacing-xl) var(--yef-spacing-lg);
  border-top: 1px solid var(--yef-gray-200);
  border-bottom: 1px solid var(--yef-gray-200);
}

.yef-article-tags-full {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yef-spacing-sm);
  margin-bottom: var(--yef-spacing-lg);
}

.yef-article-tags-full > span {
  color: var(--yef-gray-500);
  font-weight: 500;
}

.yef-share {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-md);
}

.yef-share > span {
  color: var(--yef-gray-500);
  font-weight: 500;
}

.yef-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--yef-gray-600);
  background-color: var(--yef-gray-100);
  border-radius: var(--yef-radius-full);
  transition: all var(--yef-transition-fast);
}

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

/* Author Box */
.yef-author-box {
  max-width: var(--yef-content-max);
  margin: var(--yef-spacing-2xl) auto;
  padding: 0 var(--yef-spacing-lg);
}

.yef-author-box-inner {
  display: flex;
  gap: var(--yef-spacing-xl);
  padding: var(--yef-spacing-xl);
  background-color: var(--yef-gray-50);
  border-radius: var(--yef-radius-lg);
}

.yef-author-box-image {
  width: 80px;
  height: 80px;
  border-radius: var(--yef-radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.yef-author-box-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--yef-primary);
  color: var(--yef-white);
  font-size: 2rem;
  font-weight: 600;
  border-radius: var(--yef-radius-full);
  flex-shrink: 0;
}

.yef-author-box-content h4 {
  margin-bottom: var(--yef-spacing-sm);
}

.yef-author-box-content h4 a {
  color: var(--yef-gray-900);
}

.yef-author-box-content p {
  color: var(--yef-gray-600);
  margin: 0;
}

/* Related Posts */
.yef-related {
  max-width: var(--yef-container-max);
  margin: 0 auto;
  padding: var(--yef-spacing-2xl) var(--yef-spacing-lg);
}

.yef-related h3 {
  margin-bottom: var(--yef-spacing-xl);
}

.yef-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yef-spacing-xl);
}

@media (min-width: 640px) {
  .yef-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Page Styles
   -------------------------------------------------------------------------- */
.yef-page-header {
  padding: var(--yef-spacing-2xl) 0;
  background-color: var(--yef-white);
}

.yef-page-title {
  font-size: 2.5rem;
  text-align: center;
}

.yef-page-image {
  margin: 0 auto var(--yef-spacing-2xl);
  max-width: 1400px;
}

.yef-page-image img {
  width: 100%;
  border-radius: var(--yef-radius-lg);
}

.yef-page-content {
  max-width: var(--yef-content-max);
  margin: 0 auto;
  padding: var(--yef-spacing-2xl) var(--yef-spacing-lg);
}

/* --------------------------------------------------------------------------
   Archive Pages (Tag/Author)
   -------------------------------------------------------------------------- */
.yef-archive-header {
  padding: var(--yef-spacing-2xl) 0;
  background-color: var(--yef-white);
  text-align: center;
}

.yef-archive-cover {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--yef-spacing-lg);
  border-radius: var(--yef-radius-full);
  overflow: hidden;
}

.yef-archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yef-archive-title {
  margin-bottom: var(--yef-spacing-sm);
}

.yef-archive-description {
  color: var(--yef-gray-600);
  max-width: 600px;
  margin: 0 auto var(--yef-spacing-md);
}

.yef-archive-count {
  display: inline-block;
  padding: var(--yef-spacing-xs) var(--yef-spacing-md);
  background-color: var(--yef-gray-100);
  color: var(--yef-gray-600);
  font-size: 0.875rem;
  border-radius: var(--yef-radius-full);
}

/* Author Archive */
.yef-author-header {
  padding: var(--yef-spacing-2xl) 0;
  background-color: var(--yef-white);
}

.yef-author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--yef-spacing-lg);
}

@media (min-width: 768px) {
  .yef-author-profile {
    flex-direction: row;
    text-align: left;
  }
}

.yef-author-profile-image {
  width: 120px;
  height: 120px;
  border-radius: var(--yef-radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.yef-author-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background-color: var(--yef-primary);
  color: var(--yef-white);
  font-size: 3rem;
  font-weight: 600;
  border-radius: var(--yef-radius-full);
  flex-shrink: 0;
}

.yef-author-name {
  margin-bottom: var(--yef-spacing-sm);
}

.yef-author-bio {
  color: var(--yef-gray-600);
  margin-bottom: var(--yef-spacing-md);
}

.yef-author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yef-spacing-md);
  margin-bottom: var(--yef-spacing-md);
}

.yef-author-location,
.yef-author-website,
.yef-author-social {
  color: var(--yef-gray-500);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Error Pages
   -------------------------------------------------------------------------- */
.yef-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--yef-spacing-3xl) var(--yef-spacing-lg);
  text-align: center;
}

.yef-error .container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.yef-error-content {
  max-width: 500px;
  margin: 0 auto;
}

.yef-error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--yef-primary);
  line-height: 1;
  margin-bottom: var(--yef-spacing-md);
}

.yef-error-message {
  font-size: 1.5rem;
  margin-bottom: var(--yef-spacing-md);
}

.yef-error-description {
  color: var(--yef-gray-600);
  margin-bottom: var(--yef-spacing-xl);
}

.yef-error-actions {
  display: flex;
  justify-content: center;
  gap: var(--yef-spacing-md);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.yef-footer {
  background-color: var(--yef-gray-900);
  color: var(--yef-gray-300);
  padding: var(--yef-spacing-3xl) 0 var(--yef-spacing-xl);
}

.yef-footer h4 {
  color: var(--yef-white);
  font-size: 1rem;
  margin-bottom: var(--yef-spacing-lg);
}

.yef-footer a {
  color: var(--yef-gray-400);
}

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

/* Ensure button text stays white in footer */
.yef-footer .yef-btn-primary {
  color: var(--yef-white) !important;
}

.yef-footer .yef-btn-primary:hover {
  color: var(--yef-white) !important;
}

.yef-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yef-spacing-2xl);
  margin-bottom: var(--yef-spacing-2xl);
}

@media (min-width: 768px) {
  .yef-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yef-footer-spacer {
    display: none;
  }
}

@media (min-width: 1024px) {
  .yef-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .yef-footer-spacer {
    display: block;
  }

  /* 4-column layout with empty 2nd column */
  .yef-footer-grid.yef-footer-grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  /* 3-column layout variant (without newsletter) */
  .yef-footer-grid.yef-footer-grid-3 {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.yef-footer-section p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.yef-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yef-footer-nav li {
  margin-bottom: var(--yef-spacing-sm);
}

.yef-contact-info p {
  margin-bottom: var(--yef-spacing-xs);
}

.yef-subscribed {
  color: var(--yef-success);
  font-weight: 500;
}

.yef-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--yef-spacing-md);
  padding-top: var(--yef-spacing-xl);
  border-top: 1px solid var(--yef-gray-700);
  text-align: center;
}

.yef-footer-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--yef-spacing-sm);
}

.yef-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--yef-spacing-sm) var(--yef-spacing-md);
}

.yef-legal-links a {
  font-size: 0.8125rem;
  color: var(--yef-gray-400);
  transition: color var(--yef-transition-fast);
}

.yef-legal-links a:hover {
  color: var(--yef-white);
}

@media (min-width: 768px) {
  .yef-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .yef-footer-bottom-left {
    align-items: flex-start;
  }
}

.yef-copyright,
.yef-powered-by {
  font-size: 0.875rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Calendar Page Styles
   -------------------------------------------------------------------------- */
.yef-calendar-page {
  padding: var(--yef-spacing-sm) 0;
}

@media screen and (min-width: 1024px) {
  .yef-calendar-page {
    padding: var(--yef-spacing-3xl) 0;
  }
}

.yef-calendar-container {
  padding: var(--yef-spacing-lg) var(--yef-spacing-lg);
}

.yef-calendar-header-inline {
  margin-bottom: var(--yef-spacing-xl);
  text-align: center;
}

.yef-calendar-page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--yef-gray-900);
  margin: 0 0 var(--yef-spacing-md) 0;
}

.yef-calendar-intro {
  max-width: 600px;
  margin: 0 auto;
  color: var(--yef-gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

.yef-calendar-intro p {
  margin: 0;
}

.yef-calendar-excerpt {
  max-width: 700px;
  margin: 0 auto;
  color: var(--yef-gray-600);
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
}

.yef-calendar-excerpt p {
  margin: 0;
}

/* Mobile Tab Navigation */
.yef-calendar-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--yef-spacing-lg);
  background-color: var(--yef-gray-100);
  padding: 4px;
  border-radius: var(--yef-radius-lg);
}

.yef-calendar-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--yef-spacing-xs);
  padding: var(--yef-spacing-sm) var(--yef-spacing-md);
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--yef-gray-500);
  cursor: pointer;
  border-radius: calc(var(--yef-radius-lg) - 2px);
  transition: all var(--yef-transition-fast);
}

.yef-calendar-tab:hover {
  color: var(--yef-gray-700);
}

.yef-calendar-tab.active {
  color: var(--yef-gray-900);
  background-color: var(--yef-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.yef-calendar-tab svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

@media (min-width: 1024px) {
  .yef-calendar-tabs {
    display: none;
  }
}

/* Calendar Grid Layout */
.yef-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: var(--yef-spacing-xl);
}

@media (min-width: 1024px) {
  .yef-calendar-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--yef-spacing-2xl);
  }
}

/* Calendar View */
.yef-calendar-view {
  position: relative;
  background: var(--yef-white);
  border-radius: var(--yef-radius-lg);
  padding: var(--yef-spacing-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

@media (max-width: 1023px) {
  /* Default: agenda visible, calendar hidden */
  .yef-calendar-view {
    display: none;
  }

  .yef-event-list {
    display: flex;
  }

  /* Active states override defaults */
  .yef-calendar-view.active {
    display: block;
  }

  .yef-event-list.active {
    display: flex;
  }

  /* Hide non-active when switching tabs */
  .yef-calendar-view:not(.active) {
    display: none;
  }

  .yef-event-list:not(.active) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .yef-calendar-view,
  .yef-event-list {
    display: block !important;
  }
}

.yef-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--yef-spacing-lg);
}

.yef-calendar-month {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--yef-gray-900);
  margin: 0;
}

.yef-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--yef-gray-200);
  border-radius: var(--yef-radius-md);
  color: var(--yef-gray-600);
  cursor: pointer;
  transition: all var(--yef-transition-fast);
}

.yef-calendar-nav:hover {
  background-color: var(--yef-gray-100);
  color: var(--yef-gray-900);
}

.yef-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--yef-spacing-sm);
}

.yef-calendar-weekdays span {
  text-align: center;
  padding: var(--yef-spacing-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yef-gray-500);
  text-transform: uppercase;
}

.yef-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.yef-calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--yef-spacing-xs);
  border-radius: var(--yef-radius-sm);
  font-size: 0.875rem;
  color: var(--yef-gray-700);
  transition: all var(--yef-transition-fast);
}

.yef-calendar-day.empty {
  background: transparent;
}

.yef-calendar-day.past {
  color: var(--yef-gray-400);
}

.yef-calendar-day.today {
  background-color: var(--yef-primary);
  color: var(--yef-white);
  font-weight: 600;
}

.yef-calendar-day.has-event {
  cursor: pointer;
  font-weight: 600;
}

.yef-calendar-day.has-event:hover {
  background-color: var(--yef-gray-100);
}

.yef-calendar-day.highlight {
  animation: calendarDayPulse 1.5s ease-out;
}

@keyframes calendarDayPulse {
  0%,
  30% {
    background-color: rgba(var(--yef-primary-rgb), 0.3);
    transform: scale(1.05);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

.yef-calendar-day.today.highlight {
  animation: calendarDayPulseToday 1.5s ease-out;
}

@keyframes calendarDayPulseToday {
  0%,
  30% {
    background-color: var(--yef-primary);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(var(--yef-primary-rgb), 0.5);
  }
  100% {
    background-color: var(--yef-primary);
    transform: scale(1);
    box-shadow: none;
  }
}

.yef-calendar-day.today.has-event:hover {
  background-color: var(--yef-primary);
}

.yef-event-dots {
  position: absolute;
  bottom: 12px;
  display: flex;
  gap: 2px;
  justify-content: center;
}

@media (max-width: 1023px) {
  .yef-event-dots {
    bottom: 2px;
  }
}

.yef-event-dot {
  width: 5px;
  height: 5px;
  background-color: var(--ghost-accent-color, var(--yef-accent));
  border-radius: 50%;
  flex-shrink: 0;
}

.yef-calendar-day.today .yef-event-dot {
  background-color: var(--yef-white);
}

.yef-day-number {
  line-height: 1;
}

.yef-calendar-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--yef-radius-lg);
}

.yef-calendar-loading-overlay.hidden {
  display: none;
}

.yef-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--yef-gray-200);
  border-top-color: var(--yef-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.yef-calendar-error {
  color: var(--yef-error, #dc3545);
}

/* Event List */
.yef-event-list {
  background: var(--yef-white);
  border-radius: var(--yef-radius-lg);
  padding: var(--yef-spacing-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

@media (min-width: 1024px) {
  .yef-event-list {
    min-height: 620px;
  }
}

.yef-event-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--yef-gray-900);
  margin: 0 0 var(--yef-spacing-lg) 0;
  padding-bottom: var(--yef-spacing-md);
  border-bottom: 1px solid var(--yef-gray-200);
  flex-shrink: 0;
}

/* Agenda View */
.yef-agenda-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.yef-agenda-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: var(--yef-spacing-sm);
}

.yef-agenda-scroll::-webkit-scrollbar {
  width: 6px;
}

.yef-agenda-scroll::-webkit-scrollbar-track {
  background: var(--yef-gray-100);
  border-radius: 3px;
}

.yef-agenda-scroll::-webkit-scrollbar-thumb {
  background: var(--yef-gray-300);
  border-radius: 3px;
}

.yef-agenda-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--yef-gray-400);
}

/* Agenda Date Group */
.yef-agenda-date-group {
  margin-bottom: var(--yef-spacing-lg);
  padding-top: var(--yef-spacing-md);
  scroll-margin-top: var(--yef-spacing-md);
  border-radius: var(--yef-radius-md);
  transition: background-color 0.3s ease;
}

.yef-agenda-date-group.highlight {
  animation: highlightPulse 2s ease-out forwards;
}

@keyframes highlightPulse {
  0%,
  20% {
    background-color: rgba(var(--yef-primary-rgb), 0.25);
    box-shadow: inset 0 0 0 2px rgba(var(--yef-primary-rgb), 0.3);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.yef-agenda-date-header {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-md);
  margin-bottom: var(--yef-spacing-sm);
  padding-bottom: var(--yef-spacing-sm);
  border-bottom: 2px solid var(--yef-gray-200);
}

.yef-agenda-date-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--yef-primary);
  color: var(--yef-white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--yef-radius-md);
  flex-shrink: 0;
}

.yef-agenda-date-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yef-agenda-date-weekday {
  font-weight: 600;
  color: var(--yef-gray-900);
  font-size: 0.9375rem;
}

.yef-agenda-date-full {
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
}

/* Agenda Events */
.yef-agenda-events {
  display: flex;
  flex-direction: column;
  gap: var(--yef-spacing-xs);
}

.yef-agenda-event {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-md);
  padding: var(--yef-spacing-md);
  background-color: var(--yef-gray-50);
  border-radius: var(--yef-radius-md);
  cursor: pointer;
  transition: all var(--yef-transition-fast);
  border: 1px solid transparent;
}

.yef-agenda-event:hover {
  background-color: var(--yef-white);
  border-color: var(--yef-gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.yef-agenda-event-time {
  min-width: 70px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yef-gray-500);
  flex-shrink: 0;
}

.yef-agenda-event-content {
  flex: 1;
  min-width: 0;
}

.yef-agenda-event-title {
  font-weight: 500;
  color: var(--yef-gray-900);
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yef-agenda-event-location {
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yef-agenda-event-arrow {
  color: var(--yef-gray-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform var(--yef-transition-fast);
}

.yef-agenda-event:hover .yef-agenda-event-arrow {
  transform: translateX(2px);
  color: var(--yef-gray-600);
}

/* Event Detail View */
.yef-event-detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.yef-event-back {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-xs);
  padding: var(--yef-spacing-sm) 0;
  margin-bottom: var(--yef-spacing-md);
  background: none;
  border: none;
  color: var(--yef-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--yef-transition-fast);
  flex-shrink: 0;
}

.yef-event-back:hover {
  opacity: 0.8;
}

.yef-event-detail-content {
  flex: 1;
  overflow-y: auto;
}

.yef-detail-header {
  margin-bottom: var(--yef-spacing-lg);
}

.yef-detail-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--yef-gray-900);
  margin: 0;
  line-height: 1.3;
}

.yef-detail-meta {
  display: flex;
  flex-direction: column;
  gap: var(--yef-spacing-md);
  margin-bottom: var(--yef-spacing-xl);
}

.yef-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--yef-spacing-md);
}

.yef-detail-item svg {
  flex-shrink: 0;
  color: var(--yef-gray-400);
  margin-top: 2px;
}

.yef-detail-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yef-detail-item strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yef-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yef-detail-item span {
  font-size: 0.9375rem;
  color: var(--yef-gray-900);
}

.yef-detail-description {
  padding-top: var(--yef-spacing-lg);
  border-top: 1px solid var(--yef-gray-200);
}

.yef-detail-description h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yef-gray-700);
  margin: 0 0 var(--yef-spacing-md) 0;
}

.yef-detail-description p {
  font-size: 0.9375rem;
  color: var(--yef-gray-600);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.yef-detail-description a,
.yef-detail-item a {
  color: var(--yef-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.yef-detail-description a:hover,
.yef-detail-item a:hover {
  text-decoration: none;
}

.yef-event-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--yef-spacing-2xl);
  color: var(--yef-gray-400);
  text-align: center;
}

.yef-event-empty svg {
  margin-bottom: var(--yef-spacing-md);
}

/* Day Events (popup) */
.yef-day-events {
  margin-bottom: var(--yef-spacing-xl);
  padding-bottom: var(--yef-spacing-lg);
  border-bottom: 1px solid var(--yef-gray-200);
}

.yef-day-events h4 {
  font-size: 1rem;
  color: var(--yef-primary);
  margin: 0 0 var(--yef-spacing-md) 0;
}

.yef-day-events ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yef-day-events li {
  padding: var(--yef-spacing-sm) 0;
  border-bottom: 1px solid var(--yef-gray-100);
}

.yef-day-events li:last-child {
  border-bottom: none;
}

.yef-day-events li strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
  margin-bottom: 2px;
}

.yef-day-events li span {
  display: block;
  font-weight: 500;
}

.yef-day-events li small {
  display: block;
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
  margin-top: 4px;
}

/* Upcoming Events */
.yef-upcoming-events h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yef-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--yef-spacing-md) 0;
}

.yef-upcoming-events ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yef-event-item {
  display: flex;
  gap: var(--yef-spacing-md);
  padding: var(--yef-spacing-md) 0;
  border-bottom: 1px solid var(--yef-gray-100);
}

.yef-event-item:last-child {
  border-bottom: none;
}

.yef-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: var(--yef-spacing-sm);
  background-color: var(--yef-gray-100);
  border-radius: var(--yef-radius-md);
}

.yef-event-day {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yef-gray-900);
  line-height: 1;
}

.yef-event-month {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--yef-gray-500);
  text-transform: uppercase;
}

.yef-event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yef-event-info strong {
  font-size: 0.9375rem;
  color: var(--yef-gray-900);
  margin-bottom: 2px;
}

.yef-event-info span {
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
}

.yef-event-info small {
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
  margin-top: 4px;
}

.yef-calendar-content {
  margin-top: var(--yef-spacing-2xl);
  padding-top: var(--yef-spacing-xl);
  border-top: 1px solid var(--yef-gray-200);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .yef-article-title {
    font-size: 1.75rem;
  }

  .yef-hero-title {
    font-size: 2rem;
  }

  .yef-author-box-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Ghost Specific: kg-* classes for editor content
   -------------------------------------------------------------------------- */
.kg-width-wide {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-image-card img {
  width: 100%;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: var(--yef-spacing-md);
}

.kg-gallery-row {
  display: flex;
  gap: var(--yef-spacing-md);
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-bookmark-card {
  border: 1px solid var(--yef-gray-200);
  border-radius: var(--yef-radius-md);
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
}

.kg-bookmark-content {
  flex: 1;
  padding: var(--yef-spacing-lg);
}

.kg-bookmark-title {
  font-weight: 600;
  color: var(--yef-gray-900);
  margin-bottom: var(--yef-spacing-sm);
}

.kg-bookmark-description {
  font-size: 0.875rem;
  color: var(--yef-gray-600);
}

.kg-bookmark-thumbnail {
  width: 200px;
  flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button Card */
.kg-button-card {
  text-align: center;
}

.kg-btn {
  display: inline-block;
  padding: var(--yef-spacing-md) var(--yef-spacing-xl);
  background-color: var(--ghost-accent-color, var(--yef-primary));
  color: var(--yef-white);
  font-weight: 600;
  border-radius: var(--yef-radius-md);
  text-decoration: none;
}

/* Callout Card */
.kg-callout-card {
  padding: var(--yef-spacing-lg);
  border-radius: var(--yef-radius-md);
  display: flex;
  gap: var(--yef-spacing-md);
}

.kg-callout-card-grey {
  background-color: var(--yef-gray-100);
}

.kg-callout-emoji {
  font-size: 1.5rem;
}

/* Toggle Card */
.kg-toggle-card {
  border: 1px solid var(--yef-gray-200);
  border-radius: var(--yef-radius-md);
  overflow: hidden;
}

.kg-toggle-heading {
  padding: var(--yef-spacing-lg);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kg-toggle-content {
  padding: 0 var(--yef-spacing-lg) var(--yef-spacing-lg);
}

/* Video Card */
.kg-video-card {
  position: relative;
}

.kg-video-container {
  position: relative;
  padding-bottom: 56.25%;
}

.kg-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Audio Card */
.kg-audio-card {
  background-color: var(--yef-gray-100);
  padding: var(--yef-spacing-lg);
  border-radius: var(--yef-radius-md);
}

/* Bookmark Card - Additional required classes */
.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-sm);
  margin-top: var(--yef-spacing-md);
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--yef-radius-sm);
}

.kg-bookmark-author {
  color: var(--yef-gray-600);
}

.kg-bookmark-author::after {
  content: "•";
  margin: 0 var(--yef-spacing-xs);
  color: var(--yef-gray-400);
}

.kg-bookmark-publisher {
  color: var(--yef-gray-500);
}

/* --------------------------------------------------------------------------
   Social Icons
   -------------------------------------------------------------------------- */
.yef-social-links {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-md);
}

.yef-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--yef-gray-400);
  background-color: var(--yef-gray-800);
  border-radius: var(--yef-radius-full);
  transition: all var(--yef-transition-fast);
}

.yef-social-link:hover {
  color: var(--yef-white);
  background-color: var(--yef-primary);
}

.yef-social-link svg {
  width: 18px;
  height: 18px;
}
/* --------------------------------------------------------------------------
   Email Subscription Form Component
   -------------------------------------------------------------------------- */
.yef-subscribe-form {
  width: 100%;
}

.yef-subscribe-fields {
  display: flex;
  flex-direction: column;
  gap: var(--yef-spacing-sm);
}

@media (min-width: 480px) {
  .yef-subscribe-fields {
    flex-direction: row;
  }
}

.yef-subscribe-input {
  flex: 1;
  padding: var(--yef-spacing-sm) var(--yef-spacing-md);
  font-size: 1rem;
  border: 1px solid var(--yef-gray-300);
  border-radius: var(--yef-radius-md);
  background-color: var(--yef-white);
  transition:
    border-color var(--yef-transition-fast),
    box-shadow var(--yef-transition-fast);
}

.yef-subscribe-input:focus {
  outline: none;
  border-color: var(--yef-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.yef-subscribe-input::placeholder {
  color: var(--yef-gray-400);
}

.yef-subscribe-btn {
  position: relative;
  min-width: 140px;
  overflow: hidden;
}

.yef-subscribe-btn-text,
.yef-subscribe-btn-loader,
.yef-subscribe-btn-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--yef-spacing-xs);
}

.yef-subscribe-btn-loader,
.yef-subscribe-btn-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.yef-subscribe-btn svg {
  width: 16px;
  height: 16px;
}

/* Loading state */
.yef-subscribe-form[data-members-form].loading .yef-subscribe-btn-text {
  opacity: 0;
}

.yef-subscribe-form[data-members-form].loading .yef-subscribe-btn-loader {
  opacity: 1;
}

/* Success state */
.yef-subscribe-form[data-members-form].success .yef-subscribe-btn-text {
  opacity: 0;
}

.yef-subscribe-form[data-members-form].success .yef-subscribe-btn-success {
  opacity: 1;
}

.yef-subscribe-error {
  margin-top: var(--yef-spacing-sm);
  font-size: 0.875rem;
  color: var(--yef-error);
}

.yef-subscribe-error:empty {
  display: none;
}

/* Loader animation */
.yef-loader circle {
  opacity: 0.4;
  transform: scale(0.75);
  transform-origin: center;
  animation: yef-loader-pulse 0.8s infinite;
}

.yef-loader circle:nth-child(1) {
  transform-origin: 4px 12px;
  animation-delay: -0.3s;
}

.yef-loader circle:nth-child(2) {
  transform-origin: 12px 12px;
  animation-delay: -0.15s;
}

.yef-loader circle:nth-child(3) {
  transform-origin: 20px 12px;
}

@keyframes yef-loader-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.75);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Checkmark animation */
.yef-checkmark path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: yef-checkmark-stroke 0.3s ease forwards;
}

@keyframes yef-checkmark-stroke {
  to {
    stroke-dashoffset: 0;
  }
}

/* --------------------------------------------------------------------------
   Icon Button Component
   -------------------------------------------------------------------------- */
.yef-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--yef-gray-600);
  cursor: pointer;
  transition:
    color var(--yef-transition-fast),
    background-color var(--yef-transition-fast);
  border-radius: var(--yef-radius-md);
}

.yef-icon-btn:hover {
  color: var(--yef-primary);
  background-color: var(--yef-gray-100);
}

.yef-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Navigation Component (updated for partials)
   -------------------------------------------------------------------------- */
.yef-navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--yef-white);
  /* border-bottom: 1px solid var(--yef-gray-200); */
  box-shadow: var(--yef-shadow-sm);
}

.yef-navigation-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--yef-spacing-md);
  padding-top: var(--yef-spacing-xs);
  padding-bottom: var(--yef-spacing-xs);
}

/* Mobile Left Group (Burger + Search) */
.yef-navigation-left {
  display: none;
}

/* Mobile Right Group (Search + Burger) */
.yef-navigation-right {
  display: flex;
  align-items: center;
  gap: 0;
}

@media (min-width: 1024px) {
  .yef-navigation-right {
    display: none;
  }
}

.yef-navigation-brand {
  flex-shrink: 0;
}

.yef-navigation-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--yef-gray-900);
  font-weight: 700;
  font-size: 1.25rem;
}

.yef-navigation-logo img {
  height: 44px;
  width: auto;
}

@media (min-width: 768px) {
  .yef-navigation-logo img {
    height: 56px;
  }
}

.yef-navigation-menu {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .yef-navigation-menu {
    display: flex;
  }
}

.yef-navigation-menu ul {
  display: flex;
  align-items: center;
  gap: var(--yef-spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.yef-navigation-menu a {
  font-weight: 500;
  color: var(--yef-gray-700);
  text-decoration: none;
  transition: color var(--yef-transition-fast);
}

.yef-navigation-menu a:hover {
  color: var(--yef-primary);
}

.yef-navigation-actions {
  display: none;
  align-items: center;
  gap: var(--yef-spacing-sm);
}

@media (min-width: 1024px) {
  .yef-navigation-actions {
    display: flex;
  }
}

.yef-navigation-search-desktop {
  display: flex;
}

.yef-navigation-cta {
  display: none;
}

@media (min-width: 768px) {
  .yef-navigation-cta {
    display: flex;
    align-items: center;
  }
}

/* Burger menu button */
.yef-burger {
  display: flex;
}

@media (min-width: 1024px) {
  .yef-burger {
    display: none;
  }
}

.yef-burger-close {
  display: none;
}

.yef-burger.is-active .yef-burger-open {
  display: none;
}

.yef-burger.is-active .yef-burger-close {
  display: flex;
}

/* Mobile Navigation Menu Open State */
.yef-navigation-menu.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--yef-white);
  border-bottom: 1px solid var(--yef-gray-200);
  padding: var(--yef-spacing-lg);
  box-shadow: var(--yef-shadow-lg);
  z-index: 99;
}

.yef-navigation-menu.is-open ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.yef-navigation-menu.is-open a {
  display: block;
  padding: var(--yef-spacing-md) 0;
  border-bottom: 1px solid var(--yef-gray-100);
}

.yef-navigation-menu.is-open a:last-child {
  border-bottom: none;
}

/* Button size variant */
.yef-btn-sm {
  padding: var(--yef-spacing-xs) var(--yef-spacing-md);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Featured Posts Component
   -------------------------------------------------------------------------- */
.yef-featured {
  padding: var(--yef-spacing-xl) 0;
  background-color: var(--yef-gray-50);
  border-radius: var(--yef-radius-lg);
}

.yef-featured-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yef-primary);
  margin-bottom: var(--yef-spacing-lg);
  padding: 0 var(--yef-spacing-lg);
}

.yef-featured-feed {
  display: flex;
  flex-direction: column;
  gap: var(--yef-spacing-md);
}

.yef-featured-card {
  display: flex;
  align-items: flex-start;
  gap: var(--yef-spacing-md);
  padding: 0 var(--yef-spacing-lg);
}

.yef-featured-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--yef-radius-md);
  overflow: hidden;
}

.yef-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yef-featured-content {
  flex: 1;
  min-width: 0;
}

.yef-featured-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 var(--yef-spacing-xs);
}

.yef-featured-card-title a {
  color: var(--yef-gray-900);
  text-decoration: none;
}

.yef-featured-card-title a:hover {
  color: var(--yef-primary);
}

.yef-featured-content time {
  font-size: 0.8125rem;
  color: var(--yef-gray-500);
}

/* --------------------------------------------------------------------------
   Footer Contact Info with Icons
   -------------------------------------------------------------------------- */
.yef-footer .yef-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: var(--yef-spacing-sm);
  margin-bottom: var(--yef-spacing-sm);
}

.yef-footer .yef-contact-info svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--yef-gray-400);
}

.yef-footer .yef-contact-info span,
.yef-footer .yef-contact-info a {
  flex: 1;
}

/* Footer newsletter section with email form */
.yef-footer-newsletter .yef-subscribe-input {
  background-color: var(--yef-gray-800);
  border-color: var(--yef-gray-700);
  color: var(--yef-white);
}

.yef-footer-newsletter .yef-subscribe-input::placeholder {
  color: var(--yef-gray-500);
}

.yef-footer-newsletter .yef-subscribe-input:focus {
  border-color: var(--yef-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.3);
}

/* Footer logo */
.yef-footer-logo {
  margin-bottom: var(--yef-spacing-md);
}

.yef-footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.yef-footer-logo .yef-site-title {
  color: var(--yef-white);
  font-weight: 700;
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   CTA Component (updated) - Centered layout
   -------------------------------------------------------------------------- */
.yef-cta .yef-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--yef-spacing-lg);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.yef-cta-title {
  font-size: 1.75rem;
  color: var(--yef-white);
  margin-bottom: 0;
}

.yef-cta-description {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.yef-cta-form {
  width: 100%;
  max-width: 450px;
  margin-top: var(--yef-spacing-sm);
}

.yef-cta .yef-subscribe-input {
  background-color: var(--yef-white);
  border-color: transparent;
}

.yef-cta .yef-subscribe-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.yef-cta-subscribed {
  padding: var(--yef-spacing-lg);
}
