.max-lines-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1lh);
  /* 1 × current element's line-height */
}

.max-lines-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(2lh);
  /* 2 × current element's line-height */
}

.max-lines-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(3lh);
  /* 3 × current element's line-height */
}

.search-highlight {
  background-color: #ffe08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.max-lines-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(4lh);
  /* 4 × current element's line-height */
}

.max-lines-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(5lh);
  /* 5 × current element's line-height */
}

.max-lines-6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(6lh);
  /* 6 × current element's line-height */
}

.rs-btn.has-bg-white:hover .spin {
  animation: 5s linear 0s infinite alternate none running rs-spin;
}

/* Spin the icon when the parent link OR button is hovered */
a:hover .spin-custom,
button:hover .spin-custom {
  display: inline-block;
  /* Required for transform to work on some elements */
  animation: 2s linear infinite rs-spin;
  /* Adjusted to 2s for a smoother, faster reset feel */
}

.form-select {
  height: 50px;
  font-size: 16px;
}

textarea {
  height: auto;
}

.rs-btn,
.main-menu li a {
  text-transform: none !important;
}

.rs-postbox-details-thumb {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-menu > ul {
  gap: 0 15px;
}

.main-menu li a {
  font-size: 16px;
}

.rs-breadcrumb-menu nav {
  color: white;
}

.rs-btn-custom {
  font-size: 16px;
  text-transform: unset;
  padding: 7px 16px;
  height: 35px;
}

.main-menu .menu-custom > li > a {
  padding: 0 !important;
  font-size: 14px;
}
.main-menu .menu-custom > li > a:hover {
  color: var(--rs-theme-primary) !important;
}
.rs-post-small-title a {
  text-transform: none !important;
}

[rs-theme="rs-theme-dark"] .rs-post-small {
  background: var(--rs-bg-primary);
}

[rs-theme="rs-theme-dark"] .leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--rs-bg-primary);
}

.rs-partner-slider.swiper {
  background-color: white !important;
}

.rs-team-content-info {
  margin-right: -70px !important;
}

.bg-primary-2 {
  background-color: var(--rs-bg-primry-2) !important;
}

/* Floating Button - Matches the gear in your screenshot */
.floating-contact-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-right: none;
  padding: 12px;
  cursor: pointer;
  z-index: 999;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.floating-contact-btn:hover {
  background: #f8f8f8;
  padding-right: 20px;
  /* Slight slide effect */
}

/* Modal Styling */
.custom-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.submit-btn {
  background: #c62828;
  /* Red to match your site */
  color: white;
  border: none;
  padding: 10px 20px;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.close-btn {
  cursor: pointer;
  font-size: 24px;
  float: right;
}

/* Floating Envelope (matches your screenshot style) */
.floating-envelope-btn {
  position: fixed;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  background: #c62828;
  /* Adjust to your red theme */
  color: white;
  padding: 15px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  font-size: 24px;
}

/* Modal Overlay Background */
.cta-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  /* Controlled by JS */
  align-items: center;
  justify-content: center;
  padding: 15px;
}

/* Modal Content Container */
.cta-modal-container {
  position: relative;
  width: 100%;
  background: transparent;
}

/* Close Button */
.cta-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* Ensure your section fits inside the modal nicely */
.rs-cta-area {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 20px;
  overflow: hidden;
}

.header-top-item.custom-circle {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.custom-circle .popup-circle {
  width: 8px;
  height: 8px;
  position: relative;
}
.custom-circle .header-top-title {
  font-size: 14px;
  font-weight: 600;
  color: #e40101;
  text-transform: uppercase;
  line-height: 20px;
}
.header-search {
  display: block;
}
@media (max-width: 767.98px) {
  .mobile-nowrap {
    flex-wrap: nowrap !important;
  }
}
.type_antiquewhite,
.mini_info_blok {
  min-height: 40px;
  background-color: antiquewhite;
  padding: 15px;
  border: 5px solid #fbfbfb;
  border-top-color: #c62828;
  border-top-width: 4px;
  box-sizing: border-box;
}
figure.image_caption[style*="float:left"],
figure.image[style*="float:left"] {
  margin: 15px 15px 15px 0px !important;
}
figure.image_caption figcaption,
figure.image figcaption,
.investigatii_source {
  font-size: 12px;
  font-style: italic;
  text-align: left;
  position: absolute;
  padding: 5px;
  line-height: 13px;
  bottom: 0px;
  color: #000;
  background-color: rgba(255, 255, 255, 0.72);
}
figure.image_caption,
figure.image {
  position: relative;
}
.type_antiquewhite p,
.type_aliceblue p,
.type_darkseagreen p {
  font-size: 13px !important;
  line-height: 21px;
}
.type_aliceblue {
  min-height: 40px;
  background-color: aliceblue;
  padding: 15px;
  border: 5px solid #fbfbfb;
  border-top-color: #2892c6;
  border-top-width: 4px;
  box-sizing: border-box;
}
figure.image_caption[style*="float:right"],
figure.image[style*="float:right"] {
  margin: 15px 0px 15px 15px !important;
}
/* Targets all smart banners globally */
.smart-banner,
.smart-banner-temp {
  margin-top: 1rem !important; /* This is equivalent to py-3 */
  margin-bottom: 1rem !important;
  display: block; /* Ensures padding applies correctly to <a> or <img> tags */
}
/* 1. Hide all MOBILE ads by default (when on Desktop) */
[banner-slug*="_mobile_"] {
  display: none !important;
}
[banner-slug*="_mobile_"] {
  display: none !important;
}

/* 2. When the screen is small (Mobile/Tablet) */
@media (max-width: 991px) {
  /* Hide all DESKTOP ads */
  [banner-slug*="_desktop_"] {
    display: none !important;
  }

  /* Show all MOBILE ads */
  [banner-slug*="_mobile_"] {
    display: block !important;
  }
}
.interior-post img,
.rs-postbox-details-wrapper img {
  max-width: 100% !important;
  height: auto !important;
}

.team-details-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 20px;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

a.team-details-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
}

.team-details-wrapper .team-details-thumb {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
}

.team-details-wrapper .team-details-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-details-wrapper .team-details-content {
  flex: 1 1 auto;
  min-width: 0;
}

.team-details-wrapper .team-details-title {
  margin-bottom: 6px;
  font-size: 20px;
}

.team-details-wrapper .team-details-title a {
  color: inherit;
}

.team-details-wrapper .rs-team-designation {
  font-size: 14px;
  color: #6b7280;
  display: block;
}

@media (max-width: 575.98px) {
  .team-details-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
.rs-postbox-details-content a {
  color: #007bff !important; /* Use !important if other framework styles keep fighting you */
}

/* Make sure it stays blue even after being clicked */
.rs-postbox-details-content a:visited {
  color: #007bff !important;
}
