/*
 * Calwater 100 Years - Minimal Custom Styles
 * ==========================================
 * WCAG 2.2 AA Compliant | Bootstrap-First Approach
 * Only custom styles that cannot be achieved with Bootstrap
 * Author: Calwater Development Team
 * Version: 4.0 - Bootstrap Optimization
 */

/* ======================================
 * Minimal Custom Overrides
 * Most styling is handled by Bootstrap + style.css
 * ====================================== */
.home #site-content {
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
/* Background overlay utility */
.bg-overlay {
  position: relative;
}

.bg-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 53, 146, 0.75);
  z-index: 1;
}

.text-left {
  text-align: left;
}

.bg-overlay > * {
  position: relative;
  z-index: 2;
}

.bg-calwater-blue-img {
  background-image: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg-blue.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Video container aspect ratio */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* Quote showcase background overlay */
.quote-showcase {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 680px;
  height: 100%;
}

#community-quote-showcase-carousel .swiper-slide{
  height: auto;
}

.quote-showcase::before,
.quote-showcase::after {
  position: absolute;
  z-index: 1;
  line-height: 1;
  width: 50px;
  height: 50px;
  display: block;
}
.quote-showcase::before {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/title-left-sm.svg");
  left: 10px;
  bottom: 10px;
}

.quote-showcase::after {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/title-right-sm.svg");
  right: 10px;
  top: 10px;
}

@media (min-width: 992px) {
  .quote-showcase::before {
    content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/title-left.svg");
    left: 30px;
    bottom: 30px;
  }

  .quote-showcase::after {
    content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/title-right.svg");
    right: 30px;
    top: 30px;
  }
  .quote-showcase::before,
  .quote-showcase::after {
    width: 180px;
    height: 180px;
  }
}

.quote-showcase-title {
  margin-top: 130px;
  margin-bottom: 30px !important;
  font-size: 1.25rem;
}

.quote-showcase-icon {
  margin-bottom: 30px !important;
}

.quote-showcase-content {
  font-size: 36px;
  line-height: 1.25;
  margin-bottom: 60px;
  /* line-height: 125%; */
  font-family: var(--font-heading);
}

@media (max-width: 991px) {
  .quote-showcase {
    min-height: 540px;
  }
  .quote-showcase-title {
    font-size: 1rem;
    margin-top: 30px;
  }

  .quote-showcase-content {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
    /* line-height: 150%; */
  }
}

@media (max-width: 480px) {
  .quote-showcase {
    min-height: 640px;
  }
}

/* Community video container */
.community-video-container {
  position: relative;
  overflow: hidden;
}

/* Event card image sizing */
.event-image {
  object-fit: cover;
}

/* Accessibility enhancements for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .video-play-btn:hover,
  .card-hover:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .video-play-btn {
    border-width: 4px;
  }

  /* Enhanced focus visibility for high contrast */
  :focus-visible {
    outline: 4px solid #000000 !important;
    outline-offset: 3px !important;
  }

  .btn:focus-visible,
  .social-icon:focus-visible {
    outline: 4px solid #000000 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 8px #ffff00 !important;
  }

  .text-highlight-yellow::after,
  .text-highlight-orange::after,
  .text-highlight-teal::after,
  .text-highlight-red::after,
  .text-highlight-light-blue::after {
    opacity: 0.5;
  }
}

@media (min-width: 992px) {
  .text-sm-left {
    text-align: left !important;
  }
}

.text-sm-center {
  text-align: center !important;
}

@media (min-width: 992px) {
  .text-sm-center {
    text-align: inherit !important;
  }
}

/* Print optimizations */
@media print {
  .video-play-btn {
    display: none;
  }

  .bg-overlay::before,
  .quote-showcase::before {
    display: none;
  }
}

.slider-wrapper {
  background-image: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/video-placeholder.jpg");
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
  height: 300px;
}

@media (min-width: 992px) {
  .slider-wrapper {
    height: 700px;
  }
}

/* Override Revolution Slider video crop behavior */
/* #hero .rev_slider video,
#hero .rev_slider iframe {
	position: relative;
  top: 0px !important;
  object-fit: contain !important;
  height: 100% !important;
  left: 0px !important;
  right: 0px !important;
  max-height: 100vh;
  background-color: #000;
} */

#hero .rev-slider-mobile .rev_slider video,
#hero .rev-slider-mobile .rev_slider iframe {
  width: 100% !important;
  left: 0px !important;
}

/* Skip to Content Link - ADA Compliant */
.skip-link {
  position: absolute;
  top: -100%; /* é»˜è®¤ç§»å‡ºå�¯è§†åŒºåŸŸ */
  left: 6px;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 999999;
}

.skip-link:focus {
  top: 6px;
  color: white;
  text-decoration: none;
  outline: 4px solid var(--calwater-yellow);
  outline-offset: 3px;
  /* transform: translateX(-50%); */
  box-shadow: 0 0 0 8px rgba(255, 210, 0, 0.4);
}

.skip-link:hover:focus {
  background: #002a7a;
  color: white;
  text-decoration: none;
}

/* Visual Scroll Indicator - Original UX Feature */
.scroll-indicator-wrap {
  margin: 25px 0;
  text-align: center;
}
.scroll-indicator-wrap a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}
.scroll-indicator-wrap a:hover {
  color: #003592;
  text-decoration: none;
  transform: translateY(2px);
}
.scroll-indicator-wrap a i {
  margin-top: 4px;
}
.scroll-indicator-wrap a i:before {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/arrow-blue-down.svg");
}

/* Hero Play Toggle Button */
.hero-play-toggle {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--calwater-blue);
  border: 2px solid var(--calwater-white);
  color: var(--calwater-white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 53, 146, 0.4);
}

.hero-play-toggle:hover,
.hero-play-toggle:focus {
  background-color: var(--calwater-yellow);
  border-color: var(--calwater-blue);
  color: var(--calwater-blue);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 210, 0, 0.5);
}

.hero-play-toggle:focus-visible {
  outline: 3px solid var(--calwater-white);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .hero-play-toggle {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}

/* Accessibility - Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Enhanced Focus Indicators - WCAG 2.4.11-2.4.13 Compliance */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 2px !important;
}

/* Enhanced focus for buttons */
.btn:focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 2px !important;
  box-shadow: var(--focus-shadow) !important;
}

/* Video play button focus enhancement */
.video-play-btn:focus-visible {
  outline: 4px solid var(--calwater-white) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 7px rgba(0, 95, 204, 0.5) !important;
}

/* Social icons focus enhancement */
.social-icon:focus,
.social-icon:focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 3px !important;
  transform: scale(1.1);
}

/* Swiper navigation focus enhancement */
.swiper-button-next:focus-visible,
.swiper-button-prev:focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 2px !important;
}

@media (max-width: 768px) {
  .swiper-pagination-wrapper{
    border-radius: 50px;
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: scroll;
  }
}

/* Card hover elements focus */
/* .card-hover:focus-within {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 2px !important;
} */

.icon-card {
  display: inline-block;
  background-color: #fff;
  padding: 10px;
}
.bg-card {
  background-image: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem;
}
.no-pd-bg-card {
  background-image: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}
.no-pd-bg-card:hover {
  box-shadow: 10px 10px 0 var(--calwater-yellow);
}
.no-pd-bg-card.no-shadow {
  box-shadow: none !important;
}

.img-bg-wrapper {
  position: relative;
  z-index: 2;
  padding: 12px;
}
@media (min-width: 992px) {
  .img-bg-wrapper {
    padding: 20px;
  }
}

.img-bg-wrapper-white img {
  background-color: #fff;
}
.img-bg-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg-left.svg");
  background-position: left bottom;
  background-repeat: no-repeat;
  z-index: 1;
}
.img-bg-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg-right.svg");
  background-position: right top;
  background-repeat: no-repeat;
  z-index: 1;
}

.img-bg-wrapper-sm.img-bg-wrapper::before {
  background-image: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg-left-sm.svg");
}
.img-bg-wrapper-sm.img-bg-wrapper::after {
  background-image: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg-right-sm.svg");
}
@media (max-width: 991px) {
  .img-bg-wrapper::before,
  .img-bg-wrapper::after {
    background-size: 40px;
  }
}

/* ======================================
 * Footer Styles
 * ====================================== */
#site-footer {
  background: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg.png") repeat center center;
  border-top: 4px solid var(--calwater-blue);
}

.footer-bottom-menu-wrapper {
  border-top: 7px solid var(--calwater-yellow);
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.footer-logo-img {
  width: 98px;
  height: 98px;
}

#siteimprove-scan-panel-button,
#siteimprove-scan-panel-button.visible{
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 767px) {
  .footer-logo {
    flex-direction: column;
    align-items: start;
    gap: 1.5rem;
  }

  .footer-logo img {
    max-width: 100%;
    height: auto;
  }
  .footer-logo-img {
    width: 88px;
    height: 88px;
  }
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.875rem;
}

.footer-menu ul li a {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--calwater-black);
  text-decoration: none;
  transition: color 0.3s ease;
  font-style: normal;
  font-weight: 500;
  line-height: 12px;
  /* line-height: 75%; */
}

.footer-menu ul li a:hover,
.footer-menu ul li a:focus {
  color: var(--calwater-blue);
  text-decoration: underline;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: #f2f3f7;
  margin: 1.5rem 0;
}

.footer-bottom-menu ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.footer-bottom-menu ul li a {
  font-family: var(--font-semibold);
  font-size: 14px;
  color: var(--calwater-black);
  text-decoration: none;
}

.footer-bottom-menu ul li a:hover,
.footer-bottom-menu ul li a:focus {
  text-decoration: underline;
}

.footer-copyright p {
  font-family: var(--font-semibold);
  font-size: 14px;
  color: var(--calwater-black);
  margin-bottom: 0.5rem;
}

.footer-copyright .small {
  font-size: 0.75rem;
  line-height: 1.4;
}

.social-icon {
  transition: color 0.3s ease;
  font-size: 2rem;
  color: var(--calwater-blue);
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  padding-bottom: 20px;
}

.social-icon:hover,
.social-icon:focus {
  color: var(--calwater-blue);
}

/* Simple footer dropdown hover functionality */
.social-icon-wrapper.dropdown:hover .dropdown-menu,
.social-icon-wrapper.dropdown:focus .dropdown-menu,
.social-icon-wrapper.dropdown:focus-visible .dropdown-menu,
.social-icon-wrapper.dropdown:focus-within .dropdown-menu,
.social-icon-wrapper .dropdown-menu:hover,
.social-icon-wrapper .dropdown-menu:focus,
.social-icon-wrapper .dropdown-menu:focus-visible,
.social-icon-wrapper .dropdown-menu:focus-within {
  display: block;
}

.social-icon-wrapper .dropdown-menu {
  border: 0;
  padding: 20px;
  margin: 0;
  min-width: 235px;
  background-color: transparent;
  border-bottom: 1.5px solid var(--calwater-blue);
}

@media (min-width: 992px) {
  .social-icon-wrapper .dropdown-menu {
    background-color: var(--calwater-orange);
    border-bottom: 0;
  }
}
.social-icon-wrapper .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 15%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--calwater-orange);
}
.social-icon-wrapper .dropdown-menu li {
  border-bottom: 3px solid transparent;
  margin-bottom: 10px;
}
.social-icon-wrapper .dropdown-menu li:last-child {
  margin-bottom: 0;
}
.social-icon-wrapper .dropdown-menu li:hover {
  border-bottom: 3px solid var(--calwater-yellow);
}
.social-icon-wrapper .dropdown-menu a {
  color: #000;
  text-decoration: none;
  font-family: "Whitney Semibold";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%; /* 17.5px */
}

/* Mobile dropdown animation and positioning */
@media (max-width: 991px) {
  .social-icon-wrapper .dropdown-menu {
    position: static !important;
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out,
      padding-bottom 0.3s ease-out;
  }

  .social-icon-wrapper.dropdown-open .dropdown-menu {
    max-height: 200px;
    padding: 20px !important;
    transition: max-height 0.3s ease-in, padding-top 0.3s ease-in,
      padding-bottom 0.3s ease-in;
  }
  .social-icon-wrapper .dropdown-menu {
    border-radius: 0;
  }
  .social-icon-wrapper .dropdown-menu::before {
    content: none;
  }
}

.btn {
  padding: 0.5rem 0.75rem 0.3rem 0.75rem;
}

.btn {
  --bs-btn-font-size: 18px;
}

.btn-lg,
.btn-group-lg > .btn {
  --bs-btn-font-size: 20px;
}

.btn-light {
  --bs-btn-bg: #e9e9e9;
  --bs-btn-border-color: #e9e9e9;
}

@media (min-width: 992px) {
  .btn {
    padding: 0.6rem 0.75rem 0.3rem 0.75rem;
  }
}

.btn-yellow {
  background-color: var(--calwater-yellow);
  border-color: var(--calwater-yellow);
  color: var(--calwater-black);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  padding: 0.3125rem 0.75rem;
  transition: all 0.3s ease;
}

.btn-yellow:hover,
.btn-yellow:focus {
  background-color: transparent;
  border-color: var(--calwater-yellow);
  color: var(--calwater-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 210, 0, 0.3);
}

/* Accessibility improvements */
.social-icon:focus-visible,
.btn-yellow:focus-visible,
.footer-menu a:focus-visible,
.footer-mobile-menu a:focus-visible,
.footer-bottom-menu a:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .footer-menu ul {
    display: block;
  }
  .social-icon {
    margin-left: 0 !important;
    line-height: 1;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1.5px solid var(--calwater-blue);
  }
  .footer-menu ul li a {
    line-height: 1;
    display: block;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1.5px solid var(--calwater-blue);
  }
  .footer-bottom-menu ul li {
    width: 46%;
  }
  .footer-bottom-menu ul li a {
    margin: 0;
    padding: 0;
  }

  .social-icon-wrapper .dropdown-menu {
    display: none;
  }

  .social-icon-wrapper.dropdown-open .dropdown-menu {
    display: block;
  }
}

/* ======================================
 * Contact Form 7 Styles - WCAG 2.2 AA Compliant
 * ====================================== */

/* Contact Form Container */
.contact-form {
  background-color: var(--calwater-gray-light);
  background-image: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.wpcf7 {
  padding: 2rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group p {
  margin-bottom: 0;
}

/* Form Labels - Enhanced for Accessibility */
.form-label,
.wpcf7 label {
  font-family: var(--font-semibold);
  font-size: 1rem;
  color: var(--calwater-gray-dark);
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

.form-label span,
.wpcf7 label span {
  color: #cc0000;
  font-weight: bold;
}

/* Contact Form 7 Form Controls - WCAG Compliant */
.wpcf7-form-control {
  width: 100%;
  min-height: 44px; /* WCAG minimum touch target */
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--calwater-gray-dark);
  background-color: var(--calwater-white);
  background-clip: padding-box;
  border: 2px solid var(--calwater-white);
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.wpcf7-form-control:focus {
  color: var(--calwater-gray-dark);
  background-color: var(--calwater-white);
  border-color: var(--calwater-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 53, 146, 0.25);
}

.wpcf7-form-control:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.wpcf7-form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.wpcf7-form-control:disabled,
.wpcf7-form-control[readonly] {
  background-color: #f8f9fa;
  opacity: 1;
}

/* Textarea Specific */
.wpcf7-textarea,
textarea.wpcf7-form-control {
  min-height: 94px;
  resize: vertical;
  font-family: var(--font-body);
}

/* Select Specific */
.wpcf7-select,
select.wpcf7-form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

/* Checkbox and Radio Styles */
.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  margin-left: -1.5rem;
  vertical-align: top;
  background-color: var(--calwater-white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 2px solid #ddd;
  appearance: none;
  print-color-adjust: exact;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25rem;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:active {
  filter: brightness(90%);
}

.form-check-input:focus {
  border-color: var(--calwater-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 53, 146, 0.25);
}

.form-check-input:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.form-check-input:checked {
  background-color: var(--calwater-blue);
  border-color: var(--calwater-blue);
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--calwater-gray-dark);
  cursor: pointer;
  line-height: 1.5;
}

/* Form Validation States */
.form-control.is-valid {
  border-color: var(--calwater-green);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 2.94 2.94L7.8 7.09 3.24 2.53 2.3 3.47z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus {
  border-color: var(--calwater-green);
  box-shadow: 0 0 0 3px rgba(0, 124, 105, 0.25);
}

.form-control.is-invalid {
  border-color: var(--calwater-red);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
  border-color: var(--calwater-red);
  box-shadow: 0 0 0 3px rgba(226, 73, 18, 0.25);
}

/* Validation Feedback */
.valid-feedback,
.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.valid-feedback {
  color: var(--calwater-green);
}

.invalid-feedback {
  color: var(--calwater-red);
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
  display: block;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Contact Form 7 Submit Button Styling */
.wpcf7-submit,
.btn-submit {
  background-color: var(--calwater-yellow) !important;
  border: 3px solid var(--calwater-yellow) !important;
  color: var(--calwater-black) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  min-height: 44px !important;
  min-width: 44px !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  vertical-align: middle !important;
  user-select: none !important;
  line-height: 1.5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wpcf7-submit:hover,
.wpcf7-submit:focus,
.btn-submit:hover,
.btn-submit:focus {
  background-color: transparent !important;
  border-color: var(--calwater-yellow) !important;
  color: var(--calwater-yellow) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 210, 0, 0.3) !important;
  text-decoration: none !important;
}

.wpcf7-submit:focus-visible,
.btn-submit:focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 2px !important;
}

.wpcf7-submit:disabled,
.btn-submit:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Contact Form 7 Spinner */
.wpcf7-spinner {
  visibility: hidden;
  display: inline-block;
  background-color: var(--calwater-blue);
  opacity: 0.75;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 100%;
  margin-left: 10px;
  vertical-align: middle;
}

.wpcf7-spinner.wpcf7-active {
  visibility: visible;
}

/* Contact Form 7 Response Messages */
.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Contact Form 7 Validation Errors */
.wpcf7-not-valid {
  border-color: var(--calwater-red) !important;
  box-shadow: 0 0 0 3px rgba(226, 73, 18, 0.25) !important;
}

.wpcf7-not-valid-tip {
  color: var(--calwater-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  line-height: 1.4;
}

/* Hidden Fields Container */
.hidden-fields-container {
  display: none;
}

/* Screen Reader Response */
.screen-reader-response {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* Form Text/Help Text */
.form-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.4;
}

/* Privacy Notice Styling */
.privacy-notice {
  background-color: var(--calwater-gray-light);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--calwater-gray-dark);
}

.privacy-notice a {
  color: var(--calwater-blue);
  text-decoration: underline;
}

.privacy-notice a:hover,
.privacy-notice a:focus {
  color: var(--calwater-blue);
  text-decoration: underline;
}

/* Contact Image Styling */
.contact-image-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.contact-image-wrapper img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Form 7 Title Styling */
.wpcf7 h5 {
  font-family: var(--font-heading);
  color: var(--calwater-gray-dark);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

/* Contact Image Wrapper */
.contact-us-img {
  position: relative;
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .wpcf7 {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .wpcf7-submit,
  .btn-submit {
    width: 100% !important;
    margin-top: 1rem !important;
  }

  .contact-us-img {
    margin-bottom: 3rem;
    text-align: center;
  }

  .wpcf7 h5 {
    font-size: 1.25rem;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .contact-form,
  .wpcf7 {
    padding: 1.75rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .wpcf7-form-control {
    border-width: 3px !important;
  }

  .wpcf7-form-control:focus {
    box-shadow: 0 0 0 4px rgba(0, 53, 146, 0.5) !important;
  }

  .wpcf7-submit,
  .btn-submit {
    border-width: 4px !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .wpcf7-form-control,
  .wpcf7-submit,
  .btn-submit,
  .form-check-input {
    transition: none !important;
  }

  .wpcf7-submit:hover,
  .btn-submit:hover {
    transform: none !important;
  }
}

/* ======================================
 * Employee Stories Page Specific Styles
 * ====================================== */

/* Employee Stories Header */
.employee-stories-header {
  position: relative;
  min-height: 280px;
}

.header-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Decorative frames */
.yellow-frame {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 60px;
  height: 60px;
  border: 4px solid var(--calwater-yellow);
  background: transparent;
  transform: rotate(45deg);
}

.light-blue-frame {
  position: absolute;
  top: -20px;
  right: -100px;
  width: 60px;
  height: 60px;
  border: 4px solid var(--calwater-light-blue);
  background: transparent;
  transform: rotate(45deg);
}

/* Section underline decoration */
.section-underline {
  width: 348px;
  height: 14px;
  background-color: var(--calwater-yellow);
  border-radius: 7px;
}

/* Employee Container - Responsive */
.employee-container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1200px) {
  .employee-container {
    max-width: 1140px;
  }
}

@media (max-width: 1199px) {
  .employee-container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
}

.employee-info {
  padding: 1rem; /* Based on MCP padding data */
  min-height: 140px;
}

.employee-name {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* 20px based on MCP */
  color: var(--calwater-black);
  margin-bottom: 5px;
  line-height: 1.5;
}

.employee-title {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px based on MCP */
  color: var(--calwater-black);
  margin-bottom: 5px;
  line-height: 1.5;
}

.employee-location {
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px based on MCP */
  color: var(--calwater-gray-dark);
  line-height: 1.25;
  margin-bottom: 0;
}

.highlight-info {
  padding: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* 20px based on MCP */
  color: var(--calwater-black);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.highlight-description {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px based on MCP */
  color: var(--calwater-black);
  line-height: 1.5;
  margin: 0;
}

.video-play-btn .play-icon {
  margin-left: 3px; /* Optical alignment */
}

/* Video Play Button */
.video-play-btn {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/play-btn.svg");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  background: none;
  border: 0;
}

.video-play-btn {
  width: 46px;
  height: 46px;
}
@media (min-width: 1200px) {
  .video-play-btn {
    width: 114px;
    height: 114px;
  }
}

.video-play-btn-full.glightbox::after{
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/play-btn.svg");
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  background: none;
  border: 0;
}

.video-play-btn-full.video-play-btn-full-sm.glightbox::after{
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/play-btn48x48.svg");
}

.video-play-btn-full.glightbox:hover:after,
.video-play-btn-full.glightbox:focus:after{
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/play-btn-hover.svg");
}

.video-play-btn-full.video-play-btn-full-sm.glightbox:hover:after,
.video-play-btn-full.video-play-btn-full-sm.glightbox:focus:after{
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/play-btn48x48-hover.svg");
}


.employee-video-card {
  margin-bottom: 10px !important;
  margin-right: 10px !important;
}
.employee-video-card:hover {
  box-shadow: 10px 10px 0 var(--calwater-yellow);
}

.employee-video-card .video-play-btn {
  width: 60px;
  height: 60px;
}

.highlight-video-card .video-play-btn {
  width: 80px;
  height: 80px;
}

.video-play-btn:hover,
.video-play-btn:focus {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/play-btn-hover.svg");
  transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive adjustments for employee stories */
@media (max-width: 991px) {
  .employee-stories-header {
    min-height: 200px;
    padding: 2rem 0;
  }

  .yellow-frame,
  .light-blue-frame {
    display: none; /* Hide decorative frames on mobile */
  }

  .section-underline {
    width: 200px;
    height: 10px;
  }
  .highlight-video-card .video-play-btn {
    min-width: auto !important;
    min-height: auto !important;
    width: 40px;
    height: 40px;
  }
}

/* ======================================
 * Media Center Styles - WCAG 2.2 AA Compliant
 * ====================================== */

/* Media Contact Cards */
.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
@media (max-width: 991px) {
  .contact-details {
    flex-direction: column;
  }
}
.contact-details-item {
  display: flex;
  flex-direction: column;
}
.contact-details a {
  color: var(--calwater-black);
  transition: color 0.3s ease;
}

.contact-details-item i {
  font-size: 24px;
}

.contact-details a:hover,
.contact-details a:focus {
  color: var(--calwater-blue);
}

/* Media Kit Logo Cards */
.media-kit-logo {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

/* Service Areas */
.service-area-item {
  transition: transform 0.3s ease;
}

.service-area-item:hover {
  transform: translateY(-5px);
}

.service-area-item a:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

/* Press Releases Carousel Adjustments */
#press-releases-carousel .swiper-slide {
  height: auto;
}

#press-releases-carousel .bg-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

#press-releases-carousel .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#press-releases-carousel .card-text {
  flex: 1;
}

.press-release-data-share-download {
  border-width: 3px 0;
  border-style: solid;
  border-color: var(--calwater-teal);
}

/* Timeline video gallery styles */
.video-gallery-thumbs .swiper-slide {
  cursor: pointer;
}
.video-gallery-thumbs .swiper-slide-thumb-active > .img-fluid {
    box-shadow: 4px 4px 0 var(--calwater-yellow);
}
.video-gallery-thumbs .swiper-slide:hover {
    opacity: 0.8;
}
.historical-video-gallery .video-container {
    width: 100%;
}

.video-gallery-thumbs .swiper-slide p {
  line-height: 1.2;
}

/* ======================================
 * Photo Gallery Modal Styles - WCAG 2.2 AA Compliant
 * ====================================== */

/* Gallery Item Buttons */
.document-item-btn,
.document-title-btn,
.gallery-item-btn,
.gallery-title-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}
.document-item-btn,
.gallery-item-btn {
  display: block;
  position: relative;
  overflow: hidden;
}

.document-item-btn:focus,
.document-title-btn:focus,
.gallery-item-btn:focus,
.gallery-title-btn:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.document-item-btn:hover,
.document-title-btn:hover,
.gallery-item-btn:hover,
.gallery-title-btn:hover {
  color: var(--calwater-blue);
  text-decoration: none;
}

.document-item-btn img,
.gallery-item-btn img {
  transition: transform 0.3s ease;
}

.document-item-btn:hover img,
.gallery-item-btn:hover img {
  transform: scale(1.05);
}

.modal-header {
  border-bottom: none;
}

.btn-close {
  --bs-btn-close-bg: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/close-icon.svg");
  --bs-btn-close-opacity: 1;
}

.document-gallery-modal-content,
.photo-gallery-modal-content {
  background-color: var(--calwater-gray-light);
  background-image: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.document-expanded-mode .swiper-button-prev,
.gallery-expanded-mode .swiper-button-prev {
  left: 10px;
  border: 0;
  box-shadow: none;
}

.document-expanded-mode .swiper-button-next,
.gallery-expanded-mode .swiper-button-next {
  right: 10px;
  border: 0;
  box-shadow: none;
}

@media (min-width: 992px) {
  .document-expanded-mode .swiper-button-prev,
  .gallery-expanded-mode .swiper-button-prev {
    left: 30px;
  }
  .document-expanded-mode .swiper-button-next,
  .gallery-expanded-mode .swiper-button-next {
    right: calc(50% - 30px);
  }
}

.document-gallery-image,
.photo-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.document-content,
.photo-gallery-content {
  padding-bottom: 4px;
}

.document-content-text,
.photo-gallery-content-text {
  border-width: 1px 0;
  border-style: solid;
  border-color: #757575;
  padding: 1rem 0;
}

@media (min-width: 992px) {
  .document-content-wrapper,
  .photo-gallery-content-wrapper {
    min-height: 100%;
    display: flex;
    align-items: end;
  }
}

.document-content{
  width: 100%;
}

.trust-on-tap-message {
  background-color: var(--calwater-gray-light);
  background-image: url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/media-center-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  line-height: 1.5;
}

.trust-on-tap-message h3{
  line-height: 1.3;
}
.trust-on-tap-message p {
  line-height: 1.5;
}

/* Ensure video play buttons are large enough and easy to click */
.employee-video-card .video-play-btn {
  min-width: 60px;
  min-height: 60px;
}

.highlight-video-card .video-play-btn {
  min-width: 70px;
  min-height: 70px;
}

/* Appropriate spacing for footer links */
.footer-menu a,
.footer-mobile-menu a,
.footer-bottom-menu a {
  padding: 4px 8px;
  margin: 2px 4px;
  display: inline-block;
}

/* Slightly increase touch targets on mobile devices */
@media (max-width: 767px) {
  /* Footer link spacing on mobile devices */
  .footer-menu a,
  .footer-mobile-menu a,
  .footer-bottom-menu a {
    padding: 6px 10px;
    margin: 3px;
  }
}

/* Ensure very small icons have sufficient click area */
.bi[class*="bi-"]:before {
  min-width: 24px;
  min-height: 24px;
  display: inline-block;
  text-align: center;
}

b {
  font-weight: bold;
}

i:not([class]) {
  font-style: italic;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}
.max-width-850 {
  max-width: 850px;
}

.max-width-730 {
  max-width: 730px;
}

.max-width-1000 {
  max-width: 1000px;
}

.max-width-1240 {
  max-width: 1240px;
}

.pagination-secondary .page-link {
  text-align: center;
  border-radius: 100px;
}

.page-link.active,
.active > .page-link {
  background-color: var(--calwater-blue);
  border-color: var(--calwater-blue);
}

.page-link {
  color: var(--calwater-blue);
  background-color: #fff;
  border: 0;
}

/* WP-PageNavi Plugin Styles - Bootstrap Compatible */
.paginate {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0.5rem 0.75rem;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--calwater-blue);
  text-decoration: none;
  background-color: #fff;
  border: 0;
  border-radius: 100px;
  transition: all 0.15s ease-in-out;
}

.paginate .wp-pagenavi a,
.wp-pagenavi span {
  border: 0;
}

.wp-pagenavi a:hover,
.wp-pagenavi a:focus {
  color: #fff;
  background-color: var(--calwater-blue);
  text-decoration: none;
  outline: none;
}

.wp-pagenavi a:focus {
  outline: 2px solid var(--calwater-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  z-index: 1;
  position: relative;
}

.wp-pagenavi .current {
  color: #fff !important;
  background-color: var(--calwater-blue) !important;
  border-color: var(--calwater-blue) !important;
  font-weight: 600;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  font-weight: 600;
}
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  overflow: hidden;
  text-indent: 200px;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
  padding: 10px;
}

.wp-pagenavi .previouspostslink {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/arrow-blue-left.svg");
}

.wp-pagenavi a.previouspostslink:hover,
.wp-pagenavi a.previouspostslink:focus {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/arrow-white-left.svg");
}

.wp-pagenavi .nextpostslink {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/arrow-blue-right.svg");
}

.wp-pagenavi a.nextpostslink:hover,
.wp-pagenavi a.nextpostslink:focus {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/arrow-white-right.svg");
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .wp-pagenavi {
    gap: 0.125rem;
  }

  .wp-pagenavi a,
  .wp-pagenavi span {
    min-width: 40px;
    min-height: 40px;
    padding: 0.375rem 0.5rem;
  }
}

.thank-you-content {
  min-height: 100%;
}

.thank-you-title {
  font-size: 48px;
}

.thank-you-text {
  font-size: 18px;
  font-weight: 700;
}

@media (min-width: 992px) {
  .thank-you-title {
    font-size: 5rem;
  }
  .thank-you-text {
    font-size: 1.2rem;
  }
}
.event-card-link,
.event-card-link:hover,
.event-card-link:focus,
.event-card-link:active {
  outline: none;
  box-shadow: none;
}

.btn .bi-share::before {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/icon-share.svg");
}

.btn .bi-download::before {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/icon-download.svg");
}

/* Historical timeline page */
.page-template-template-historical-timeline {
  background: #f8f8f8 url("https://100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/timeline-bg.jpg") no-repeat center top;
  background-size: 1440px;
  background-attachment: fixed;
}

@media (min-width: 992px) {
  .page-template-template-historical-timeline #site-header .navbar {
    background-image: none;
  }
}

.heading-decade::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(226, 73, 18, 0.9);
  mix-blend-mode: multiply;
  z-index: -1;
  transform: translateY(-20px);
  max-width: 620px;
}

.timeline-year[data-section-title="1930s"] .heading-decade::after {
  background-color: rgba(0, 105, 219, 0.9);
}

.timeline-year[data-section-title="1940s"] .heading-decade::after {
  background-color: rgba(255, 161, 45, 0.9);
}

.timeline-year[data-section-title="1950s"] .heading-decade::after {
  background-color: rgba(129, 204, 221, 0.9);
}

.timeline-year[data-section-title="1960s"] .heading-decade::after {
  background-color: rgba(255, 210, 0, 0.9);
}

.timeline-year[data-section-title="1970s"] .heading-decade::after {
  background-color: rgba(226, 73, 18, 0.9);
}

.timeline-year[data-section-title="1980s"] .heading-decade::after {
  background-color: rgba(0, 105, 219, 0.9);
}

.timeline-year[data-section-title="1990s"] .heading-decade::after {
  background-color: rgba(255, 161, 45, 0.9);
}

.timeline-year[data-section-title="2000s"] .heading-decade::after {
  background-color: rgba(129, 204, 221, 0.9);
}

.timeline-year[data-section-title="2010s"] .heading-decade::after {
  background-color: rgba(255, 210, 0, 0.9);
}

.timeline-year[data-section-title="2020s"] .heading-decade::after {
  background-color: rgba(226, 73, 18, 0.9);
}

@media (min-width: 992px) {
  .heading-decade::after {
    height: 34px;
    transform: translateY(-50px);
    max-width: 720px;
  }
  .ctl-story-right .ctl-content .timeline-header-style {
    text-align: right;
  }
}

.ctl-content .timeline-header-style::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #000;
  mix-blend-mode: multiply;
  z-index: -1;
}

.heading-foundations {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90px;
}

@media (min-width: 992px) {
  .ctl-story-left .ctl-content .timeline-header-style::after {
    left: 0;
    right: -10%;
  }

  .ctl-story-right .ctl-content .timeline-header-style::after {
    left: -10%;
    right: 0;
  }
  .heading-foundations {
    max-width: 620px;
    max-height: 200px;
  }
  .ctl-content .timeline-header-style::after {
    height: 1.5px;
  }
}

/* ========================================================================
 * Form styles
 * ======================================================================== */

.ctl-wrapper .ctl-story.ctl-placeholder {
  display: none;
}

@media (min-width: 768px) {
  .ctl-wrapper .ctl-story.ctl-placeholder {
    display: block;
    margin-bottom: 180px;
  }
}

.bi-twitter::before {
  content: url("https://es.100years.calwatergroup.com/wp-content/themes/calwater100/assets/images/icon-bi-x.svg");
}

.st-has-labels .st-btn {
  min-width: auto !important;
}

.st-btn,
.st-btn > span {
  font-size: 18px !important;
}

.st-btn > span {
  padding: 0 2px !important;
  min-width: auto !important;
  font-weight: bold !important;
  font-family: var(--font-heading) !important;
  letter-spacing: 0 !important;
}

#html5-watermark,
.html5-watermark {
  display: none !important;
}

.cal-form_wrapper .gform-field-label {
  font-family: var(--font-semibold);
  font-size: 1rem;
  color: var(--calwater-gray-dark);
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

.cal-form_wrapper .gform-field-label.gform-field-label--type-sub {
  font-size: 0.8rem;
}

.gform-button--width-full {
  width: 100% !important;
  display: block;
}

.cal-form_wrapper .gform_button[type="submit"] {
  background-color: var(--calwater-yellow) !important;
  border: 3px solid var(--calwater-yellow) !important;
  color: var(--calwater-black) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  min-height: 44px !important;
  min-width: 44px !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  vertical-align: middle !important;
  user-select: none !important;
  line-height: 1.5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cal-form_wrapper .gform_button[type="submit"]:hover {
  border-color: var(--calwater-yellow) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 210, 0, 0.3) !important;
  text-decoration: none !important;
}

.gform-theme--framework .gform_validation_errors {
  display: none;
}

.sharethis-inline-share-buttons .st-btn {
  background-color: #ffd200 !important;
  color: var(--calwater-black) !important;
}

.sharethis-inline-share-buttons .st-btn span {
  color: var(--calwater-black) !important;
}

.sharethis-inline-share-buttons .st-btn:hover,
.sharethis-inline-share-buttons .st-btn:focus,
.sharethis-inline-share-buttons .st-btn:focus-visible {
  background-color: var(--calwater-teal) !important;
  border-color: var(--calwater-teal) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 219, 0.3);
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 2px !important;
}

.st-btns .st-btn[data-network="blm"],
.st-btns .st-btn[data-network="blogger"],
.st-btns .st-btn[data-network="bluesky"],
.st-btns .st-btn[data-network="buffer"],
.st-btns .st-btn[data-network="copy"],
.st-btns .st-btn[data-network="diaspora"],
.st-btns .st-btn[data-network="digg"],
.st-btns .st-btn[data-network="diigo"],
.st-btns .st-btn[data-network="douban"],
.st-btns .st-btn[data-network="email"],
.st-btns .st-btn[data-network="evernote"],
.st-btns .st-btn[data-network="fark"],
.st-btns .st-btn[data-network="flipboard"],
.st-btns .st-btn[data-network="gab"],
.st-btns .st-btn[data-network="getpocket"],
.st-btns .st-btn[data-network="googlebookmarks"],
.st-btns .st-btn[data-network="hackernews"],
.st-btns .st-btn[data-network="houzz"],
.st-btns .st-btn[data-network="instapaper"],
.st-btns .st-btn[data-network="iorbix"],
.st-btns .st-btn[data-network="kakao"],
.st-btns .st-btn[data-network="kindleit"],
.st-btns .st-btn[data-network="kooapp"],
.st-btns .st-btn[data-network="line"],
.st-btns .st-btn[data-network="livejournal"],
.st-btns .st-btn[data-network="mailru"],
.st-btns .st-btn[data-network="meneame"],
.st-btns .st-btn[data-network="messenger"],
.st-btns .st-btn[data-network="naver"],
.st-btns .st-btn[data-network="nextdoor"],
.st-btns .st-btn[data-network="odnoklassniki"],
.st-btns .st-btn[data-network="outlook"],
.st-btns .st-btn[data-network="pinboard"],
.st-btns .st-btn[data-network="plurk"],
.st-btns .st-btn[data-network="print"],
.st-btns .st-btn[data-network="qzone"],
.st-btns .st-btn[data-network="refind"],
.st-btns .st-btn[data-network="renren"],
.st-btns .st-btn[data-network="skype"],
.st-btns .st-btn[data-network="surfingbird"],
.st-btns .st-btn[data-network="tencentqq"],
.st-btns .st-btn[data-network="threema"],
.st-btns .st-btn[data-network="trello"],
.st-btns .st-btn[data-network="tumblr"],
.st-btns .st-btn[data-network="vk"],
.st-btns .st-btn[data-network="viber"],
.st-btns .st-btn[data-network="wechat"],
.st-btns .st-btn[data-network="weibo"],
.st-btns .st-btn[data-network="wordpress"],
.st-btns .st-btn[data-network="xing"],
.st-btns .st-btn[data-network="yahoomail"],
.st-btns .st-btn[data-network="yummly"] {
  display: none !important;
}

.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;

  &::before {
    display: block;
    content: "";
  }

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

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

/* glightbox hide disabled pagination buttons */
.gclose.disabled,
.gnext.disabled,
.gprev.disabled {
  opacity: 0 !important;
}

.sitemap-container nav .nav-link {
  padding: 0.5rem 0;
}

a.glightbox{
  text-decoration: none !important;
}
