:root {
  --cavello-green: #324037;
  --cavello-orange: #ff5000;
  --cavello-dark: #b3a684;
  --cavello-light: #f9f9fa;
}

/* Accessibility Fixes */

.skip-to-content a {
  padding: 10px 20px;
  position: absolute;
  top: -43px;
  left: 4px;
  color: #ffffff;
  border-radius: 2px;
  background: #314037;
  transition: top 1s ease-out;
  z-index: 100;
  font-size: 0.875rem;
  display: block;
  margin-bottom: -43px;
  margin-top: -10px; /* Counteract the negative top margin */
}

.skip-to-content a:focus {
  position: relative;
  top: 0px;
  left: 4px;
  margin-bottom: 20px;
  transition: top 0.1s ease-in, margin-bottom 0.1s ease-in;
  color: #ffffff;
}

#mainContent:focus {
  outline: none;
  border: none;
}

#mainContent:focus-visible {
  outline: none;
  border: none;
}

/* ----- Fonts ----- */

@font-face {
  font-family: "Poppins";
  font-weight: 300;
  src: url("poppins-light.woff2") format("woff2"),
    url("poppins-light.woff") format("woff"),
    url("poppins-light.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  src: url("/poppins-regular.woff2") format("woff2"),
    url("/poppins-r.woff") format("woff"),
    url("/poppins-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  src: url("/poppins-semibold.woff2") format("woff2"),
    url("/poppins-semibold.woff") format("woff"),
    url("/poppins-semibold.ttf") format("truetype");
}

/* ----- General ----- */

body {
  font-family: "Poppins", sans-serif !important;
  color: var(--cavello-green);
  font-size: 15px;
}
body,
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
p,
a {
  font-family: "Poppins", sans-serif !important;
  letter-spacing: 0.5px;
  color: var(--cavello-green);
}
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-weight: 600;
  color: var(--cavello-green);
  line-height: 1.5;
}
h1,
.h1 {
  font-size: 40px;
}
h2,
.h2 {
  font-size: 34px;
}
h3,
.h3 {
  font-size: 29px;
}
h4,
.h4 {
  font-size: 25px;
}
h5,
.h5 {
  font-size: 22px;
}
p {
  font-size: 15px;
}
a {
  font-weight: bold;
}
a:hover,
a:focus {
  text-decoration: none;
  color: var(--cavello-green);
}
a.text-primary:hover:not(a.btn) {
  border-bottom: 2px solid var(--cavello-green);
  padding-bottom: 2px;
}
h2.mini-title,
h3.mini-title {
  font-size: 24px !important;
  color: #ff5000;
}

.display-6 {
  font-weight: 400;
}

.breadcrumb {
  padding: 0;
  margin: 0;
}

/* ----- Buttons ----- */

.btn {
  font-size: 16px;
  border-width: 2px;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.25rem;
}

.btn-light {
  background-color: transparent !important;
}

.btn-light:hover {
  border-color: var(--cavello-green);
}

.btn-light {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--cavello-light);
  --bs-btn-border-color: var(--cavello-light);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #d3d4d5;
  --bs-btn-hover-border-color: #c6c7c8;
  --bs-btn-focus-shadow-rgb: 211, 212, 213;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #c6c7c8;
  --bs-btn-active-border-color: #babbbc;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--cavello-light);
  --bs-btn-disabled-border-color: var(--cavello-light);
}

.btn-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgb(33 37 41 / 40%);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #424649;
  --bs-btn-hover-border-color: #424649;
  --bs-btn-focus-shadow-rgb: 66, 70, 73;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #424649;
  --bs-btn-active-border-color: #424649;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #212529;
  --bs-btn-disabled-border-color: #212529;
}

.btn-outline-primary {
  --bs-btn-color: var(--cavello-green);
  --bs-btn-border-color: var(--cavello-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cavello-green);
  --bs-btn-hover-border-color: var(--cavello-green);
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--cavello-green);
  --bs-btn-active-border-color: var(--cavello-green);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--cavello-green);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--cavello-green);
  --bs-gradient: none;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
  color: #ffffff !important;
}

.btn-outline-light:hover,
.btn-outline-light:active,
.btn-outline-light:focus-visible {
  color: var(--cavello-green) !important;
}

.submit-btn {
  background-color: transparent !important;
  border: 2px solid var(--cavello-green) !important;
  color: var(--cavello-green) !important;
  padding: 12px 42px 12px 24px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

/* Hover effect */
.submit-btn:hover {
  background-color: var(--cavello-green) !important;
  color: white !important;
}

/* Focus state for accessibility */
.submit-btn:focus {
  outline: 2px solid var(--cavello-green);
  outline-offset: 2px;
}

/* When button shows "Processing..." remove the arrow */
.submit-btn[value*="Processing"]:after {
  display: none;
}

/* ----- Helpers ----- */

.bg-primary {
  background-color: var(--cavello-green) !important;
}
.bg-secondary {
  background-color: var(--cavello-orange) !important;
}
.bg-dark {
  background-color: var(--cavello-dark) !important;
}
.bg-light {
  background-color: var(--cavello-light) !important;
}
.text-primary {
  color: var(--cavello-green) !important;
}
.text-secondary {
  color: var(--cavello-orange) !important;
}
.div-image {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hover-highlight {
  position: relative; /* Essential for positioning the pseudo-element */
  overflow: hidden; /* Ensures the pseudo-element doesn't go outside the container */
}

.hover-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(
    255 255 255 / 0%
  ); /* Start with a fully transparent overlay */
  transition: background-color 0.3s ease; /* Add a smooth transition */
}

.hover-highlight:hover::before {
  background-color: rgba(
    255,
    255,
    255,
    0.4
  ); /* On hover, make the white overlay visible */
}
/* ----- Layout ----- */

.container {
  max-width: 1200px;
}
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ----- Navbar ----- */

.navbar {
  background-color: var(--cavello-green);
  padding: 15px 0;
}
.navbar .navbar-brand a {
  display: block;
  width: 125px;
}
.navbar-nav > li > a {
  color: #ffffff;
  padding: 15px 20px !important;
}
.navbar-nav > li > a.dropdown-toggle::after {
  color: var(--cavello-orange);
  transform: rotate(-90deg);
}

.navbar-nav > li > a.dropdown-toggle.show::after {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.dropdown-menu {
  border-radius: 0;
  border: none;
  padding: 1.25rem;
}

.dropdown-menu[data-bs-popper] {
  top: 126%;
  left: -28px;
}

.dropdown-menu li {
  margin-bottom: 8px;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
  padding: 4px 16px;
}

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: transparent !important;
  color: var(--cavello-green);
}

a.dropdown-item:hover span.dropdown-underline {
  border-bottom: 2px solid var(--cavello-orange);
}

span.dropdown-underline:hover {
  border-bottom: 2px solid var(--cavello-orange);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:focus,
.dropdown-menu > .active > a:hover {
  padding: 4px 16px;
  outline: 2px solid rgba(0, 0, 0, 0.15);
  border: none;
}

.dropend .dropdown-toggle::after {
  position: absolute;
  right: 4px;
  top: 12px;
  color: var(--cavello-orange);
}

.dropend:hover .dropdown-toggle::after {
  transform: rotate(90deg);
  transition: transform 0.1s ease;
}

/* Expandable Search Input */
.expandable-search-container {
  position: relative;
  display: inline-block;
}

.expandable-search-form {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.expandable-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.expandable-search-input {
  background-color: transparent;
  border: none;
  border-radius: 15px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  height: 30px;
  outline: none;
  transition: all 0.3s ease;
  width: 30px;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Remove browser's native clear button */
.expandable-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.expandable-search-input::-moz-search-clear-button {
  appearance: none;
}

.expandable-search-input:focus,
.expandable-search-input.expanded {
  border: 2px solid #fff;
  border-radius: 20px;
  cursor: text;
  height: 40px;
  line-height: 1.6;
  padding: 0 75px 0 18px; /* More padding on right for both clear and submit buttons */
  width: 300px;
}

.expandable-search-input::placeholder {
  color: transparent;
  transition: color 0.3s ease 0.1s;
}

.expandable-search-input:focus::placeholder,
.expandable-search-input.expanded::placeholder {
  color: #ccc;
}

.search-icon {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  color: #ff5000;
  cursor: pointer;
  z-index: 3;
  font-size: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.search-icon:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.search-icon:hover {
  background-color: rgba(255, 80, 0, 0.1);
}

.expandable-search-input:focus + .search-icon,
.expandable-search-input.expanded + .search-icon {
  opacity: 0;
  pointer-events: none;
}

/* Custom clear button */
.search-clear-btn {
  position: absolute;
  right: 35px; /* Position to the left of submit button */
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ff5000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  padding: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
}

.search-clear-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.search-clear-btn:hover {
  color: #ff4444;
  background-color: rgba(255, 255, 255, 0.1);
}

.expandable-search-input:focus ~ .search-clear-btn,
.expandable-search-input.expanded ~ .search-clear-btn {
  opacity: 1;
}

/* Hide clear button when input is empty */
.search-clear-btn.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.search-submit-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  padding: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.search-submit-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.search-submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.expandable-search-input:focus ~ .search-submit-btn,
.expandable-search-input.expanded ~ .search-submit-btn {
  opacity: 1;
}

/* Fix styling editable sections that have no content */
.sectionBlockLayout {
  padding: 0px !important;
}

/* Search Page Styling */

html[data-id="/search"]
  .expandable-search-input:not(.navbar .expandable-search-input) {
  color: var(--cavello-green);
}

html[data-id="/search"]
  .expandable-search-input:not(.navbar .expandable-search-input) {
  color: var(--cavello-green);
}

html[data-id="/search"]
  .expandable-search-input:not(.navbar .expandable-search-input):focus,
.expandable-search-input:not(.navbar .expandable-search-input).expanded {
  border: 2px solid var(--cavello-green);
}

html[data-id="/search"] .search-submit-btn:not(.navbar .search-submit-btn) {
  color: var(--cavello-green);
}

html[data-id="/search"] .section-landing-search .row {
  --bs-gutter-x: 0rem;
}

html[data-id="/search"] .row.sectionBlockLayout > .container,
html[data-id="/search"] .row.sectionBlockLayout > .container-md,
html[data-id="/search"] .row.sectionBlockLayout > .container-sm {
  max-width: 1200px;
}

html[data-id="/search"] #mainContent > div {
  display: none;
}

html[data-id="/search"] #mainContent {
  margin-top: 30px;
}

html[data-id="/search"] .search-results .summary,
.search-results h2 {
  font-size: 1rem !important;
}

html[data-id="/search"] .page-heading ~ .container :first-child {
  margin-bottom: 5rem;
}

.search-filters {
  margin-right: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.search-filters.show {
  opacity: 1;
  pointer-events: auto;
}

/* Filter dropdown styling to match the theme */
.search-filters .btn {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 15px;
  padding: 5px 15px;
  font-size: 14px;
}

.search-filters .btn:hover,
.search-filters .btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.search-filters .dropdown-menu {
  background-color: #444;
  border: 1px solid #666;
  border-radius: 10px;
  margin-top: 5px;
}

.search-filters .dropdown-item {
  color: #fff;
  padding: 8px 15px;
}

.search-filters .dropdown-item:hover,
.search-filters .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Hide the hidden select */
.btn-select {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .expandable-search-input:focus,
  .expandable-search-input.expanded {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .expandable-search-input:focus,
  .expandable-search-input.expanded {
    width: 200px;
    padding: 0 65px 0 18px;
  }

  .search-clear-btn {
    right: 30px;
  }
}

/* ----- Hero ----- */

.hero {
  position: relative;
  background: var(--cavello-light);
  padding: 7rem 0;
  border: 0;
}

.hero h1,
.hero h2 {
  position: relative;
  margin: 0;
  z-index: 100;
}
.hero p {
  position: relative;
  z-index: 100;
}
.hero p:last-child {
  margin-bottom: 0;
}
.hero-image {
  background-size: cover;
  background-position: center center;
  padding: 18rem 0;
}

.hero-image h1,
.hero-image h2 {
  color: #ffffff;
}

.hero-video {
  position: relative;
  padding: 18rem 0;
  text-align: center;
  overflow: hidden;
}
.hero-video:before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: hsl(0deg 0% 0% / 50%);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -99;
}
.hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1000;
  overflow: hidden;
}
.hero-video h1 {
  color: #ffffff;
}

/* ----- Banner ----- */

.banner {
  position: relative;
  background: var(--cavello-light);
  padding: 7rem 0;
  border: 0;
}

.banner h1,
.banner h2 {
  position: relative;
  margin: 0;
  z-index: 100;
}
.banner p {
  position: relative;
  z-index: 100;
}
.banner p:last-child {
  margin-bottom: 0;
}
.banner-image {
  background-size: cover;
  background-position: center center;
  height: 51.875rem;
  /* padding: 14rem 0; */
}
/* .banner-image h1,
.banner-image h2 {
  color: #ffffff;
} */

/* .page-header {
  padding-bottom: 0px;
  margin: 0px;
  border-bottom: 0px;
} */

/* ----- Form ----- */

/* Label styling */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: var(--cavello-green);
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

textarea {
  resize: none !important;
  width: 100% !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
}

.form-control {
  border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea.form-control:focus {
  border-bottom-color: var(--cavello-orange);
}

.form-control:focus {
  color: #212529;
  box-shadow: none;
}

input[type="text"],
input[type="email"],
textarea.form-control {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #b3b3b3;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Focus state with coloured underline */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-bottom-color: #ef6830;
}

textarea:not(textarea[readonly="readonly"]) {
  min-height: 120px !important;
  resize: vertical !important;
}

.crmEntityFormView .actions {
  border-top: none;
}

/* Fix for Recaptcha label positioning */

/* Target the paragraph containing both input and label */
.RadCaptcha p {
  display: flex;
  flex-direction: column;
}

/* Ensure label appears first */
.RadCaptcha p label {
  order: -1;
}

/* Keep input styling intact */
.RadCaptcha p input {
  order: 1;
}

.RadCaptcha p label:after {
  content: " *";
  color: red;
}

/* .crmEntityFormView {
  background-color: transparent !important;
  border: none !important;
  margin: 0 -10px;
}
.crmEntityFormView .cell {
  display: flex;
  padding: 0px 10px 20px 10px !important;
}
.crmEntityFormView .table-info {
  border-bottom: 1px solid grey;
}
.crmEntityFormView .field-label {
  background-color: transparent !important;
}
.crmEntityFormView .control {
  border-bottom: 1px solid grey;
  flex-grow: 1;
}
.crmEntityFormView .form-control {
  border: 0;
  padding: 2px;
  margin-bottom: 10px;
}
.crmEntityFormView .form-control:focus {
  border: #69c;
  box-shadow: none;
}
.crmEntityFormView .actions {
  border-top: none;
  margin: 0px;
  padding: 0px 10px;
}
.crmEntityFormView .tab {
  margin-bottom: 0px;
} */

.crmEntityFormView .validation-summary h2 {
  margin: 0 0 1em 0;
  padding: 0;
  font-size: 1.2em !important;
}

.crmEntityFormView .captcha-cell {
  padding: 0px 10px;
  text-align: left;
}

.crmEntityFormView .cell {
  padding: 4px 14px !important;
}

@media only screen and (min-width: 768px) {
  .crmEntityFormView {
    margin-left: -10px;
    margin-right: -10px;
  }

  [id*="EntityFormControl"] .crmEntityFormView .cell,
  [id*="WebFormControl"] .crmEntityFormView .cell {
    padding: 4px 14px !important;
  }

  [id*="EntityFormControl"] .validation-summary,
  [id*="WebFormControl"] .validation-summary {
    margin-left: 10px;
    margin-right: 10px;
  }

  [id*="WebFormControl"] .section-title h3,
  [id*="WebFormControl"] .section-title h2 {
    margin: 0px !important;
  }

  [id*="WebFormControl"] .crmEntityFormView .actions {
    margin: 15px;
  }

  .crmEntityFormView .section-title {
    padding: 0 15px;
  }
}

/* ----- Footer ----- */

.footer {
  background-color: var(--cavello-light);
  padding: 4rem 0;
}

.footer .logo img {
  width: 150px;
}

/* ----- Responsive ----- */

@media (max-width: 767px) {
  ul.dropdown-menu > li.dropend .dropdown-menu {
    display: block !important;
    padding: 8px 20px 0px 20px;
  }

  .nav-link.dropdown-toggle {
    padding: 20px 20px !important;
    font-size: 20px;
  }
  a.nav-link {
    padding: 20px 20px !important;
    font-size: 20px;
  }

  .dropdown-menu {
    background-color: transparent;
    padding: 0px 20px;
  }
  .dropdown-menu li a {
    color: #ffffff !important;
    padding: 8px 20px;
  }
  .dropdown-menu > li > a:focus,
  .dropdown-menu > li > a:hover {
    padding: 8px 20px;
  }
  .dropdown-menu > .active > a,
  .dropdown-menu > .active > a:focus,
  .dropdown-menu > .active > a:hover {
    padding: 8px 20px;
  }

  .dropend .dropdown-toggle::after {
    transform: rotate(90deg);
    transition: transform 0.3s ease; /* Optional: adds a smooth rotation animation */
  }
}

@media (min-width: 576px) {
}
@media (min-width: 768px) {
  /* ----- General ----- */

  body {
    font-size: 17px;
  }
  h1,
  .h1 {
    font-size: 60px !important;
  }
  h2,
  .h2 {
    font-size: 44px !important;
  }
  h3,
  .h3 {
    font-size: 32px !important;
  }
  h4,
  .h4 {
    font-size: 26px !important;
  }
  h5,
  .h5 {
    font-size: 20px !important;
  }
  p:not(.display-6),
  ul {
    font-size: 18px !important;
    font-weight: 300;
  }

  b,
  strong {
    font-weight: 600;
  }

  /* ----- Footer ----- */

  .footer .social-media {
    text-align: right;
  }
  .copyright p {
    margin: 0;
  }
  .footer .logo {
    position: relative;
  }
  .footer .logo a {
    position: absolute;
    bottom: 0;
    right: 0;
  }

  /* Navbar Responsive */
  .dropend:hover > .dropdown-menu,
  .dropend:focus-within > .dropdown-menu {
    display: block !important;
    opacity: 1;
    transform: translate(165px, -40px);
  }

  .dropend > .dropdown-menu.show {
    transform: translate(165px, -8px) !important;
    left: 0 !important;
    margin: 0 !important;
  }
}
@media (min-width: 992px) {
}
@media (min-width: 1200px) {
}
@media (min-width: 1400px) {
}
