/* ============================================
   THEME 262 - Custom Styles
   GeneratePress Child Theme
   ============================================ */

/* CSS Variables */
:root {
  /* Colors - Light Mode */
  --color-background: #FDF8F3;
  --color-foreground: #1A1A2E;
  --color-card: #FFFFFF;
  --color-card-foreground: #1A1A2E;
  --color-primary: #E86A33;
  --color-primary-foreground: #FFFFFF;
  --color-secondary: #FFF5EE;
  --color-secondary-foreground: #E86A33;
  --color-muted: #F5EBE0;
  --color-muted-foreground: #6B7280;
  --color-accent: #FF8C42;
  --color-accent-foreground: #FFFFFF;
  --color-border: #E5DDD5;
  
  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'DM Sans', sans-serif;
  
  /* Shadows */
  --shadow-elegant: 0 4px 20px -4px rgba(232, 106, 51, 0.15);
  --shadow-gold: 0 8px 32px -8px rgba(232, 106, 51, 0.25);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #E86A33 0%, #FF8C42 50%, #FFB366 100%);
  --gradient-subtle: linear-gradient(180deg, #FDF8F3 0%, #FFFFFF 100%);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-foreground);
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ============================================
   Container & Layout
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Ensure blog sections use full container width */
.blog-section .container,
.wp-block-latest-posts {
  width: 100%;
  max-width: 1280px;
}

/* Remove any max-width constraints on blog content areas */
.entry-content .wp-block-latest-posts,
.wp-block-post-content .wp-block-latest-posts {
  max-width: none !important;
  width: 100% !important;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(40, 30%, 98%, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(40, 20%, 85%, 0.5);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: hsla(40, 30%, 98%, 0.95);
  box-shadow: 0 2px 10px hsla(220, 30%, 15%, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-foreground);
}

.logo-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
  background: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.main-navigation a {
  font-family: var(--font-sans);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-foreground);
}

.header-cta {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
}

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-foreground);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .menu-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.active {
  display: flex;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin: 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  transition: color 0.3s ease;
  text-decoration: none;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item a {
  color: var(--color-foreground);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Button size modifiers for header */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-gold.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-gold.btn-full {
  width: 100%;
  text-align: center;
}

.cm-btn-gold,
.btn-gold,
.wp-block-button__link,
button[type="submit"] {
  background: var(--gradient-gold);
  color: var(--color-primary-foreground);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-elegant);
  text-decoration: none;
  display: inline-block;
}

.cm-btn-gold:hover,
.btn-gold:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.cm-btn-outline,
.btn-gold-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 26px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cm-btn-outline:hover,
.btn-gold-outline:hover {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-hero {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-gold);
}

.btn-hero:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px -4px hsla(28, 90%, 48%, 0.4);
}

.btn-hero-secondary {
  background: transparent;
  border: 1px solid hsla(220, 30%, 15%, 0.2);
  color: var(--foreground);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  padding: 1.25rem 2rem;
  font-weight: 500;
}

.btn-hero-secondary:hover {
  background: var(--secondary);
  border-color: hsla(220, 30%, 15%, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

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

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, hsl(40, 30%, 96%) 0%, hsl(40, 30%, 98%) 70%);
  z-index: -1;
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 10%;
  width: 18rem;
  height: 18rem;
  background: hsla(28, 90%, 48%, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 10%;
  width: 24rem;
  height: 24rem;
  background: hsla(28, 90%, 48%, 0.05);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 80rem;
  padding: 0 1.5rem;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--secondary);
  border-radius: 9999px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-foreground);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.trust-indicators {
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.trust-indicators-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  opacity: 0.6;
}

.trust-logo-item {
  padding: 0.75rem 1.5rem;
  border: 1px solid hsla(40, 20%, 85%, 0.5);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
  padding: 4rem 0;
  background: hsla(40, 25%, 93%, 0.5);
  border-top: 1px solid hsla(40, 20%, 85%, 0.5);
  border-bottom: 1px solid hsla(40, 20%, 85%, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.125rem);
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, hsla(40, 25%, 93%, 0.3), transparent);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.section-description {
  color: var(--color-muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

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

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

.service-card {
  padding: 2rem;
  background: var(--gradient-card);
  border-radius: 1rem;
  border: 1px solid hsla(40, 20%, 85%, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: hsla(28, 90%, 48%, 0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.75rem;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
  background: hsla(28, 90%, 48%, 0.2);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
  color: var(--primary);
}

.service-card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials-section {
  padding: 6rem 0;
  background: hsla(40, 25%, 93%, 0.3);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.testimonial-card {
  padding: 2rem;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid hsla(40, 20%, 85%, 0.5);
}

.testimonial-quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: hsla(28, 90%, 48%, 0.3);
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.testimonial-author {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.testimonial-company {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   Blog Section
   ============================================ */

.blog-section {
  padding: 6rem 0;
}

.blog-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .blog-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.blog-header-content {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .blog-header-content {
    margin-bottom: 0;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

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

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.blog-card,
.cm-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  min-width: 0;
}

.blog-card:hover {
  border-color: rgba(232, 106, 51, 0.3);
  box-shadow: var(--shadow-gold);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.blog-category-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
  font-family: var(--font-display);
}

.blog-card:hover .blog-card-title {
  color: var(--color-primary);
}

.blog-card-excerpt {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  /* Allow full excerpt to display - remove line-clamp for better readability */
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.blog-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, hsl(40, 30%, 96%) 0%, hsl(40, 30%, 98%) 70%);
  opacity: 0.5;
  z-index: -1;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: hsla(28, 90%, 48%, 0.05);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.cta-content {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

.footer,
.site-footer {
  padding: 3rem 0;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-brand {
  max-width: 28rem;
}

.footer-description {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-foreground);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(232, 106, 51, 0.2);
  color: var(--color-primary);
}

.footer-title {
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsla(40, 20%, 85%, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

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

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ============================================
   Blog Post Page
   ============================================ */

.blog-post-page {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.blog-post-back:hover {
  color: var(--primary);
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr 340px;
  }
}

.blog-post-content {
  max-width: none;
}

.blog-post-category {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.blog-post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-post-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.blog-post-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.blog-post-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--foreground);
}

.blog-post-body p {
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.blog-post-body strong {
  font-weight: 600;
}

.blog-post-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.blog-post-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-post-body li {
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.blog-post-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--muted-foreground);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ============================================
   Utilities
   ============================================ */

.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* ============================================
   BLOG CARDS (matching working theme)
   ============================================ */

.cm-blog-card {
  background: var(--color-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.cm-blog-card:hover {
  border-color: rgba(232, 106, 51, 0.3);
  box-shadow: var(--shadow-gold);
}

.cm-blog-card .featured-image img {
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.cm-blog-card .entry-title {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.cm-blog-card .entry-title a:hover {
  color: var(--color-primary);
}

.cm-category-badge {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* ============================================
   SINGLE POST STYLES (matching working theme)
   ============================================ */

.single-post .entry-header {
  max-width: 800px;
  margin: 0 auto;
}

.single-post .featured-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.single-post .entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.single-post .entry-content h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.single-post .entry-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single-post blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-muted-foreground);
}

/* Inline CTA Box */
.cm-inline-cta {
  background: linear-gradient(to right, rgba(232, 106, 51, 0.1), rgba(232, 106, 51, 0.05));
  border: 1px solid rgba(232, 106, 51, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.cm-inline-cta h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Key Insight Box */
.cm-key-insight {
  background: var(--color-secondary);
  border: 1px solid rgba(232, 106, 51, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.cm-key-insight strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================
   SIDEBAR CTA (matching working theme)
   ============================================ */

.cm-sidebar-cta-wrap { position: sticky; top: 100px; align-self: flex-start; }

.cm-sidebar-cta {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  margin-bottom: 1rem;
  /*padding: 2rem;*/
  position: static; !important
  top: auto; !important
}

.cm-sidebar-cta-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ============================================
   AUTHOR BOX (matching working theme)
   ============================================ */

.cm-author-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.cm-author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 106, 51, 0.2), rgba(232, 106, 51, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cm-author-avatar span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cm-author-info p {
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE (matching working theme)
   ============================================ */

/* ============================================
   ARCHIVE / BLOG LIST STYLES
   ============================================ */

.blog-section {
  padding: 4rem 0;
}

.blog-header {
  margin-bottom: 3rem;
}

.blog-header-content {
  text-align: center;
}

@media (min-width: 768px) {
  .blog-header {
    text-align: left;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

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

/* Pagination */
.pagination,
.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.pagination .page-numbers,
.navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.navigation .page-numbers:hover,
.pagination .page-numbers.current,
.navigation .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

.pagination .page-numbers.dots,
.navigation .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

.pagination .page-numbers.dots:hover,
.navigation .page-numbers.dots:hover {
  background: transparent;
  color: var(--color-foreground);
}

/* ============================================
   PAGE TEMPLATE STYLES
   ============================================ */

.single-page {
  padding: 4rem 0;
}

.single-page .entry-header {
  text-align: center;
  margin-bottom: 3rem;
}

.single-page .entry-content {
  color: var(--color-foreground);
}

.single-page .entry-content p {
  margin-bottom: 1.5rem;
}

.single-page .entry-content h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.single-page .entry-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.single-page .entry-content h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.single-page .entry-content ul,
.single-page .entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.single-page .entry-content li {
  margin-bottom: 0.75rem;
  width: 100%;
}

.single-page .entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-muted-foreground);
}

.single-page .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0 0 1rem 0;
}

.single-page .entry-content a:not(.wp-block-latest-posts__post-title) {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.single-page .entry-content a:hover {
  color: var(--color-accent);
}

.single-page .page-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.single-page .page-links a {
  color: var(--color-primary);
  text-decoration: none;
  margin: 0 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
}

.single-page .page-links a:hover {
  background: var(--color-secondary);
  border-color: var(--color-primary);
}

/* ============================================
   RESPONSIVE (matching working theme)
   ============================================ */

@media (max-width: 768px) {
  .cm-author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .cm-blog-card .entry-title {
    font-size: 1rem;
  }
  
  .cm-post-layout {
    grid-template-columns: 1fr !important;
  }
  
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  
  .single-page {
    padding: 2rem 0;
  }
  
  .single-page .entry-content {
    font-size: 1rem;
  }
}

/* ============================================
   WORDPRESS BLOCK EDITOR - LATEST POSTS
   ============================================ */

/* Style WordPress Latest Posts Block */
.wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .wp-block-latest-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .wp-block-latest-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.wp-block-latest-posts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .wp-block-latest-posts__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .wp-block-latest-posts__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.wp-block-latest-posts li,
.wp-block-latest-posts__post {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
  list-style: none;
  margin: 0;
  padding: 15px;
  width: 100%;
  min-width: 0; /* Allow flex items to shrink below content size */
}

.wp-block-latest-posts li:hover,
.wp-block-latest-posts__post:hover {
  border-color: rgba(232, 106, 51, 0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Featured Image */
.wp-block-latest-posts__featured-image,
.wp-block-latest-posts li img,
.wp-block-latest-posts__post img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  margin: 0;
}

.wp-block-latest-posts li:hover img,
.wp-block-latest-posts__post:hover img {
  transform: scale(1.05);
}

/* Post Content Wrapper */
.wp-block-latest-posts__post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0; /* Allow content to shrink */
}

/* Post Title */
.wp-block-latest-posts__post-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-block-latest-posts__post-title a {
  text-decoration: none;
  color: #1A1A2E;
  transition: color 0.3s ease;
}

.wp-block-latest-posts li:hover .wp-block-latest-posts__post-title a,
.wp-block-latest-posts__post:hover .wp-block-latest-posts__post-title a {
  color: var(--color-primary);
}

/* Post Excerpt - Respect block settings, don't force truncation */
.wp-block-latest-posts__post-excerpt {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  /* Remove line-clamp to show full excerpt as configured in block */
}

.wp-block-latest-posts__post-excerpt p {
  margin-bottom: 0.5rem;
  color: var(--color-muted-foreground);
}

.wp-block-latest-posts__post-excerpt p:last-child {
  margin-bottom: 0;
}

/* Post Date */
.wp-block-latest-posts__post-date {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}

/* Post Author */
.wp-block-latest-posts__post-author {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* Read More Link */
.wp-block-latest-posts__post-excerpt + a
/*.wp-block-latest-posts li a:not(.wp-block-latest-posts__post-title a):not(.wp-block-latest-posts__featured-image a)*/ {
  color: var(--color-primary);
/*  font-size: 0.875rem; */
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
}

.wp-block-latest-posts li a:not(.wp-block-latest-posts__post-title a):not(.wp-block-latest-posts__featured-image a):hover {
  text-decoration: underline;
}

/* Grid Layout Support */
.wp-block-latest-posts.is-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .wp-block-latest-posts.is-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .wp-block-latest-posts.is-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Ensure proper spacing for block wrapper */
.wp-block-latest-posts__list > li {
  margin-bottom: 0;
}

/* Category Badge Support (if using custom fields) */
.wp-block-latest-posts__post-category {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 9999px;
  margin-bottom: 1rem;
  width: fit-content;
}

/* Ensure block wrapper uses full width */
.wp-block-latest-posts__list-wrapper,
.wp-block-latest-posts > .wp-block-latest-posts__list {
  width: 100%;
}

/* Fix any container constraints */
.entry-content .wp-block-latest-posts,
.wp-block-post-content .wp-block-latest-posts {
  max-width: 100%;
  width: 100%;
}

