:root {
  --cdp-blue: #08005e;
  --cdp-blue-strong: #10058c;
  --cdp-blue-soft: #0c0091;
  --cdp-green: #149c68;
  --cdp-green-hover: #1acc8d;
  --cdp-text: #444444;
  --cdp-muted: #696a7c;
  --cdp-surface: #ffffff;
  --cdp-soft-bg: #f4f5fe;
  --cdp-border: rgba(8, 0, 94, 0.12);
  --wp--preset--font-family--body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wp--preset--font-family--heading: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wp--preset--color--base: #ffffff;
  --wp--preset--color--base-2: #ffffff;
  --wp--preset--color--contrast: #040677;
  --wp--preset--color--contrast-2: #444444;
  --wp--preset--color--accent: #149c68;
  --wp--style--global--content-size: 760px;
  --wp--style--global--wide-size: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cdp-text);
  background: var(--cdp-surface);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

body .wp-site-blocks {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(244, 245, 254, 0.82), rgba(255, 255, 255, 0) 440px),
    #ffffff;
}

a {
  color: var(--cdp-green);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
a:focus {
  color: var(--cdp-green-hover);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-post-title,
.wp-block-query-title,
.wp-block-site-title {
  color: #040677;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

.wp-block-site-title,
.wp-block-site-title a {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.wp-site-blocks > header,
header.wp-block-template-part {
  display: none;
}

.cdp-blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cdp-blue-strong);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(8, 0, 94, 0.16);
}

.cdp-blog-header__inner {
  width: 100%;
  max-width: 1140px;
  min-height: 70px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cdp-blog-header__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cdp-blog-header__contact:hover,
.cdp-blog-header__contact:focus {
  color: #ffffff;
}

.cdp-header__icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.cdp-header__icon--phone {
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 0 7px;
  transform: rotate(-45deg);
}

.cdp-header__icon--phone::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: -10px -10px 0 currentColor;
}

.cdp-header__icon--whatsapp {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cdp-header__icon--whatsapp::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -4px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-18deg);
}

.cdp-blog-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.cdp-blog-header__nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 400;
}

.cdp-blog-header__nav a:hover,
.cdp-blog-header__nav a:focus,
.cdp-blog-header__nav a[aria-current="page"] {
  color: #ffffff;
}

.cdp-blog-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--cdp-green-hover);
  transition: width 0.2s ease;
}

.cdp-blog-header__nav a:hover::after,
.cdp-blog-header__nav a:focus::after,
.cdp-blog-header__nav a[aria-current="page"]::after {
  width: 25px;
}

main.wp-block-group {
  margin-top: 0 !important;
}

.wp-block-post-title a {
  color: #040677;
}

.wp-block-post-title a:hover {
  color: var(--cdp-green);
}

.wp-block-query,
.wp-block-post-content,
.wp-block-group.alignwide,
.entry-content {
  color: var(--cdp-text);
}

.wp-block-post-template {
  gap: 28px;
}

.wp-block-post {
  border: 1px solid var(--cdp-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 0, 94, 0.06);
  overflow: hidden;
}

.wp-block-post > *:not(.wp-block-post-featured-image) {
  padding-left: clamp(18px, 3vw, 30px);
  padding-right: clamp(18px, 3vw, 30px);
}

.wp-block-post > *:last-child {
  padding-bottom: clamp(18px, 3vw, 30px);
}

.wp-block-post-featured-image {
  margin-bottom: 22px;
}

.wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms,
.wp-block-post-excerpt,
.wp-block-comment-date,
.wp-block-comment-author-name {
  color: var(--cdp-muted);
}

.wp-block-post-excerpt__excerpt {
  color: var(--cdp-text);
  font-size: 1rem;
}

.wp-block-read-more,
.wp-block-button__link,
input[type="submit"],
button:not(.components-button):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: var(--cdp-green);
  color: #ffffff !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 10px 20px;
  text-decoration: none;
}

.wp-block-read-more:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:not(.components-button):not(.wp-block-navigation__responsive-container-open):not(.wp-block-navigation__responsive-container-close):hover {
  background: var(--cdp-green-hover);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(20, 156, 104, 0.22);
}

.wp-block-search__input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  border: 1px solid var(--cdp-border);
  border-radius: 6px;
  color: var(--cdp-text);
  font: inherit;
  padding: 11px 14px;
}

.wp-block-search__input:focus,
input:focus,
textarea:focus {
  border-color: var(--cdp-green);
  box-shadow: 0 0 0 3px rgba(20, 156, 104, 0.14);
  outline: none;
}

.wp-block-separator {
  border-color: var(--cdp-border);
}

.wp-block-quote {
  border-left: 4px solid var(--cdp-green);
  color: #040677;
  padding-left: 20px;
}

.wp-block-pullquote {
  border-color: var(--cdp-green);
  color: #040677;
}

.wp-block-categories-list,
.wp-block-archives-list,
.wp-block-latest-posts__list {
  list-style: none;
  padding-left: 0;
}

.wp-block-categories-list li,
.wp-block-archives-list li,
.wp-block-latest-posts__list li {
  border-bottom: 1px solid var(--cdp-border);
  padding: 9px 0;
}

.wp-block-template-part footer,
footer.wp-block-template-part {
  margin-top: clamp(40px, 8vw, 80px);
  background: var(--cdp-blue);
  color: rgba(255, 255, 255, 0.78);
}

footer.wp-block-template-part a,
footer.wp-block-template-part h1,
footer.wp-block-template-part h2,
footer.wp-block-template-part h3,
footer.wp-block-template-part h4,
footer.wp-block-template-part .wp-block-site-title {
  color: #ffffff;
}

footer.wp-block-template-part a:hover {
  color: var(--cdp-green-hover);
}

@media (max-width: 781px) {
  .cdp-blog-header {
    position: static;
  }

  .cdp-blog-header__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px 16px;
  }

  .cdp-blog-header__contact {
    font-size: 16px;
  }

  .cdp-blog-header__nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px 22px;
  }

  .wp-block-post {
    border-radius: 6px;
  }
}
