/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

/* General styles */
:root {
	    --tec-color-background-events: #FFFBEA;
}

body {
  font-weight: 400;
	background: #FFFBEA;
}


/* Desktop Menu */

.et_pb_menu .et-menu > li,
.et-db #et-boc .et-l .et_pb_menu .et-menu > li {
  padding-inline: clamp(
    1rem,
    -1.1372549019607847rem + 3.485838779956427vw,
    2rem
  ) !important;
}

/* Mobile menu */

#mobile_menu2,
.et-db #et-boc .et-l .et_mobile_menu {
  display: fixed !important;
  top: 130px;
  left: 50%;
  transform: translatex(-50%);
  width: 100vw;
  height: calc(100vh - 130px);
}

@media (max-width: 767px) {
  #mobile_menu2,
  .et-db #et-boc .et-l .et_mobile_menu {
    top: 100px;
    height: calc(100vh - 100px);
  }
}

#mobile_menu2 li,
.et-db #et-boc .et-l .et_mobile_menu li {
  margin-bottom: 1rem;
}

.et_mobile_menu li a,
.et-db #et-boc .et-l .et_mobile_menu li a {
  border-bottom: unset;
}

.et_mobile_menu li a:hover,
.nav ul li a:hover,
.et-db #et-boc .et-l .et_mobile_menu li a:hover {
  background-color: #fffdf5;
  opacity: 1;
}

@media (min-width: 980px) {
  .et_pb_menu__logo img {
    width: 330px !important;
    height: 220px !important;
  }
}

/* Buttons */
#services .et_pb_button_module_wrapper,
#events-and-news .et_pb_button_module_wrapper,
#how-it-works .et_pb_button_module_wrapper {
  display: inline-block;
  margin-right: 1rem;
}

/* Form */
.nf-before-form-content,
.ninja-forms-req-symbol {
  display: none;
}

@media (max-width: 980px) {
  .nf-field-label {
    margin-top: 1.5rem;
  }
}

#bmi-form input[type='text'],
#bmi-form input[type='email'],
#bmi-form input[type='tel'],
#bmi-form textarea,
#bmi-form select {
  color: #071211;
  background-color: #1d4b4620;
  border: 0px solid;
  border-radius: 5px;
  border-color: #ae4141;
}

#bmi-form input[type='submit'] {
  font-family: 'Alegreya Sans SC';
  font-size: 1rem;
  color: #fffbea;
  background-color: #1d4b46;
  border-color: #df671b;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 5px;
  padding: 1rem 1.5rem;
  cursor: pointer;
}

#bmi-form input[type='submit']:hover {
  color: #fffbea;
  background-color: #004945;
  border-color: #dd5500;
}

.nf-field-label label {
  font-family: 'Alegreya Sans SC';
  color: #1d4b46;
}

.thank-you-message {
  background-color: #1d4b4620;
  padding: 2rem;
}

.thank-you-message h6 {
  margin-bottom: 1rem;
}

#bmi-form h3 {
  margin-top: 1rem;
  margin-bottom: -1rem;
  font-size: 18px;
}

/* Main content */

#main-content li {
  line-height: 2;
}

#main-content li:not(:last-child) {
  margin-bottom: 1.5rem;
}

#main-content h2,
h3,
h4,
h5,
h6 {
  margin-top: 1rem;
}

/* Events */

.tribe-events .tribe-events-l-container,
.tribe-events .tribe-events-l-container {
  padding-bottom: 0 !important;
}

.long-description,
.tribe-events.tribe-common,
.tribe-events-single-section.tribe-events-event-meta {
  padding-inline: 3rem;
}

.long-description {
  margin-top: 2rem;
  font-size: 1.125rem;
}

@media (max-width: 550px) {
  .long-description,
  .tribe-events.tribe-common,
  .tribe-events-single-section.tribe-events-event-meta {
    padding-inline: 0.5rem;
  }
}

.tribe-events-meta-group,
.tribe-events-venue-map {
  width: 100%;
}

.tribe-events-gmap.customize-unpreviewable {
  display: none;
}

.tribe-events-event-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.tribe-events-meta-group-venue {
  grid-column: 2 / -1;
}

.tribe-events-meta-group-gmap {
  grid-column: 1 / -1;
  grid-row: 2/ -1;
  margin: 0;
}

@media (min-width: 768px) {
  .tribe-events-meta-group-gmap {
    margin-bottom: -3rem;
  }
}

@media (max-width: 500px) {
  .tribe-events-meta-group-details,
  .tribe-events-meta-group-venue {
    grid-column: 1 / -1;
  }
}

.tribe-events-meta-group-venue {
  border-top: none !important;
}

.tribe-events-event-meta a,
.tribe-events-event-meta a:visited {
  color: #1b4d46;
  font-weight: 700;
}

.tribe-events-c-search__button,
.tribe-common .tribe-common-c-btn-border {
  background-color: #1d4b46 !important;
  color: #fffbea;
  border: #1d4b46;
}

.tribe-events
  .tribe-events-c-events-bar
  .tribe-common-form-control-text__input {
  background-color: #fffdf5;
}

/* Event Image */

.tribe-events-single-event-title {
  position: absolute;
  top: 60vh;
  left: 50%;
  width: 100%;
  text-align: center;
  transform: translatex(-50%);
  color: #fff;
  z-index: 2;
}

.tribe-events-schedule {
  position: absolute;
  top: 250px;
  left: 0;
  background: #ae4141;
  padding: 1rem 2rem;
  z-index: 2;
}

.tribe-events-schedule h2 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-weight: 500;
}

@media (max-width: 550px) {
  .tribe-events-schedule {
    top: 90%;
    left: 50%;
    transform: translatex(-50%);
    padding: 0.5rem 1rem;
  }
}

.tribe-events-cost {
  display: none;
}

.tribe-events-back {
  display: none;
}

#tribe-events-pg-template {
  padding-top: 0;
}

.tribe-events-event-image img {
  width: 100vw !important;
  max-width: 100vw !important;
  height: calc(100vh - 166px) !important;
  object-fit: cover;
}

.tribe-events-event-image {
  position: relative;
  left: -20px;
}

@media (min-width: 1048px) {
  .tribe-events-event-image {
    position: relative;
    left: calc((-100vw + 1048px) / 2 - (20px)) !important;
  }
}

.tribe-events-event-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Adjust the opacity as needed */
  z-index: 1;
}

.post-type-archive-tribe_events #all-events-button {
  display: none !important;
}

.tribe-events-single > .tribe_events {
  overflow: unset;
}

/* News */
.blog .post-content {
  line-height: 1.7;
}

.blog .post-content a {
  display: inline-block;
  background: #1d4b46 !important;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border-radius: 5px;
}

@media (min-width: 550px) and (max-width: 980px) {
  .blog .column.size-1of1 {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem;
  }

  .blog .entry-title a {
    font-size: 1.1rem !important;
  }
}

.et_pb_title_meta_container {
  background: rgba(174, 65, 65, 0.85);
}

@media (min-width: 550px) {
  .et_pb_title_meta_container {
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
    padding: 1rem 2rem !important;
  }
}

@media (max-width: 550px) {
  .et_pb_post_title.et_pb_featured_bg .et_pb_title_container {
    padding: 0 !important;
  }
}

/* Brokerage and Consignment (temporary solution) */

@media (max-width: 550px) {
  .page-id-120 h1,
  .page-id-108 h1 {
    font-size: 30px;
  }
}

/* Single bike */
.single-bike .entry-title {
  margin-top: 3rem;
}

.single-bike p {
  margin-bottom: 3rem;
}

/* Temporary solution */
.single-bike #inquire-button {
  font-size: 18px;
  background-color: #1d4b46;
  border-color: #1d4b46;
  border-radius: 5px;
  font-weight: bold;
  font-style: normal;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 0.3em 1em !important;
}

/* No Results Found */
h2.not-found-title + p {
	text-align: center;
	margin-top: 2rem
}

@media(min-width: 1200px){
	h2.not-found-title, #page-container #et-boc .et-l .et_pb_blog_0_tb_body .not-found-title {
		font-size: 1.5rem !important;
	}
}
