/*
 Theme Name: Jared Darter - Enhanced
 Theme URI: https://jareddarter.com
 Author: Jared Darter
 Author URI: https://jareddarter.com
 Description: v2.0 - Modern styling with video backgrounds, enhanced blog layout, improved video section, and better mobile experience
 Version: 2.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: jared-darter
*/

/* Enhanced CSS variables with professional color palette */
:root {
  --jd-bg: #fafbfc;
  --jd-primary: #0f172a;
  --jd-primary-soft: #1e293b;
  --jd-accent: #3b82f6;
  --jd-accent-dark: #2563eb;
  --jd-accent-light: #60a5fa;
  --jd-accent-soft: #93c5fd;
  --jd-button-bg: #3b82f6;
  --jd-button-bg-hover: #2563eb;
  --jd-button-text: #ffffff;
  --jd-text-main: #0f172a;
  --jd-text-soft: #475569;
  --jd-text-muted: #64748b;
  --jd-header-bg: #0f172a;
  --jd-header-text: #ffffff;
  --jd-border: #e5e7eb;
}

/* Base reset & enhanced typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--jd-text-main);
  background-color: var(--jd-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--jd-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--jd-accent-dark);
}

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

/* Layout */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* Enhanced Header */
.site-header {
  background: var(--jd-header-bg);
  color: var(--jd-header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding .custom-logo {
  max-height: 60px;
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
}

.site-branding .custom-logo:hover {
  transform: scale(1.05);
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-title a {
  color: var(--jd-header-text);
  transition: opacity 0.2s ease;
}

.site-title a:hover {
  opacity: 0.85;
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Enhanced Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jd-accent);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
  width: 100%;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--jd-accent-light);
}

/* Mobile nav */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--jd-header-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .main-navigation ul {
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 4rem;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--jd-header-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 200px;
  }

  .main-navigation ul li {
    padding: 0.75rem 1rem;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ========================================
   ANNOUNCEMENT CARD (Integrated in Hero)
   ======================================== */
.hero-announcement {
  justify-self: center;
  animation: fadeInUp 0.6s ease 0.5s backwards;
}

.hero-announcement-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--jd-accent) 0%, var(--jd-accent-light) 100%);
}

.hero-announcement-card.style-success::before {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.hero-announcement-card.style-warning::before {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.announcement-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  text-align: center;
}

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

.announcement-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jd-accent);
  margin: 0 0 1rem;
}

.hero-announcement-card.style-success .announcement-heading {
  color: #10b981;
}

.hero-announcement-card.style-warning .announcement-heading {
  color: #f59e0b;
}

.hero-announcement-card .announcement-text {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--jd-primary);
  margin: 0 0 1.5rem;
}

.announcement-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--jd-accent) 0%, var(--jd-accent-dark) 100%);
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hero-announcement-card.style-success .announcement-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.hero-announcement-card.style-warning .announcement-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.announcement-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.hero-announcement-card.style-success .announcement-btn:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.hero-announcement-card.style-warning .announcement-btn:hover {
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* ========================================
   ENHANCED HERO with Video/Photo Background
   ======================================== */
.hero {
  position: relative;
  color: #ffffff;
  padding: 5rem 1.5rem 4rem;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video background container */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Photo background with slideshow support */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
}

/* Fallback gradient background */
.hero-background-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
}

/* Overlay for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(2, 6, 23, 0.85) 100%);
  z-index: 1;
}

/* Accent overlay for visual interest */
.hero-accent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 3;
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jd-accent-light);
  margin-bottom: 1rem;
  display: inline-block;
  animation: fadeInUp 0.6s ease;
}

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

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 36rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-highlight {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
}

.hero-highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jd-accent) 0%, var(--jd-accent-light) 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

/* Enhanced Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.btn-primary {
  background: linear-gradient(135deg, var(--jd-accent) 0%, var(--jd-accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--jd-accent-dark) 0%, #1d4ed8 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  animation: fadeInUp 0.6s ease 0.5s backwards;
}

/* Hero media */
.hero-media {
  justify-self: center;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-media-video .hero-video-wrapper {
  width: 100%;
  max-width: 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-media-video .hero-video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-media-video .hero-video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.hero-media-video .hero-video-wrapper iframe,
.hero-media-video .hero-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   ENHANCED VIDEO SECTION (Mobile-Friendly)
   ======================================== */
.section-videos {
  padding: 5rem 1.5rem;
  background: #ffffff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  background: #000;
}

.video-embed:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.video-embed iframe,
.video-embed embed,
.video-embed object,
.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video loading placeholder */
.video-embed::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid rgba(59, 130, 246, 0.3);
  border-top-color: var(--jd-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0.5;
  z-index: 0;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.video-embed iframe {
  z-index: 1;
}

/* Video section title and description */
.section-videos .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-videos .section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--jd-primary);
  margin-bottom: 1rem;
}

.section-videos .section-subtitle {
  font-size: 1.125rem;
  color: var(--jd-text-soft);
  max-width: 700px;
  margin: 0 auto;
}

/* Enhanced Sections */
.section {
  padding: 3rem 1.5rem;
  background: var(--jd-bg);
}

.section.alt {
  background: #ffffff;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jd-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--jd-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--jd-text-soft);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Enhanced Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--jd-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--jd-accent) 0%, #8b5cf6 100%);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--jd-primary);
}

.service-body {
  font-size: 1rem;
  color: var(--jd-text-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--jd-border);
  font-size: 0.875rem;
  color: var(--jd-text-muted);
  font-style: italic;
}

/* Enhanced Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--jd-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  border: 3px solid var(--jd-accent-soft);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.testimonial-quote {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--jd-text-soft);
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-size: 2.5rem;
  color: var(--jd-accent-soft);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--jd-primary);
}

/* Enhanced Contact CTA */
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--jd-primary-soft) 0%, var(--jd-primary) 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-cta-text {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.contact-cta-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.contact-cta-subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.contact-cta .btn {
  position: relative;
  z-index: 1;
}

/* ========================================
   BLOG GRID LAYOUT (Like Premier Weddings)
   ======================================== */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--jd-primary);
  margin: 0 0 1rem;
}

.blog-page-subtitle {
  font-size: 1.125rem;
  color: var(--jd-text-soft);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.blog-grid-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.blog-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--jd-accent-soft);
}

.blog-grid-image {
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.blog-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-grid-item:hover .blog-grid-image img {
  transform: scale(1.05);
}

.blog-grid-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #94a3b8;
}

.blog-grid-content {
  padding: 1.75rem;
}

.blog-grid-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.blog-grid-title a {
  color: var(--jd-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-grid-title a:hover {
  color: var(--jd-accent);
}

.blog-grid-excerpt {
  margin-bottom: 1.25rem;
  color: var(--jd-text);
  line-height: 1.6;
}

.blog-grid-excerpt p {
  margin: 0;
  font-size: 1rem;
}

.blog-grid-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--jd-text-soft);
}

.blog-grid-meta time {
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  background: #ffffff;
  color: var(--jd-primary);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--jd-accent);
  color: #ffffff;
  border-color: var(--jd-accent);
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

.no-posts {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--jd-text-soft);
}

/* ========================================
   OLD BLOG LIST STYLES - REMOVED
   ======================================== */
.blog-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

.blog-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--jd-primary);
}

.blog-header p {
  font-size: 1.125rem;
  color: var(--jd-text-soft);
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  border: 1px solid var(--jd-border);
}

.blog-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--jd-accent-soft);
}

.blog-post-thumbnail {
  flex-shrink: 0;
  width: 280px;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--jd-bg);
}

.blog-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-item:hover .blog-post-thumbnail img {
  transform: scale(1.05);
}

.blog-post-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-post-item:hover .blog-post-thumbnail::after {
  opacity: 1;
}

.blog-post-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--jd-text-muted);
}

.blog-post-date,
.blog-post-author {
  display: inline-block;
}

.blog-post-date::before {
  content: '';
}

.blog-post-author::before {
  content: '';
}

.blog-post-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--jd-primary);
}

.blog-post-title a {
  color: var(--jd-primary);
  transition: color 0.2s ease;
  text-decoration: none;
}

.blog-post-title a:hover {
  color: var(--jd-accent);
}

.blog-post-excerpt {
  margin: 0 0 1.5rem;
  color: var(--jd-text-soft);
  line-height: 1.7;
  flex: 1;
}

.blog-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--jd-accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.blog-read-more:hover {
  color: var(--jd-accent-dark);
  gap: 0.75rem;
}

.blog-read-more::after {
  content: '→';
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.blog-read-more:hover::after {
  transform: translateX(4px);
}

.blog-post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--jd-bg);
  color: var(--jd-accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.blog-category:hover {
  background: var(--jd-accent);
  color: #ffffff;
}

/* ========================================
   ENHANCED SINGLE POST PAGE
   ======================================== */
.single-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.post-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--jd-accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.post-back-button:hover {
  color: var(--jd-accent-dark);
  gap: 0.75rem;
}

.post-back-button::before {
  content: '←';
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.post-back-button:hover::before {
  transform: translateX(-4px);
}

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

.single-post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: var(--jd-primary);
  line-height: 1.2;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--jd-text-muted);
  margin-bottom: 2rem;
}

.single-post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.single-post-content {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--jd-primary);
  line-height: 1.3;
}

.single-post-content h2 {
  font-size: 1.875rem;
  border-bottom: 2px solid var(--jd-border);
  padding-bottom: 0.5rem;
}

.single-post-content h3 {
  font-size: 1.5rem;
}

.single-post-content h4 {
  font-size: 1.25rem;
}

.single-post-content p {
  margin: 0 0 1.5rem;
  line-height: 1.8;
  font-size: 1.0625rem;
  color: var(--jd-text-main);
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-post-content ul,
.single-post-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
  line-height: 1.8;
}

.single-post-content li {
  margin-bottom: 0.75rem;
  color: var(--jd-text-main);
}

.single-post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--jd-bg);
  border-left: 4px solid var(--jd-accent);
  border-radius: 8px;
  font-style: italic;
  color: var(--jd-text-soft);
}

.single-post-content code {
  background: var(--jd-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--jd-accent-dark);
}

.single-post-content pre {
  background: var(--jd-primary);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.single-post-content pre code {
  background: none;
  color: #ffffff;
  padding: 0;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--jd-border);
}

.post-nav-link {
  flex: 1;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--jd-border);
  transition: all 0.3s ease;
  text-align: center;
}

.post-nav-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--jd-accent);
}

.post-nav-label {
  font-size: 0.875rem;
  color: var(--jd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.post-nav-title {
  color: var(--jd-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

/* Content typography */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--jd-primary);
}

.entry-content h1 {
  font-size: 2.25rem;
}

.entry-content h2 {
  font-size: 1.875rem;
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content p {
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

/* Button styling for content area - multiple methods */
/* Catches: bold links, links with button class, and standalone links */
.entry-content p > strong > a,
.entry-content p > a > strong,
.entry-content strong a,
.entry-content a strong,
.entry-content a.button,
.entry-content a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--jd-accent) 0%, var(--jd-accent-dark) 100%);
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  margin: 0.5rem 0;
}

.entry-content p > strong > a:hover,
.entry-content p > a > strong:hover,
.entry-content strong a:hover,
.entry-content a strong:hover,
.entry-content a.button:hover,
.entry-content a.btn:hover {
  background: linear-gradient(135deg, var(--jd-accent-dark) 0%, #1d4ed8 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

/* Specific styling for contact/quote links */
.entry-content a[href*="contact"],
.entry-content a[href*="quote"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--jd-accent) 0%, var(--jd-accent-dark) 100%);
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  margin: 0.5rem 0;
}

.entry-content a[href*="contact"]:hover,
.entry-content a[href*="quote"]:hover {
  background: linear-gradient(135deg, var(--jd-accent-dark) 0%, #1d4ed8 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

/* Enhanced Footer */
.site-footer {
  background: var(--jd-header-bg);
  color: #94a3b8;
  padding: 2.5rem 1.5rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: #e2e8f0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--jd-accent-light);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
    min-height: 500px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-media,
  .hero-announcement {
    order: -1;
  }

  .hero-announcement-card {
    max-width: 100%;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .contact-cta {
    padding: 2.5rem 2rem;
    text-align: center;
    justify-content: center;
  }

  .entry-content {
    padding: 2rem 1.5rem;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .single-post-content {
    padding: 2rem 1.5rem;
  }

  .post-navigation {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
    min-height: 400px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-cta {
    padding: 2rem 1.5rem;
  }

  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 2rem 1.5rem;
  }

  .entry-content {
    padding: 1.5rem 1.25rem;
  }

  .video-grid {
    gap: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-post-content {
    padding: 1.5rem;
  }

  .blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .single-post-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .single-post-content {
    padding: 1.5rem 1.25rem;
  }

  /* Announcement card mobile */
  .hero-announcement-card {
    padding: 1.5rem;
  }

  .announcement-icon {
    font-size: 2.5rem;
  }

  .hero-announcement-card .announcement-text {
    font-size: 1rem;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
