/*
Theme Name: Divi Child
Theme URI: https://diviextended.com/
Version: 1.0
Description: Child Theme of Divi
Author: Rushvi
Template: Divi
*/
/*@import url("../Divi/style.css");*/

/* Header menu hover color */
#top-menu li a:hover {
  color: #2ea1d1 !important;
}

/* Outer section styling */
.custom-slider-section {
  width: 100vw;
  max-width: 100%;
  padding: 0 !important;
}

/* Control slider height */
.custom-slider-section .et_pb_slider {
  width: 100% !important;
  height: calc(100vh - 111px) !important;
}

/* Align slide content properly */
.custom-slider-section .et_pb_slide {
  height: calc(100vh - 111px) !important;
  align-items: center;
  justify-content: space-between;
  background-position: center top !important;
}

.custom-slider-section .et_pb_container {
  display: flex;
  align-items: center;
}

/* Style and position the form */
.form-overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  width: 380px;
  padding: 0px 30px 15px 30px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.form-overlay .wpforms-head-container {
  padding: 0 0 15px 0 !important;
}

.custom-slider-content h5{
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1em;
    letter-spacing: 2px;
    color: #2ea1d1 !important;
}
.custom-slider-content p{
    font-size:16px;
    letter-spacing: 1px;
}
.slider-content-wrapper{
    margin-top: 20px;
}
/* Responsive mobile fallback */
@media only screen and (max-width: 768px) {
  .custom-slider-section .et_pb_slider,
  .custom-slider-section .et_pb_slide {
    height: auto !important;
    padding: 0 !important;
  }

  .form-overlay {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin: 20px 0;
    box-shadow: none;
  }
}

/* Remove bullets from footer widget menus */
#footer-widgets .footer-widget li::before {
  content: none !important;
}

/* Tweak widget spacing */
#footer-widgets .fwidget {
  margin-bottom: 20px;
}
#footer-widgets .footer-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#footer-widgets .footer-widget:nth-child(2) {
  /*padding-right: 0;*/
  margin-right: 0;
}
.custom-slider-section .et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Optional: reduce max width */
.custom-slider-section .et_pb_slide_description {
  /*max-width: 450px;*/
  padding: 0 15px;
}

.form-overlay button[type="submit"] {
  width: 100% !important;
  background-color: #2ea1d1 !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* slider overlay */
.et_pb_slider .et_pb_slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.wpforms-title {
  font-family: "Montserrat", sans-serif !important;
  font-size: 27px !important;
}
.form-overlay input[type="text"],
.form-overlay input[type="email"],
.form-overlay textarea {
  border-radius: 8px !important;
  margin-bottom: 2px !important;
  font-size: 15px !important;
}

.form-overlay .wpforms-container .wpforms-field {
  padding: 10px 0 !important;
}

.form-overlay input::placeholder,
.form-overlay textarea::placeholder {
  color: #666 !important;
  opacity: 1 !important;
}

.form-overlay input[type="text"]:focus,
.form-overlay input[type="email"]:focus,
.form-overlay textarea:focus {
  border-color: #2ea1d1 !important;
  box-shadow: 0 0 0 2px rgba(46, 161, 209, 0.2) !important;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* media query for desktop */
@media only screen and (max-width: 767px) {
  .custom-slider-section .et_pb_slider,
  .custom-slider-section .et_pb_slide {
    height: auto !important;
    min-height: 450px !important;
  }
  .custom-slider-section .et_pb_slide {
    background-position: center right !important;
  }

  .form-overlay {
    width: 80% !important;
    margin: 35px auto !important;
    padding: 25px;
    border-radius: 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}
@media only screen and (max-width: 980px) and (min-width: 768px) {
  .custom-slider-section .et_pb_slider,
  .custom-slider-section .et_pb_slide {
    height: auto !important;
    min-height: 500px !important;
  }

  .form-overlay {
    width: 90% !important;
    max-width: 680px !important;
    margin: 50px auto !important;
    padding: 35px 30px !important;
    background: #fff;
    border-radius: 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .form-overlay button[type="submit"] {
    margin-top: 15px;
  }
}

@media only screen and (min-width: 981px) and (max-width: 1200px) {
  .custom-slider-section .et_pb_slider,
  .custom-slider-section .et_pb_slide {
    height: 40vh !important;
    padding-left: 0 !important;
  }

  .form-overlay {
    position: relative !important;
    transform: none !important;
    width: 90% !important;
    margin: 30px auto !important;
    top: auto !important;
    left: auto !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
}
.wpforms-title {
  text-align: center;
}

/* === Equal-height, 3-column grid for this Blog module === */
.equalize-blog .et_pb_salvattore_content[data-columns]{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* force 3 cols */
  column-gap: 30px; /* adjust to match your gutter */
  row-gap: 30px;
}

/* Kill Salvattore’s column wrappers so articles become grid items */
.equalize-blog .et_pb_salvattore_content[data-columns] .column{
  display: contents !important;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Make each card stretch evenly */
.equalize-blog article.et_pb_post{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0; /* prevents overflow pushing items to next row */
}

.equalize-blog .et_pb_image_container{ flex: 0 0 auto; }
.equalize-blog .post-content{ flex: 1 1 auto; }


@media only screen and (min-width: 1200px) {
  .custom-slider-section .et_pb_slider_container_inner {
    width: 60%;
    margin-left: auto;
    display: block;
  }
}
@media (min-width: 1024px) and (max-width: 1025px) {
  .wpforms-container .wpforms-title {
    padding-top: 30px !important;
  }
}
