/**
 * Way To Care - Block Styles & Layout
 * Custom open source styles for WayToCare
 * License: MIT | Version: 1.0.0 | Date: 2026-01-31
 */

/* ============================================
   CSS Variables - Color Mapping
   ============================================ */
:root {
  /* Theme Color Variables */
  --wp--preset--color--wtc-theme-primary: #0057a8;
  --wp--preset--color--wtc-theme-primary-variant: #1e88e5;
  --wp--preset--color--wtc-theme-primary-contrast: var(--wtc-white, #ffffff);
  --wp--preset--color--wtc-theme-primary-contrast-variant: var(--wtc-secondary, #f5f5f5);
  --wp--preset--color--wtc-theme-secondary: var(--wtc-secondary-contrast, #2d2d2d);
  --wp--preset--color--wtc-theme-secondary-variant: var(--wtc-secondary-contrast-variant, #666666);
  --wp--preset--color--wtc-theme-secondary-contrast: var(--wtc-secondary, #f5f5f5);
  --wp--preset--color--wtc-theme-secondary-contrast-variant: var(--wtc-white, #ffffff);
  --wp--preset--color--wtc-theme-nochange-white: #ffffff;
  --wp--preset--color--wtc-theme-nochange-grey: #555555;
  --wp--preset--color--wtc-theme-nochange-transparent: transparent;
  
  /* Spacing Variables */
  --wp--preset--spacing--2: 2px;
  --wp--preset--spacing--4: 4px;
  --wp--preset--spacing--8: 8px;
  --wp--preset--spacing--16: 16px;
  --wp--preset--spacing--32: 32px;
  --wp--preset--spacing--48: 48px;
  --wp--preset--spacing--64: 64px;
}

/* ============================================
   Global Reset
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
}

/* ============================================
   Theme Color Classes
   ============================================ */
.has-wtc-theme-primary-color { color: var(--wp--preset--color--wtc-theme-primary); }
.has-wtc-theme-primary-background-color { background-color: var(--wp--preset--color--wtc-theme-primary); }
.has-wtc-theme-primary-variant-color { color: var(--wp--preset--color--wtc-theme-primary-variant); }
.has-wtc-theme-primary-variant-background-color { background-color: var(--wp--preset--color--wtc-theme-primary-variant); }
.has-wtc-theme-primary-variant-border-color { border-color: var(--wp--preset--color--wtc-theme-primary-variant); }
.has-wtc-theme-primary-contrast-color { color: var(--wp--preset--color--wtc-theme-primary-contrast); }
.has-wtc-theme-primary-contrast-background-color { background-color: var(--wp--preset--color--wtc-theme-primary-contrast); }
.has-wtc-theme-secondary-color { color: var(--wp--preset--color--wtc-theme-secondary); }
.has-wtc-theme-secondary-background-color { background-color: var(--wp--preset--color--wtc-theme-secondary); }
.has-wtc-theme-secondary-contrast-color { color: var(--wp--preset--color--wtc-theme-secondary-contrast); }
.has-wtc-theme-secondary-contrast-background-color { background-color: var(--wp--preset--color--wtc-theme-secondary-contrast); }
.has-wtc-theme-nochange-white-color { color: var(--wp--preset--color--wtc-theme-nochange-white); }
.has-wtc-theme-nochange-white-background-color { background-color: var(--wp--preset--color--wtc-theme-nochange-white); }
.has-wtc-theme-nochange-grey-color { color: var(--wp--preset--color--wtc-theme-nochange-grey); }

/* ============================================
   Layout & Alignment Classes
   ============================================ */
.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.alignwide {
  max-width: var(--wtc-theme-wide-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .alignwide { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 992px) {
  .alignwide { padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1025px) {
  .alignwide { padding-left: 0; padding-right: 0; }
}

.align-center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Layout Flow Classes */
.is-layout-flow > * + * { margin-top: 1.25em; }
.is-layout-flow > *:first-child { margin-top: 0; }
.is-layout-flow > *:last-child { margin-bottom: 0; }

.is-layout-constrained {
  max-width: var(--wtc-theme-wide-width, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.is-layout-constrained > * + * { margin-top: 1.25em; }

/* Flex Layout */
.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.is-layout-flex.is-horizontal { flex-direction: row; }
.is-layout-flex.is-vertical { flex-direction: column; }

.is-content-justification-center { justify-content: center; }
.is-content-justification-left { justify-content: flex-start; }
.is-content-justification-right { justify-content: flex-end; }
.is-content-justification-space-between { justify-content: space-between; }

.is-vertically-aligned-top { align-items: flex-start; }
.is-vertically-aligned-center { align-items: center; }
.is-vertically-aligned-bottom { align-items: flex-end; }

/* ============================================
   Block Styles
   ============================================ */
/* Group Block */
.wp-block-group { box-sizing: border-box; }
.wp-block-group.has-background { padding: 1.25em 2.375em; }

/* Columns Block */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  box-sizing: border-box;
}

.wp-block-column {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-wrap: wrap !important;
  }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* Cover Block */
.wp-block-cover {
  position: relative;
  background-size: cover;
  background-position: center center;
  min-height: 430px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
}

.wp-block-cover.has-parallax {
  background-attachment: fixed;
}

@supports (-webkit-overflow-scrolling: touch) {
  .wp-block-cover.has-parallax {
    background-attachment: scroll;
  }
}


.wp-block-cover__inner-container {
  color: #fff; /* Default white for dark backgrounds */
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wtc-theme-wide-width, 1200px);
}

/* Ensure headings in cover blocks are visible */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover h4 {
  color: #fff;
}

.wp-block-cover__image-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  z-index: 0;
}

.has-background-dim::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: inherit;
  opacity: 0.5;
  z-index: 0;
}

.has-background-dim-0::before { opacity: 0; }
.has-background-dim-10::before { opacity: 0.1; }
.has-background-dim-20::before { opacity: 0.2; }
.has-background-dim-30::before { opacity: 0.3; }
.has-background-dim-40::before { opacity: 1; }
.has-background-dim-50::before { opacity: 0.5; }
.has-background-dim-60::before { opacity: 0.6; }
.has-background-dim-70::before { opacity: 0.7; }
.has-background-dim-80::before { opacity: 0.8; }
.has-background-dim-90::before { opacity: 0.9; }
.has-background-dim-100::before { opacity: 1; }

/* Image Block */
.wp-block-image { max-width: 100%; margin-bottom: 0; }
.wp-block-image img { height: auto; max-width: 100%; vertical-align: bottom; }
.wp-block-image.alignfull img,
.wp-block-image.alignwide img { width: 100%; }
.wp-block-image figure { margin: 0; }
.wp-block-image figcaption { margin-top: 0.5em; text-align: center; font-size: 0.875em; color: #666; }

/* Site Logo */
.wp-block-site-logo { line-height: 0; }
.wp-block-site-logo a { display: inline-block; }
.wp-block-site-logo img { max-width: 100%; height: auto; }
.wp-block-site-logo.is-style-rounded img { border-radius: 9999px; }

/* Heading Block */
.wp-block-heading { margin-top: 0; margin-bottom: 0; }

/* Headline Styles  */
h1, .wp-block-heading.has-large-font-size {
  font-family: var(--wtc-theme-headline-1-fontfamily, 'Varela Round', sans-serif);
  font-size: var(--wtc-theme-desktop-headline-1-fontsize, 50px);
  font-weight: var(--wtc-theme-headline-1-fontweight, 400);
  line-height: 1.25;
  color: var(--wtc-theme-headline-1-text-color, inherit);
}

h2, h2.wp-block-heading:not(.has-large-font-size) {
  font-family: var(--wtc-theme-headline-2-fontfamily, 'Varela Round', sans-serif);
  font-size: var(--wtc-theme-desktop-headline-2-fontsize, 39px);
  font-weight: var(--wtc-theme-headline-2-fontweight, 400);
  line-height: 1.25;
  color: #0057a8;
  margin-top: 24px;
  margin-bottom: 24px;
}

h3 {
  font-family: var(--wtc-theme-headline-3-fontfamily, 'Varela Round', sans-serif);
  font-size: var(--wtc-theme-desktop-headline-3-fontsize, 24px);
  line-height: 1.3;
  color: #0057a8;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 16px;
}

h3.wp-block-heading {
  font-family: var(--wtc-theme-headline-3-fontfamily, 'Varela Round', sans-serif);
  font-size: 24px !important;
  line-height: 1.3;
  color: #0057a8;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 16px;
}

h4 {
  font-family: var(--wtc-theme-headline-4-fontfamily, 'Varela Round', sans-serif);
  font-size: var(--wtc-theme-desktop-headline-4-fontsize, 21px);
  font-weight: var(--wtc-theme-headline-4-fontweight, 700);
  line-height: 1.35;
}

@media (max-width: 768px) {
  h1, .wp-block-heading.has-large-font-size {
    font-size: var(--wtc-theme-tablet-headline-1-fontsize, 39px);
  }
  h2, h2.wp-block-heading:not(.has-large-font-size) {
    font-size: var(--wtc-theme-tablet-headline-2-fontsize, 32px);
  }
}

/* Paragraph */
.wp-block-paragraph { margin-bottom: 0; }
.wp-block-paragraph.has-large-font-size { font-size: 1.25em; line-height: 1.6; }

/* List Block */
.wp-block-list { margin: 0; padding-left: 1.5em; }
.wp-block-list li { margin-bottom: 0.5em; }

/* Separator Block */
.wp-block-separator {
  border: none;
  border-bottom: 1px solid currentColor;
  margin: 0 auto;
  opacity: 1;
  background-color: #0057a8 !important;
  height: 1px !important;
  padding: 0 !important;
}
.wp-block-separator.is-style-wide { width: 100%; }
.wp-block-separator.has-background,
.wp-block-separator.is-style-wide,
.wp-block-separator.has-wtc-theme-primary-background-color {
  background-color: #0057a8 !important;
  height: 1px !important;
  padding: 0 !important;
  border: none;
  margin: 0 auto;
}
.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  line-height: 1;
  background: none !important;
}
.wp-block-separator.is-style-dots::before {
  content: "···";
  font-size: 1.5em;
  letter-spacing: 2em;
  padding-left: 2em;
}

/* Spacer Block */
.wp-block-spacer { clear: both; }

/* Button Block */
.wp-block-button { display: inline-block; }
.wp-block-button__link {
  display: inline-block;
  padding: 11px 21px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: #0057a8;
  color: #fff;
  border: 2px solid transparent;
}

.wp-block-button__link:hover {
  background-color: #1e88e5;
}
.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: #0057a8;
  border: 2px solid currentColor;
}
.is-style-outline .wp-block-button__link:hover {
  background-color: #0057a8;
  color: #fff;
}
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.wp-element-button {
  display: inline-block;
  padding: 11px 21px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--wtc-theme-button-border-radius, 10px);
  background-color: var(--wtc-theme-button-background-color, var(--wtc-primary));
  color: var(--wtc-theme-button-text-color, #fff);
  transition: all 0.2s ease;
}
.wp-element-button:hover {
  background-color: var(--wtc-theme-button-hover-color, var(--wtc-primary-variant));
}

/* Social Links */
.wp-block-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0;
  margin: 0;
  list-style: none;
}
.wp-block-social-link { list-style: none; margin: 0 !important; }
.wp-block-social-link a { display: flex; align-items: center; justify-content: center; padding: 0.5em; }

/* Embed */
.wp-embed-responsive { position: relative; width: 100%; }
.wp-embed-responsive figure.wp-block-embed { margin: 0; }
.wp-embed-responsive iframe { width: 100%; height: auto; aspect-ratio: 16/9; }

/* ============================================
   Page Container
   ============================================ */
.wtc-theme-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--wtc-theme-page-background-color, #fff);
  color: var(--wtc-theme-page-text-color, #333);
}

.wtc-theme-content { flex: 1; position: relative; z-index: 0; margin-top: 99px; }
.wtc-theme-main { }
.wtc-theme-entry-content { }
.wtc-theme-page { }
.wtc-theme-post { }

.wtc-theme-font {
  font-family: var(--wtc-font-primary, 'Roboto', sans-serif);
}

.wtc-theme-no-js .wtc-theme-navigation-mobile-drawer { display: none; }
.wtc-theme-stop-transition * { transition: none !important; }

/* ============================================
   Header & Navigation
   ============================================ */
header.wtc-theme-header {
  display: flex;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: var(--wtc-theme-header-background-color, #fff);
  min-height: var(--wtc-theme-navigation-height, 80px);
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.wtc-theme-header-position--sticky {
  position: fixed !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.wtc-theme-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wtc-theme-wide-width, 1200px);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .wtc-theme-header-container { padding: 0 24px; }
}

.wtc-theme-logo-navigation-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wtc-theme-logo-main { flex-shrink: 0; }
.wtc-theme-logo-main a { display: block; line-height: 0; }
.wtc-theme-logo-main img {
  max-height: var(--wtc-theme-logo-size-height, 50px);
  width: auto;
  height: auto;
}

/* Desktop Navigation */
.wtc-theme-navigation--desktop { display: none; }

@media (min-width: 1025px) {
  .wtc-theme-navigation--desktop { display: block; }
  .wtc-theme-navigation--mobile { display: none; }
}

.wtc-theme-navigation-main__menu ul {
  display: flex;
  align-items: center;
  gap: 0.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wtc-theme-navigation-main__menu li { position: relative; margin: 0 !important; }

.wtc-theme-navigation-main__menu a {
  display: block;
  padding: 0.5em 1em;
  color: var(--wtc-theme-navigation-1-text-color, #333);
  text-decoration: none;
  font-family: var(--wtc-theme-navigation-1-fontfamily, inherit);
  font-weight: var(--wtc-theme-navigation-1-fontweight, 500);
  font-size: var(--wtc-theme-desktop-navigation-1-fontsize, 1rem);
  transition: color 0.2s ease;
}

.wtc-theme-navigation-main__menu a:hover,
.wtc-theme-navigation-main__menu .current-menu-item > a {
  color: var(--wtc-theme-navigation-1-active-text-color, var(--wtc-primary));
}

/* Mobile Navigation */
.wtc-theme-navigation--mobile { display: block; }

@media (min-width: 1025px) {
  .wtc-theme-navigation--mobile { display: none; }
}

/* Hamburger Menu */
.wtc-theme-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 101;
}

@media (min-width: 1025px) {
  .wtc-theme-hamburger { display: none; }
}

.wtc-theme-hamburger__container {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wtc-theme-hamburger__lines {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--wtc-theme-hamburger-line-color, #333);
  position: relative;
  transition: all 0.3s ease;
}

.wtc-theme-hamburger__lines::before,
.wtc-theme-hamburger__lines::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--wtc-theme-hamburger-line-color, #333);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.wtc-theme-hamburger__lines::before { transform: translateY(-8px); }
.wtc-theme-hamburger__lines::after { transform: translateY(8px); }

/* Hamburger Active State */
.wtc-theme-hamburger--active .wtc-theme-hamburger__lines {
  background-color: transparent;
}

.wtc-theme-hamburger--active .wtc-theme-hamburger__lines::before {
  transform: rotate(45deg);
  background-color: var(--wtc-theme-hamburger-active-line-color, #333);
}

.wtc-theme-hamburger--active .wtc-theme-hamburger__lines::after {
  transform: rotate(-45deg);
  background-color: var(--wtc-theme-hamburger-active-line-color, #333);
}

/* Mobile Drawer */
.wtc-theme-navigation-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 320px;
  height: 100vh;
  background-color: var(--wtc-theme-navigation-hamburger-background-color, #fff);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 60px 0 0 0;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.wtc-theme-navigation-mobile-drawer.menu-open {
  transform: translateX(0);
}

.wtc-theme-navigation-mobile-drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wtc-theme-navigation-mobile-drawer.menu-open + .wtc-theme-navigation-mobile-drawer__overlay,
.wtc-theme-navigation-mobile-drawer__overlay.visible {
  opacity: 1;
  visibility: visible;
}

.wtc-theme-navigation-mobile-drawer__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wtc-theme-navigation-mobile-drawer__menu li { margin: 0 !important; }

.wtc-theme-navigation-mobile-drawer__menu a {
  display: block;
  padding: 12px 24px;
  color: var(--wtc-theme-navigation-1-text-color, #333);
  text-decoration: none;
  font-size: var(--wtc-theme-mobile-navigation-1-fontsize, 1rem);
  font-weight: var(--wtc-theme-navigation-1-fontweight, 500);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.wtc-theme-navigation-mobile-drawer__menu a:hover,
.wtc-theme-navigation-mobile-drawer__menu .current-menu-item > a {
  color: var(--wtc-theme-navigation-1-active-text-color, var(--wtc-primary));
  background-color: rgba(0,0,0,0.02);
}

.wtc-theme-navigation-mobile-drawer__components { }

/* ============================================
   Icon Block
   ============================================ */
.wtc-icon-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtc-icon-constrained { max-width: 100%; }

.wtc-icon-svg-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtc-icon-svg-wrapper svg {
  width: 100%;
  height: auto;
}

/* ============================================
   Animation Classes
   ============================================ */
/* Fade animations */
.wtc-cs-fade-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wtc-cs-fade-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wtc-cs-fade-zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Flip animations */
.wtc-cs-flip-top {
  opacity: 0;
  transform: perspective(400px) rotateX(-90deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wtc-cs-flip-right {
  opacity: 0;
  transform: perspective(400px) rotateY(90deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hover effects */
.wtc-cs-hvr-grow {
  transition: transform 0.3s ease;
}

.wtc-cs-hvr-grow:hover {
  transform: scale(1.05);
}

/* Loop animation */
.wtc-cs-loop-drop {
  animation: wtc-drop 2s ease-in-out infinite;
}

@keyframes wtc-drop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Visible state for scroll animations */
.wtc-cs-fade-left.is-visible,
.wtc-cs-fade-right.is-visible,
.wtc-cs-fade-zoom-in.is-visible,
.wtc-cs-flip-top.is-visible,
.wtc-cs-flip-right.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) rotateX(0) rotateY(0) scale(1);
}

/* ============================================
   Miscellaneous Utility Classes
   ============================================ */
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

.has-background { padding: 1.25em 2.375em; }
.has-border-color { border-width: 1px; border-style: solid; }

.has-text-color { }
.has-link-color a { color: inherit; }
.has-alpha-channel-opacity { }

.has-large-font-size { font-size: 1.25em !important; }
.has-medium-font-size { font-size: 1.125em !important; }
.has-small-font-size { font-size: 0.875em !important; }

/* Font style variations */
.is-style-wtc-theme-font--varela-round {
  font-family: var(--wtc-font-secondary, 'Varela Round', sans-serif);
}

.is-style-wtc-theme-block-paragraph-small-text {
  font-size: var(--wtc-theme-desktop-small-text-fontsize, 14px);
  color: var(--wtc-theme-small-text-color, #666);
}

/* Custom logo */
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { max-width: 100%; height: auto; }

/* Body class helpers */
.wp-singular { }
.hentry { }
.home { }
.wp-embed-responsive { }
.essential { }
.analytics { }
.intrinsic-ignore { }
.wtc-theme { }

/* ============================================
   Link Transitions
   ============================================ */
main a {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* ============================================
   Hyphenation Control
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  hyphens: manual;
  -webkit-hyphens: manual;
  -ms-hyphens: manual;
}

p {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .wtc-theme-header,
  .wtc-theme-navigation-mobile-drawer,
  .wtc-theme-hamburger { display: none !important; }
  
  .alignfull, .alignwide { max-width: 100%; padding: 0; }
  .wp-block-cover { min-height: auto; page-break-inside: avoid; }
}

/* ============================================
   H1 Size Override - Match Original Design
   ============================================ */
.wp-block-cover h1,
.wp-block-cover h1.wp-block-heading,
h1.wp-block-heading {
  font-size: 50px;
  line-height: 1.25;
  margin-top: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .wp-block-cover h1,
  .wp-block-cover h1.wp-block-heading,
  h1.wp-block-heading {
    font-size: 39px;
  }
}

@media (max-width: 768px) {
  .wp-block-cover h1,
  .wp-block-cover h1.wp-block-heading,
  h1.wp-block-heading {
    font-size: 34px;
  }
}

/* ============================================
   Spacer + Columns spacing fix
   Remove extra margin after spacer elements
   ============================================ */
.wp-block-spacer + .wp-block-columns {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* ============================================
   Paragraph spacing for content pages
   Add spacing between consecutive paragraphs
   ============================================ */
.wp-block-group__inner-container.is-layout-constrained > p:not(:first-child),
.wtc-theme-content p + p {
  margin-top: 1em !important;
}

/* ============================================
   H2 spacing - add more space before H2 headings
   when they follow paragraphs or other content
   ============================================ */
.wp-block-group__inner-container.is-layout-constrained > p + h2,
.wp-block-group__inner-container.is-layout-constrained > p + h3.wp-block-heading,
.wp-block-group__inner-container.is-layout-constrained > h2:not(:first-child),
.wp-block-group__inner-container.is-layout-constrained > h3.wp-block-heading:not(:first-child) {
  margin-top: 2em !important;
}

/* ============================================
   Accordion header text color fix
   Ensure headings inside accordion headers are white
   ============================================ */
.wtc-accordion-header h3,
.wtc-accordion-header h3.wp-block-heading,
.wtc-accordion-header-inner-block h3,
.wtc-accordion-header-inner-block h3.wp-block-heading {
  color: #ffffff !important;
}

/* Button Override - ensure correct styling */
.wp-block-button__link,
.wp-block-button__link.wp-element-button,
.is-style-fill .wp-block-button__link {
  background-color: #0057a8 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  padding: 11px 21px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #fff !important;
}
.wp-block-button__link:hover,
.wp-block-button__link.wp-element-button:hover {
  background-color: #1e88e5 !important;
}

/* Accordion header H3 - smaller font size */
.wtc-accordion-header h3,
.wtc-accordion-header h3.wp-block-heading,
.wtc-accordion-header-inner-block h3,
.wtc-accordion-header-inner-block h3.wp-block-heading {
  font-size: 21px !important;
  font-weight: 700 !important;
}

/* Form submit button - match original styling */
input[type="submit"].wtc-form-field,
input[type="submit"].wtc-form-element,
.wtc-form-field-submit input[type="submit"] {
  background-color: #0057a8 !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 11px 21px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  border: 2px solid transparent !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
input[type="submit"].wtc-form-field:hover,
input[type="submit"].wtc-form-element:hover,
.wtc-form-field-submit input[type="submit"]:hover {
  background-color: #1e88e5 !important;
}
/* ============================================
   Cover Block Video Background Fix
   ============================================ */
.wp-block-cover video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
}

/* Cover block layout fix */
.wp-block-cover {
  overflow: hidden !important;
}
.wp-block-cover__inner-container {
  max-height: none;
}

/* Animation Trigger - when element is in viewport */
[cm-animate-play].wtc-cs-fade-left,
[cm-animate-play].wtc-cs-fade-right,
[cm-animate-play].wtc-cs-fade-zoom-in,
[cm-animate-play].wtc-cs-flip-top,
[cm-animate-play].wtc-cs-flip-right {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) rotateX(0) rotateY(0) scale(1) !important;
}

/* Contact Form Layout */
.wtc-form-wrap *, .wtc-form-wrap :after, .wtc-form-wrap :before {
  box-sizing: border-box;
}
.wtc-form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
CSSEOF # Add form layout CSS part 1

/* Contact Form Layout */
.wtc-form-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.wtc-form-cell { flex: 1 1 0; padding: 0 10px; min-width: 200px; }
.wtc-form-row .wtc-form-cell { flex: 0 0 50%; max-width: 50%; }
@media (max-width: 600px) { .wtc-form-row .wtc-form-cell { flex: 0 0 100%; max-width: 100%; } }


/* Contact Form Fields - Enhanced Styling */
.wtc-form-cont { width: 100%; }
.wtc-form-fields-wrap { width: 100%; }
.wtc-form-row { display: flex; flex-wrap: wrap; margin: 0 -10px 15px; }
.wtc-form-cell { flex: 0 0 50%; max-width: 50%; padding: 0 10px; box-sizing: border-box; }
.wtc-form-cell.wtc-form-multi-cell { flex: 0 0 100%; max-width: 100%; }
.wtc-form-field-label, .wtc-form-label { display: block; margin-bottom: 8px; font-weight: 500; color: #0c3c60; }
.wtc-form-field-label .wtc-form-required, .wtc-form-req-symbol { color: #d32f2f; margin-left: 2px; }
.wtc-form-field input[type="text"], .wtc-form-field input[type="email"], .wtc-form-field input[type="tel"],
.wtc-form-element, .wtc-form-cont input[type="text"], .wtc-form-cont input[type="email"], .wtc-form-cont input[type="tel"] {
  width: 100%; padding: 12px 15px; border: 1px solid #b0c4d8; border-radius: 4px;
  font-size: 16px; font-family: inherit; background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; box-sizing: border-box;
}
.wtc-form-field textarea, .wtc-form-cont textarea {
  width: 100%; min-height: 150px; padding: 12px 15px; border: 1px solid #b0c4d8; border-radius: 4px;
  font-size: 16px; font-family: inherit; background: #fff; resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; box-sizing: border-box;
}
.wtc-form-field input:focus, .wtc-form-field textarea:focus,
.wtc-form-cont input:focus, .wtc-form-cont textarea:focus {
  outline: none; border-color: #0057a8; box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}
.wtc-form-field-checkbox, .listcheckbox-wrap { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0; }
.wtc-form-field-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
@media (max-width: 600px) { .wtc-form-cell { flex: 0 0 100%; max-width: 100%; } }

/* Form Fields - Match waytocare.de original style */
.wtc-form-field input[type="text"],
.wtc-form-field input[type="email"],
.wtc-form-field input[type="tel"],
.wtc-form-element {
  font-size: 20px !important;
  padding: 8px !important;
  border: 2px inset #767676 !important;
  border-radius: 0 !important;
}
.wtc-form-field textarea {
  font-size: 20px !important;
  padding: 8px !important;
  border: 1px solid #767676 !important;
  border-radius: 0 !important;
}
.wtc-form-field-label {
  font-weight: 300 !important;
  color: #0c0c0c !important;
}

/* Textarea - full width */
.wtc-form-field textarea, .wtc-form-cont textarea {
  width: 100% !important;
  font-size: 20px !important;
  padding: 8px !important;
  border: 1px solid #767676 !important;
  border-radius: 0 !important;
}

/* Checkbox field - flex layout for label-right */
.wtc-form-field-container.label-right .wtc-form-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

/* Checkbox input - reset width */
.wtc-form-field-container.label-right input[type="checkbox"],
input[type="checkbox"].wtc-form-element {
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border: revert !important;
  margin: 3px 0 0 0 !important;
  flex-shrink: 0 !important;
}

/* Checkbox label */
.wtc-form-field-container.label-right .wtc-form-field-label { flex: 1; }
.wtc-form-field-container.label-right .wtc-form-field-label label {
  font-size: 16px; line-height: 20px; font-weight: 300; color: #0c0c0c;
}

/* Form cell with inline width:100% should be full width */
.wtc-form-cell[style*="width:100%"],
.wtc-form-cell[style*="width: 100%"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Checkbox - match waytocare.de alignment */
.wtc-form-field-container.label-right input[type="checkbox"],
input[type="checkbox"].wtc-form-element {
  margin: 0 !important;
  vertical-align: baseline !important;
}

/* Submit button - not full width */
.wtc-form-field-submit input[type="submit"],
input[type="submit"].wtc-form-element {
  width: auto !important;
  display: inline-block !important;
}

/* Required symbol (*) - red color */
.wtc-form-req-symbol,
.wtc-form-req-symbol {
  color: #e80000 !important;
}

/* Fields required text - spacing */
.wtc-form-fields-required {
  margin-bottom: 16px !important;
}

/* Contact info links - blue color #0057a8 */
a[href^="tel:"], a[href^="mailto:"] {
  color: #0057a8 !important;
}

/* Form fields - lighter border like waytocare.de */
.wtc-form-field input[type="text"],
.wtc-form-field input[type="email"],
.wtc-form-field input[type="tel"],
.wtc-form-element {
  border: 1px solid #b0c4d8 !important;
  border-radius: 0 !important;
}

/* Checkbox - horizontally centered with label */
.wtc-form-field-container.label-right .wtc-form-field {
  align-items: center !important;
}

/* Textarea - lighter border */
.wtc-form-field textarea {
  border: 1px solid #b0c4d8 !important;
}

/* Animation FIXED - fade-left */
.wtc-cs-fade-left {
  opacity: 0 !important;
  transform: translateX(-100px) !important;
  transition: 0.6s ease-in-out !important;
}
.wtc-cs-fade-left[cm-animate-play] {
  transform: translateX(0px) !important;
  opacity: 1 !important;
}

/* Animation FIXED - fade-right */
.wtc-cs-fade-right {
  opacity: 0 !important;
  transform: translateX(100px) !important;
  transition: 0.6s ease-in-out !important;
}
.wtc-cs-fade-right[cm-animate-play] {
  transform: translateX(0px) !important;
  opacity: 1 !important;
}

/* Animation FIXED - fade-zoom-in */
.wtc-cs-fade-zoom-in {
  opacity: 0 !important;
  transform: scale(0.8) !important;
  transition: 0.6s ease-in-out !important;
}
.wtc-cs-fade-zoom-in[cm-animate-play] {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Current menu item - active page highlight */
.menu-item.current-menu-item > a,
.current-menu-item > a {
  color: #1e88e5 !important;
}

/* Current menu item - more visible highlight */
.menu-item.current-menu-item > a,
.current-menu-item > a,
.wtc-theme-navigation-main__menu .current-menu-item > a {
  color: #1e88e5 !important;
  border: 2px solid #1e88e5 !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
}
