@media (prefers-reduced-motion: reduce) {
  .animate-marquee,
  .animate-spin-slow,
  .animate-breathe,
  .animate-breathe-ring {
    animation: none !important;
  }
}

.w3cm-owl .owl-nav {
  margin-top: 1rem;
}

.w3cm-owl .owl-nav button.owl-prev,
.w3cm-owl .owl-nav button.owl-next {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #1e3a5a !important;
  color: #fff !important;
  font-size: 1.25rem;
}

.w3cm-owl .owl-nav button.owl-prev:hover,
.w3cm-owl .owl-nav button.owl-next:hover {
  background: #152a42 !important;
}

.w3cm-owl .owl-dots .owl-dot span {
  background: #cbd5e1;
}

.w3cm-owl .owl-dots .owl-dot.active span,
.w3cm-owl .owl-dots .owl-dot:hover span {
  background: #1e3a5a;
}

.w3cm-owl .owl-stage-outer {
  border-radius: 1rem;
}

#reviews-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

#reviews-carousel .owl-item {
  display: flex;
}

#reviews-carousel .owl-item > .item {
  width: 100%;
  display: flex;
  height: 100%;
}

#reviews-carousel .owl-item article {
  width: 100%;
  flex: 1 1 auto;
  min-height: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body.w3cm-drawer-open {
  overflow: hidden;
}

.w3cm-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.w3cm-drawer-panel.is-open {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .w3cm-drawer-overlay,
  .w3cm-drawer-panel {
    transition: none !important;
  }
}

/* Blog rich text (TinyMCE / admin HTML) */
.blog-excerpt p,
.blog-content p {
  margin-top: 1rem;
  line-height: 1.75;
  color: #475569;
}

.blog-excerpt > :first-child,
.blog-content > :first-child {
  margin-top: 0;
}

.blog-content {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.blog-excerpt a,
.blog-content a {
  color: #1e3a5a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-excerpt a:hover,
.blog-content a:hover {
  color: #152a42;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.blog-content h2 {
  font-size: 1.75rem;
}

.blog-content h3 {
  font-size: 1.375rem;
}

.blog-content h4 {
  font-size: 1.125rem;
}

.blog-content ul,
.blog-content ol {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
}

.blog-content ul {
  list-style: disc;
}

.blog-content ol {
  list-style: decimal;
}

.blog-content li {
  margin-top: 0.35rem;
}

.blog-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 4px solid #1e3a5a;
  color: #64748b;
  background: #f8fafc;
}

.blog-content pre,
.blog-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
}

.blog-content pre {
  margin: 1.25rem 0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #e2e8f0;
}

.blog-content :not(pre) > code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  background: #f1f5f9;
  color: #0f172a;
}

.blog-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 0.75rem;
}

.blog-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.blog-content th,
.blog-content td {
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.blog-content th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.blog-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.blog-content strong,
.blog-content b {
  font-weight: 700;
  color: #0f172a;
}

/* Blog skeleton loading (see blog-skeleton.js) */
html:not(.blog-loading) [data-blog-skeleton] {
  display: none;
}

html.blog-loading [data-blog-skeleton] {
  display: block;
}

html.blog-loading [data-blog-content] {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.blog-skeleton-panel--hide {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Homepage section skeleton loading (see section-skeleton.js) */
section:not(.section-loading) [data-section-skeleton] {
  display: none;
}

section.section-loading {
  position: relative;
}

section.section-loading [data-section-skeleton] {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
}

.section-skeleton-panel--hide {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
