/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Job Search Form Styles */
.dycom-job-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.dycom-job-search-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    font-size: 16px;
    max-width: 300px;
}

.dycom-job-search-form input[type="text"]::placeholder {
    color: #999999;
}

.dycom-job-search-form button {
    padding: 12px 25px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dycom-job-search-form button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dycom-job-search-form {
        flex-direction: column;
        gap: 15px;
    }

    .dycom-job-search-form input[type="text"] {
        max-width: 100%;
        width: 100%;
    }

    .dycom-job-search-form button {
        width: 100%;
    }
}

/* Custom styles for nectar horizontal list items */
.nectar-hor-list-item {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 0;
}

.nectar-hor-list-item > .nectar-list-item {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 15px;
  box-sizing: border-box;
}

/* Fix for the hover animation */
.nectar-hor-list-item[data-hover-effect="default"]:before {
  height: 100%;
  opacity: 0;
  bottom: 0;
  left: 0;
  content: '';
  position: absolute;
  right: 0;
  z-index: 0;
  -webkit-transform: perspective(1000px) rotateX(90deg);
  -ms-transform: perspective(1000px) rotateX(90deg);
  transform: perspective(1000px) rotateX(90deg);
  -webkit-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transition: all .4s cubic-bezier(0.2,0,0.15,1);
  -ms-transition: all .4s cubic-bezier(0.2,0,0.15,1);
  transition: all .4s cubic-bezier(0.2,0,0.15,1);
}

/* Background colors for different themes */
.nectar-hor-list-item[data-color="black"]:before {
  background-color: #000;
}

.nectar-hor-list-item[data-color="white"]:before {
  background-color: #fff;
}

/* Dynamic accent color is set via inline CSS in PHP */

.nectar-hor-list-item[data-hover-effect="default"]:hover {
  border-color: transparent !important;
}

.nectar-hor-list-item[data-hover-effect="default"]:hover:before {
  opacity: 1;
  -webkit-transform: perspective(1000px) rotateX(0);
  -ms-transform: perspective(1000px) rotateX(0);
  transform: perspective(1000px) rotateX(0);
}

/* Text color on hover for dark backgrounds */
.nectar-hor-list-item[data-hover-effect="default"]:hover .nectar-list-item, 
.nectar-hor-list-item[data-hover-effect="default"]:hover .nectar-list-item-btn,
.nectar-hor-list-item[data-hover-effect="default"]:hover h4 {
  color: #fff !important;
}

/* Text color on hover for white backgrounds */
.nectar-hor-list-item[data-color="white"]:hover .nectar-list-item, 
.nectar-hor-list-item[data-color="white"]:hover .nectar-list-item-btn,
.nectar-hor-list-item[data-color="white"]:hover h4 {
  color: #000;
}

/* Column layout for 3 columns */
.nectar-hor-list-item[data-columns="3"] > .nectar-list-item:nth-child(1) {
  width: 60%;
}

.nectar-hor-list-item[data-columns="3"] > .nectar-list-item:nth-child(2) {
  width: 20%;
}

.nectar-hor-list-item[data-columns="3"] > .nectar-list-item:nth-child(3) {
  width: 20%;
  text-align: right;
  justify-content: flex-end;
}

/* Override the responsive media query that's causing the stacking issue */
@media only screen and (min-width: 1px) and (max-width: 999px) {
  .nectar-hor-list-item[data-columns="3"] .nectar-list-item:nth-child(1) {
    width: 60% !important;
  }
  
  .nectar-hor-list-item[data-columns="3"] .nectar-list-item:nth-child(2),
  .nectar-hor-list-item[data-columns="3"] .nectar-list-item:nth-child(3) {
    width: 20% !important;
  }
  
  .nectar-hor-list-item[data-columns="3"] .nectar-list-item,
  .nectar-hor-list-item[data-columns="4"] .nectar-list-item {
    display: flex !important;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
  }
  
  .nectar-hor-list-item.has-btn[data-columns="3"] > div:nth-child(1),
  .nectar-hor-list-item.has-btn[data-columns="4"] > div:nth-child(1) {
    padding-right: 15px;
  }
  
  .nectar-hor-list-item[data-columns="4"] .nectar-list-item .nectar-list-item-btn, 
  .nectar-hor-list-item[data-columns="3"] .nectar-list-item .nectar-list-item-btn {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 10px;
  }
}

/* For very small screens, we can allow stacking */
@media only screen and (max-width: 600px) {
  .nectar-hor-list-item[data-columns="3"] .nectar-list-item,
  .nectar-hor-list-item[data-columns="4"] .nectar-list-item {
    width: 100% !important;
    display: block !important;
    padding: 15px 0;
  }
}

.nectar-hor-list-item[style*="--hover-bg"]::before {
  background-color: var(--hover-bg);
}

.nectar-hor-list-item[style*="--hover-bg"]:hover::before {
  opacity: 1;
  transform: perspective(1000px) rotateX(0);
  border-color: transparent !important;
}

.wpb_wrapper>div {
  margin-bottom: 5px
}

.read-more-wrapper {
  max-height: 0; 
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.read-more-wrapper.expanded {
  max-height: 1000px; 
}

.read-more-toggle {
  display: inline-block;
  cursor: pointer;
}

.benefit-slider .icon-default-style {
  margin-bottom: 0px !important;
}

.benefit-slider .iwithtext {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  margin-bottom: 15px;
}

.benefit-slider .iwt-text {
  padding-left: 30px !important;
}

.benefit-slider .iwithtext .iwt-icon img {
  width: 100px !important;
  filter: var(--icon-filter);
}

.benefit-slider .iwithtext .iwt-icon {
  position: relative;
  display: flex;
}

/* Allow for custom icon colors via data attribute */
.benefit-slider .iwithtext .iwt-icon[data-icon-color] img {
  filter: var(--icon-filter);
}