/**
 * Policy page — UI upgrade only (page-id-9857)
 * Preserves all content/links. Matches current CA CloudDesk design system.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.page-id-9857 {
  --pol-primary: #25B7A7;
  --pol-bright: #17C3B2;
  --pol-deep: #1A9E8F;
  --pol-navy: #083530;
  --pol-ink: #052824;
  --pol-text: #3D5250;
  --pol-muted: #616365;
  --pol-ice: #E8F8F6;
  --pol-white: #FFFFFF;
  --pol-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --pol-shadow: 0 10px 26px rgba(26, 158, 143, 0.1);
  --pol-shadow-hover: 0 16px 34px rgba(26, 158, 143, 0.16);
  --pol-radius: 16px;
}

body.page-id-9857,
body.page-id-9857 .elementor-9857,
body.page-id-9857 .page-wrapper {
  font-family: var(--pol-font);
  color: var(--pol-text);
  background: linear-gradient(180deg, var(--pol-ice) 0%, var(--pol-white) 12%, var(--pol-white) 92%, var(--pol-ice) 100%);
}

/* Remove empty Elementor spacer sections above content */
body.page-id-9857 .elementor-element-109bc9c,
body.page-id-9857 .elementor-element-9aa411a {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body.page-id-9857 .elementor-element-7fa58ceb {
  padding: 0 !important;
  margin: 0 !important;
}

body.page-id-9857 .elementor-element-7fa58ceb > .elementor-container {
  max-width: 100%;
  padding: 0;
}

/* ---------- Section shell ---------- */
body.page-id-9857 .service-style-two {
  position: relative;
  padding: 40px 0 56px !important;
  background:
    radial-gradient(ellipse 50% 40% at 12% 0%, rgba(37, 183, 167, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 88% 8%, rgba(8, 53, 48, 0.06), transparent 50%),
    linear-gradient(180deg, var(--pol-ice) 0%, var(--pol-white) 28%, var(--pol-white) 100%) !important;
}

body.page-id-9857 .service-style-two .container {
  max-width: var(--ccd-content-max, 1200px);
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------- Page header / intro ---------- */
body.page-id-9857 .service-style-two .sec-title {
  margin-bottom: 36px !important;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body.page-id-9857 .service-style-two .sec-title h2 {
  font-family: var(--pol-font) !important;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  color: var(--pol-ink) !important;
  margin: 0 0 14px !important;
  padding: 0 0 14px !important;
}

body.page-id-9857 .service-style-two .sec-title h2:before,
body.page-id-9857 .service-style-two .sec-title h2:after {
  background: var(--pol-primary) !important;
  height: 3px !important;
  border-radius: 2px;
}

body.page-id-9857 .service-style-two .sec-title p {
  font-family: var(--pol-font) !important;
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  color: var(--pol-muted) !important;
  margin: 0 !important;
  max-width: 640px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- Policy cards grid ---------- */
body.page-id-9857 .service-style-two .inner-content {
  margin: 0 -10px !important;
}

body.page-id-9857 .service-style-two .inner-content .service-block {
  padding: 0 10px !important;
  margin-bottom: 20px !important;
}

body.page-id-9857 .service-block-two {
  margin-bottom: 0 !important;
}

body.page-id-9857 .service-block-two .inner-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--pol-white) !important;
  border: 1px solid rgba(37, 183, 167, 0.14) !important;
  border-radius: var(--pol-radius) !important;
  padding: 28px 22px 24px !important;
  box-shadow: var(--pol-shadow) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

/* Remove old purple/blue hover overlay */
body.page-id-9857 .service-block-two .inner-box:before {
  display: none !important;
}

body.page-id-9857 .service-block-two:hover .inner-box,
body.page-id-9857 .service-block-two:focus-within .inner-box {
  border-color: rgba(37, 183, 167, 0.32) !important;
  box-shadow: var(--pol-shadow-hover) !important;
  transform: translateY(-2px);
}

/* Icons — unified teal (override old rainbow theme colors) */
body.page-id-9857 .service-block-two .inner-box .icon-box {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: var(--pol-deep) !important;
  background: rgba(37, 183, 167, 0.1);
  border-radius: 12px;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

body.page-id-9857 .service-block-two .inner-box .icon-box i,
body.page-id-9857 .service-block-two .inner-box .icon-box .fa,
body.page-id-9857 .service-block-two .inner-box .icon-box .icon,
body.page-id-9857 .service-block-two .inner-box .icon-box i::before,
body.page-id-9857 .service-block-two .inner-box .icon-box .fa::before,
body.page-id-9857 .service-block-two .inner-box .icon-box .icon::before {
  color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
  transition: color 0.22s ease, opacity 0.22s ease;
}

/* Hover / focus / active — teal tile + WHITE icon for contrast */
body.page-id-9857 .service-block-two:hover .inner-box .icon-box,
body.page-id-9857 .service-block-two:focus-within .inner-box .icon-box,
body.page-id-9857 .service-block-two:active .inner-box .icon-box,
body.page-id-9857 .service-block-two.is-active .inner-box .icon-box {
  color: #ffffff !important;
  background: linear-gradient(145deg, var(--pol-primary), var(--pol-deep)) !important;
}

body.page-id-9857 .service-block-two:hover .inner-box .icon-box i,
body.page-id-9857 .service-block-two:hover .inner-box .icon-box .fa,
body.page-id-9857 .service-block-two:hover .inner-box .icon-box .icon,
body.page-id-9857 .service-block-two:hover .inner-box .icon-box i::before,
body.page-id-9857 .service-block-two:hover .inner-box .icon-box .fa::before,
body.page-id-9857 .service-block-two:hover .inner-box .icon-box .icon::before,
body.page-id-9857 .service-block-two:focus-within .inner-box .icon-box i,
body.page-id-9857 .service-block-two:focus-within .inner-box .icon-box .fa,
body.page-id-9857 .service-block-two:focus-within .inner-box .icon-box .icon,
body.page-id-9857 .service-block-two:focus-within .inner-box .icon-box i::before,
body.page-id-9857 .service-block-two:focus-within .inner-box .icon-box .fa::before,
body.page-id-9857 .service-block-two:focus-within .inner-box .icon-box .icon::before,
body.page-id-9857 .service-block-two:active .inner-box .icon-box i,
body.page-id-9857 .service-block-two:active .inner-box .icon-box .fa,
body.page-id-9857 .service-block-two:active .inner-box .icon-box .icon,
body.page-id-9857 .service-block-two:active .inner-box .icon-box i::before,
body.page-id-9857 .service-block-two:active .inner-box .icon-box .fa::before,
body.page-id-9857 .service-block-two:active .inner-box .icon-box .icon::before {
  color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Card titles / links */
body.page-id-9857 .service-block-two .inner-box h4 {
  font-family: var(--pol-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--pol-navy) !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  text-align: left !important;
  transition: color 0.22s ease;
}

body.page-id-9857 .service-block-two .inner-box h4:before {
  left: 0 !important;
  transform: none !important;
  width: 36px !important;
  height: 2px !important;
  background: var(--pol-primary) !important;
  border-radius: 2px;
  transition: background 0.22s ease;
}

body.page-id-9857 .service-block-two .inner-box h4:after {
  display: none !important;
}

body.page-id-9857 .service-block-two .inner-box h4 a {
  color: var(--pol-navy) !important;
  text-decoration: none !important;
  transition: color 0.22s ease;
}

body.page-id-9857 .service-block-two:hover .inner-box h4,
body.page-id-9857 .service-block-two:hover .inner-box h4 a,
body.page-id-9857 .service-block-two:focus-within .inner-box h4,
body.page-id-9857 .service-block-two:focus-within .inner-box h4 a,
body.page-id-9857 .service-block-two:active .inner-box h4,
body.page-id-9857 .service-block-two:active .inner-box h4 a {
  color: var(--pol-deep) !important;
  opacity: 1 !important;
}

body.page-id-9857 .service-block-two .inner-box h4 a:hover,
body.page-id-9857 .service-block-two .inner-box h4 a:focus {
  color: var(--pol-primary) !important;
  outline: none;
}

body.page-id-9857 .service-block-two:hover .inner-box h4:before,
body.page-id-9857 .service-block-two:focus-within .inner-box h4:before {
  background: var(--pol-bright) !important;
}

/* Card body text */
body.page-id-9857 .service-block-two .inner-box .text {
  font-family: var(--pol-font) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: var(--pol-muted) !important;
  text-align: left !important;
  flex: 1;
}

body.page-id-9857 .service-block-two:hover .inner-box .text {
  color: var(--pol-text) !important;
}

/* Disable legacy wow animation shift on policy cards */
body.page-id-9857 .service-block-two.wow {
  visibility: visible !important;
  animation: none !important;
}

@media (max-width: 991px) {
  body.page-id-9857 .service-style-two {
    padding: 32px 0 44px !important;
  }

  body.page-id-9857 .service-style-two .sec-title {
    margin-bottom: 28px !important;
  }
}

@media (max-width: 767px) {
  body.page-id-9857 .service-style-two {
    padding: 24px 0 36px !important;
  }

  body.page-id-9857 .service-block-two .inner-box {
    padding: 22px 18px 20px !important;
  }

  body.page-id-9857 .service-style-two .inner-content .service-block {
    margin-bottom: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-9857 .service-block-two .inner-box,
  body.page-id-9857 .service-block-two .inner-box .icon-box,
  body.page-id-9857 .service-block-two .inner-box h4 a {
    transition: none !important;
  }

  body.page-id-9857 .service-block-two:hover .inner-box {
    transform: none !important;
  }
}
