/**
 * Components Styles for Lifetime11 Theme
 * Blocks, regions, and specialized component styling
 */

/* === Homepage Preblocks === */
.region-preblocks {
  padding: 100px 50px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

#block-lifetime11-16elementaryprogram,
#block-lifetime11-primaryprogram,
#block-lifetime11-toddlerprogram {
  flex-direction: column;
  width: 33%;
}

#block-lifetime11-16elementaryprogram .block-inner,
#block-lifetime11-primaryprogram .block-inner,
#block-lifetime11-toddlerprogram .block-inner {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  position: relative;
}

#block-lifetime11-16elementaryprogram .block-inner img,
#block-lifetime11-primaryprogram .block-inner img,
#block-lifetime11-toddlerprogram .block-inner img {
  display: block;
  width: 100%;
}

#block-lifetime11-16elementaryprogram .block-inner:before,
#block-lifetime11-primaryprogram .block-inner:before,
#block-lifetime11-toddlerprogram .block-inner:before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: block;
  background-color: #232d37;
  opacity: 0.32;
  z-index: 2;
}

#block-lifetime11-16elementaryprogram .block-inner:hover:before,
#block-lifetime11-primaryprogram .block-inner:hover:before,
#block-lifetime11-toddlerprogram .block-inner:hover:before {
  background-color: #109bd2;
  opacity: 0.81;
}

#block-lifetime11-16elementaryprogram h2,
#block-lifetime11-primaryprogram h2,
#block-lifetime11-toddlerprogram h2 {
  text-align: center;
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  z-index: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

#block-lifetime11-16elementaryprogram h2 strong,
#block-lifetime11-primaryprogram h2 strong,
#block-lifetime11-toddlerprogram h2 strong {
  display: block;
  font-size: 34px;
  color: #fff;
  text-transform: uppercase;
}

#block-lifetime11-16elementaryprogram h2 strong:after,
#block-lifetime11-primaryprogram h2 strong:after,
#block-lifetime11-toddlerprogram h2 strong:after {
  content: " ";
  max-width: 117px;
  height: 3px;
  display: block;
  margin: 16px auto;
  background-color: #fff;
}

/* === Slideshow/Featured styles moved to slideshow.css === */

.butterfly1 {
  position: absolute;
  bottom: -34px;
  left: -69px;
}

.butterfly2 {
  position: absolute;
  bottom: -30px;
  right: -50px;
}

.butterfly1a {
  position: absolute;
  bottom: -34px;
  left: 0;
  display: none;
}

.butterfly2a {
  position: absolute;
  bottom: -30px;
  right: 0;
  display: none;
}

/* === Tour Blocks === */
#block-lifetime11-zoombookatourhomepage,
#block-lifetime11-16elementaryprogram2 {
  padding: 100px 50px;
}

#block-lifetime11-zoombookatourhomepage h2,
#block-lifetime11-16elementaryprogram2 h2 {
  text-align: center;
  font-size: 52px;
  font-weight: 300;
  color: #0a85b5;
  padding: 0;
  line-height: 100%;
}

#block-lifetime11-zoombookatourhomepage h2:after,
#block-lifetime11-16elementaryprogram2 h2:after {
  margin: 35px auto;
  content: " ";
  width: 340px;
  height: 3px;
  background-color: #60caf4;
  display: block;
}

#block-lifetime11-zoombookatourhomepage .view-book-a-free-group-tour {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  position: relative;
}

#block-lifetime11-zoombookatourhomepage p {
  margin-bottom: 60px;
}

#block-lifetime11-zoombookatourhomepage p,
#block-lifetime11-zoombookatourhomepage .item-list {
  text-align: center;
  flex: 1 100%;
}

#block-lifetime11-zoombookatourhomepage p,
#block-lifetime11-16elementaryprogram2 p {
  font-size: 22px;
}

#block-lifetime11-zoombookatourhomepage .views-row {
  flex-direction: column;
  width: 33%;
  border-right: 1px solid #b7bcbd;
}

#block-lifetime11-zoombookatourhomepage .views-row:last-child {
  border: 0;
}

#block-lifetime11-zoombookatourhomepage .views-field-nothing {
  padding: 0 25px;
}

#block-lifetime11-zoombookatourhomepage .views-field-nothing .field-content {
  padding: 20px 25px;
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
}

#block-lifetime11-zoombookatourhomepage
  .views-field-nothing
  .field-content:hover {
  background-color: #eaf1f1;
}

#block-lifetime11-zoombookatourhomepage .home-tour-day {
  color: #a0d840;
  font-size: 47px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  max-width: 104px;
  min-width: 104px;
  line-height: 100px;
  border: 2px solid #a0d840;
  border-radius: 50%;
  margin-right: 30px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.75);
}

#block-lifetime11-zoombookatourhomepage .home-tour-date {
  color: #313333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 13px;
}

#block-lifetime11-zoombookatourhomepage .home-tour-date strong {
  font-weight: 600;
  color: #a0d840;
}

#block-lifetime11-zoombookatourhomepage .home-tour-title {
  font-size: 17px;
  line-height: 1.3;
}

/* === Events Block === */
#block-lifetime11-views-block-events-block {
  padding: 100px 50px;
  background-color: #109bd2;
  color: #fff;
}

#block-lifetime11-views-block-events-block h2 {
  text-align: center;
  font-size: 52px;
  font-weight: 300;
  color: #fff;
  padding: 0;
  line-height: 100%;
}

#block-lifetime11-views-block-events-block h2:after {
  margin: 35px auto;
  content: " ";
  width: 340px;
  height: 3px;
  background-color: #2ce9ff;
  display: block;
}

#block-lifetime11-views-block-events-block [class*="js-view-dom-id"] {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  justify-content: space-between;
  position: relative;
}

#block-lifetime11-views-block-events-block header {
  margin-bottom: 60px;
}
#block-lifetime11-views-block-events-block header,
#block-lifetime11-views-block-events-block .item-list {
  text-align: center;
  flex: 1 100%;
}

#block-lifetime11-views-block-events-block header {
  font-size: 22px;
}

#block-lifetime11-views-block-events-block .views-row {
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 33%;
  border-right: 1px solid #b7bcbd;
}
#block-lifetime11-views-block-events-block .views-row:last-child {
  border: 0;
}

#block-lifetime11-views-block-events-block .views-field-nothing {
  padding: 0 25px;
}

#block-lifetime11-views-block-events-block .views-field-nothing .field-content {
  padding: 20px 25px;
  position: relative;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row nowrap;
  justify-content: flex-start;
}
#block-lifetime11-views-block-events-block
  .views-field-nothing
  .field-content:hover {
  background-color: #0b87b8;
}

#block-lifetime11-views-block-events-block
  .views-field-nothing
  .field-content
  .flex {
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

#block-lifetime11-views-block-events-block .home-events-day {
  color: #fff;
  font-size: 47px;
  font-weight: 300;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  max-width: 104px;
  min-width: 104px;
  line-height: 100px;
  border: 2px solid #08ddfd;
  border-radius: 50%;
  margin-right: 30px;
  box-sizing: border-box;
  background-color: rgba(16, 155, 210, 0.75);
}

#block-lifetime11-views-block-events-block .home-events-info {
}

#block-lifetime11-views-block-events-block .home-events-date {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 13px;
}

#block-lifetime11-views-block-events-block .home-events-link a {
  text-indent: -9999px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}

#block-lifetime11-views-block-events-block .home-events-title {
  font-size: 17px;
  line-height: 1.3;
}

#block-lifetime11-views-block-events-block .home-events-title strong {
  font-weight: 600;
  color: #08ddfd;
}

#block-lifetime11-views-block-events-block ul.pager {
  margin: 0;
  padding: 0;
  border: 0;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  -o-box-shadow: none;
  box-shadow: none;
  float: none;
  height: auto;
}

#block-lifetime11-views-block-events-block .pager-current {
  display: none;
}
#block-lifetime11-views-block-events-block .pager-previous,
#block-lifetime11-views-block-events-block .pager-next {
  border: 0;
  display: block;
  float: none;
  line-height: normal;
  position: absolute;
  top: calc(50% + 50px);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
#block-lifetime11-views-block-events-block .pager-previous {
  left: 0;
}
#block-lifetime11-views-block-events-block .pager-next {
  right: 0;
}
#block-lifetime11-views-block-events-block .pager-previous a,
#block-lifetime11-views-block-events-block .pager-next a {
  background-color: transparent !important;
  padding: 0;
  float: none;
  line-height: normal;
  position: relative;
  padding: 11px 13px;
}

#block-lifetime11-views-block-events-block .pager-next a:before,
#block-lifetime11-views-block-events-block .pager-next a:after {
  content: " ";
  background-color: #08ddfd;
  display: block;
  width: 30px;
  height: 3px;
  position: absolute;
  left: 0;
}

#block-lifetime11-views-block-events-block .pager-previous a:before,
#block-lifetime11-views-block-events-block .pager-previous a:after {
  content: " ";
  background-color: #08ddfd;
  display: block;
  width: 30px;
  height: 3px;
  position: absolute;
  right: 0;
}

#block-lifetime11-views-block-events-block .pager-next a:before {
  bottom: 8px;
  -o-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#block-lifetime11-views-block-events-block .pager-previous a:before {
  bottom: 8px;
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#block-lifetime11-views-block-events-block .pager-next a:after {
  top: 8px;
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
#block-lifetime11-views-block-events-block .pager-previous a:after {
  top: 8px;
  -o-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#block-lifetime11-views-block-events-block .counter {
  margin-left: 40%;
  text-align: center;
  border: 2px solid #00b7d4;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  line-height: 50px;
}

#block-lifetime11-views-block-events-block .field-date1 {
  font-size: 28px;
  text-align: center;
}

#block-lifetime11-views-block-events-block .title {
  font-size: 20px;
  color: #ffffff;
  text-align: center;
}

#block-lifetime11-views-block-events-block .view-node {
  color: #5fcaf4;
  text-align: center;
}

#block-lifetime11-views-block-events-block .view-node a {
  color: inherit;
  text-decoration: none;
}

/* === Events Page === */
#block-lifetime11-views-block-events-block-1 [class*="js-view-dom-id"] {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  justify-content: space-between;
}

#block-lifetime11-views-block-events-block-1 header {
  flex: 1 100%;
}

#block-lifetime11-views-block-events-block-1 .views-row {
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  width: calc(50% - 10px);
  margin: 10px 0;
  padding: 25px;
  box-sizing: border-box;
  background-color: #eaf1f1;
}

#block-lifetime11-views-block-events-block-1 .field-date1 {
  color: #313333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 13px;
  color: #313333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 13px;
}

#block-lifetime11-views-block-events-block-1 .views-field-title {
  font-size: 17px;
  line-height: 1.3;
}

/* === Testimonials === */
#block-lifetime11-views-block-testimonials-block-1 {
  padding: 100px 50px;
}
#block-lifetime11-views-block-testimonials-block-1 {
  padding: 100px 50px;
}

#block-lifetime11-views-block-testimonials-block-1 .block-inner {
  max-width: 1360px;
  margin: 0 auto;
}

#block-lifetime11-views-block-testimonials-block-1 h2 {
  font-size: 48px;
  color: #0a85b5;
  padding: 0;
  text-align: center;
  line-height: 100%;
}

#block-lifetime11-views-block-testimonials-block-1 h2:after {
  content: " ";
  display: block;
  background-color: #60caf4;
  max-width: 340px;
  height: 3px;
  margin: 30px auto;
}

#block-lifetime11-views-block-testimonials-block-1 [class*="js-view-dom-id"] {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  justify-content: space-between;
  max-width: 1370px;
  margin: 0 auto;
}

#block-lifetime11-views-block-testimonials-block-1 header,
#block-lifetime11-views-block-testimonials-block-1 footer {
  text-align: center;
  flex: 1 100%;
}
#block-lifetime11-views-block-testimonials-block-1 header {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 60px;
}

#block-lifetime11-views-block-testimonials-block-1 .views-row {
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 40%;
  margin-bottom: 80px;
}

#block-lifetime11-views-block-testimonials-block-1 .views-field-body {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 25px;
  text-align: center;
}

#block-lifetime11-views-block-testimonials-block-1 .views-field-body iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin-bottom: 15px;
  border: 0;
}

#block-lifetime11-views-block-testimonials-block-1 .views-field-body a {
  font-weight: 700;
}

#block-lifetime11-views-block-testimonials-block-1 .views-field-title {
  font-size: 17px;
  font-weight: 700;
  padding-top: 20px;
}

#block-lifetime11-views-block-testimonials-block-1 .views-field-field-subname {
  font-size: 18px;
  text-align: center;
}

#block-lifetime11-views-block-testimonials-block-1 footer a {
  display: inline-block;
  background-color: #b2cc27;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  padding: 27px 60px;
  line-height: 1.5rem;
}

#block-lifetime11-views-block-testimonials-block-1 ul.pager {
  height: auto;
  margin: 0;
  padding: 0;
  float: none;
  border: 0;
  border: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  -o-border-radius: 0;
  -ms-border-radius: 0;
  -khtml-border-radius: 0;
  border-radius: 0;
  -moz-box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
  -o-box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
  font-size: 100%;
}

#block-lifetime11-views-block-testimonials-block-1 ul.pager li.pager-current {
  display: none;
}

#block-lifetime11-views-block-testimonials-block-1 ul.pager li.pager-previous {
  float: left;
  padding: 0;
  margin: 0;
  border: 0;
}
#block-lifetime11-views-block-testimonials-block-1
  ul.pager
  li.pager-previous
  a {
  float: none;
  padding: 0;
  margin: 0;
  text-indent: -9999px;
  display: inline-block;
  line-height: 1px;
  background: url(images/testi-prev.jpg) 0 0 no-repeat;
  width: 40px;
  height: 41px;
}

#block-lifetime11-views-block-testimonials-block-1 ul.pager li.pager-next {
  float: right;
  padding: 0;
  margin: 0;
  border: 0;
}
#block-lifetime11-views-block-testimonials-block-1 ul.pager li.pager-next a {
  float: none;
  padding: 0;
  margin: 0;
  text-indent: -9999px;
  display: inline-block;
  line-height: 1px;
  background: url(images/testi-next.jpg) 0 0 no-repeat;
  width: 40px;
  height: 41px;
}

/* === Staff === */
.node-type-staff .field-type-image {
  float: right;
  width: 45%;
  margin: 0 0 20px 20px;
}

.node-type-staff .region-content {
  padding-top: 0;
}

.node-type-staff .field-name-field-staff-category {
  padding-bottom: 30px;
  padding-top: 12px;
  font-size: 20px;
  color: #86b830;
}

a.staff-link {
  display: block;
  text-align: right;
  padding: 10px 31px 10px 0;
  background: #a0d840 url(images/event-link.png) right center no-repeat;
  font-size: 19px;
  color: #fff;
}

a.staff-link:hover {
  background-color: #e0e5e8;
}

#block-lifetime11-views-block-staff-block h3 {
  font-size: 20px;
  color: #86b830;
  padding: 12px 0 15px 0;
  margin: 0;
}

#block-lifetime11-views-block-staff-block .views-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

/* Foto */
/* Contenedor de cada persona */
#block-lifetime11-views-block-staff-block .views-row {
  display: grid;
  grid-template-columns: 240px 1fr; /* Columna 1: foto | Columna 2: texto */
  grid-template-areas:
    "photo title"
    "photo body";
  align-items: flex-start;
  column-gap: 25px;
  row-gap: 10px;
  margin-bottom: 40px;
}

/* Foto => Columna 1, ocupando las dos filas */
#block-lifetime11-views-block-staff-block .views-field-field-photo {
  grid-area: photo;
}

#block-lifetime11-views-block-staff-block .views-field-field-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px; /* opcional */
}

/* Título => Columna 2, arriba */
#block-lifetime11-views-block-staff-block .views-field-title {
  grid-area: title;
}

#block-lifetime11-views-block-staff-block .views-field-title h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #22aae0;
  margin: 0;
  padding: 0 0 10px 0;
}

/* Body => Columna 2, abajo */
#block-lifetime11-views-block-staff-block .views-field-body {
  grid-area: body;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  #block-lifetime11-views-block-staff-block .views-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "title"
      "body";
  }
}

/* === Webform Contact === */

#block-lifetime11-webform {
  padding: 100px 50px;
  background-color: #eaf1f1;
}

#block-lifetime11-webform .block-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

#block-lifetime11-webform h1 {
  display: none;
}

#block-lifetime11-webform h2 {
  font-size: 48px;
  color: #232424;
  padding: 0;
  text-align: center;
  line-height: 100%;
}

#block-lifetime11-webform h2:after {
  content: " ";
  display: block;
  background-color: #109bd2;
  max-width: 340px;
  height: 3px;
  margin: 30px auto;
}

#block-lifetime11-webform .field-name-body p {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 60px;
}

#block-lifetime11-webform .form-item-first-name,
#block-lifetime11-webform .form-item-last-name,
#block-lifetime11-webform .form-item-phone,
#block-lifetime11-webform .form-item-email {
  width: calc(50% - 25px);
  float: left;
  margin-bottom: 30px;
}
#block-lifetime11-webform .form-item-last-name,
#block-lifetime11-webform .form-item-email {
  float: right;
}
#block-lifetime11-webform .webform-component-textarea {
  clear: both;
}

#block-lifetime11-webform input[type="text"],
#block-lifetime11-webform input[type="email"],
#block-lifetime11-webform textarea {
  background-color: #fff;
  font-size: 20px;
  padding: 20px;
}

#block-lifetime11-webform .compact-form-label {
  top: 0;
  left: 0;
  font-size: 20px;
  padding: 20px;
}

#block-lifetime11-webform .form-actions.form-wrapper {
  clear: both;
}

#block-lifetime11-webform #edit-submit {
  display: inline-block;
  background-color: #b2cc27;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  padding: 27px 60px;
  line-height: 1.5rem;
  border: 0;
  border-radius: 0;
  margin: 40px 0 0 0;
  background-image: none;
}

/* === Gallery === */
#block-lifetime11-views-block-gallery-block [class*="js-view-dom-id"] {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  justify-content: space-between;
}

#block-lifetime11-views-block-gallery-block .views-row {
  padding-bottom: 40px;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  width: calc(50% - 20px);
}

#block-lifetime11-views-block-gallery-block .views-field-nothing {
  position: relative;
}

#block-lifetime11-views-block-gallery-block .field-image img {
  display: block;
}

#block-lifetime11-views-block-gallery-block .views-field-nothing .field-title {
  font-size: 34px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  z-index: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
#block-lifetime11-views-block-gallery-block
  .views-field-nothing
  .field-title
  a {
  color: #fff;
}

#block-lifetime11-views-block-gallery-block
  .views-field-nothing
  .field-title:after {
  content: " ";
  max-width: 117px;
  height: 3px;
  display: block;
  margin: 16px auto;
  background-color: #fff;
}

#block-lifetime11-views-block-gallery-block .views-field-nothing:before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: block;
  background-color: #232d37;
  opacity: 0.32;
  z-index: 2;
}

#block-lifetime11-views-block-gallery-block .views-field-nothing:hover:before {
  background-color: #109bd2;
  opacity: 0.81;
}

#block-lifetime11-views-block-gallery-block .views-field-nothing .field-link a {
  text-indent: -9999px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  z-index: 3;
}

.node-type-gallery {
  padding-top: 30px;
}

.node-type-gallery .field__items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.node-type-gallery .field__item {
  flex: 0 0 calc(33.333% - 20px);
}

.node-type-gallery .field__item a {
  margin: 0 10px;
  display: block;
}

@media (max-width: 768px) {
  .node-type-gallery .field__item {
    flex: 0 0 100%;
  }
}

/* VIEWS */
/* Testimonial Styles */

#block-lifetime11-views-block-testimonials-block .views-row {
  background: #eaeff1 url(../images/home-quote.gif) 0 0 no-repeat;
  padding: 20px;
  color: #778990;
  margin-bottom: 30px;
}

#block-lifetime11-views-block-testimonials-block .views-field-body {
  padding-left: 21px;
}

#block-lifetime11-views-block-testimonials-block .views-field-title {
  font-size: 17px;
  font-weight: 700;
}

#block-lifetime11-views-block-testimonials-block .views-field-field-subname {
  font-style: italic;
}

#block-lifetime11-views-block-testimonials-block iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin-bottom: 15px;
  border: 0;
}

/* Quote Styles */

#block-lifetime11-views-block-quotes-block h2 {
  font-size: 32px;
  margin: 40px 0 20px 0;
}

#block-lifetime11-views-block-quotes-block .views-row {
  padding-bottom: 30px;
}

#block-lifetime11-views-block-quotes-block .views-field-title {
  padding-left: 15px;
  font-style: italic;
  font-weight: 700;
}

/* Document Styles */

#block-views-documents-block .views-row {
  padding: 5px 0;
}

#block-views-documents-block .views-field-nothing a {
  background: url(images/file-icon.png) 0 0 no-repeat;
  background-size: 33px 42px;
  padding: 15px 15px 15px 45px;
  display: inline-block;
}

#block-views-documents-block .views-field-nothing a span.doc-desc {
  font-size: 14px;
}

/* === Media Document Styles === */
.media-document {
  margin: 1rem 0;
}

.document-wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.document-wrapper:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
}

.document-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
  transition: background-color 0.2s ease;
}

.document-link:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.document-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b538b 0%, #22aae0 100%);
  border-radius: 8px;
  color: white;
}

.document-icon svg {
  width: 32px;
  height: 32px;
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-description {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.document-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.document-type {
  font-weight: 600;
  color: #667eea;
}

.document-separator {
  color: #ddd;
}

.document-size {
  color: #999;
}

.document-action {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  transition: transform 0.2s ease;
}

.document-link:hover .document-action {
  transform: translateY(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .document-link {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .document-info {
    width: 100%;
  }

  .document-name {
    white-space: normal;
  }
}

/* === Jobs View === */
.path-join-our-team .view-jobs {
  display: block !important;
}
.view-jobs header {
  margin-top: 20px;
}
.job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.job-item:last-child {
  border-bottom: none;
}

.job-title-wrapper {
  flex: 1;
}

.job-title-wrapper {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.job-title-wrapper a:hover {
  color: #22aae0;
}

.job-apply-wrapper {
  flex-shrink: 0;
  margin-left: 2rem;
}

.job-apply-wrapper a {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #22aae0;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.job-apply-wrapper a:hover {
  background-color: #1a8ab8;
}

/* ======================================
   Mobile Responsive Components
   ====================================== */

@media (max-width: 992px) {
  /* Preblocks - Stack programs vertically */
  .region-preblocks {
    flex-direction: column;
    padding: 50px 20px;
  }

  #block-lifetime11-16elementaryprogram,
  #block-lifetime11-primaryprogram,
  #block-lifetime11-toddlerprogram {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px auto;
  }
}

@media (max-width: 768px) {
  /* Jobs - Stack vertically */
  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .job-apply-wrapper {
    margin-left: 0;
    width: 100%;
  }

  /* Tour Block - Stack vertically */
  #block-lifetime11-zoombookatourhomepage {
    padding: 50px 20px;
  }

  #block-lifetime11-zoombookatourhomepage h2,
  #block-lifetime11-16elementaryprogram2 h2 {
    font-size: 32px;
  }

  #block-lifetime11-zoombookatourhomepage .view-book-a-free-group-tour {
    flex-direction: column;
  }

  #block-lifetime11-zoombookatourhomepage .views-row {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #b7bcbd;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  #block-lifetime11-zoombookatourhomepage .views-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  #block-lifetime11-zoombookatourhomepage .views-field-nothing {
    padding: 0;
  }

  #block-lifetime11-zoombookatourhomepage .views-field-nothing .field-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #block-lifetime11-zoombookatourhomepage .home-tour-day {
    margin-right: 0;
    margin-bottom: 15px;
  }

  #block-lifetime11-zoombookatourhomepage p,
  #block-lifetime11-16elementaryprogram2 p {
    font-size: 16px;
  }

  /* Events Block - Stack vertically */
  #block-lifetime11-views-block-events-block {
    padding: 50px 20px;
  }

  #block-lifetime11-views-block-events-block h2 {
    font-size: 36px;
  }

  #block-lifetime11-views-block-events-block [class*="js-view-dom-id"] {
    flex-direction: column;
  }

  #block-lifetime11-views-block-events-block .views-row {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(183, 188, 189, 0.5);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  #block-lifetime11-views-block-events-block .views-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  #block-lifetime11-views-block-events-block .views-field-nothing {
    padding: 0;
  }

  #block-lifetime11-views-block-events-block
    .views-field-nothing
    .field-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #block-lifetime11-views-block-events-block .home-events-day {
    margin-right: 0;
    margin-bottom: 15px;
  }

  #block-lifetime11-views-block-events-block header {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Webform Block */
  #block-lifetime11-webform {
    padding: 50px 20px;
  }

  #block-lifetime11-webform h2 {
    font-size: 32px;
  }

  #block-lifetime11-webform .webform-submission-form {
    padding: 30px 20px;
  }

  #block-lifetime11-webform .webform-flex--container {
    flex-direction: column !important;
  }

  #block-lifetime11-webform .webform-flex--container > .js-form-item,
  #block-lifetime11-webform .webform-flex--container > .js-form-wrapper {
    width: 100% !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 576px) {
  /* Further reduce padding on small screens */
  .region-preblocks {
    padding: 30px 15px;
  }

  #block-lifetime11-zoombookatourhomepage {
    padding: 30px 15px;
  }

  #block-lifetime11-views-block-events-block {
    padding: 30px 15px;
  }

  #block-lifetime11-webform {
    padding: 30px 15px;
  }

  /* Reduce circle sizes for very small screens */
  #block-lifetime11-zoombookatourhomepage .home-tour-day,
  #block-lifetime11-views-block-events-block .home-events-day {
    width: 80px;
    max-width: 80px;
    min-width: 80px;
    line-height: 76px;
    font-size: 36px;
  }

  /* Staff node - Stack image and content */
  .node-type-staff .field-type-image {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  /* Webform fields - Stack vertically */
  #block-lifetime11-webform .form-item-first-name,
  #block-lifetime11-webform .form-item-last-name,
  #block-lifetime11-webform .form-item-phone,
  #block-lifetime11-webform .form-item-email {
    width: 100% !important;
    float: none !important;
  }

  /* Testimonials pager - Adjust spacing */
  #block-lifetime11-views-block-testimonials-block-1 ul.pager {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }

  /* Testimonials Block - Stack vertically */
  #block-lifetime11-views-block-testimonials-block-1 {
    padding: 50px 20px;
  }

  #block-lifetime11-views-block-testimonials-block-1 [class*="js-view-dom-id"] {
    flex-direction: column;
  }

  #block-lifetime11-views-block-testimonials-block-1 .views-row {
    width: 100%;
    margin-bottom: 40px;
  }

  #block-lifetime11-views-block-testimonials-block-1 header {
    font-size: 16px;
    margin-bottom: 30px;
  }

  #block-lifetime11-views-block-testimonials-block-1 footer a {
    font-size: 20px;
    padding: 20px 40px;
  }

  /* Events Page Block - Stack vertically */
  #block-lifetime11-views-block-events-block-1 [class*="js-view-dom-id"] {
    flex-direction: column;
  }

  #block-lifetime11-views-block-events-block-1 .views-row {
    width: 100%;
    margin: 10px 0;
  }

  /* Gallery Block - Stack vertically */
  #block-lifetime11-views-block-gallery-block [class*="js-view-dom-id"] {
    flex-direction: column;
  }

  #block-lifetime11-views-block-gallery-block .views-row {
    width: 100%;
    margin-bottom: 30px;
  }

  #block-lifetime11-views-block-gallery-block
    .views-field-nothing
    .field-title {
    font-size: 24px;
  }

  /* Testimonials Sidebar */
  #block-lifetime11-views-block-testimonials-block .views-row {
    padding: 15px;
  }

  #block-lifetime11-views-block-testimonials-block .views-field-body {
    padding-left: 15px;
  }

  /* Document wrapper - Better mobile layout */
  .document-link {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .document-icon {
    width: 40px;
    height: 40px;
  }

  .document-icon svg {
    width: 24px;
    height: 24px;
  }

  .document-name {
    font-size: 0.9rem;
  }

  .document-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Very small screens - Further adjustments */
  #block-lifetime11-views-block-testimonials-block-1 footer a {
    font-size: 18px;
    padding: 15px 30px;
  }

  #block-lifetime11-views-block-gallery-block
    .views-field-nothing
    .field-title {
    font-size: 20px;
  }

  .document-link {
    flex-direction: column;
    text-align: center;
  }

  .document-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .document-separator {
    display: none;
  }
}

